Subversion Repositories SmartDukaan

Rev

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

Rev 9861 Rev 9895
Line 506... Line 506...
506
 
506
 
507
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException;
507
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException;
508
 
508
 
509
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;
509
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;
510
 
510
 
-
 
511
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException;
-
 
512
 
511
  }
513
  }
512
 
514
 
513
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
515
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
514
 
516
 
515
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
517
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 796... Line 798...
796
 
798
 
797
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
799
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
798
 
800
 
799
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
801
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
800
 
802
 
-
 
803
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException;
-
 
804
 
801
  }
805
  }
802
 
806
 
803
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
807
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
804
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
808
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
805
      public Factory() {}
809
      public Factory() {}
Line 4209... Line 4213...
4209
      updateItemHoldInventory_result result = new updateItemHoldInventory_result();
4213
      updateItemHoldInventory_result result = new updateItemHoldInventory_result();
4210
      receiveBase(result, "updateItemHoldInventory");
4214
      receiveBase(result, "updateItemHoldInventory");
4211
      return;
4215
      return;
4212
    }
4216
    }
4213
 
4217
 
-
 
4218
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException
-
 
4219
    {
-
 
4220
      send_updateNlcAtMarketplaces(item_id, vendor_id, nlc);
-
 
4221
      recv_updateNlcAtMarketplaces();
-
 
4222
    }
-
 
4223
 
-
 
4224
    public void send_updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException
-
 
4225
    {
-
 
4226
      updateNlcAtMarketplaces_args args = new updateNlcAtMarketplaces_args();
-
 
4227
      args.setItem_id(item_id);
-
 
4228
      args.setVendor_id(vendor_id);
-
 
4229
      args.setNlc(nlc);
-
 
4230
      sendBase("updateNlcAtMarketplaces", args);
-
 
4231
    }
-
 
4232
 
-
 
4233
    public void recv_updateNlcAtMarketplaces() throws org.apache.thrift.TException
-
 
4234
    {
-
 
4235
      updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();
-
 
4236
      receiveBase(result, "updateNlcAtMarketplaces");
-
 
4237
      return;
-
 
4238
    }
-
 
4239
 
4214
  }
4240
  }
4215
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4241
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4216
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4242
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4217
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4243
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4218
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4244
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 8929... Line 8955...
8929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8955
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8930
        (new Client(prot)).recv_updateItemHoldInventory();
8956
        (new Client(prot)).recv_updateItemHoldInventory();
8931
      }
8957
      }
8932
    }
8958
    }
8933
 
8959
 
-
 
8960
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException {
-
 
8961
      checkReady();
-
 
8962
      updateNlcAtMarketplaces_call method_call = new updateNlcAtMarketplaces_call(item_id, vendor_id, nlc, resultHandler, this, ___protocolFactory, ___transport);
-
 
8963
      this.___currentMethod = method_call;
-
 
8964
      ___manager.call(method_call);
-
 
8965
    }
-
 
8966
 
-
 
8967
    public static class updateNlcAtMarketplaces_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8968
      private long item_id;
-
 
8969
      private long vendor_id;
-
 
8970
      private double nlc;
-
 
8971
      public updateNlcAtMarketplaces_call(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<updateNlcAtMarketplaces_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 {
-
 
8972
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8973
        this.item_id = item_id;
-
 
8974
        this.vendor_id = vendor_id;
-
 
8975
        this.nlc = nlc;
-
 
8976
      }
-
 
8977
 
-
 
8978
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8979
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNlcAtMarketplaces", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8980
        updateNlcAtMarketplaces_args args = new updateNlcAtMarketplaces_args();
-
 
8981
        args.setItem_id(item_id);
-
 
8982
        args.setVendor_id(vendor_id);
-
 
8983
        args.setNlc(nlc);
-
 
8984
        args.write(prot);
-
 
8985
        prot.writeMessageEnd();
-
 
8986
      }
-
 
8987
 
-
 
8988
      public void getResult() throws org.apache.thrift.TException {
-
 
8989
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8990
          throw new IllegalStateException("Method call not finished!");
-
 
8991
        }
-
 
8992
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8994
        (new Client(prot)).recv_updateNlcAtMarketplaces();
-
 
8995
      }
-
 
8996
    }
-
 
8997
 
8934
  }
8998
  }
8935
 
8999
 
8936
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9000
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8937
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9001
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8938
    public Processor(I iface) {
9002
    public Processor(I iface) {
Line 9085... Line 9149...
9085
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
9149
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
9086
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9150
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9087
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9151
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9088
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9152
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9089
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9153
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
-
 
9154
      processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());
9090
      return processMap;
9155
      return processMap;
9091
    }
9156
    }
9092
 
9157
 
9093
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9158
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9094
      public addItem() {
9159
      public addItem() {
Line 11593... Line 11658...
11593
        iface.updateItemHoldInventory(args.itemHoldMap);
11658
        iface.updateItemHoldInventory(args.itemHoldMap);
11594
        return result;
11659
        return result;
11595
      }
11660
      }
11596
    }
11661
    }
11597
 
11662
 
-
 
11663
    private static class updateNlcAtMarketplaces<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNlcAtMarketplaces_args> {
-
 
11664
      public updateNlcAtMarketplaces() {
-
 
11665
        super("updateNlcAtMarketplaces");
-
 
11666
      }
-
 
11667
 
-
 
11668
      protected updateNlcAtMarketplaces_args getEmptyArgsInstance() {
-
 
11669
        return new updateNlcAtMarketplaces_args();
-
 
11670
      }
-
 
11671
 
-
 
11672
      protected updateNlcAtMarketplaces_result getResult(I iface, updateNlcAtMarketplaces_args args) throws org.apache.thrift.TException {
-
 
11673
        updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();
-
 
11674
        iface.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc);
-
 
11675
        return result;
-
 
11676
      }
-
 
11677
    }
-
 
11678
 
11598
  }
11679
  }
11599
 
11680
 
11600
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11681
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11602
 
11683
 
Line 103432... Line 103513...
103432
      boolean first = true;
103513
      boolean first = true;
103433
 
103514
 
103434
      sb.append(")");
103515
      sb.append(")");
103435
      return sb.toString();
103516
      return sb.toString();
103436
    }
103517
    }
-
 
103518
 
-
 
103519
    public void validate() throws org.apache.thrift.TException {
-
 
103520
      // check for required fields
-
 
103521
    }
-
 
103522
 
-
 
103523
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
103524
      try {
-
 
103525
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
103526
      } catch (org.apache.thrift.TException te) {
-
 
103527
        throw new java.io.IOException(te);
-
 
103528
      }
-
 
103529
    }
-
 
103530
 
-
 
103531
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
103532
      try {
-
 
103533
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
103534
      } catch (org.apache.thrift.TException te) {
-
 
103535
        throw new java.io.IOException(te);
-
 
103536
      }
-
 
103537
    }
-
 
103538
 
-
 
103539
  }
-
 
103540
 
-
 
103541
  public static class updateNlcAtMarketplaces_args implements org.apache.thrift.TBase<updateNlcAtMarketplaces_args, updateNlcAtMarketplaces_args._Fields>, java.io.Serializable, Cloneable   {
-
 
103542
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNlcAtMarketplaces_args");
-
 
103543
 
-
 
103544
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
103545
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
103546
    private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)-1);
-
 
103547
 
-
 
103548
    private long item_id; // required
-
 
103549
    private long vendor_id; // required
-
 
103550
    private double nlc; // required
-
 
103551
 
-
 
103552
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
103553
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
103554
      ITEM_ID((short)1, "item_id"),
-
 
103555
      VENDOR_ID((short)2, "vendor_id"),
-
 
103556
      NLC((short)-1, "nlc");
-
 
103557
 
-
 
103558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
103559
 
-
 
103560
      static {
-
 
103561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
103562
          byName.put(field.getFieldName(), field);
-
 
103563
        }
-
 
103564
      }
-
 
103565
 
-
 
103566
      /**
-
 
103567
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
103568
       */
-
 
103569
      public static _Fields findByThriftId(int fieldId) {
-
 
103570
        switch(fieldId) {
-
 
103571
          case 1: // ITEM_ID
-
 
103572
            return ITEM_ID;
-
 
103573
          case 2: // VENDOR_ID
-
 
103574
            return VENDOR_ID;
-
 
103575
          case -1: // NLC
-
 
103576
            return NLC;
-
 
103577
          default:
-
 
103578
            return null;
-
 
103579
        }
-
 
103580
      }
-
 
103581
 
-
 
103582
      /**
-
 
103583
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
103584
       * if it is not found.
-
 
103585
       */
-
 
103586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
103587
        _Fields fields = findByThriftId(fieldId);
-
 
103588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
103589
        return fields;
-
 
103590
      }
-
 
103591
 
-
 
103592
      /**
-
 
103593
       * Find the _Fields constant that matches name, or null if its not found.
-
 
103594
       */
-
 
103595
      public static _Fields findByName(String name) {
-
 
103596
        return byName.get(name);
-
 
103597
      }
-
 
103598
 
-
 
103599
      private final short _thriftId;
-
 
103600
      private final String _fieldName;
-
 
103601
 
-
 
103602
      _Fields(short thriftId, String fieldName) {
-
 
103603
        _thriftId = thriftId;
-
 
103604
        _fieldName = fieldName;
-
 
103605
      }
-
 
103606
 
-
 
103607
      public short getThriftFieldId() {
-
 
103608
        return _thriftId;
-
 
103609
      }
-
 
103610
 
-
 
103611
      public String getFieldName() {
-
 
103612
        return _fieldName;
-
 
103613
      }
-
 
103614
    }
-
 
103615
 
-
 
103616
    // isset id assignments
-
 
103617
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
103618
    private static final int __VENDOR_ID_ISSET_ID = 1;
-
 
103619
    private static final int __NLC_ISSET_ID = 2;
-
 
103620
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
103621
 
-
 
103622
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
103623
    static {
-
 
103624
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
103625
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
103626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
103627
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendor_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
103628
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
103629
      tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
103630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
103631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
103632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNlcAtMarketplaces_args.class, metaDataMap);
-
 
103633
    }
-
 
103634
 
-
 
103635
    public updateNlcAtMarketplaces_args() {
-
 
103636
    }
-
 
103637
 
-
 
103638
    public updateNlcAtMarketplaces_args(
-
 
103639
      long item_id,
-
 
103640
      long vendor_id,
-
 
103641
      double nlc)
-
 
103642
    {
-
 
103643
      this();
-
 
103644
      this.item_id = item_id;
-
 
103645
      setItem_idIsSet(true);
-
 
103646
      this.vendor_id = vendor_id;
-
 
103647
      setVendor_idIsSet(true);
-
 
103648
      this.nlc = nlc;
-
 
103649
      setNlcIsSet(true);
-
 
103650
    }
-
 
103651
 
-
 
103652
    /**
-
 
103653
     * Performs a deep copy on <i>other</i>.
-
 
103654
     */
-
 
103655
    public updateNlcAtMarketplaces_args(updateNlcAtMarketplaces_args other) {
-
 
103656
      __isset_bit_vector.clear();
-
 
103657
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
103658
      this.item_id = other.item_id;
-
 
103659
      this.vendor_id = other.vendor_id;
-
 
103660
      this.nlc = other.nlc;
-
 
103661
    }
-
 
103662
 
-
 
103663
    public updateNlcAtMarketplaces_args deepCopy() {
-
 
103664
      return new updateNlcAtMarketplaces_args(this);
-
 
103665
    }
-
 
103666
 
-
 
103667
    @Override
-
 
103668
    public void clear() {
-
 
103669
      setItem_idIsSet(false);
-
 
103670
      this.item_id = 0;
-
 
103671
      setVendor_idIsSet(false);
-
 
103672
      this.vendor_id = 0;
-
 
103673
      setNlcIsSet(false);
-
 
103674
      this.nlc = 0.0;
-
 
103675
    }
-
 
103676
 
-
 
103677
    public long getItem_id() {
-
 
103678
      return this.item_id;
-
 
103679
    }
-
 
103680
 
-
 
103681
    public void setItem_id(long item_id) {
-
 
103682
      this.item_id = item_id;
-
 
103683
      setItem_idIsSet(true);
-
 
103684
    }
-
 
103685
 
-
 
103686
    public void unsetItem_id() {
-
 
103687
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
103688
    }
-
 
103689
 
-
 
103690
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
103691
    public boolean isSetItem_id() {
-
 
103692
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
103693
    }
-
 
103694
 
-
 
103695
    public void setItem_idIsSet(boolean value) {
-
 
103696
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
103697
    }
-
 
103698
 
-
 
103699
    public long getVendor_id() {
-
 
103700
      return this.vendor_id;
-
 
103701
    }
-
 
103702
 
-
 
103703
    public void setVendor_id(long vendor_id) {
-
 
103704
      this.vendor_id = vendor_id;
-
 
103705
      setVendor_idIsSet(true);
-
 
103706
    }
-
 
103707
 
-
 
103708
    public void unsetVendor_id() {
-
 
103709
      __isset_bit_vector.clear(__VENDOR_ID_ISSET_ID);
-
 
103710
    }
-
 
103711
 
-
 
103712
    /** Returns true if field vendor_id is set (has been assigned a value) and false otherwise */
-
 
103713
    public boolean isSetVendor_id() {
-
 
103714
      return __isset_bit_vector.get(__VENDOR_ID_ISSET_ID);
-
 
103715
    }
-
 
103716
 
-
 
103717
    public void setVendor_idIsSet(boolean value) {
-
 
103718
      __isset_bit_vector.set(__VENDOR_ID_ISSET_ID, value);
-
 
103719
    }
-
 
103720
 
-
 
103721
    public double getNlc() {
-
 
103722
      return this.nlc;
-
 
103723
    }
-
 
103724
 
-
 
103725
    public void setNlc(double nlc) {
-
 
103726
      this.nlc = nlc;
-
 
103727
      setNlcIsSet(true);
-
 
103728
    }
-
 
103729
 
-
 
103730
    public void unsetNlc() {
-
 
103731
      __isset_bit_vector.clear(__NLC_ISSET_ID);
-
 
103732
    }
-
 
103733
 
-
 
103734
    /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
-
 
103735
    public boolean isSetNlc() {
-
 
103736
      return __isset_bit_vector.get(__NLC_ISSET_ID);
-
 
103737
    }
-
 
103738
 
-
 
103739
    public void setNlcIsSet(boolean value) {
-
 
103740
      __isset_bit_vector.set(__NLC_ISSET_ID, value);
-
 
103741
    }
-
 
103742
 
-
 
103743
    public void setFieldValue(_Fields field, Object value) {
-
 
103744
      switch (field) {
-
 
103745
      case ITEM_ID:
-
 
103746
        if (value == null) {
-
 
103747
          unsetItem_id();
-
 
103748
        } else {
-
 
103749
          setItem_id((Long)value);
-
 
103750
        }
-
 
103751
        break;
-
 
103752
 
-
 
103753
      case VENDOR_ID:
-
 
103754
        if (value == null) {
-
 
103755
          unsetVendor_id();
-
 
103756
        } else {
-
 
103757
          setVendor_id((Long)value);
-
 
103758
        }
-
 
103759
        break;
-
 
103760
 
-
 
103761
      case NLC:
-
 
103762
        if (value == null) {
-
 
103763
          unsetNlc();
-
 
103764
        } else {
-
 
103765
          setNlc((Double)value);
-
 
103766
        }
-
 
103767
        break;
-
 
103768
 
-
 
103769
      }
-
 
103770
    }
-
 
103771
 
-
 
103772
    public Object getFieldValue(_Fields field) {
-
 
103773
      switch (field) {
-
 
103774
      case ITEM_ID:
-
 
103775
        return Long.valueOf(getItem_id());
-
 
103776
 
-
 
103777
      case VENDOR_ID:
-
 
103778
        return Long.valueOf(getVendor_id());
-
 
103779
 
-
 
103780
      case NLC:
-
 
103781
        return Double.valueOf(getNlc());
-
 
103782
 
-
 
103783
      }
-
 
103784
      throw new IllegalStateException();
-
 
103785
    }
-
 
103786
 
-
 
103787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
103788
    public boolean isSet(_Fields field) {
-
 
103789
      if (field == null) {
-
 
103790
        throw new IllegalArgumentException();
-
 
103791
      }
-
 
103792
 
-
 
103793
      switch (field) {
-
 
103794
      case ITEM_ID:
-
 
103795
        return isSetItem_id();
-
 
103796
      case VENDOR_ID:
-
 
103797
        return isSetVendor_id();
-
 
103798
      case NLC:
-
 
103799
        return isSetNlc();
-
 
103800
      }
-
 
103801
      throw new IllegalStateException();
-
 
103802
    }
-
 
103803
 
-
 
103804
    @Override
-
 
103805
    public boolean equals(Object that) {
-
 
103806
      if (that == null)
-
 
103807
        return false;
-
 
103808
      if (that instanceof updateNlcAtMarketplaces_args)
-
 
103809
        return this.equals((updateNlcAtMarketplaces_args)that);
-
 
103810
      return false;
-
 
103811
    }
-
 
103812
 
-
 
103813
    public boolean equals(updateNlcAtMarketplaces_args that) {
-
 
103814
      if (that == null)
-
 
103815
        return false;
-
 
103816
 
-
 
103817
      boolean this_present_item_id = true;
-
 
103818
      boolean that_present_item_id = true;
-
 
103819
      if (this_present_item_id || that_present_item_id) {
-
 
103820
        if (!(this_present_item_id && that_present_item_id))
-
 
103821
          return false;
-
 
103822
        if (this.item_id != that.item_id)
-
 
103823
          return false;
-
 
103824
      }
-
 
103825
 
-
 
103826
      boolean this_present_vendor_id = true;
-
 
103827
      boolean that_present_vendor_id = true;
-
 
103828
      if (this_present_vendor_id || that_present_vendor_id) {
-
 
103829
        if (!(this_present_vendor_id && that_present_vendor_id))
-
 
103830
          return false;
-
 
103831
        if (this.vendor_id != that.vendor_id)
-
 
103832
          return false;
-
 
103833
      }
-
 
103834
 
-
 
103835
      boolean this_present_nlc = true;
-
 
103836
      boolean that_present_nlc = true;
-
 
103837
      if (this_present_nlc || that_present_nlc) {
-
 
103838
        if (!(this_present_nlc && that_present_nlc))
-
 
103839
          return false;
-
 
103840
        if (this.nlc != that.nlc)
-
 
103841
          return false;
-
 
103842
      }
-
 
103843
 
-
 
103844
      return true;
-
 
103845
    }
-
 
103846
 
-
 
103847
    @Override
-
 
103848
    public int hashCode() {
-
 
103849
      return 0;
-
 
103850
    }
-
 
103851
 
-
 
103852
    public int compareTo(updateNlcAtMarketplaces_args other) {
-
 
103853
      if (!getClass().equals(other.getClass())) {
-
 
103854
        return getClass().getName().compareTo(other.getClass().getName());
-
 
103855
      }
-
 
103856
 
-
 
103857
      int lastComparison = 0;
-
 
103858
      updateNlcAtMarketplaces_args typedOther = (updateNlcAtMarketplaces_args)other;
-
 
103859
 
-
 
103860
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
103861
      if (lastComparison != 0) {
-
 
103862
        return lastComparison;
-
 
103863
      }
-
 
103864
      if (isSetItem_id()) {
-
 
103865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
103866
        if (lastComparison != 0) {
-
 
103867
          return lastComparison;
-
 
103868
        }
-
 
103869
      }
-
 
103870
      lastComparison = Boolean.valueOf(isSetVendor_id()).compareTo(typedOther.isSetVendor_id());
-
 
103871
      if (lastComparison != 0) {
-
 
103872
        return lastComparison;
-
 
103873
      }
-
 
103874
      if (isSetVendor_id()) {
-
 
103875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor_id, typedOther.vendor_id);
-
 
103876
        if (lastComparison != 0) {
-
 
103877
          return lastComparison;
-
 
103878
        }
-
 
103879
      }
-
 
103880
      lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
-
 
103881
      if (lastComparison != 0) {
-
 
103882
        return lastComparison;
-
 
103883
      }
-
 
103884
      if (isSetNlc()) {
-
 
103885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
-
 
103886
        if (lastComparison != 0) {
-
 
103887
          return lastComparison;
-
 
103888
        }
-
 
103889
      }
-
 
103890
      return 0;
-
 
103891
    }
-
 
103892
 
-
 
103893
    public _Fields fieldForId(int fieldId) {
-
 
103894
      return _Fields.findByThriftId(fieldId);
-
 
103895
    }
-
 
103896
 
-
 
103897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
103898
      org.apache.thrift.protocol.TField field;
-
 
103899
      iprot.readStructBegin();
-
 
103900
      while (true)
-
 
103901
      {
-
 
103902
        field = iprot.readFieldBegin();
-
 
103903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
103904
          break;
-
 
103905
        }
-
 
103906
        switch (field.id) {
-
 
103907
          case 1: // ITEM_ID
-
 
103908
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
103909
              this.item_id = iprot.readI64();
-
 
103910
              setItem_idIsSet(true);
-
 
103911
            } else { 
-
 
103912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103913
            }
-
 
103914
            break;
-
 
103915
          case 2: // VENDOR_ID
-
 
103916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
103917
              this.vendor_id = iprot.readI64();
-
 
103918
              setVendor_idIsSet(true);
-
 
103919
            } else { 
-
 
103920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103921
            }
-
 
103922
            break;
-
 
103923
          case -1: // NLC
-
 
103924
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
103925
              this.nlc = iprot.readDouble();
-
 
103926
              setNlcIsSet(true);
-
 
103927
            } else { 
-
 
103928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103929
            }
-
 
103930
            break;
-
 
103931
          default:
-
 
103932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103933
        }
-
 
103934
        iprot.readFieldEnd();
-
 
103935
      }
-
 
103936
      iprot.readStructEnd();
-
 
103937
      validate();
-
 
103938
    }
-
 
103939
 
-
 
103940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
103941
      validate();
-
 
103942
 
-
 
103943
      oprot.writeStructBegin(STRUCT_DESC);
-
 
103944
      oprot.writeFieldBegin(NLC_FIELD_DESC);
-
 
103945
      oprot.writeDouble(this.nlc);
-
 
103946
      oprot.writeFieldEnd();
-
 
103947
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
103948
      oprot.writeI64(this.item_id);
-
 
103949
      oprot.writeFieldEnd();
-
 
103950
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
103951
      oprot.writeI64(this.vendor_id);
-
 
103952
      oprot.writeFieldEnd();
-
 
103953
      oprot.writeFieldStop();
-
 
103954
      oprot.writeStructEnd();
-
 
103955
    }
-
 
103956
 
-
 
103957
    @Override
-
 
103958
    public String toString() {
-
 
103959
      StringBuilder sb = new StringBuilder("updateNlcAtMarketplaces_args(");
-
 
103960
      boolean first = true;
-
 
103961
 
-
 
103962
      sb.append("item_id:");
-
 
103963
      sb.append(this.item_id);
-
 
103964
      first = false;
-
 
103965
      if (!first) sb.append(", ");
-
 
103966
      sb.append("vendor_id:");
-
 
103967
      sb.append(this.vendor_id);
-
 
103968
      first = false;
-
 
103969
      if (!first) sb.append(", ");
-
 
103970
      sb.append("nlc:");
-
 
103971
      sb.append(this.nlc);
-
 
103972
      first = false;
-
 
103973
      sb.append(")");
-
 
103974
      return sb.toString();
-
 
103975
    }
-
 
103976
 
-
 
103977
    public void validate() throws org.apache.thrift.TException {
-
 
103978
      // check for required fields
-
 
103979
    }
-
 
103980
 
-
 
103981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
103982
      try {
-
 
103983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
103984
      } catch (org.apache.thrift.TException te) {
-
 
103985
        throw new java.io.IOException(te);
-
 
103986
      }
-
 
103987
    }
-
 
103988
 
-
 
103989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
103990
      try {
-
 
103991
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
103992
        __isset_bit_vector = new BitSet(1);
-
 
103993
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
103994
      } catch (org.apache.thrift.TException te) {
-
 
103995
        throw new java.io.IOException(te);
-
 
103996
      }
-
 
103997
    }
-
 
103998
 
-
 
103999
  }
-
 
104000
 
-
 
104001
  public static class updateNlcAtMarketplaces_result implements org.apache.thrift.TBase<updateNlcAtMarketplaces_result, updateNlcAtMarketplaces_result._Fields>, java.io.Serializable, Cloneable   {
-
 
104002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNlcAtMarketplaces_result");
-
 
104003
 
-
 
104004
 
-
 
104005
 
-
 
104006
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
104007
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
104008
;
-
 
104009
 
-
 
104010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
104011
 
-
 
104012
      static {
-
 
104013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
104014
          byName.put(field.getFieldName(), field);
-
 
104015
        }
-
 
104016
      }
-
 
104017
 
-
 
104018
      /**
-
 
104019
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
104020
       */
-
 
104021
      public static _Fields findByThriftId(int fieldId) {
-
 
104022
        switch(fieldId) {
-
 
104023
          default:
-
 
104024
            return null;
-
 
104025
        }
-
 
104026
      }
-
 
104027
 
-
 
104028
      /**
-
 
104029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
104030
       * if it is not found.
-
 
104031
       */
-
 
104032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
104033
        _Fields fields = findByThriftId(fieldId);
-
 
104034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
104035
        return fields;
-
 
104036
      }
-
 
104037
 
-
 
104038
      /**
-
 
104039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
104040
       */
-
 
104041
      public static _Fields findByName(String name) {
-
 
104042
        return byName.get(name);
-
 
104043
      }
-
 
104044
 
-
 
104045
      private final short _thriftId;
-
 
104046
      private final String _fieldName;
-
 
104047
 
-
 
104048
      _Fields(short thriftId, String fieldName) {
-
 
104049
        _thriftId = thriftId;
-
 
104050
        _fieldName = fieldName;
-
 
104051
      }
-
 
104052
 
-
 
104053
      public short getThriftFieldId() {
-
 
104054
        return _thriftId;
-
 
104055
      }
-
 
104056
 
-
 
104057
      public String getFieldName() {
-
 
104058
        return _fieldName;
-
 
104059
      }
-
 
104060
    }
-
 
104061
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
104062
    static {
-
 
104063
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
104064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
104065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNlcAtMarketplaces_result.class, metaDataMap);
-
 
104066
    }
-
 
104067
 
-
 
104068
    public updateNlcAtMarketplaces_result() {
-
 
104069
    }
-
 
104070
 
-
 
104071
    /**
-
 
104072
     * Performs a deep copy on <i>other</i>.
-
 
104073
     */
-
 
104074
    public updateNlcAtMarketplaces_result(updateNlcAtMarketplaces_result other) {
-
 
104075
    }
-
 
104076
 
-
 
104077
    public updateNlcAtMarketplaces_result deepCopy() {
-
 
104078
      return new updateNlcAtMarketplaces_result(this);
-
 
104079
    }
-
 
104080
 
-
 
104081
    @Override
-
 
104082
    public void clear() {
-
 
104083
    }
-
 
104084
 
-
 
104085
    public void setFieldValue(_Fields field, Object value) {
-
 
104086
      switch (field) {
-
 
104087
      }
-
 
104088
    }
-
 
104089
 
-
 
104090
    public Object getFieldValue(_Fields field) {
-
 
104091
      switch (field) {
-
 
104092
      }
-
 
104093
      throw new IllegalStateException();
-
 
104094
    }
-
 
104095
 
-
 
104096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
104097
    public boolean isSet(_Fields field) {
-
 
104098
      if (field == null) {
-
 
104099
        throw new IllegalArgumentException();
-
 
104100
      }
-
 
104101
 
-
 
104102
      switch (field) {
-
 
104103
      }
-
 
104104
      throw new IllegalStateException();
-
 
104105
    }
-
 
104106
 
-
 
104107
    @Override
-
 
104108
    public boolean equals(Object that) {
-
 
104109
      if (that == null)
-
 
104110
        return false;
-
 
104111
      if (that instanceof updateNlcAtMarketplaces_result)
-
 
104112
        return this.equals((updateNlcAtMarketplaces_result)that);
-
 
104113
      return false;
-
 
104114
    }
-
 
104115
 
-
 
104116
    public boolean equals(updateNlcAtMarketplaces_result that) {
-
 
104117
      if (that == null)
-
 
104118
        return false;
-
 
104119
 
-
 
104120
      return true;
-
 
104121
    }
-
 
104122
 
-
 
104123
    @Override
-
 
104124
    public int hashCode() {
-
 
104125
      return 0;
-
 
104126
    }
-
 
104127
 
-
 
104128
    public int compareTo(updateNlcAtMarketplaces_result other) {
-
 
104129
      if (!getClass().equals(other.getClass())) {
-
 
104130
        return getClass().getName().compareTo(other.getClass().getName());
-
 
104131
      }
-
 
104132
 
-
 
104133
      int lastComparison = 0;
-
 
104134
      updateNlcAtMarketplaces_result typedOther = (updateNlcAtMarketplaces_result)other;
-
 
104135
 
-
 
104136
      return 0;
-
 
104137
    }
-
 
104138
 
-
 
104139
    public _Fields fieldForId(int fieldId) {
-
 
104140
      return _Fields.findByThriftId(fieldId);
-
 
104141
    }
-
 
104142
 
-
 
104143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
104144
      org.apache.thrift.protocol.TField field;
-
 
104145
      iprot.readStructBegin();
-
 
104146
      while (true)
-
 
104147
      {
-
 
104148
        field = iprot.readFieldBegin();
-
 
104149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
104150
          break;
-
 
104151
        }
-
 
104152
        switch (field.id) {
-
 
104153
          default:
-
 
104154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
104155
        }
-
 
104156
        iprot.readFieldEnd();
-
 
104157
      }
-
 
104158
      iprot.readStructEnd();
-
 
104159
      validate();
-
 
104160
    }
-
 
104161
 
-
 
104162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
104163
      oprot.writeStructBegin(STRUCT_DESC);
-
 
104164
 
-
 
104165
      oprot.writeFieldStop();
-
 
104166
      oprot.writeStructEnd();
-
 
104167
    }
-
 
104168
 
-
 
104169
    @Override
-
 
104170
    public String toString() {
-
 
104171
      StringBuilder sb = new StringBuilder("updateNlcAtMarketplaces_result(");
-
 
104172
      boolean first = true;
-
 
104173
 
-
 
104174
      sb.append(")");
-
 
104175
      return sb.toString();
-
 
104176
    }
103437
 
104177
 
103438
    public void validate() throws org.apache.thrift.TException {
104178
    public void validate() throws org.apache.thrift.TException {
103439
      // check for required fields
104179
      // check for required fields
103440
    }
104180
    }
103441
 
104181