Subversion Repositories SmartDukaan

Rev

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

Rev 17990 Rev 19247
Line 381... Line 381...
381
 
381
 
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
383
 
383
 
384
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;
384
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;
385
 
385
 
-
 
386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
-
 
387
 
-
 
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
-
 
389
 
386
  }
390
  }
387
 
391
 
388
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
392
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
389
 
393
 
390
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
394
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 547... Line 551...
547
 
551
 
548
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
552
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
549
 
553
 
550
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException;
554
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException;
551
 
555
 
-
 
556
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
-
 
557
 
-
 
558
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
-
 
559
 
552
  }
560
  }
553
 
561
 
554
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
562
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
555
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
563
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
556
      public Factory() {}
564
      public Factory() {}
Line 2481... Line 2489...
2481
        return result.success;
2489
        return result.success;
2482
      }
2490
      }
2483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
2491
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
2484
    }
2492
    }
2485
 
2493
 
-
 
2494
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException
-
 
2495
    {
-
 
2496
      send_addVendorItemPricingInBulk(vendorItemPricingList);
-
 
2497
      return recv_addVendorItemPricingInBulk();
-
 
2498
    }
-
 
2499
 
-
 
2500
    public void send_addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException
-
 
2501
    {
-
 
2502
      addVendorItemPricingInBulk_args args = new addVendorItemPricingInBulk_args();
-
 
2503
      args.setVendorItemPricingList(vendorItemPricingList);
-
 
2504
      sendBase("addVendorItemPricingInBulk", args);
-
 
2505
    }
-
 
2506
 
-
 
2507
    public List<Long> recv_addVendorItemPricingInBulk() throws org.apache.thrift.TException
-
 
2508
    {
-
 
2509
      addVendorItemPricingInBulk_result result = new addVendorItemPricingInBulk_result();
-
 
2510
      receiveBase(result, "addVendorItemPricingInBulk");
-
 
2511
      if (result.isSetSuccess()) {
-
 
2512
        return result.success;
-
 
2513
      }
-
 
2514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendorItemPricingInBulk failed: unknown result");
-
 
2515
    }
-
 
2516
 
-
 
2517
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException
-
 
2518
    {
-
 
2519
      send_addInventoryInBulk(bulkInventoryList);
-
 
2520
      recv_addInventoryInBulk();
-
 
2521
    }
-
 
2522
 
-
 
2523
    public void send_addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws org.apache.thrift.TException
-
 
2524
    {
-
 
2525
      addInventoryInBulk_args args = new addInventoryInBulk_args();
-
 
2526
      args.setBulkInventoryList(bulkInventoryList);
-
 
2527
      sendBase("addInventoryInBulk", args);
-
 
2528
    }
-
 
2529
 
-
 
2530
    public void recv_addInventoryInBulk() throws InventoryServiceException, org.apache.thrift.TException
-
 
2531
    {
-
 
2532
      addInventoryInBulk_result result = new addInventoryInBulk_result();
-
 
2533
      receiveBase(result, "addInventoryInBulk");
-
 
2534
      if (result.cex != null) {
-
 
2535
        throw result.cex;
-
 
2536
      }
-
 
2537
      return;
-
 
2538
    }
-
 
2539
 
2486
  }
2540
  }
2487
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2541
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2488
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2542
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2489
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2543
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2490
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2544
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5238... Line 5292...
5238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5239
        return (new Client(prot)).recv_updateItemAvailabilityForItemIds();
5293
        return (new Client(prot)).recv_updateItemAvailabilityForItemIds();
5240
      }
5294
      }
5241
    }
5295
    }
5242
 
5296
 
-
 
5297
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException {
-
 
5298
      checkReady();
-
 
5299
      addVendorItemPricingInBulk_call method_call = new addVendorItemPricingInBulk_call(vendorItemPricingList, resultHandler, this, ___protocolFactory, ___transport);
-
 
5300
      this.___currentMethod = method_call;
-
 
5301
      ___manager.call(method_call);
-
 
5302
    }
-
 
5303
 
-
 
5304
    public static class addVendorItemPricingInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5305
      private List<VendorItemPricing> vendorItemPricingList;
-
 
5306
      public addVendorItemPricingInBulk_call(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricingInBulk_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 {
-
 
5307
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5308
        this.vendorItemPricingList = vendorItemPricingList;
-
 
5309
      }
-
 
5310
 
-
 
5311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricingInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5313
        addVendorItemPricingInBulk_args args = new addVendorItemPricingInBulk_args();
-
 
5314
        args.setVendorItemPricingList(vendorItemPricingList);
-
 
5315
        args.write(prot);
-
 
5316
        prot.writeMessageEnd();
-
 
5317
      }
-
 
5318
 
-
 
5319
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
5320
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5321
          throw new IllegalStateException("Method call not finished!");
-
 
5322
        }
-
 
5323
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5324
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5325
        return (new Client(prot)).recv_addVendorItemPricingInBulk();
-
 
5326
      }
-
 
5327
    }
-
 
5328
 
-
 
5329
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException {
-
 
5330
      checkReady();
-
 
5331
      addInventoryInBulk_call method_call = new addInventoryInBulk_call(bulkInventoryList, resultHandler, this, ___protocolFactory, ___transport);
-
 
5332
      this.___currentMethod = method_call;
-
 
5333
      ___manager.call(method_call);
-
 
5334
    }
-
 
5335
 
-
 
5336
    public static class addInventoryInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5337
      private List<BulkAddInventory> bulkInventoryList;
-
 
5338
      public addInventoryInBulk_call(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<addInventoryInBulk_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 {
-
 
5339
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5340
        this.bulkInventoryList = bulkInventoryList;
-
 
5341
      }
-
 
5342
 
-
 
5343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventoryInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5345
        addInventoryInBulk_args args = new addInventoryInBulk_args();
-
 
5346
        args.setBulkInventoryList(bulkInventoryList);
-
 
5347
        args.write(prot);
-
 
5348
        prot.writeMessageEnd();
-
 
5349
      }
-
 
5350
 
-
 
5351
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
5352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5353
          throw new IllegalStateException("Method call not finished!");
-
 
5354
        }
-
 
5355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5357
        (new Client(prot)).recv_addInventoryInBulk();
-
 
5358
      }
-
 
5359
    }
-
 
5360
 
5243
  }
5361
  }
5244
 
5362
 
5245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5363
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5364
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5247
    public Processor(I iface) {
5365
    public Processor(I iface) {
Line 5332... Line 5450...
5332
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5450
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5333
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5451
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5334
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5452
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5335
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5453
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5336
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5454
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
-
 
5455
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
-
 
5456
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
5337
      return processMap;
5457
      return processMap;
5338
    }
5458
    }
5339
 
5459
 
5340
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5460
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5341
      public addWarehouse() {
5461
      public addWarehouse() {
Line 6742... Line 6862...
6742
        result.setSuccessIsSet(true);
6862
        result.setSuccessIsSet(true);
6743
        return result;
6863
        return result;
6744
      }
6864
      }
6745
    }
6865
    }
6746
 
6866
 
-
 
6867
    private static class addVendorItemPricingInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricingInBulk_args> {
-
 
6868
      public addVendorItemPricingInBulk() {
-
 
6869
        super("addVendorItemPricingInBulk");
-
 
6870
      }
-
 
6871
 
-
 
6872
      protected addVendorItemPricingInBulk_args getEmptyArgsInstance() {
-
 
6873
        return new addVendorItemPricingInBulk_args();
-
 
6874
      }
-
 
6875
 
-
 
6876
      protected addVendorItemPricingInBulk_result getResult(I iface, addVendorItemPricingInBulk_args args) throws org.apache.thrift.TException {
-
 
6877
        addVendorItemPricingInBulk_result result = new addVendorItemPricingInBulk_result();
-
 
6878
        result.success = iface.addVendorItemPricingInBulk(args.vendorItemPricingList);
-
 
6879
        return result;
-
 
6880
      }
-
 
6881
    }
-
 
6882
 
-
 
6883
    private static class addInventoryInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventoryInBulk_args> {
-
 
6884
      public addInventoryInBulk() {
-
 
6885
        super("addInventoryInBulk");
-
 
6886
      }
-
 
6887
 
-
 
6888
      protected addInventoryInBulk_args getEmptyArgsInstance() {
-
 
6889
        return new addInventoryInBulk_args();
-
 
6890
      }
-
 
6891
 
-
 
6892
      protected addInventoryInBulk_result getResult(I iface, addInventoryInBulk_args args) throws org.apache.thrift.TException {
-
 
6893
        addInventoryInBulk_result result = new addInventoryInBulk_result();
-
 
6894
        try {
-
 
6895
          iface.addInventoryInBulk(args.bulkInventoryList);
-
 
6896
        } catch (InventoryServiceException cex) {
-
 
6897
          result.cex = cex;
-
 
6898
        }
-
 
6899
        return result;
-
 
6900
      }
-
 
6901
    }
-
 
6902
 
6747
  }
6903
  }
6748
 
6904
 
6749
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6905
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6751
 
6907
 
Line 59893... Line 60049...
59893
      first = false;
60049
      first = false;
59894
      sb.append(")");
60050
      sb.append(")");
59895
      return sb.toString();
60051
      return sb.toString();
59896
    }
60052
    }
59897
 
60053
 
-
 
60054
    public void validate() throws org.apache.thrift.TException {
-
 
60055
      // check for required fields
-
 
60056
    }
-
 
60057
 
-
 
60058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60059
      try {
-
 
60060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60061
      } catch (org.apache.thrift.TException te) {
-
 
60062
        throw new java.io.IOException(te);
-
 
60063
      }
-
 
60064
    }
-
 
60065
 
-
 
60066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60067
      try {
-
 
60068
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60069
      } catch (org.apache.thrift.TException te) {
-
 
60070
        throw new java.io.IOException(te);
-
 
60071
      }
-
 
60072
    }
-
 
60073
 
-
 
60074
  }
-
 
60075
 
-
 
60076
  public static class addVendorItemPricingInBulk_args implements org.apache.thrift.TBase<addVendorItemPricingInBulk_args, addVendorItemPricingInBulk_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricingInBulk_args");
-
 
60078
 
-
 
60079
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_PRICING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemPricingList", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
60080
 
-
 
60081
    private List<VendorItemPricing> vendorItemPricingList; // required
-
 
60082
 
-
 
60083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60085
      VENDOR_ITEM_PRICING_LIST((short)1, "vendorItemPricingList");
-
 
60086
 
-
 
60087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60088
 
-
 
60089
      static {
-
 
60090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60091
          byName.put(field.getFieldName(), field);
-
 
60092
        }
-
 
60093
      }
-
 
60094
 
-
 
60095
      /**
-
 
60096
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60097
       */
-
 
60098
      public static _Fields findByThriftId(int fieldId) {
-
 
60099
        switch(fieldId) {
-
 
60100
          case 1: // VENDOR_ITEM_PRICING_LIST
-
 
60101
            return VENDOR_ITEM_PRICING_LIST;
-
 
60102
          default:
-
 
60103
            return null;
-
 
60104
        }
-
 
60105
      }
-
 
60106
 
-
 
60107
      /**
-
 
60108
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60109
       * if it is not found.
-
 
60110
       */
-
 
60111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60112
        _Fields fields = findByThriftId(fieldId);
-
 
60113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60114
        return fields;
-
 
60115
      }
-
 
60116
 
-
 
60117
      /**
-
 
60118
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60119
       */
-
 
60120
      public static _Fields findByName(String name) {
-
 
60121
        return byName.get(name);
-
 
60122
      }
-
 
60123
 
-
 
60124
      private final short _thriftId;
-
 
60125
      private final String _fieldName;
-
 
60126
 
-
 
60127
      _Fields(short thriftId, String fieldName) {
-
 
60128
        _thriftId = thriftId;
-
 
60129
        _fieldName = fieldName;
-
 
60130
      }
-
 
60131
 
-
 
60132
      public short getThriftFieldId() {
-
 
60133
        return _thriftId;
-
 
60134
      }
-
 
60135
 
-
 
60136
      public String getFieldName() {
-
 
60137
        return _fieldName;
-
 
60138
      }
-
 
60139
    }
-
 
60140
 
-
 
60141
    // isset id assignments
-
 
60142
 
-
 
60143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60144
    static {
-
 
60145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60146
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING_LIST, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricingList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60147
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60148
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
-
 
60149
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60150
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricingInBulk_args.class, metaDataMap);
-
 
60151
    }
-
 
60152
 
-
 
60153
    public addVendorItemPricingInBulk_args() {
-
 
60154
    }
-
 
60155
 
-
 
60156
    public addVendorItemPricingInBulk_args(
-
 
60157
      List<VendorItemPricing> vendorItemPricingList)
-
 
60158
    {
-
 
60159
      this();
-
 
60160
      this.vendorItemPricingList = vendorItemPricingList;
-
 
60161
    }
-
 
60162
 
-
 
60163
    /**
-
 
60164
     * Performs a deep copy on <i>other</i>.
-
 
60165
     */
-
 
60166
    public addVendorItemPricingInBulk_args(addVendorItemPricingInBulk_args other) {
-
 
60167
      if (other.isSetVendorItemPricingList()) {
-
 
60168
        List<VendorItemPricing> __this__vendorItemPricingList = new ArrayList<VendorItemPricing>();
-
 
60169
        for (VendorItemPricing other_element : other.vendorItemPricingList) {
-
 
60170
          __this__vendorItemPricingList.add(new VendorItemPricing(other_element));
-
 
60171
        }
-
 
60172
        this.vendorItemPricingList = __this__vendorItemPricingList;
-
 
60173
      }
-
 
60174
    }
-
 
60175
 
-
 
60176
    public addVendorItemPricingInBulk_args deepCopy() {
-
 
60177
      return new addVendorItemPricingInBulk_args(this);
-
 
60178
    }
-
 
60179
 
-
 
60180
    @Override
-
 
60181
    public void clear() {
-
 
60182
      this.vendorItemPricingList = null;
-
 
60183
    }
-
 
60184
 
-
 
60185
    public int getVendorItemPricingListSize() {
-
 
60186
      return (this.vendorItemPricingList == null) ? 0 : this.vendorItemPricingList.size();
-
 
60187
    }
-
 
60188
 
-
 
60189
    public java.util.Iterator<VendorItemPricing> getVendorItemPricingListIterator() {
-
 
60190
      return (this.vendorItemPricingList == null) ? null : this.vendorItemPricingList.iterator();
-
 
60191
    }
-
 
60192
 
-
 
60193
    public void addToVendorItemPricingList(VendorItemPricing elem) {
-
 
60194
      if (this.vendorItemPricingList == null) {
-
 
60195
        this.vendorItemPricingList = new ArrayList<VendorItemPricing>();
-
 
60196
      }
-
 
60197
      this.vendorItemPricingList.add(elem);
-
 
60198
    }
-
 
60199
 
-
 
60200
    public List<VendorItemPricing> getVendorItemPricingList() {
-
 
60201
      return this.vendorItemPricingList;
-
 
60202
    }
-
 
60203
 
-
 
60204
    public void setVendorItemPricingList(List<VendorItemPricing> vendorItemPricingList) {
-
 
60205
      this.vendorItemPricingList = vendorItemPricingList;
-
 
60206
    }
-
 
60207
 
-
 
60208
    public void unsetVendorItemPricingList() {
-
 
60209
      this.vendorItemPricingList = null;
-
 
60210
    }
-
 
60211
 
-
 
60212
    /** Returns true if field vendorItemPricingList is set (has been assigned a value) and false otherwise */
-
 
60213
    public boolean isSetVendorItemPricingList() {
-
 
60214
      return this.vendorItemPricingList != null;
-
 
60215
    }
-
 
60216
 
-
 
60217
    public void setVendorItemPricingListIsSet(boolean value) {
-
 
60218
      if (!value) {
-
 
60219
        this.vendorItemPricingList = null;
-
 
60220
      }
-
 
60221
    }
-
 
60222
 
-
 
60223
    public void setFieldValue(_Fields field, Object value) {
-
 
60224
      switch (field) {
-
 
60225
      case VENDOR_ITEM_PRICING_LIST:
-
 
60226
        if (value == null) {
-
 
60227
          unsetVendorItemPricingList();
-
 
60228
        } else {
-
 
60229
          setVendorItemPricingList((List<VendorItemPricing>)value);
-
 
60230
        }
-
 
60231
        break;
-
 
60232
 
-
 
60233
      }
-
 
60234
    }
-
 
60235
 
-
 
60236
    public Object getFieldValue(_Fields field) {
-
 
60237
      switch (field) {
-
 
60238
      case VENDOR_ITEM_PRICING_LIST:
-
 
60239
        return getVendorItemPricingList();
-
 
60240
 
-
 
60241
      }
-
 
60242
      throw new IllegalStateException();
-
 
60243
    }
-
 
60244
 
-
 
60245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60246
    public boolean isSet(_Fields field) {
-
 
60247
      if (field == null) {
-
 
60248
        throw new IllegalArgumentException();
-
 
60249
      }
-
 
60250
 
-
 
60251
      switch (field) {
-
 
60252
      case VENDOR_ITEM_PRICING_LIST:
-
 
60253
        return isSetVendorItemPricingList();
-
 
60254
      }
-
 
60255
      throw new IllegalStateException();
-
 
60256
    }
-
 
60257
 
-
 
60258
    @Override
-
 
60259
    public boolean equals(Object that) {
-
 
60260
      if (that == null)
-
 
60261
        return false;
-
 
60262
      if (that instanceof addVendorItemPricingInBulk_args)
-
 
60263
        return this.equals((addVendorItemPricingInBulk_args)that);
-
 
60264
      return false;
-
 
60265
    }
-
 
60266
 
-
 
60267
    public boolean equals(addVendorItemPricingInBulk_args that) {
-
 
60268
      if (that == null)
-
 
60269
        return false;
-
 
60270
 
-
 
60271
      boolean this_present_vendorItemPricingList = true && this.isSetVendorItemPricingList();
-
 
60272
      boolean that_present_vendorItemPricingList = true && that.isSetVendorItemPricingList();
-
 
60273
      if (this_present_vendorItemPricingList || that_present_vendorItemPricingList) {
-
 
60274
        if (!(this_present_vendorItemPricingList && that_present_vendorItemPricingList))
-
 
60275
          return false;
-
 
60276
        if (!this.vendorItemPricingList.equals(that.vendorItemPricingList))
-
 
60277
          return false;
-
 
60278
      }
-
 
60279
 
-
 
60280
      return true;
-
 
60281
    }
-
 
60282
 
-
 
60283
    @Override
-
 
60284
    public int hashCode() {
-
 
60285
      return 0;
-
 
60286
    }
-
 
60287
 
-
 
60288
    public int compareTo(addVendorItemPricingInBulk_args other) {
-
 
60289
      if (!getClass().equals(other.getClass())) {
-
 
60290
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60291
      }
-
 
60292
 
-
 
60293
      int lastComparison = 0;
-
 
60294
      addVendorItemPricingInBulk_args typedOther = (addVendorItemPricingInBulk_args)other;
-
 
60295
 
-
 
60296
      lastComparison = Boolean.valueOf(isSetVendorItemPricingList()).compareTo(typedOther.isSetVendorItemPricingList());
-
 
60297
      if (lastComparison != 0) {
-
 
60298
        return lastComparison;
-
 
60299
      }
-
 
60300
      if (isSetVendorItemPricingList()) {
-
 
60301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricingList, typedOther.vendorItemPricingList);
-
 
60302
        if (lastComparison != 0) {
-
 
60303
          return lastComparison;
-
 
60304
        }
-
 
60305
      }
-
 
60306
      return 0;
-
 
60307
    }
-
 
60308
 
-
 
60309
    public _Fields fieldForId(int fieldId) {
-
 
60310
      return _Fields.findByThriftId(fieldId);
-
 
60311
    }
-
 
60312
 
-
 
60313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60314
      org.apache.thrift.protocol.TField field;
-
 
60315
      iprot.readStructBegin();
-
 
60316
      while (true)
-
 
60317
      {
-
 
60318
        field = iprot.readFieldBegin();
-
 
60319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60320
          break;
-
 
60321
        }
-
 
60322
        switch (field.id) {
-
 
60323
          case 1: // VENDOR_ITEM_PRICING_LIST
-
 
60324
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
60325
              {
-
 
60326
                org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
-
 
60327
                this.vendorItemPricingList = new ArrayList<VendorItemPricing>(_list200.size);
-
 
60328
                for (int _i201 = 0; _i201 < _list200.size; ++_i201)
-
 
60329
                {
-
 
60330
                  VendorItemPricing _elem202; // required
-
 
60331
                  _elem202 = new VendorItemPricing();
-
 
60332
                  _elem202.read(iprot);
-
 
60333
                  this.vendorItemPricingList.add(_elem202);
-
 
60334
                }
-
 
60335
                iprot.readListEnd();
-
 
60336
              }
-
 
60337
            } else { 
-
 
60338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60339
            }
-
 
60340
            break;
-
 
60341
          default:
-
 
60342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60343
        }
-
 
60344
        iprot.readFieldEnd();
-
 
60345
      }
-
 
60346
      iprot.readStructEnd();
-
 
60347
      validate();
-
 
60348
    }
-
 
60349
 
-
 
60350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60351
      validate();
-
 
60352
 
-
 
60353
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60354
      if (this.vendorItemPricingList != null) {
-
 
60355
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_LIST_FIELD_DESC);
-
 
60356
        {
-
 
60357
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.vendorItemPricingList.size()));
-
 
60358
          for (VendorItemPricing _iter203 : this.vendorItemPricingList)
-
 
60359
          {
-
 
60360
            _iter203.write(oprot);
-
 
60361
          }
-
 
60362
          oprot.writeListEnd();
-
 
60363
        }
-
 
60364
        oprot.writeFieldEnd();
-
 
60365
      }
-
 
60366
      oprot.writeFieldStop();
-
 
60367
      oprot.writeStructEnd();
-
 
60368
    }
-
 
60369
 
-
 
60370
    @Override
-
 
60371
    public String toString() {
-
 
60372
      StringBuilder sb = new StringBuilder("addVendorItemPricingInBulk_args(");
-
 
60373
      boolean first = true;
-
 
60374
 
-
 
60375
      sb.append("vendorItemPricingList:");
-
 
60376
      if (this.vendorItemPricingList == null) {
-
 
60377
        sb.append("null");
-
 
60378
      } else {
-
 
60379
        sb.append(this.vendorItemPricingList);
-
 
60380
      }
-
 
60381
      first = false;
-
 
60382
      sb.append(")");
-
 
60383
      return sb.toString();
-
 
60384
    }
-
 
60385
 
-
 
60386
    public void validate() throws org.apache.thrift.TException {
-
 
60387
      // check for required fields
-
 
60388
    }
-
 
60389
 
-
 
60390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60391
      try {
-
 
60392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60393
      } catch (org.apache.thrift.TException te) {
-
 
60394
        throw new java.io.IOException(te);
-
 
60395
      }
-
 
60396
    }
-
 
60397
 
-
 
60398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60399
      try {
-
 
60400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60401
      } catch (org.apache.thrift.TException te) {
-
 
60402
        throw new java.io.IOException(te);
-
 
60403
      }
-
 
60404
    }
-
 
60405
 
-
 
60406
  }
-
 
60407
 
-
 
60408
  public static class addVendorItemPricingInBulk_result implements org.apache.thrift.TBase<addVendorItemPricingInBulk_result, addVendorItemPricingInBulk_result._Fields>, java.io.Serializable, Cloneable   {
-
 
60409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricingInBulk_result");
-
 
60410
 
-
 
60411
    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);
-
 
60412
 
-
 
60413
    private List<Long> success; // required
-
 
60414
 
-
 
60415
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60416
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60417
      SUCCESS((short)0, "success");
-
 
60418
 
-
 
60419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60420
 
-
 
60421
      static {
-
 
60422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60423
          byName.put(field.getFieldName(), field);
-
 
60424
        }
-
 
60425
      }
-
 
60426
 
-
 
60427
      /**
-
 
60428
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60429
       */
-
 
60430
      public static _Fields findByThriftId(int fieldId) {
-
 
60431
        switch(fieldId) {
-
 
60432
          case 0: // SUCCESS
-
 
60433
            return SUCCESS;
-
 
60434
          default:
-
 
60435
            return null;
-
 
60436
        }
-
 
60437
      }
-
 
60438
 
-
 
60439
      /**
-
 
60440
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60441
       * if it is not found.
-
 
60442
       */
-
 
60443
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60444
        _Fields fields = findByThriftId(fieldId);
-
 
60445
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60446
        return fields;
-
 
60447
      }
-
 
60448
 
-
 
60449
      /**
-
 
60450
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60451
       */
-
 
60452
      public static _Fields findByName(String name) {
-
 
60453
        return byName.get(name);
-
 
60454
      }
-
 
60455
 
-
 
60456
      private final short _thriftId;
-
 
60457
      private final String _fieldName;
-
 
60458
 
-
 
60459
      _Fields(short thriftId, String fieldName) {
-
 
60460
        _thriftId = thriftId;
-
 
60461
        _fieldName = fieldName;
-
 
60462
      }
-
 
60463
 
-
 
60464
      public short getThriftFieldId() {
-
 
60465
        return _thriftId;
-
 
60466
      }
-
 
60467
 
-
 
60468
      public String getFieldName() {
-
 
60469
        return _fieldName;
-
 
60470
      }
-
 
60471
    }
-
 
60472
 
-
 
60473
    // isset id assignments
-
 
60474
 
-
 
60475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60476
    static {
-
 
60477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60478
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60479
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60480
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
60481
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60482
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricingInBulk_result.class, metaDataMap);
-
 
60483
    }
-
 
60484
 
-
 
60485
    public addVendorItemPricingInBulk_result() {
-
 
60486
    }
-
 
60487
 
-
 
60488
    public addVendorItemPricingInBulk_result(
-
 
60489
      List<Long> success)
-
 
60490
    {
-
 
60491
      this();
-
 
60492
      this.success = success;
-
 
60493
    }
-
 
60494
 
-
 
60495
    /**
-
 
60496
     * Performs a deep copy on <i>other</i>.
-
 
60497
     */
-
 
60498
    public addVendorItemPricingInBulk_result(addVendorItemPricingInBulk_result other) {
-
 
60499
      if (other.isSetSuccess()) {
-
 
60500
        List<Long> __this__success = new ArrayList<Long>();
-
 
60501
        for (Long other_element : other.success) {
-
 
60502
          __this__success.add(other_element);
-
 
60503
        }
-
 
60504
        this.success = __this__success;
-
 
60505
      }
-
 
60506
    }
-
 
60507
 
-
 
60508
    public addVendorItemPricingInBulk_result deepCopy() {
-
 
60509
      return new addVendorItemPricingInBulk_result(this);
-
 
60510
    }
-
 
60511
 
-
 
60512
    @Override
-
 
60513
    public void clear() {
-
 
60514
      this.success = null;
-
 
60515
    }
-
 
60516
 
-
 
60517
    public int getSuccessSize() {
-
 
60518
      return (this.success == null) ? 0 : this.success.size();
-
 
60519
    }
-
 
60520
 
-
 
60521
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
60522
      return (this.success == null) ? null : this.success.iterator();
-
 
60523
    }
-
 
60524
 
-
 
60525
    public void addToSuccess(long elem) {
-
 
60526
      if (this.success == null) {
-
 
60527
        this.success = new ArrayList<Long>();
-
 
60528
      }
-
 
60529
      this.success.add(elem);
-
 
60530
    }
-
 
60531
 
-
 
60532
    public List<Long> getSuccess() {
-
 
60533
      return this.success;
-
 
60534
    }
-
 
60535
 
-
 
60536
    public void setSuccess(List<Long> success) {
-
 
60537
      this.success = success;
-
 
60538
    }
-
 
60539
 
-
 
60540
    public void unsetSuccess() {
-
 
60541
      this.success = null;
-
 
60542
    }
-
 
60543
 
-
 
60544
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
60545
    public boolean isSetSuccess() {
-
 
60546
      return this.success != null;
-
 
60547
    }
-
 
60548
 
-
 
60549
    public void setSuccessIsSet(boolean value) {
-
 
60550
      if (!value) {
-
 
60551
        this.success = null;
-
 
60552
      }
-
 
60553
    }
-
 
60554
 
-
 
60555
    public void setFieldValue(_Fields field, Object value) {
-
 
60556
      switch (field) {
-
 
60557
      case SUCCESS:
-
 
60558
        if (value == null) {
-
 
60559
          unsetSuccess();
-
 
60560
        } else {
-
 
60561
          setSuccess((List<Long>)value);
-
 
60562
        }
-
 
60563
        break;
-
 
60564
 
-
 
60565
      }
-
 
60566
    }
-
 
60567
 
-
 
60568
    public Object getFieldValue(_Fields field) {
-
 
60569
      switch (field) {
-
 
60570
      case SUCCESS:
-
 
60571
        return getSuccess();
-
 
60572
 
-
 
60573
      }
-
 
60574
      throw new IllegalStateException();
-
 
60575
    }
-
 
60576
 
-
 
60577
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60578
    public boolean isSet(_Fields field) {
-
 
60579
      if (field == null) {
-
 
60580
        throw new IllegalArgumentException();
-
 
60581
      }
-
 
60582
 
-
 
60583
      switch (field) {
-
 
60584
      case SUCCESS:
-
 
60585
        return isSetSuccess();
-
 
60586
      }
-
 
60587
      throw new IllegalStateException();
-
 
60588
    }
-
 
60589
 
-
 
60590
    @Override
-
 
60591
    public boolean equals(Object that) {
-
 
60592
      if (that == null)
-
 
60593
        return false;
-
 
60594
      if (that instanceof addVendorItemPricingInBulk_result)
-
 
60595
        return this.equals((addVendorItemPricingInBulk_result)that);
-
 
60596
      return false;
-
 
60597
    }
-
 
60598
 
-
 
60599
    public boolean equals(addVendorItemPricingInBulk_result that) {
-
 
60600
      if (that == null)
-
 
60601
        return false;
-
 
60602
 
-
 
60603
      boolean this_present_success = true && this.isSetSuccess();
-
 
60604
      boolean that_present_success = true && that.isSetSuccess();
-
 
60605
      if (this_present_success || that_present_success) {
-
 
60606
        if (!(this_present_success && that_present_success))
-
 
60607
          return false;
-
 
60608
        if (!this.success.equals(that.success))
-
 
60609
          return false;
-
 
60610
      }
-
 
60611
 
-
 
60612
      return true;
-
 
60613
    }
-
 
60614
 
-
 
60615
    @Override
-
 
60616
    public int hashCode() {
-
 
60617
      return 0;
-
 
60618
    }
-
 
60619
 
-
 
60620
    public int compareTo(addVendorItemPricingInBulk_result other) {
-
 
60621
      if (!getClass().equals(other.getClass())) {
-
 
60622
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60623
      }
-
 
60624
 
-
 
60625
      int lastComparison = 0;
-
 
60626
      addVendorItemPricingInBulk_result typedOther = (addVendorItemPricingInBulk_result)other;
-
 
60627
 
-
 
60628
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
60629
      if (lastComparison != 0) {
-
 
60630
        return lastComparison;
-
 
60631
      }
-
 
60632
      if (isSetSuccess()) {
-
 
60633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
60634
        if (lastComparison != 0) {
-
 
60635
          return lastComparison;
-
 
60636
        }
-
 
60637
      }
-
 
60638
      return 0;
-
 
60639
    }
-
 
60640
 
-
 
60641
    public _Fields fieldForId(int fieldId) {
-
 
60642
      return _Fields.findByThriftId(fieldId);
-
 
60643
    }
-
 
60644
 
-
 
60645
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60646
      org.apache.thrift.protocol.TField field;
-
 
60647
      iprot.readStructBegin();
-
 
60648
      while (true)
-
 
60649
      {
-
 
60650
        field = iprot.readFieldBegin();
-
 
60651
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60652
          break;
-
 
60653
        }
-
 
60654
        switch (field.id) {
-
 
60655
          case 0: // SUCCESS
-
 
60656
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
60657
              {
-
 
60658
                org.apache.thrift.protocol.TList _list204 = iprot.readListBegin();
-
 
60659
                this.success = new ArrayList<Long>(_list204.size);
-
 
60660
                for (int _i205 = 0; _i205 < _list204.size; ++_i205)
-
 
60661
                {
-
 
60662
                  long _elem206; // required
-
 
60663
                  _elem206 = iprot.readI64();
-
 
60664
                  this.success.add(_elem206);
-
 
60665
                }
-
 
60666
                iprot.readListEnd();
-
 
60667
              }
-
 
60668
            } else { 
-
 
60669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60670
            }
-
 
60671
            break;
-
 
60672
          default:
-
 
60673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60674
        }
-
 
60675
        iprot.readFieldEnd();
-
 
60676
      }
-
 
60677
      iprot.readStructEnd();
-
 
60678
      validate();
-
 
60679
    }
-
 
60680
 
-
 
60681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60682
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60683
 
-
 
60684
      if (this.isSetSuccess()) {
-
 
60685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
60686
        {
-
 
60687
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
60688
          for (long _iter207 : this.success)
-
 
60689
          {
-
 
60690
            oprot.writeI64(_iter207);
-
 
60691
          }
-
 
60692
          oprot.writeListEnd();
-
 
60693
        }
-
 
60694
        oprot.writeFieldEnd();
-
 
60695
      }
-
 
60696
      oprot.writeFieldStop();
-
 
60697
      oprot.writeStructEnd();
-
 
60698
    }
-
 
60699
 
-
 
60700
    @Override
-
 
60701
    public String toString() {
-
 
60702
      StringBuilder sb = new StringBuilder("addVendorItemPricingInBulk_result(");
-
 
60703
      boolean first = true;
-
 
60704
 
-
 
60705
      sb.append("success:");
-
 
60706
      if (this.success == null) {
-
 
60707
        sb.append("null");
-
 
60708
      } else {
-
 
60709
        sb.append(this.success);
-
 
60710
      }
-
 
60711
      first = false;
-
 
60712
      sb.append(")");
-
 
60713
      return sb.toString();
-
 
60714
    }
-
 
60715
 
-
 
60716
    public void validate() throws org.apache.thrift.TException {
-
 
60717
      // check for required fields
-
 
60718
    }
-
 
60719
 
-
 
60720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60721
      try {
-
 
60722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60723
      } catch (org.apache.thrift.TException te) {
-
 
60724
        throw new java.io.IOException(te);
-
 
60725
      }
-
 
60726
    }
-
 
60727
 
-
 
60728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60729
      try {
-
 
60730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60731
      } catch (org.apache.thrift.TException te) {
-
 
60732
        throw new java.io.IOException(te);
-
 
60733
      }
-
 
60734
    }
-
 
60735
 
-
 
60736
  }
-
 
60737
 
-
 
60738
  public static class addInventoryInBulk_args implements org.apache.thrift.TBase<addInventoryInBulk_args, addInventoryInBulk_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventoryInBulk_args");
-
 
60740
 
-
 
60741
    private static final org.apache.thrift.protocol.TField BULK_INVENTORY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkInventoryList", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
60742
 
-
 
60743
    private List<BulkAddInventory> bulkInventoryList; // required
-
 
60744
 
-
 
60745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60747
      BULK_INVENTORY_LIST((short)1, "bulkInventoryList");
-
 
60748
 
-
 
60749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60750
 
-
 
60751
      static {
-
 
60752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60753
          byName.put(field.getFieldName(), field);
-
 
60754
        }
-
 
60755
      }
-
 
60756
 
-
 
60757
      /**
-
 
60758
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60759
       */
-
 
60760
      public static _Fields findByThriftId(int fieldId) {
-
 
60761
        switch(fieldId) {
-
 
60762
          case 1: // BULK_INVENTORY_LIST
-
 
60763
            return BULK_INVENTORY_LIST;
-
 
60764
          default:
-
 
60765
            return null;
-
 
60766
        }
-
 
60767
      }
-
 
60768
 
-
 
60769
      /**
-
 
60770
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60771
       * if it is not found.
-
 
60772
       */
-
 
60773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60774
        _Fields fields = findByThriftId(fieldId);
-
 
60775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60776
        return fields;
-
 
60777
      }
-
 
60778
 
-
 
60779
      /**
-
 
60780
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60781
       */
-
 
60782
      public static _Fields findByName(String name) {
-
 
60783
        return byName.get(name);
-
 
60784
      }
-
 
60785
 
-
 
60786
      private final short _thriftId;
-
 
60787
      private final String _fieldName;
-
 
60788
 
-
 
60789
      _Fields(short thriftId, String fieldName) {
-
 
60790
        _thriftId = thriftId;
-
 
60791
        _fieldName = fieldName;
-
 
60792
      }
-
 
60793
 
-
 
60794
      public short getThriftFieldId() {
-
 
60795
        return _thriftId;
-
 
60796
      }
-
 
60797
 
-
 
60798
      public String getFieldName() {
-
 
60799
        return _fieldName;
-
 
60800
      }
-
 
60801
    }
-
 
60802
 
-
 
60803
    // isset id assignments
-
 
60804
 
-
 
60805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60806
    static {
-
 
60807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60808
      tmpMap.put(_Fields.BULK_INVENTORY_LIST, new org.apache.thrift.meta_data.FieldMetaData("bulkInventoryList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkAddInventory.class))));
-
 
60811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventoryInBulk_args.class, metaDataMap);
-
 
60813
    }
-
 
60814
 
-
 
60815
    public addInventoryInBulk_args() {
-
 
60816
    }
-
 
60817
 
-
 
60818
    public addInventoryInBulk_args(
-
 
60819
      List<BulkAddInventory> bulkInventoryList)
-
 
60820
    {
-
 
60821
      this();
-
 
60822
      this.bulkInventoryList = bulkInventoryList;
-
 
60823
    }
-
 
60824
 
-
 
60825
    /**
-
 
60826
     * Performs a deep copy on <i>other</i>.
-
 
60827
     */
-
 
60828
    public addInventoryInBulk_args(addInventoryInBulk_args other) {
-
 
60829
      if (other.isSetBulkInventoryList()) {
-
 
60830
        List<BulkAddInventory> __this__bulkInventoryList = new ArrayList<BulkAddInventory>();
-
 
60831
        for (BulkAddInventory other_element : other.bulkInventoryList) {
-
 
60832
          __this__bulkInventoryList.add(new BulkAddInventory(other_element));
-
 
60833
        }
-
 
60834
        this.bulkInventoryList = __this__bulkInventoryList;
-
 
60835
      }
-
 
60836
    }
-
 
60837
 
-
 
60838
    public addInventoryInBulk_args deepCopy() {
-
 
60839
      return new addInventoryInBulk_args(this);
-
 
60840
    }
-
 
60841
 
-
 
60842
    @Override
-
 
60843
    public void clear() {
-
 
60844
      this.bulkInventoryList = null;
-
 
60845
    }
-
 
60846
 
-
 
60847
    public int getBulkInventoryListSize() {
-
 
60848
      return (this.bulkInventoryList == null) ? 0 : this.bulkInventoryList.size();
-
 
60849
    }
-
 
60850
 
-
 
60851
    public java.util.Iterator<BulkAddInventory> getBulkInventoryListIterator() {
-
 
60852
      return (this.bulkInventoryList == null) ? null : this.bulkInventoryList.iterator();
-
 
60853
    }
-
 
60854
 
-
 
60855
    public void addToBulkInventoryList(BulkAddInventory elem) {
-
 
60856
      if (this.bulkInventoryList == null) {
-
 
60857
        this.bulkInventoryList = new ArrayList<BulkAddInventory>();
-
 
60858
      }
-
 
60859
      this.bulkInventoryList.add(elem);
-
 
60860
    }
-
 
60861
 
-
 
60862
    public List<BulkAddInventory> getBulkInventoryList() {
-
 
60863
      return this.bulkInventoryList;
-
 
60864
    }
-
 
60865
 
-
 
60866
    public void setBulkInventoryList(List<BulkAddInventory> bulkInventoryList) {
-
 
60867
      this.bulkInventoryList = bulkInventoryList;
-
 
60868
    }
-
 
60869
 
-
 
60870
    public void unsetBulkInventoryList() {
-
 
60871
      this.bulkInventoryList = null;
-
 
60872
    }
-
 
60873
 
-
 
60874
    /** Returns true if field bulkInventoryList is set (has been assigned a value) and false otherwise */
-
 
60875
    public boolean isSetBulkInventoryList() {
-
 
60876
      return this.bulkInventoryList != null;
-
 
60877
    }
-
 
60878
 
-
 
60879
    public void setBulkInventoryListIsSet(boolean value) {
-
 
60880
      if (!value) {
-
 
60881
        this.bulkInventoryList = null;
-
 
60882
      }
-
 
60883
    }
-
 
60884
 
-
 
60885
    public void setFieldValue(_Fields field, Object value) {
-
 
60886
      switch (field) {
-
 
60887
      case BULK_INVENTORY_LIST:
-
 
60888
        if (value == null) {
-
 
60889
          unsetBulkInventoryList();
-
 
60890
        } else {
-
 
60891
          setBulkInventoryList((List<BulkAddInventory>)value);
-
 
60892
        }
-
 
60893
        break;
-
 
60894
 
-
 
60895
      }
-
 
60896
    }
-
 
60897
 
-
 
60898
    public Object getFieldValue(_Fields field) {
-
 
60899
      switch (field) {
-
 
60900
      case BULK_INVENTORY_LIST:
-
 
60901
        return getBulkInventoryList();
-
 
60902
 
-
 
60903
      }
-
 
60904
      throw new IllegalStateException();
-
 
60905
    }
-
 
60906
 
-
 
60907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60908
    public boolean isSet(_Fields field) {
-
 
60909
      if (field == null) {
-
 
60910
        throw new IllegalArgumentException();
-
 
60911
      }
-
 
60912
 
-
 
60913
      switch (field) {
-
 
60914
      case BULK_INVENTORY_LIST:
-
 
60915
        return isSetBulkInventoryList();
-
 
60916
      }
-
 
60917
      throw new IllegalStateException();
-
 
60918
    }
-
 
60919
 
-
 
60920
    @Override
-
 
60921
    public boolean equals(Object that) {
-
 
60922
      if (that == null)
-
 
60923
        return false;
-
 
60924
      if (that instanceof addInventoryInBulk_args)
-
 
60925
        return this.equals((addInventoryInBulk_args)that);
-
 
60926
      return false;
-
 
60927
    }
-
 
60928
 
-
 
60929
    public boolean equals(addInventoryInBulk_args that) {
-
 
60930
      if (that == null)
-
 
60931
        return false;
-
 
60932
 
-
 
60933
      boolean this_present_bulkInventoryList = true && this.isSetBulkInventoryList();
-
 
60934
      boolean that_present_bulkInventoryList = true && that.isSetBulkInventoryList();
-
 
60935
      if (this_present_bulkInventoryList || that_present_bulkInventoryList) {
-
 
60936
        if (!(this_present_bulkInventoryList && that_present_bulkInventoryList))
-
 
60937
          return false;
-
 
60938
        if (!this.bulkInventoryList.equals(that.bulkInventoryList))
-
 
60939
          return false;
-
 
60940
      }
-
 
60941
 
-
 
60942
      return true;
-
 
60943
    }
-
 
60944
 
-
 
60945
    @Override
-
 
60946
    public int hashCode() {
-
 
60947
      return 0;
-
 
60948
    }
-
 
60949
 
-
 
60950
    public int compareTo(addInventoryInBulk_args other) {
-
 
60951
      if (!getClass().equals(other.getClass())) {
-
 
60952
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60953
      }
-
 
60954
 
-
 
60955
      int lastComparison = 0;
-
 
60956
      addInventoryInBulk_args typedOther = (addInventoryInBulk_args)other;
-
 
60957
 
-
 
60958
      lastComparison = Boolean.valueOf(isSetBulkInventoryList()).compareTo(typedOther.isSetBulkInventoryList());
-
 
60959
      if (lastComparison != 0) {
-
 
60960
        return lastComparison;
-
 
60961
      }
-
 
60962
      if (isSetBulkInventoryList()) {
-
 
60963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkInventoryList, typedOther.bulkInventoryList);
-
 
60964
        if (lastComparison != 0) {
-
 
60965
          return lastComparison;
-
 
60966
        }
-
 
60967
      }
-
 
60968
      return 0;
-
 
60969
    }
-
 
60970
 
-
 
60971
    public _Fields fieldForId(int fieldId) {
-
 
60972
      return _Fields.findByThriftId(fieldId);
-
 
60973
    }
-
 
60974
 
-
 
60975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60976
      org.apache.thrift.protocol.TField field;
-
 
60977
      iprot.readStructBegin();
-
 
60978
      while (true)
-
 
60979
      {
-
 
60980
        field = iprot.readFieldBegin();
-
 
60981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60982
          break;
-
 
60983
        }
-
 
60984
        switch (field.id) {
-
 
60985
          case 1: // BULK_INVENTORY_LIST
-
 
60986
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
60987
              {
-
 
60988
                org.apache.thrift.protocol.TList _list208 = iprot.readListBegin();
-
 
60989
                this.bulkInventoryList = new ArrayList<BulkAddInventory>(_list208.size);
-
 
60990
                for (int _i209 = 0; _i209 < _list208.size; ++_i209)
-
 
60991
                {
-
 
60992
                  BulkAddInventory _elem210; // required
-
 
60993
                  _elem210 = new BulkAddInventory();
-
 
60994
                  _elem210.read(iprot);
-
 
60995
                  this.bulkInventoryList.add(_elem210);
-
 
60996
                }
-
 
60997
                iprot.readListEnd();
-
 
60998
              }
-
 
60999
            } else { 
-
 
61000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61001
            }
-
 
61002
            break;
-
 
61003
          default:
-
 
61004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61005
        }
-
 
61006
        iprot.readFieldEnd();
-
 
61007
      }
-
 
61008
      iprot.readStructEnd();
-
 
61009
      validate();
-
 
61010
    }
-
 
61011
 
-
 
61012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61013
      validate();
-
 
61014
 
-
 
61015
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61016
      if (this.bulkInventoryList != null) {
-
 
61017
        oprot.writeFieldBegin(BULK_INVENTORY_LIST_FIELD_DESC);
-
 
61018
        {
-
 
61019
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkInventoryList.size()));
-
 
61020
          for (BulkAddInventory _iter211 : this.bulkInventoryList)
-
 
61021
          {
-
 
61022
            _iter211.write(oprot);
-
 
61023
          }
-
 
61024
          oprot.writeListEnd();
-
 
61025
        }
-
 
61026
        oprot.writeFieldEnd();
-
 
61027
      }
-
 
61028
      oprot.writeFieldStop();
-
 
61029
      oprot.writeStructEnd();
-
 
61030
    }
-
 
61031
 
-
 
61032
    @Override
-
 
61033
    public String toString() {
-
 
61034
      StringBuilder sb = new StringBuilder("addInventoryInBulk_args(");
-
 
61035
      boolean first = true;
-
 
61036
 
-
 
61037
      sb.append("bulkInventoryList:");
-
 
61038
      if (this.bulkInventoryList == null) {
-
 
61039
        sb.append("null");
-
 
61040
      } else {
-
 
61041
        sb.append(this.bulkInventoryList);
-
 
61042
      }
-
 
61043
      first = false;
-
 
61044
      sb.append(")");
-
 
61045
      return sb.toString();
-
 
61046
    }
-
 
61047
 
-
 
61048
    public void validate() throws org.apache.thrift.TException {
-
 
61049
      // check for required fields
-
 
61050
    }
-
 
61051
 
-
 
61052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61053
      try {
-
 
61054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61055
      } catch (org.apache.thrift.TException te) {
-
 
61056
        throw new java.io.IOException(te);
-
 
61057
      }
-
 
61058
    }
-
 
61059
 
-
 
61060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61061
      try {
-
 
61062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61063
      } catch (org.apache.thrift.TException te) {
-
 
61064
        throw new java.io.IOException(te);
-
 
61065
      }
-
 
61066
    }
-
 
61067
 
-
 
61068
  }
-
 
61069
 
-
 
61070
  public static class addInventoryInBulk_result implements org.apache.thrift.TBase<addInventoryInBulk_result, addInventoryInBulk_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventoryInBulk_result");
-
 
61072
 
-
 
61073
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
61074
 
-
 
61075
    private InventoryServiceException cex; // required
-
 
61076
 
-
 
61077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61079
      CEX((short)1, "cex");
-
 
61080
 
-
 
61081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61082
 
-
 
61083
      static {
-
 
61084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61085
          byName.put(field.getFieldName(), field);
-
 
61086
        }
-
 
61087
      }
-
 
61088
 
-
 
61089
      /**
-
 
61090
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61091
       */
-
 
61092
      public static _Fields findByThriftId(int fieldId) {
-
 
61093
        switch(fieldId) {
-
 
61094
          case 1: // CEX
-
 
61095
            return CEX;
-
 
61096
          default:
-
 
61097
            return null;
-
 
61098
        }
-
 
61099
      }
-
 
61100
 
-
 
61101
      /**
-
 
61102
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61103
       * if it is not found.
-
 
61104
       */
-
 
61105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61106
        _Fields fields = findByThriftId(fieldId);
-
 
61107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61108
        return fields;
-
 
61109
      }
-
 
61110
 
-
 
61111
      /**
-
 
61112
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61113
       */
-
 
61114
      public static _Fields findByName(String name) {
-
 
61115
        return byName.get(name);
-
 
61116
      }
-
 
61117
 
-
 
61118
      private final short _thriftId;
-
 
61119
      private final String _fieldName;
-
 
61120
 
-
 
61121
      _Fields(short thriftId, String fieldName) {
-
 
61122
        _thriftId = thriftId;
-
 
61123
        _fieldName = fieldName;
-
 
61124
      }
-
 
61125
 
-
 
61126
      public short getThriftFieldId() {
-
 
61127
        return _thriftId;
-
 
61128
      }
-
 
61129
 
-
 
61130
      public String getFieldName() {
-
 
61131
        return _fieldName;
-
 
61132
      }
-
 
61133
    }
-
 
61134
 
-
 
61135
    // isset id assignments
-
 
61136
 
-
 
61137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61138
    static {
-
 
61139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61140
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
61142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventoryInBulk_result.class, metaDataMap);
-
 
61144
    }
-
 
61145
 
-
 
61146
    public addInventoryInBulk_result() {
-
 
61147
    }
-
 
61148
 
-
 
61149
    public addInventoryInBulk_result(
-
 
61150
      InventoryServiceException cex)
-
 
61151
    {
-
 
61152
      this();
-
 
61153
      this.cex = cex;
-
 
61154
    }
-
 
61155
 
-
 
61156
    /**
-
 
61157
     * Performs a deep copy on <i>other</i>.
-
 
61158
     */
-
 
61159
    public addInventoryInBulk_result(addInventoryInBulk_result other) {
-
 
61160
      if (other.isSetCex()) {
-
 
61161
        this.cex = new InventoryServiceException(other.cex);
-
 
61162
      }
-
 
61163
    }
-
 
61164
 
-
 
61165
    public addInventoryInBulk_result deepCopy() {
-
 
61166
      return new addInventoryInBulk_result(this);
-
 
61167
    }
-
 
61168
 
-
 
61169
    @Override
-
 
61170
    public void clear() {
-
 
61171
      this.cex = null;
-
 
61172
    }
-
 
61173
 
-
 
61174
    public InventoryServiceException getCex() {
-
 
61175
      return this.cex;
-
 
61176
    }
-
 
61177
 
-
 
61178
    public void setCex(InventoryServiceException cex) {
-
 
61179
      this.cex = cex;
-
 
61180
    }
-
 
61181
 
-
 
61182
    public void unsetCex() {
-
 
61183
      this.cex = null;
-
 
61184
    }
-
 
61185
 
-
 
61186
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
61187
    public boolean isSetCex() {
-
 
61188
      return this.cex != null;
-
 
61189
    }
-
 
61190
 
-
 
61191
    public void setCexIsSet(boolean value) {
-
 
61192
      if (!value) {
-
 
61193
        this.cex = null;
-
 
61194
      }
-
 
61195
    }
-
 
61196
 
-
 
61197
    public void setFieldValue(_Fields field, Object value) {
-
 
61198
      switch (field) {
-
 
61199
      case CEX:
-
 
61200
        if (value == null) {
-
 
61201
          unsetCex();
-
 
61202
        } else {
-
 
61203
          setCex((InventoryServiceException)value);
-
 
61204
        }
-
 
61205
        break;
-
 
61206
 
-
 
61207
      }
-
 
61208
    }
-
 
61209
 
-
 
61210
    public Object getFieldValue(_Fields field) {
-
 
61211
      switch (field) {
-
 
61212
      case CEX:
-
 
61213
        return getCex();
-
 
61214
 
-
 
61215
      }
-
 
61216
      throw new IllegalStateException();
-
 
61217
    }
-
 
61218
 
-
 
61219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61220
    public boolean isSet(_Fields field) {
-
 
61221
      if (field == null) {
-
 
61222
        throw new IllegalArgumentException();
-
 
61223
      }
-
 
61224
 
-
 
61225
      switch (field) {
-
 
61226
      case CEX:
-
 
61227
        return isSetCex();
-
 
61228
      }
-
 
61229
      throw new IllegalStateException();
-
 
61230
    }
-
 
61231
 
-
 
61232
    @Override
-
 
61233
    public boolean equals(Object that) {
-
 
61234
      if (that == null)
-
 
61235
        return false;
-
 
61236
      if (that instanceof addInventoryInBulk_result)
-
 
61237
        return this.equals((addInventoryInBulk_result)that);
-
 
61238
      return false;
-
 
61239
    }
-
 
61240
 
-
 
61241
    public boolean equals(addInventoryInBulk_result that) {
-
 
61242
      if (that == null)
-
 
61243
        return false;
-
 
61244
 
-
 
61245
      boolean this_present_cex = true && this.isSetCex();
-
 
61246
      boolean that_present_cex = true && that.isSetCex();
-
 
61247
      if (this_present_cex || that_present_cex) {
-
 
61248
        if (!(this_present_cex && that_present_cex))
-
 
61249
          return false;
-
 
61250
        if (!this.cex.equals(that.cex))
-
 
61251
          return false;
-
 
61252
      }
-
 
61253
 
-
 
61254
      return true;
-
 
61255
    }
-
 
61256
 
-
 
61257
    @Override
-
 
61258
    public int hashCode() {
-
 
61259
      return 0;
-
 
61260
    }
-
 
61261
 
-
 
61262
    public int compareTo(addInventoryInBulk_result other) {
-
 
61263
      if (!getClass().equals(other.getClass())) {
-
 
61264
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61265
      }
-
 
61266
 
-
 
61267
      int lastComparison = 0;
-
 
61268
      addInventoryInBulk_result typedOther = (addInventoryInBulk_result)other;
-
 
61269
 
-
 
61270
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
61271
      if (lastComparison != 0) {
-
 
61272
        return lastComparison;
-
 
61273
      }
-
 
61274
      if (isSetCex()) {
-
 
61275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
61276
        if (lastComparison != 0) {
-
 
61277
          return lastComparison;
-
 
61278
        }
-
 
61279
      }
-
 
61280
      return 0;
-
 
61281
    }
-
 
61282
 
-
 
61283
    public _Fields fieldForId(int fieldId) {
-
 
61284
      return _Fields.findByThriftId(fieldId);
-
 
61285
    }
-
 
61286
 
-
 
61287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61288
      org.apache.thrift.protocol.TField field;
-
 
61289
      iprot.readStructBegin();
-
 
61290
      while (true)
-
 
61291
      {
-
 
61292
        field = iprot.readFieldBegin();
-
 
61293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61294
          break;
-
 
61295
        }
-
 
61296
        switch (field.id) {
-
 
61297
          case 1: // CEX
-
 
61298
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
61299
              this.cex = new InventoryServiceException();
-
 
61300
              this.cex.read(iprot);
-
 
61301
            } else { 
-
 
61302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61303
            }
-
 
61304
            break;
-
 
61305
          default:
-
 
61306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61307
        }
-
 
61308
        iprot.readFieldEnd();
-
 
61309
      }
-
 
61310
      iprot.readStructEnd();
-
 
61311
      validate();
-
 
61312
    }
-
 
61313
 
-
 
61314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61315
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61316
 
-
 
61317
      if (this.isSetCex()) {
-
 
61318
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
61319
        this.cex.write(oprot);
-
 
61320
        oprot.writeFieldEnd();
-
 
61321
      }
-
 
61322
      oprot.writeFieldStop();
-
 
61323
      oprot.writeStructEnd();
-
 
61324
    }
-
 
61325
 
-
 
61326
    @Override
-
 
61327
    public String toString() {
-
 
61328
      StringBuilder sb = new StringBuilder("addInventoryInBulk_result(");
-
 
61329
      boolean first = true;
-
 
61330
 
-
 
61331
      sb.append("cex:");
-
 
61332
      if (this.cex == null) {
-
 
61333
        sb.append("null");
-
 
61334
      } else {
-
 
61335
        sb.append(this.cex);
-
 
61336
      }
-
 
61337
      first = false;
-
 
61338
      sb.append(")");
-
 
61339
      return sb.toString();
-
 
61340
    }
-
 
61341
 
59898
    public void validate() throws org.apache.thrift.TException {
61342
    public void validate() throws org.apache.thrift.TException {
59899
      // check for required fields
61343
      // check for required fields
59900
    }
61344
    }
59901
 
61345
 
59902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {