Subversion Repositories SmartDukaan

Rev

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

Rev 13709 Rev 14182
Line 592... Line 592...
592
 
592
 
593
    public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException;
593
    public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException;
594
 
594
 
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
596
 
596
 
-
 
597
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;
-
 
598
 
597
  }
599
  }
598
 
600
 
599
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
601
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
600
 
602
 
601
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
603
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 968... Line 970...
968
 
970
 
969
    public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsItem_call> resultHandler) throws org.apache.thrift.TException;
971
    public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsItem_call> resultHandler) throws org.apache.thrift.TException;
970
 
972
 
971
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
973
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
972
 
974
 
-
 
975
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
-
 
976
 
973
  }
977
  }
974
 
978
 
975
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
979
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
976
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
980
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
977
      public Factory() {}
981
      public Factory() {}
Line 5384... Line 5388...
5384
      updateHsItem_result result = new updateHsItem_result();
5388
      updateHsItem_result result = new updateHsItem_result();
5385
      receiveBase(result, "updateHsItem");
5389
      receiveBase(result, "updateHsItem");
5386
      return;
5390
      return;
5387
    }
5391
    }
5388
 
5392
 
-
 
5393
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException
-
 
5394
    {
-
 
5395
      send_getPricingForDtr(catalogItemId);
-
 
5396
      return recv_getPricingForDtr();
-
 
5397
    }
-
 
5398
 
-
 
5399
    public void send_getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException
-
 
5400
    {
-
 
5401
      getPricingForDtr_args args = new getPricingForDtr_args();
-
 
5402
      args.setCatalogItemId(catalogItemId);
-
 
5403
      sendBase("getPricingForDtr", args);
-
 
5404
    }
-
 
5405
 
-
 
5406
    public Item recv_getPricingForDtr() throws org.apache.thrift.TException
-
 
5407
    {
-
 
5408
      getPricingForDtr_result result = new getPricingForDtr_result();
-
 
5409
      receiveBase(result, "getPricingForDtr");
-
 
5410
      if (result.isSetSuccess()) {
-
 
5411
        return result.success;
-
 
5412
      }
-
 
5413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
-
 
5414
    }
-
 
5415
 
5389
  }
5416
  }
5390
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5417
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5391
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5418
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5392
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5419
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5393
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5420
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11504... Line 11531...
11504
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11531
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11505
        (new Client(prot)).recv_updateHsItem();
11532
        (new Client(prot)).recv_updateHsItem();
11506
      }
11533
      }
11507
    }
11534
    }
11508
 
11535
 
-
 
11536
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException {
-
 
11537
      checkReady();
-
 
11538
      getPricingForDtr_call method_call = new getPricingForDtr_call(catalogItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
11539
      this.___currentMethod = method_call;
-
 
11540
      ___manager.call(method_call);
-
 
11541
    }
-
 
11542
 
-
 
11543
    public static class getPricingForDtr_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11544
      private long catalogItemId;
-
 
11545
      public getPricingForDtr_call(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<getPricingForDtr_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 {
-
 
11546
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11547
        this.catalogItemId = catalogItemId;
-
 
11548
      }
-
 
11549
 
-
 
11550
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11551
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPricingForDtr", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11552
        getPricingForDtr_args args = new getPricingForDtr_args();
-
 
11553
        args.setCatalogItemId(catalogItemId);
-
 
11554
        args.write(prot);
-
 
11555
        prot.writeMessageEnd();
-
 
11556
      }
-
 
11557
 
-
 
11558
      public Item getResult() throws org.apache.thrift.TException {
-
 
11559
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11560
          throw new IllegalStateException("Method call not finished!");
-
 
11561
        }
-
 
11562
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11563
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11564
        return (new Client(prot)).recv_getPricingForDtr();
-
 
11565
      }
-
 
11566
    }
-
 
11567
 
11509
  }
11568
  }
11510
 
11569
 
11511
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11570
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11512
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11571
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11513
    public Processor(I iface) {
11572
    public Processor(I iface) {
Line 11703... Line 11762...
11703
      processMap.put("getAllFbgListedItems", new getAllFbgListedItems());
11762
      processMap.put("getAllFbgListedItems", new getAllFbgListedItems());
11704
      processMap.put("checkServices", new checkServices());
11763
      processMap.put("checkServices", new checkServices());
11705
      processMap.put("addHsItem", new addHsItem());
11764
      processMap.put("addHsItem", new addHsItem());
11706
      processMap.put("getHsItem", new getHsItem());
11765
      processMap.put("getHsItem", new getHsItem());
11707
      processMap.put("updateHsItem", new updateHsItem());
11766
      processMap.put("updateHsItem", new updateHsItem());
-
 
11767
      processMap.put("getPricingForDtr", new getPricingForDtr());
11708
      return processMap;
11768
      return processMap;
11709
    }
11769
    }
11710
 
11770
 
11711
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11771
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11712
      public addItem() {
11772
      public addItem() {
Line 14929... Line 14989...
14929
        iface.updateHsItem(args.hsItem);
14989
        iface.updateHsItem(args.hsItem);
14930
        return result;
14990
        return result;
14931
      }
14991
      }
14932
    }
14992
    }
14933
 
14993
 
-
 
14994
    private static class getPricingForDtr<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPricingForDtr_args> {
-
 
14995
      public getPricingForDtr() {
-
 
14996
        super("getPricingForDtr");
-
 
14997
      }
-
 
14998
 
-
 
14999
      protected getPricingForDtr_args getEmptyArgsInstance() {
-
 
15000
        return new getPricingForDtr_args();
-
 
15001
      }
-
 
15002
 
-
 
15003
      protected getPricingForDtr_result getResult(I iface, getPricingForDtr_args args) throws org.apache.thrift.TException {
-
 
15004
        getPricingForDtr_result result = new getPricingForDtr_result();
-
 
15005
        result.success = iface.getPricingForDtr(args.catalogItemId);
-
 
15006
        return result;
-
 
15007
      }
-
 
15008
    }
-
 
15009
 
14934
  }
15010
  }
14935
 
15011
 
14936
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15012
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14938
 
15014
 
Line 134145... Line 134221...
134145
      sb.append(")");
134221
      sb.append(")");
134146
      return sb.toString();
134222
      return sb.toString();
134147
    }
134223
    }
134148
 
134224
 
134149
    public void validate() throws org.apache.thrift.TException {
134225
    public void validate() throws org.apache.thrift.TException {
-
 
134226
      // check for required fields
-
 
134227
    }
-
 
134228
 
-
 
134229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134230
      try {
-
 
134231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134232
      } catch (org.apache.thrift.TException te) {
-
 
134233
        throw new java.io.IOException(te);
-
 
134234
      }
-
 
134235
    }
-
 
134236
 
-
 
134237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134238
      try {
-
 
134239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134240
      } catch (org.apache.thrift.TException te) {
-
 
134241
        throw new java.io.IOException(te);
-
 
134242
      }
-
 
134243
    }
-
 
134244
 
-
 
134245
  }
-
 
134246
 
-
 
134247
  public static class getPricingForDtr_args implements org.apache.thrift.TBase<getPricingForDtr_args, getPricingForDtr_args._Fields>, java.io.Serializable, Cloneable   {
-
 
134248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPricingForDtr_args");
-
 
134249
 
-
 
134250
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
134251
 
-
 
134252
    private long catalogItemId; // required
-
 
134253
 
-
 
134254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134256
      CATALOG_ITEM_ID((short)1, "catalogItemId");
-
 
134257
 
-
 
134258
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134259
 
-
 
134260
      static {
-
 
134261
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134262
          byName.put(field.getFieldName(), field);
-
 
134263
        }
-
 
134264
      }
-
 
134265
 
-
 
134266
      /**
-
 
134267
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134268
       */
-
 
134269
      public static _Fields findByThriftId(int fieldId) {
-
 
134270
        switch(fieldId) {
-
 
134271
          case 1: // CATALOG_ITEM_ID
-
 
134272
            return CATALOG_ITEM_ID;
-
 
134273
          default:
-
 
134274
            return null;
-
 
134275
        }
-
 
134276
      }
-
 
134277
 
-
 
134278
      /**
-
 
134279
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134280
       * if it is not found.
-
 
134281
       */
-
 
134282
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134283
        _Fields fields = findByThriftId(fieldId);
-
 
134284
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134285
        return fields;
-
 
134286
      }
-
 
134287
 
-
 
134288
      /**
-
 
134289
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134290
       */
-
 
134291
      public static _Fields findByName(String name) {
-
 
134292
        return byName.get(name);
-
 
134293
      }
-
 
134294
 
-
 
134295
      private final short _thriftId;
-
 
134296
      private final String _fieldName;
-
 
134297
 
-
 
134298
      _Fields(short thriftId, String fieldName) {
-
 
134299
        _thriftId = thriftId;
-
 
134300
        _fieldName = fieldName;
-
 
134301
      }
-
 
134302
 
-
 
134303
      public short getThriftFieldId() {
-
 
134304
        return _thriftId;
-
 
134305
      }
-
 
134306
 
-
 
134307
      public String getFieldName() {
-
 
134308
        return _fieldName;
-
 
134309
      }
-
 
134310
    }
-
 
134311
 
-
 
134312
    // isset id assignments
-
 
134313
    private static final int __CATALOGITEMID_ISSET_ID = 0;
-
 
134314
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
134315
 
-
 
134316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134317
    static {
-
 
134318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134319
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPricingForDtr_args.class, metaDataMap);
-
 
134323
    }
-
 
134324
 
-
 
134325
    public getPricingForDtr_args() {
-
 
134326
    }
-
 
134327
 
-
 
134328
    public getPricingForDtr_args(
-
 
134329
      long catalogItemId)
-
 
134330
    {
-
 
134331
      this();
-
 
134332
      this.catalogItemId = catalogItemId;
-
 
134333
      setCatalogItemIdIsSet(true);
-
 
134334
    }
-
 
134335
 
-
 
134336
    /**
-
 
134337
     * Performs a deep copy on <i>other</i>.
-
 
134338
     */
-
 
134339
    public getPricingForDtr_args(getPricingForDtr_args other) {
-
 
134340
      __isset_bit_vector.clear();
-
 
134341
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
134342
      this.catalogItemId = other.catalogItemId;
-
 
134343
    }
-
 
134344
 
-
 
134345
    public getPricingForDtr_args deepCopy() {
-
 
134346
      return new getPricingForDtr_args(this);
-
 
134347
    }
-
 
134348
 
-
 
134349
    @Override
-
 
134350
    public void clear() {
-
 
134351
      setCatalogItemIdIsSet(false);
-
 
134352
      this.catalogItemId = 0;
-
 
134353
    }
-
 
134354
 
-
 
134355
    public long getCatalogItemId() {
-
 
134356
      return this.catalogItemId;
-
 
134357
    }
-
 
134358
 
-
 
134359
    public void setCatalogItemId(long catalogItemId) {
-
 
134360
      this.catalogItemId = catalogItemId;
-
 
134361
      setCatalogItemIdIsSet(true);
-
 
134362
    }
-
 
134363
 
-
 
134364
    public void unsetCatalogItemId() {
-
 
134365
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
-
 
134366
    }
-
 
134367
 
-
 
134368
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
-
 
134369
    public boolean isSetCatalogItemId() {
-
 
134370
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
-
 
134371
    }
-
 
134372
 
-
 
134373
    public void setCatalogItemIdIsSet(boolean value) {
-
 
134374
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
-
 
134375
    }
-
 
134376
 
-
 
134377
    public void setFieldValue(_Fields field, Object value) {
-
 
134378
      switch (field) {
-
 
134379
      case CATALOG_ITEM_ID:
-
 
134380
        if (value == null) {
-
 
134381
          unsetCatalogItemId();
-
 
134382
        } else {
-
 
134383
          setCatalogItemId((Long)value);
-
 
134384
        }
-
 
134385
        break;
-
 
134386
 
-
 
134387
      }
-
 
134388
    }
-
 
134389
 
-
 
134390
    public Object getFieldValue(_Fields field) {
-
 
134391
      switch (field) {
-
 
134392
      case CATALOG_ITEM_ID:
-
 
134393
        return Long.valueOf(getCatalogItemId());
-
 
134394
 
-
 
134395
      }
-
 
134396
      throw new IllegalStateException();
-
 
134397
    }
-
 
134398
 
-
 
134399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134400
    public boolean isSet(_Fields field) {
-
 
134401
      if (field == null) {
-
 
134402
        throw new IllegalArgumentException();
-
 
134403
      }
-
 
134404
 
-
 
134405
      switch (field) {
-
 
134406
      case CATALOG_ITEM_ID:
-
 
134407
        return isSetCatalogItemId();
-
 
134408
      }
-
 
134409
      throw new IllegalStateException();
-
 
134410
    }
-
 
134411
 
-
 
134412
    @Override
-
 
134413
    public boolean equals(Object that) {
-
 
134414
      if (that == null)
-
 
134415
        return false;
-
 
134416
      if (that instanceof getPricingForDtr_args)
-
 
134417
        return this.equals((getPricingForDtr_args)that);
-
 
134418
      return false;
-
 
134419
    }
-
 
134420
 
-
 
134421
    public boolean equals(getPricingForDtr_args that) {
-
 
134422
      if (that == null)
-
 
134423
        return false;
-
 
134424
 
-
 
134425
      boolean this_present_catalogItemId = true;
-
 
134426
      boolean that_present_catalogItemId = true;
-
 
134427
      if (this_present_catalogItemId || that_present_catalogItemId) {
-
 
134428
        if (!(this_present_catalogItemId && that_present_catalogItemId))
-
 
134429
          return false;
-
 
134430
        if (this.catalogItemId != that.catalogItemId)
-
 
134431
          return false;
-
 
134432
      }
-
 
134433
 
-
 
134434
      return true;
-
 
134435
    }
-
 
134436
 
-
 
134437
    @Override
-
 
134438
    public int hashCode() {
-
 
134439
      return 0;
-
 
134440
    }
-
 
134441
 
-
 
134442
    public int compareTo(getPricingForDtr_args other) {
-
 
134443
      if (!getClass().equals(other.getClass())) {
-
 
134444
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134445
      }
-
 
134446
 
-
 
134447
      int lastComparison = 0;
-
 
134448
      getPricingForDtr_args typedOther = (getPricingForDtr_args)other;
-
 
134449
 
-
 
134450
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
-
 
134451
      if (lastComparison != 0) {
-
 
134452
        return lastComparison;
-
 
134453
      }
-
 
134454
      if (isSetCatalogItemId()) {
-
 
134455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
-
 
134456
        if (lastComparison != 0) {
-
 
134457
          return lastComparison;
-
 
134458
        }
-
 
134459
      }
-
 
134460
      return 0;
-
 
134461
    }
-
 
134462
 
-
 
134463
    public _Fields fieldForId(int fieldId) {
-
 
134464
      return _Fields.findByThriftId(fieldId);
-
 
134465
    }
-
 
134466
 
-
 
134467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134468
      org.apache.thrift.protocol.TField field;
-
 
134469
      iprot.readStructBegin();
-
 
134470
      while (true)
-
 
134471
      {
-
 
134472
        field = iprot.readFieldBegin();
-
 
134473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134474
          break;
-
 
134475
        }
-
 
134476
        switch (field.id) {
-
 
134477
          case 1: // CATALOG_ITEM_ID
-
 
134478
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134479
              this.catalogItemId = iprot.readI64();
-
 
134480
              setCatalogItemIdIsSet(true);
-
 
134481
            } else { 
-
 
134482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134483
            }
-
 
134484
            break;
-
 
134485
          default:
-
 
134486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134487
        }
-
 
134488
        iprot.readFieldEnd();
-
 
134489
      }
-
 
134490
      iprot.readStructEnd();
-
 
134491
      validate();
-
 
134492
    }
-
 
134493
 
-
 
134494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134495
      validate();
-
 
134496
 
-
 
134497
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134498
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
134499
      oprot.writeI64(this.catalogItemId);
-
 
134500
      oprot.writeFieldEnd();
-
 
134501
      oprot.writeFieldStop();
-
 
134502
      oprot.writeStructEnd();
-
 
134503
    }
-
 
134504
 
-
 
134505
    @Override
-
 
134506
    public String toString() {
-
 
134507
      StringBuilder sb = new StringBuilder("getPricingForDtr_args(");
-
 
134508
      boolean first = true;
-
 
134509
 
-
 
134510
      sb.append("catalogItemId:");
-
 
134511
      sb.append(this.catalogItemId);
-
 
134512
      first = false;
-
 
134513
      sb.append(")");
-
 
134514
      return sb.toString();
-
 
134515
    }
-
 
134516
 
-
 
134517
    public void validate() throws org.apache.thrift.TException {
-
 
134518
      // check for required fields
-
 
134519
    }
-
 
134520
 
-
 
134521
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134522
      try {
-
 
134523
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134524
      } catch (org.apache.thrift.TException te) {
-
 
134525
        throw new java.io.IOException(te);
-
 
134526
      }
-
 
134527
    }
-
 
134528
 
-
 
134529
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134530
      try {
-
 
134531
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
134532
        __isset_bit_vector = new BitSet(1);
-
 
134533
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134534
      } catch (org.apache.thrift.TException te) {
-
 
134535
        throw new java.io.IOException(te);
-
 
134536
      }
-
 
134537
    }
-
 
134538
 
-
 
134539
  }
-
 
134540
 
-
 
134541
  public static class getPricingForDtr_result implements org.apache.thrift.TBase<getPricingForDtr_result, getPricingForDtr_result._Fields>, java.io.Serializable, Cloneable   {
-
 
134542
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPricingForDtr_result");
-
 
134543
 
-
 
134544
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
134545
 
-
 
134546
    private Item success; // required
-
 
134547
 
-
 
134548
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134549
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134550
      SUCCESS((short)0, "success");
-
 
134551
 
-
 
134552
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134553
 
-
 
134554
      static {
-
 
134555
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134556
          byName.put(field.getFieldName(), field);
-
 
134557
        }
-
 
134558
      }
-
 
134559
 
-
 
134560
      /**
-
 
134561
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134562
       */
-
 
134563
      public static _Fields findByThriftId(int fieldId) {
-
 
134564
        switch(fieldId) {
-
 
134565
          case 0: // SUCCESS
-
 
134566
            return SUCCESS;
-
 
134567
          default:
-
 
134568
            return null;
-
 
134569
        }
-
 
134570
      }
-
 
134571
 
-
 
134572
      /**
-
 
134573
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134574
       * if it is not found.
-
 
134575
       */
-
 
134576
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134577
        _Fields fields = findByThriftId(fieldId);
-
 
134578
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134579
        return fields;
-
 
134580
      }
-
 
134581
 
-
 
134582
      /**
-
 
134583
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134584
       */
-
 
134585
      public static _Fields findByName(String name) {
-
 
134586
        return byName.get(name);
-
 
134587
      }
-
 
134588
 
-
 
134589
      private final short _thriftId;
-
 
134590
      private final String _fieldName;
-
 
134591
 
-
 
134592
      _Fields(short thriftId, String fieldName) {
-
 
134593
        _thriftId = thriftId;
-
 
134594
        _fieldName = fieldName;
-
 
134595
      }
-
 
134596
 
-
 
134597
      public short getThriftFieldId() {
-
 
134598
        return _thriftId;
-
 
134599
      }
-
 
134600
 
-
 
134601
      public String getFieldName() {
-
 
134602
        return _fieldName;
-
 
134603
      }
-
 
134604
    }
-
 
134605
 
-
 
134606
    // isset id assignments
-
 
134607
 
-
 
134608
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134609
    static {
-
 
134610
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134611
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134612
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
-
 
134613
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134614
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPricingForDtr_result.class, metaDataMap);
-
 
134615
    }
-
 
134616
 
-
 
134617
    public getPricingForDtr_result() {
-
 
134618
    }
-
 
134619
 
-
 
134620
    public getPricingForDtr_result(
-
 
134621
      Item success)
-
 
134622
    {
-
 
134623
      this();
-
 
134624
      this.success = success;
-
 
134625
    }
-
 
134626
 
-
 
134627
    /**
-
 
134628
     * Performs a deep copy on <i>other</i>.
-
 
134629
     */
-
 
134630
    public getPricingForDtr_result(getPricingForDtr_result other) {
-
 
134631
      if (other.isSetSuccess()) {
-
 
134632
        this.success = new Item(other.success);
-
 
134633
      }
-
 
134634
    }
-
 
134635
 
-
 
134636
    public getPricingForDtr_result deepCopy() {
-
 
134637
      return new getPricingForDtr_result(this);
-
 
134638
    }
-
 
134639
 
-
 
134640
    @Override
-
 
134641
    public void clear() {
-
 
134642
      this.success = null;
-
 
134643
    }
-
 
134644
 
-
 
134645
    public Item getSuccess() {
-
 
134646
      return this.success;
-
 
134647
    }
-
 
134648
 
-
 
134649
    public void setSuccess(Item success) {
-
 
134650
      this.success = success;
-
 
134651
    }
-
 
134652
 
-
 
134653
    public void unsetSuccess() {
-
 
134654
      this.success = null;
-
 
134655
    }
-
 
134656
 
-
 
134657
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
134658
    public boolean isSetSuccess() {
-
 
134659
      return this.success != null;
-
 
134660
    }
-
 
134661
 
-
 
134662
    public void setSuccessIsSet(boolean value) {
-
 
134663
      if (!value) {
-
 
134664
        this.success = null;
-
 
134665
      }
-
 
134666
    }
-
 
134667
 
-
 
134668
    public void setFieldValue(_Fields field, Object value) {
-
 
134669
      switch (field) {
-
 
134670
      case SUCCESS:
-
 
134671
        if (value == null) {
-
 
134672
          unsetSuccess();
-
 
134673
        } else {
-
 
134674
          setSuccess((Item)value);
-
 
134675
        }
-
 
134676
        break;
-
 
134677
 
-
 
134678
      }
-
 
134679
    }
-
 
134680
 
-
 
134681
    public Object getFieldValue(_Fields field) {
-
 
134682
      switch (field) {
-
 
134683
      case SUCCESS:
-
 
134684
        return getSuccess();
-
 
134685
 
-
 
134686
      }
-
 
134687
      throw new IllegalStateException();
-
 
134688
    }
-
 
134689
 
-
 
134690
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134691
    public boolean isSet(_Fields field) {
-
 
134692
      if (field == null) {
-
 
134693
        throw new IllegalArgumentException();
-
 
134694
      }
-
 
134695
 
-
 
134696
      switch (field) {
-
 
134697
      case SUCCESS:
-
 
134698
        return isSetSuccess();
-
 
134699
      }
-
 
134700
      throw new IllegalStateException();
-
 
134701
    }
-
 
134702
 
-
 
134703
    @Override
-
 
134704
    public boolean equals(Object that) {
-
 
134705
      if (that == null)
-
 
134706
        return false;
-
 
134707
      if (that instanceof getPricingForDtr_result)
-
 
134708
        return this.equals((getPricingForDtr_result)that);
-
 
134709
      return false;
-
 
134710
    }
-
 
134711
 
-
 
134712
    public boolean equals(getPricingForDtr_result that) {
-
 
134713
      if (that == null)
-
 
134714
        return false;
-
 
134715
 
-
 
134716
      boolean this_present_success = true && this.isSetSuccess();
-
 
134717
      boolean that_present_success = true && that.isSetSuccess();
-
 
134718
      if (this_present_success || that_present_success) {
-
 
134719
        if (!(this_present_success && that_present_success))
-
 
134720
          return false;
-
 
134721
        if (!this.success.equals(that.success))
-
 
134722
          return false;
-
 
134723
      }
-
 
134724
 
-
 
134725
      return true;
-
 
134726
    }
-
 
134727
 
-
 
134728
    @Override
-
 
134729
    public int hashCode() {
-
 
134730
      return 0;
-
 
134731
    }
-
 
134732
 
-
 
134733
    public int compareTo(getPricingForDtr_result other) {
-
 
134734
      if (!getClass().equals(other.getClass())) {
-
 
134735
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134736
      }
-
 
134737
 
-
 
134738
      int lastComparison = 0;
-
 
134739
      getPricingForDtr_result typedOther = (getPricingForDtr_result)other;
-
 
134740
 
-
 
134741
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
134742
      if (lastComparison != 0) {
-
 
134743
        return lastComparison;
-
 
134744
      }
-
 
134745
      if (isSetSuccess()) {
-
 
134746
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
134747
        if (lastComparison != 0) {
-
 
134748
          return lastComparison;
-
 
134749
        }
-
 
134750
      }
-
 
134751
      return 0;
-
 
134752
    }
-
 
134753
 
-
 
134754
    public _Fields fieldForId(int fieldId) {
-
 
134755
      return _Fields.findByThriftId(fieldId);
-
 
134756
    }
-
 
134757
 
-
 
134758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134759
      org.apache.thrift.protocol.TField field;
-
 
134760
      iprot.readStructBegin();
-
 
134761
      while (true)
-
 
134762
      {
-
 
134763
        field = iprot.readFieldBegin();
-
 
134764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134765
          break;
-
 
134766
        }
-
 
134767
        switch (field.id) {
-
 
134768
          case 0: // SUCCESS
-
 
134769
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
134770
              this.success = new Item();
-
 
134771
              this.success.read(iprot);
-
 
134772
            } else { 
-
 
134773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134774
            }
-
 
134775
            break;
-
 
134776
          default:
-
 
134777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134778
        }
-
 
134779
        iprot.readFieldEnd();
-
 
134780
      }
-
 
134781
      iprot.readStructEnd();
-
 
134782
      validate();
-
 
134783
    }
-
 
134784
 
-
 
134785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134786
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134787
 
-
 
134788
      if (this.isSetSuccess()) {
-
 
134789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
134790
        this.success.write(oprot);
-
 
134791
        oprot.writeFieldEnd();
-
 
134792
      }
-
 
134793
      oprot.writeFieldStop();
-
 
134794
      oprot.writeStructEnd();
-
 
134795
    }
-
 
134796
 
-
 
134797
    @Override
-
 
134798
    public String toString() {
-
 
134799
      StringBuilder sb = new StringBuilder("getPricingForDtr_result(");
-
 
134800
      boolean first = true;
-
 
134801
 
-
 
134802
      sb.append("success:");
-
 
134803
      if (this.success == null) {
-
 
134804
        sb.append("null");
-
 
134805
      } else {
-
 
134806
        sb.append(this.success);
-
 
134807
      }
-
 
134808
      first = false;
-
 
134809
      sb.append(")");
-
 
134810
      return sb.toString();
-
 
134811
    }
-
 
134812
 
-
 
134813
    public void validate() throws org.apache.thrift.TException {
134150
      // check for required fields
134814
      // check for required fields
134151
    }
134815
    }
134152
 
134816
 
134153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
134817
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
134154
      try {
134818
      try {