Subversion Repositories SmartDukaan

Rev

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

Rev 13495 Rev 13709
Line 586... Line 586...
586
 
586
 
587
    public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException;
587
    public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException;
588
 
588
 
589
    public Map<Long,Map<String,Long>> checkServices(Map<Long,Map<String,Long>> lines) throws CatalogServiceException, org.apache.thrift.TException;
589
    public Map<Long,Map<String,Long>> checkServices(Map<Long,Map<String,Long>> lines) throws CatalogServiceException, org.apache.thrift.TException;
590
 
590
 
-
 
591
    public void addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException;
-
 
592
 
-
 
593
    public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException;
-
 
594
 
-
 
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
-
 
596
 
591
  }
597
  }
592
 
598
 
593
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
599
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
594
 
600
 
595
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
601
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 956... Line 962...
956
 
962
 
957
    public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException;
963
    public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException;
958
 
964
 
959
    public void checkServices(Map<Long,Map<String,Long>> lines, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkServices_call> resultHandler) throws org.apache.thrift.TException;
965
    public void checkServices(Map<Long,Map<String,Long>> lines, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkServices_call> resultHandler) throws org.apache.thrift.TException;
960
 
966
 
-
 
967
    public void addHsItem(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addHsItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
968
 
-
 
969
    public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
970
 
-
 
971
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
972
 
961
  }
973
  }
962
 
974
 
963
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
975
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
964
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
976
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
965
      public Factory() {}
977
      public Factory() {}
Line 5309... Line 5321...
5309
        throw result.cex;
5321
        throw result.cex;
5310
      }
5322
      }
5311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
5323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
5312
    }
5324
    }
5313
 
5325
 
-
 
5326
    public void addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException
-
 
5327
    {
-
 
5328
      send_addHsItem(hsItems);
-
 
5329
      recv_addHsItem();
-
 
5330
    }
-
 
5331
 
-
 
5332
    public void send_addHsItem(List<HsItem> hsItems) throws org.apache.thrift.TException
-
 
5333
    {
-
 
5334
      addHsItem_args args = new addHsItem_args();
-
 
5335
      args.setHsItems(hsItems);
-
 
5336
      sendBase("addHsItem", args);
-
 
5337
    }
-
 
5338
 
-
 
5339
    public void recv_addHsItem() throws org.apache.thrift.TException
-
 
5340
    {
-
 
5341
      addHsItem_result result = new addHsItem_result();
-
 
5342
      receiveBase(result, "addHsItem");
-
 
5343
      return;
-
 
5344
    }
-
 
5345
 
-
 
5346
    public HsItem getHsItem(String hsItemId) throws org.apache.thrift.TException
-
 
5347
    {
-
 
5348
      send_getHsItem(hsItemId);
-
 
5349
      return recv_getHsItem();
-
 
5350
    }
-
 
5351
 
-
 
5352
    public void send_getHsItem(String hsItemId) throws org.apache.thrift.TException
-
 
5353
    {
-
 
5354
      getHsItem_args args = new getHsItem_args();
-
 
5355
      args.setHsItemId(hsItemId);
-
 
5356
      sendBase("getHsItem", args);
-
 
5357
    }
-
 
5358
 
-
 
5359
    public HsItem recv_getHsItem() throws org.apache.thrift.TException
-
 
5360
    {
-
 
5361
      getHsItem_result result = new getHsItem_result();
-
 
5362
      receiveBase(result, "getHsItem");
-
 
5363
      if (result.isSetSuccess()) {
-
 
5364
        return result.success;
-
 
5365
      }
-
 
5366
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHsItem failed: unknown result");
-
 
5367
    }
-
 
5368
 
-
 
5369
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException
-
 
5370
    {
-
 
5371
      send_updateHsItem(hsItem);
-
 
5372
      recv_updateHsItem();
-
 
5373
    }
-
 
5374
 
-
 
5375
    public void send_updateHsItem(HsItem hsItem) throws org.apache.thrift.TException
-
 
5376
    {
-
 
5377
      updateHsItem_args args = new updateHsItem_args();
-
 
5378
      args.setHsItem(hsItem);
-
 
5379
      sendBase("updateHsItem", args);
-
 
5380
    }
-
 
5381
 
-
 
5382
    public void recv_updateHsItem() throws org.apache.thrift.TException
-
 
5383
    {
-
 
5384
      updateHsItem_result result = new updateHsItem_result();
-
 
5385
      receiveBase(result, "updateHsItem");
-
 
5386
      return;
-
 
5387
    }
-
 
5388
 
5314
  }
5389
  }
5315
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5390
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5316
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5391
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5317
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5392
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5318
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5393
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11333... Line 11408...
11333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11408
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11334
        return (new Client(prot)).recv_checkServices();
11409
        return (new Client(prot)).recv_checkServices();
11335
      }
11410
      }
11336
    }
11411
    }
11337
 
11412
 
-
 
11413
    public void addHsItem(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<addHsItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
11414
      checkReady();
-
 
11415
      addHsItem_call method_call = new addHsItem_call(hsItems, resultHandler, this, ___protocolFactory, ___transport);
-
 
11416
      this.___currentMethod = method_call;
-
 
11417
      ___manager.call(method_call);
-
 
11418
    }
-
 
11419
 
-
 
11420
    public static class addHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11421
      private List<HsItem> hsItems;
-
 
11422
      public addHsItem_call(List<HsItem> hsItems, org.apache.thrift.async.AsyncMethodCallback<addHsItem_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 {
-
 
11423
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11424
        this.hsItems = hsItems;
-
 
11425
      }
-
 
11426
 
-
 
11427
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11428
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11429
        addHsItem_args args = new addHsItem_args();
-
 
11430
        args.setHsItems(hsItems);
-
 
11431
        args.write(prot);
-
 
11432
        prot.writeMessageEnd();
-
 
11433
      }
-
 
11434
 
-
 
11435
      public void getResult() throws org.apache.thrift.TException {
-
 
11436
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11437
          throw new IllegalStateException("Method call not finished!");
-
 
11438
        }
-
 
11439
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11440
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11441
        (new Client(prot)).recv_addHsItem();
-
 
11442
      }
-
 
11443
    }
-
 
11444
 
-
 
11445
    public void getHsItem(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<getHsItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
11446
      checkReady();
-
 
11447
      getHsItem_call method_call = new getHsItem_call(hsItemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
11448
      this.___currentMethod = method_call;
-
 
11449
      ___manager.call(method_call);
-
 
11450
    }
-
 
11451
 
-
 
11452
    public static class getHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11453
      private String hsItemId;
-
 
11454
      public getHsItem_call(String hsItemId, org.apache.thrift.async.AsyncMethodCallback<getHsItem_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 {
-
 
11455
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11456
        this.hsItemId = hsItemId;
-
 
11457
      }
-
 
11458
 
-
 
11459
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11460
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11461
        getHsItem_args args = new getHsItem_args();
-
 
11462
        args.setHsItemId(hsItemId);
-
 
11463
        args.write(prot);
-
 
11464
        prot.writeMessageEnd();
-
 
11465
      }
-
 
11466
 
-
 
11467
      public HsItem getResult() throws org.apache.thrift.TException {
-
 
11468
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11469
          throw new IllegalStateException("Method call not finished!");
-
 
11470
        }
-
 
11471
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11472
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11473
        return (new Client(prot)).recv_getHsItem();
-
 
11474
      }
-
 
11475
    }
-
 
11476
 
-
 
11477
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<updateHsItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
11478
      checkReady();
-
 
11479
      updateHsItem_call method_call = new updateHsItem_call(hsItem, resultHandler, this, ___protocolFactory, ___transport);
-
 
11480
      this.___currentMethod = method_call;
-
 
11481
      ___manager.call(method_call);
-
 
11482
    }
-
 
11483
 
-
 
11484
    public static class updateHsItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11485
      private HsItem hsItem;
-
 
11486
      public updateHsItem_call(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<updateHsItem_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 {
-
 
11487
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11488
        this.hsItem = hsItem;
-
 
11489
      }
-
 
11490
 
-
 
11491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateHsItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11493
        updateHsItem_args args = new updateHsItem_args();
-
 
11494
        args.setHsItem(hsItem);
-
 
11495
        args.write(prot);
-
 
11496
        prot.writeMessageEnd();
-
 
11497
      }
-
 
11498
 
-
 
11499
      public void getResult() throws org.apache.thrift.TException {
-
 
11500
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11501
          throw new IllegalStateException("Method call not finished!");
-
 
11502
        }
-
 
11503
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11504
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11505
        (new Client(prot)).recv_updateHsItem();
-
 
11506
      }
-
 
11507
    }
-
 
11508
 
11338
  }
11509
  }
11339
 
11510
 
11340
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11511
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11341
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11512
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11342
    public Processor(I iface) {
11513
    public Processor(I iface) {
Line 11529... Line 11700...
11529
      processMap.put("updateItemStateVat", new updateItemStateVat());
11700
      processMap.put("updateItemStateVat", new updateItemStateVat());
11530
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11701
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11531
      processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());
11702
      processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());
11532
      processMap.put("getAllFbgListedItems", new getAllFbgListedItems());
11703
      processMap.put("getAllFbgListedItems", new getAllFbgListedItems());
11533
      processMap.put("checkServices", new checkServices());
11704
      processMap.put("checkServices", new checkServices());
-
 
11705
      processMap.put("addHsItem", new addHsItem());
-
 
11706
      processMap.put("getHsItem", new getHsItem());
-
 
11707
      processMap.put("updateHsItem", new updateHsItem());
11534
      return processMap;
11708
      return processMap;
11535
    }
11709
    }
11536
 
11710
 
11537
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11711
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11538
      public addItem() {
11712
      public addItem() {
Line 14707... Line 14881...
14707
        }
14881
        }
14708
        return result;
14882
        return result;
14709
      }
14883
      }
14710
    }
14884
    }
14711
 
14885
 
-
 
14886
    private static class addHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addHsItem_args> {
-
 
14887
      public addHsItem() {
-
 
14888
        super("addHsItem");
-
 
14889
      }
-
 
14890
 
-
 
14891
      protected addHsItem_args getEmptyArgsInstance() {
-
 
14892
        return new addHsItem_args();
-
 
14893
      }
-
 
14894
 
-
 
14895
      protected addHsItem_result getResult(I iface, addHsItem_args args) throws org.apache.thrift.TException {
-
 
14896
        addHsItem_result result = new addHsItem_result();
-
 
14897
        iface.addHsItem(args.hsItems);
-
 
14898
        return result;
-
 
14899
      }
-
 
14900
    }
-
 
14901
 
-
 
14902
    private static class getHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHsItem_args> {
-
 
14903
      public getHsItem() {
-
 
14904
        super("getHsItem");
-
 
14905
      }
-
 
14906
 
-
 
14907
      protected getHsItem_args getEmptyArgsInstance() {
-
 
14908
        return new getHsItem_args();
-
 
14909
      }
-
 
14910
 
-
 
14911
      protected getHsItem_result getResult(I iface, getHsItem_args args) throws org.apache.thrift.TException {
-
 
14912
        getHsItem_result result = new getHsItem_result();
-
 
14913
        result.success = iface.getHsItem(args.hsItemId);
-
 
14914
        return result;
-
 
14915
      }
-
 
14916
    }
-
 
14917
 
-
 
14918
    private static class updateHsItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateHsItem_args> {
-
 
14919
      public updateHsItem() {
-
 
14920
        super("updateHsItem");
-
 
14921
      }
-
 
14922
 
-
 
14923
      protected updateHsItem_args getEmptyArgsInstance() {
-
 
14924
        return new updateHsItem_args();
-
 
14925
      }
-
 
14926
 
-
 
14927
      protected updateHsItem_result getResult(I iface, updateHsItem_args args) throws org.apache.thrift.TException {
-
 
14928
        updateHsItem_result result = new updateHsItem_result();
-
 
14929
        iface.updateHsItem(args.hsItem);
-
 
14930
        return result;
-
 
14931
      }
-
 
14932
    }
-
 
14933
 
14712
  }
14934
  }
14713
 
14935
 
14714
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14936
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14716
 
14938
 
Line 132310... Line 132532...
132310
      sb.append(")");
132532
      sb.append(")");
132311
      return sb.toString();
132533
      return sb.toString();
132312
    }
132534
    }
132313
 
132535
 
132314
    public void validate() throws org.apache.thrift.TException {
132536
    public void validate() throws org.apache.thrift.TException {
-
 
132537
      // check for required fields
-
 
132538
    }
-
 
132539
 
-
 
132540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
132541
      try {
-
 
132542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
132543
      } catch (org.apache.thrift.TException te) {
-
 
132544
        throw new java.io.IOException(te);
-
 
132545
      }
-
 
132546
    }
-
 
132547
 
-
 
132548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
132549
      try {
-
 
132550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
132551
      } catch (org.apache.thrift.TException te) {
-
 
132552
        throw new java.io.IOException(te);
-
 
132553
      }
-
 
132554
    }
-
 
132555
 
-
 
132556
  }
-
 
132557
 
-
 
132558
  public static class addHsItem_args implements org.apache.thrift.TBase<addHsItem_args, addHsItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
132559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addHsItem_args");
-
 
132560
 
-
 
132561
    private static final org.apache.thrift.protocol.TField HS_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
132562
 
-
 
132563
    private List<HsItem> hsItems; // required
-
 
132564
 
-
 
132565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
132566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
132567
      HS_ITEMS((short)1, "hsItems");
-
 
132568
 
-
 
132569
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
132570
 
-
 
132571
      static {
-
 
132572
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
132573
          byName.put(field.getFieldName(), field);
-
 
132574
        }
-
 
132575
      }
-
 
132576
 
-
 
132577
      /**
-
 
132578
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
132579
       */
-
 
132580
      public static _Fields findByThriftId(int fieldId) {
-
 
132581
        switch(fieldId) {
-
 
132582
          case 1: // HS_ITEMS
-
 
132583
            return HS_ITEMS;
-
 
132584
          default:
-
 
132585
            return null;
-
 
132586
        }
-
 
132587
      }
-
 
132588
 
-
 
132589
      /**
-
 
132590
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
132591
       * if it is not found.
-
 
132592
       */
-
 
132593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
132594
        _Fields fields = findByThriftId(fieldId);
-
 
132595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
132596
        return fields;
-
 
132597
      }
-
 
132598
 
-
 
132599
      /**
-
 
132600
       * Find the _Fields constant that matches name, or null if its not found.
-
 
132601
       */
-
 
132602
      public static _Fields findByName(String name) {
-
 
132603
        return byName.get(name);
-
 
132604
      }
-
 
132605
 
-
 
132606
      private final short _thriftId;
-
 
132607
      private final String _fieldName;
-
 
132608
 
-
 
132609
      _Fields(short thriftId, String fieldName) {
-
 
132610
        _thriftId = thriftId;
-
 
132611
        _fieldName = fieldName;
-
 
132612
      }
-
 
132613
 
-
 
132614
      public short getThriftFieldId() {
-
 
132615
        return _thriftId;
-
 
132616
      }
-
 
132617
 
-
 
132618
      public String getFieldName() {
-
 
132619
        return _fieldName;
-
 
132620
      }
-
 
132621
    }
-
 
132622
 
-
 
132623
    // isset id assignments
-
 
132624
 
-
 
132625
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
132626
    static {
-
 
132627
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
132628
      tmpMap.put(_Fields.HS_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("hsItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
132629
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
132630
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class))));
-
 
132631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
132632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addHsItem_args.class, metaDataMap);
-
 
132633
    }
-
 
132634
 
-
 
132635
    public addHsItem_args() {
-
 
132636
    }
-
 
132637
 
-
 
132638
    public addHsItem_args(
-
 
132639
      List<HsItem> hsItems)
-
 
132640
    {
-
 
132641
      this();
-
 
132642
      this.hsItems = hsItems;
-
 
132643
    }
-
 
132644
 
-
 
132645
    /**
-
 
132646
     * Performs a deep copy on <i>other</i>.
-
 
132647
     */
-
 
132648
    public addHsItem_args(addHsItem_args other) {
-
 
132649
      if (other.isSetHsItems()) {
-
 
132650
        List<HsItem> __this__hsItems = new ArrayList<HsItem>();
-
 
132651
        for (HsItem other_element : other.hsItems) {
-
 
132652
          __this__hsItems.add(new HsItem(other_element));
-
 
132653
        }
-
 
132654
        this.hsItems = __this__hsItems;
-
 
132655
      }
-
 
132656
    }
-
 
132657
 
-
 
132658
    public addHsItem_args deepCopy() {
-
 
132659
      return new addHsItem_args(this);
-
 
132660
    }
-
 
132661
 
-
 
132662
    @Override
-
 
132663
    public void clear() {
-
 
132664
      this.hsItems = null;
-
 
132665
    }
-
 
132666
 
-
 
132667
    public int getHsItemsSize() {
-
 
132668
      return (this.hsItems == null) ? 0 : this.hsItems.size();
-
 
132669
    }
-
 
132670
 
-
 
132671
    public java.util.Iterator<HsItem> getHsItemsIterator() {
-
 
132672
      return (this.hsItems == null) ? null : this.hsItems.iterator();
-
 
132673
    }
-
 
132674
 
-
 
132675
    public void addToHsItems(HsItem elem) {
-
 
132676
      if (this.hsItems == null) {
-
 
132677
        this.hsItems = new ArrayList<HsItem>();
-
 
132678
      }
-
 
132679
      this.hsItems.add(elem);
-
 
132680
    }
-
 
132681
 
-
 
132682
    public List<HsItem> getHsItems() {
-
 
132683
      return this.hsItems;
-
 
132684
    }
-
 
132685
 
-
 
132686
    public void setHsItems(List<HsItem> hsItems) {
-
 
132687
      this.hsItems = hsItems;
-
 
132688
    }
-
 
132689
 
-
 
132690
    public void unsetHsItems() {
-
 
132691
      this.hsItems = null;
-
 
132692
    }
-
 
132693
 
-
 
132694
    /** Returns true if field hsItems is set (has been assigned a value) and false otherwise */
-
 
132695
    public boolean isSetHsItems() {
-
 
132696
      return this.hsItems != null;
-
 
132697
    }
-
 
132698
 
-
 
132699
    public void setHsItemsIsSet(boolean value) {
-
 
132700
      if (!value) {
-
 
132701
        this.hsItems = null;
-
 
132702
      }
-
 
132703
    }
-
 
132704
 
-
 
132705
    public void setFieldValue(_Fields field, Object value) {
-
 
132706
      switch (field) {
-
 
132707
      case HS_ITEMS:
-
 
132708
        if (value == null) {
-
 
132709
          unsetHsItems();
-
 
132710
        } else {
-
 
132711
          setHsItems((List<HsItem>)value);
-
 
132712
        }
-
 
132713
        break;
-
 
132714
 
-
 
132715
      }
-
 
132716
    }
-
 
132717
 
-
 
132718
    public Object getFieldValue(_Fields field) {
-
 
132719
      switch (field) {
-
 
132720
      case HS_ITEMS:
-
 
132721
        return getHsItems();
-
 
132722
 
-
 
132723
      }
-
 
132724
      throw new IllegalStateException();
-
 
132725
    }
-
 
132726
 
-
 
132727
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
132728
    public boolean isSet(_Fields field) {
-
 
132729
      if (field == null) {
-
 
132730
        throw new IllegalArgumentException();
-
 
132731
      }
-
 
132732
 
-
 
132733
      switch (field) {
-
 
132734
      case HS_ITEMS:
-
 
132735
        return isSetHsItems();
-
 
132736
      }
-
 
132737
      throw new IllegalStateException();
-
 
132738
    }
-
 
132739
 
-
 
132740
    @Override
-
 
132741
    public boolean equals(Object that) {
-
 
132742
      if (that == null)
-
 
132743
        return false;
-
 
132744
      if (that instanceof addHsItem_args)
-
 
132745
        return this.equals((addHsItem_args)that);
-
 
132746
      return false;
-
 
132747
    }
-
 
132748
 
-
 
132749
    public boolean equals(addHsItem_args that) {
-
 
132750
      if (that == null)
-
 
132751
        return false;
-
 
132752
 
-
 
132753
      boolean this_present_hsItems = true && this.isSetHsItems();
-
 
132754
      boolean that_present_hsItems = true && that.isSetHsItems();
-
 
132755
      if (this_present_hsItems || that_present_hsItems) {
-
 
132756
        if (!(this_present_hsItems && that_present_hsItems))
-
 
132757
          return false;
-
 
132758
        if (!this.hsItems.equals(that.hsItems))
-
 
132759
          return false;
-
 
132760
      }
-
 
132761
 
-
 
132762
      return true;
-
 
132763
    }
-
 
132764
 
-
 
132765
    @Override
-
 
132766
    public int hashCode() {
-
 
132767
      return 0;
-
 
132768
    }
-
 
132769
 
-
 
132770
    public int compareTo(addHsItem_args other) {
-
 
132771
      if (!getClass().equals(other.getClass())) {
-
 
132772
        return getClass().getName().compareTo(other.getClass().getName());
-
 
132773
      }
-
 
132774
 
-
 
132775
      int lastComparison = 0;
-
 
132776
      addHsItem_args typedOther = (addHsItem_args)other;
-
 
132777
 
-
 
132778
      lastComparison = Boolean.valueOf(isSetHsItems()).compareTo(typedOther.isSetHsItems());
-
 
132779
      if (lastComparison != 0) {
-
 
132780
        return lastComparison;
-
 
132781
      }
-
 
132782
      if (isSetHsItems()) {
-
 
132783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItems, typedOther.hsItems);
-
 
132784
        if (lastComparison != 0) {
-
 
132785
          return lastComparison;
-
 
132786
        }
-
 
132787
      }
-
 
132788
      return 0;
-
 
132789
    }
-
 
132790
 
-
 
132791
    public _Fields fieldForId(int fieldId) {
-
 
132792
      return _Fields.findByThriftId(fieldId);
-
 
132793
    }
-
 
132794
 
-
 
132795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
132796
      org.apache.thrift.protocol.TField field;
-
 
132797
      iprot.readStructBegin();
-
 
132798
      while (true)
-
 
132799
      {
-
 
132800
        field = iprot.readFieldBegin();
-
 
132801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
132802
          break;
-
 
132803
        }
-
 
132804
        switch (field.id) {
-
 
132805
          case 1: // HS_ITEMS
-
 
132806
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
132807
              {
-
 
132808
                org.apache.thrift.protocol.TList _list480 = iprot.readListBegin();
-
 
132809
                this.hsItems = new ArrayList<HsItem>(_list480.size);
-
 
132810
                for (int _i481 = 0; _i481 < _list480.size; ++_i481)
-
 
132811
                {
-
 
132812
                  HsItem _elem482; // required
-
 
132813
                  _elem482 = new HsItem();
-
 
132814
                  _elem482.read(iprot);
-
 
132815
                  this.hsItems.add(_elem482);
-
 
132816
                }
-
 
132817
                iprot.readListEnd();
-
 
132818
              }
-
 
132819
            } else { 
-
 
132820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132821
            }
-
 
132822
            break;
-
 
132823
          default:
-
 
132824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132825
        }
-
 
132826
        iprot.readFieldEnd();
-
 
132827
      }
-
 
132828
      iprot.readStructEnd();
-
 
132829
      validate();
-
 
132830
    }
-
 
132831
 
-
 
132832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
132833
      validate();
-
 
132834
 
-
 
132835
      oprot.writeStructBegin(STRUCT_DESC);
-
 
132836
      if (this.hsItems != null) {
-
 
132837
        oprot.writeFieldBegin(HS_ITEMS_FIELD_DESC);
-
 
132838
        {
-
 
132839
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.hsItems.size()));
-
 
132840
          for (HsItem _iter483 : this.hsItems)
-
 
132841
          {
-
 
132842
            _iter483.write(oprot);
-
 
132843
          }
-
 
132844
          oprot.writeListEnd();
-
 
132845
        }
-
 
132846
        oprot.writeFieldEnd();
-
 
132847
      }
-
 
132848
      oprot.writeFieldStop();
-
 
132849
      oprot.writeStructEnd();
-
 
132850
    }
-
 
132851
 
-
 
132852
    @Override
-
 
132853
    public String toString() {
-
 
132854
      StringBuilder sb = new StringBuilder("addHsItem_args(");
-
 
132855
      boolean first = true;
-
 
132856
 
-
 
132857
      sb.append("hsItems:");
-
 
132858
      if (this.hsItems == null) {
-
 
132859
        sb.append("null");
-
 
132860
      } else {
-
 
132861
        sb.append(this.hsItems);
-
 
132862
      }
-
 
132863
      first = false;
-
 
132864
      sb.append(")");
-
 
132865
      return sb.toString();
-
 
132866
    }
-
 
132867
 
-
 
132868
    public void validate() throws org.apache.thrift.TException {
-
 
132869
      // check for required fields
-
 
132870
    }
-
 
132871
 
-
 
132872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
132873
      try {
-
 
132874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
132875
      } catch (org.apache.thrift.TException te) {
-
 
132876
        throw new java.io.IOException(te);
-
 
132877
      }
-
 
132878
    }
-
 
132879
 
-
 
132880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
132881
      try {
-
 
132882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
132883
      } catch (org.apache.thrift.TException te) {
-
 
132884
        throw new java.io.IOException(te);
-
 
132885
      }
-
 
132886
    }
-
 
132887
 
-
 
132888
  }
-
 
132889
 
-
 
132890
  public static class addHsItem_result implements org.apache.thrift.TBase<addHsItem_result, addHsItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
132891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addHsItem_result");
-
 
132892
 
-
 
132893
 
-
 
132894
 
-
 
132895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
132896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
132897
;
-
 
132898
 
-
 
132899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
132900
 
-
 
132901
      static {
-
 
132902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
132903
          byName.put(field.getFieldName(), field);
-
 
132904
        }
-
 
132905
      }
-
 
132906
 
-
 
132907
      /**
-
 
132908
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
132909
       */
-
 
132910
      public static _Fields findByThriftId(int fieldId) {
-
 
132911
        switch(fieldId) {
-
 
132912
          default:
-
 
132913
            return null;
-
 
132914
        }
-
 
132915
      }
-
 
132916
 
-
 
132917
      /**
-
 
132918
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
132919
       * if it is not found.
-
 
132920
       */
-
 
132921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
132922
        _Fields fields = findByThriftId(fieldId);
-
 
132923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
132924
        return fields;
-
 
132925
      }
-
 
132926
 
-
 
132927
      /**
-
 
132928
       * Find the _Fields constant that matches name, or null if its not found.
-
 
132929
       */
-
 
132930
      public static _Fields findByName(String name) {
-
 
132931
        return byName.get(name);
-
 
132932
      }
-
 
132933
 
-
 
132934
      private final short _thriftId;
-
 
132935
      private final String _fieldName;
-
 
132936
 
-
 
132937
      _Fields(short thriftId, String fieldName) {
-
 
132938
        _thriftId = thriftId;
-
 
132939
        _fieldName = fieldName;
-
 
132940
      }
-
 
132941
 
-
 
132942
      public short getThriftFieldId() {
-
 
132943
        return _thriftId;
-
 
132944
      }
-
 
132945
 
-
 
132946
      public String getFieldName() {
-
 
132947
        return _fieldName;
-
 
132948
      }
-
 
132949
    }
-
 
132950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
132951
    static {
-
 
132952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
132953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
132954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addHsItem_result.class, metaDataMap);
-
 
132955
    }
-
 
132956
 
-
 
132957
    public addHsItem_result() {
-
 
132958
    }
-
 
132959
 
-
 
132960
    /**
-
 
132961
     * Performs a deep copy on <i>other</i>.
-
 
132962
     */
-
 
132963
    public addHsItem_result(addHsItem_result other) {
-
 
132964
    }
-
 
132965
 
-
 
132966
    public addHsItem_result deepCopy() {
-
 
132967
      return new addHsItem_result(this);
-
 
132968
    }
-
 
132969
 
-
 
132970
    @Override
-
 
132971
    public void clear() {
-
 
132972
    }
-
 
132973
 
-
 
132974
    public void setFieldValue(_Fields field, Object value) {
-
 
132975
      switch (field) {
-
 
132976
      }
-
 
132977
    }
-
 
132978
 
-
 
132979
    public Object getFieldValue(_Fields field) {
-
 
132980
      switch (field) {
-
 
132981
      }
-
 
132982
      throw new IllegalStateException();
-
 
132983
    }
-
 
132984
 
-
 
132985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
132986
    public boolean isSet(_Fields field) {
-
 
132987
      if (field == null) {
-
 
132988
        throw new IllegalArgumentException();
-
 
132989
      }
-
 
132990
 
-
 
132991
      switch (field) {
-
 
132992
      }
-
 
132993
      throw new IllegalStateException();
-
 
132994
    }
-
 
132995
 
-
 
132996
    @Override
-
 
132997
    public boolean equals(Object that) {
-
 
132998
      if (that == null)
-
 
132999
        return false;
-
 
133000
      if (that instanceof addHsItem_result)
-
 
133001
        return this.equals((addHsItem_result)that);
-
 
133002
      return false;
-
 
133003
    }
-
 
133004
 
-
 
133005
    public boolean equals(addHsItem_result that) {
-
 
133006
      if (that == null)
-
 
133007
        return false;
-
 
133008
 
-
 
133009
      return true;
-
 
133010
    }
-
 
133011
 
-
 
133012
    @Override
-
 
133013
    public int hashCode() {
-
 
133014
      return 0;
-
 
133015
    }
-
 
133016
 
-
 
133017
    public int compareTo(addHsItem_result other) {
-
 
133018
      if (!getClass().equals(other.getClass())) {
-
 
133019
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133020
      }
-
 
133021
 
-
 
133022
      int lastComparison = 0;
-
 
133023
      addHsItem_result typedOther = (addHsItem_result)other;
-
 
133024
 
-
 
133025
      return 0;
-
 
133026
    }
-
 
133027
 
-
 
133028
    public _Fields fieldForId(int fieldId) {
-
 
133029
      return _Fields.findByThriftId(fieldId);
-
 
133030
    }
-
 
133031
 
-
 
133032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133033
      org.apache.thrift.protocol.TField field;
-
 
133034
      iprot.readStructBegin();
-
 
133035
      while (true)
-
 
133036
      {
-
 
133037
        field = iprot.readFieldBegin();
-
 
133038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133039
          break;
-
 
133040
        }
-
 
133041
        switch (field.id) {
-
 
133042
          default:
-
 
133043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133044
        }
-
 
133045
        iprot.readFieldEnd();
-
 
133046
      }
-
 
133047
      iprot.readStructEnd();
-
 
133048
      validate();
-
 
133049
    }
-
 
133050
 
-
 
133051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
133052
      oprot.writeStructBegin(STRUCT_DESC);
-
 
133053
 
-
 
133054
      oprot.writeFieldStop();
-
 
133055
      oprot.writeStructEnd();
-
 
133056
    }
-
 
133057
 
-
 
133058
    @Override
-
 
133059
    public String toString() {
-
 
133060
      StringBuilder sb = new StringBuilder("addHsItem_result(");
-
 
133061
      boolean first = true;
-
 
133062
 
-
 
133063
      sb.append(")");
-
 
133064
      return sb.toString();
-
 
133065
    }
-
 
133066
 
-
 
133067
    public void validate() throws org.apache.thrift.TException {
-
 
133068
      // check for required fields
-
 
133069
    }
-
 
133070
 
-
 
133071
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133072
      try {
-
 
133073
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133074
      } catch (org.apache.thrift.TException te) {
-
 
133075
        throw new java.io.IOException(te);
-
 
133076
      }
-
 
133077
    }
-
 
133078
 
-
 
133079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133080
      try {
-
 
133081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133082
      } catch (org.apache.thrift.TException te) {
-
 
133083
        throw new java.io.IOException(te);
-
 
133084
      }
-
 
133085
    }
-
 
133086
 
-
 
133087
  }
-
 
133088
 
-
 
133089
  public static class getHsItem_args implements org.apache.thrift.TBase<getHsItem_args, getHsItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
133090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsItem_args");
-
 
133091
 
-
 
133092
    private static final org.apache.thrift.protocol.TField HS_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItemId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
133093
 
-
 
133094
    private String hsItemId; // required
-
 
133095
 
-
 
133096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133098
      HS_ITEM_ID((short)1, "hsItemId");
-
 
133099
 
-
 
133100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133101
 
-
 
133102
      static {
-
 
133103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133104
          byName.put(field.getFieldName(), field);
-
 
133105
        }
-
 
133106
      }
-
 
133107
 
-
 
133108
      /**
-
 
133109
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133110
       */
-
 
133111
      public static _Fields findByThriftId(int fieldId) {
-
 
133112
        switch(fieldId) {
-
 
133113
          case 1: // HS_ITEM_ID
-
 
133114
            return HS_ITEM_ID;
-
 
133115
          default:
-
 
133116
            return null;
-
 
133117
        }
-
 
133118
      }
-
 
133119
 
-
 
133120
      /**
-
 
133121
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133122
       * if it is not found.
-
 
133123
       */
-
 
133124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133125
        _Fields fields = findByThriftId(fieldId);
-
 
133126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133127
        return fields;
-
 
133128
      }
-
 
133129
 
-
 
133130
      /**
-
 
133131
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133132
       */
-
 
133133
      public static _Fields findByName(String name) {
-
 
133134
        return byName.get(name);
-
 
133135
      }
-
 
133136
 
-
 
133137
      private final short _thriftId;
-
 
133138
      private final String _fieldName;
-
 
133139
 
-
 
133140
      _Fields(short thriftId, String fieldName) {
-
 
133141
        _thriftId = thriftId;
-
 
133142
        _fieldName = fieldName;
-
 
133143
      }
-
 
133144
 
-
 
133145
      public short getThriftFieldId() {
-
 
133146
        return _thriftId;
-
 
133147
      }
-
 
133148
 
-
 
133149
      public String getFieldName() {
-
 
133150
        return _fieldName;
-
 
133151
      }
-
 
133152
    }
-
 
133153
 
-
 
133154
    // isset id assignments
-
 
133155
 
-
 
133156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133157
    static {
-
 
133158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133159
      tmpMap.put(_Fields.HS_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("hsItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
133161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsItem_args.class, metaDataMap);
-
 
133163
    }
-
 
133164
 
-
 
133165
    public getHsItem_args() {
-
 
133166
    }
-
 
133167
 
-
 
133168
    public getHsItem_args(
-
 
133169
      String hsItemId)
-
 
133170
    {
-
 
133171
      this();
-
 
133172
      this.hsItemId = hsItemId;
-
 
133173
    }
-
 
133174
 
-
 
133175
    /**
-
 
133176
     * Performs a deep copy on <i>other</i>.
-
 
133177
     */
-
 
133178
    public getHsItem_args(getHsItem_args other) {
-
 
133179
      if (other.isSetHsItemId()) {
-
 
133180
        this.hsItemId = other.hsItemId;
-
 
133181
      }
-
 
133182
    }
-
 
133183
 
-
 
133184
    public getHsItem_args deepCopy() {
-
 
133185
      return new getHsItem_args(this);
-
 
133186
    }
-
 
133187
 
-
 
133188
    @Override
-
 
133189
    public void clear() {
-
 
133190
      this.hsItemId = null;
-
 
133191
    }
-
 
133192
 
-
 
133193
    public String getHsItemId() {
-
 
133194
      return this.hsItemId;
-
 
133195
    }
-
 
133196
 
-
 
133197
    public void setHsItemId(String hsItemId) {
-
 
133198
      this.hsItemId = hsItemId;
-
 
133199
    }
-
 
133200
 
-
 
133201
    public void unsetHsItemId() {
-
 
133202
      this.hsItemId = null;
-
 
133203
    }
-
 
133204
 
-
 
133205
    /** Returns true if field hsItemId is set (has been assigned a value) and false otherwise */
-
 
133206
    public boolean isSetHsItemId() {
-
 
133207
      return this.hsItemId != null;
-
 
133208
    }
-
 
133209
 
-
 
133210
    public void setHsItemIdIsSet(boolean value) {
-
 
133211
      if (!value) {
-
 
133212
        this.hsItemId = null;
-
 
133213
      }
-
 
133214
    }
-
 
133215
 
-
 
133216
    public void setFieldValue(_Fields field, Object value) {
-
 
133217
      switch (field) {
-
 
133218
      case HS_ITEM_ID:
-
 
133219
        if (value == null) {
-
 
133220
          unsetHsItemId();
-
 
133221
        } else {
-
 
133222
          setHsItemId((String)value);
-
 
133223
        }
-
 
133224
        break;
-
 
133225
 
-
 
133226
      }
-
 
133227
    }
-
 
133228
 
-
 
133229
    public Object getFieldValue(_Fields field) {
-
 
133230
      switch (field) {
-
 
133231
      case HS_ITEM_ID:
-
 
133232
        return getHsItemId();
-
 
133233
 
-
 
133234
      }
-
 
133235
      throw new IllegalStateException();
-
 
133236
    }
-
 
133237
 
-
 
133238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133239
    public boolean isSet(_Fields field) {
-
 
133240
      if (field == null) {
-
 
133241
        throw new IllegalArgumentException();
-
 
133242
      }
-
 
133243
 
-
 
133244
      switch (field) {
-
 
133245
      case HS_ITEM_ID:
-
 
133246
        return isSetHsItemId();
-
 
133247
      }
-
 
133248
      throw new IllegalStateException();
-
 
133249
    }
-
 
133250
 
-
 
133251
    @Override
-
 
133252
    public boolean equals(Object that) {
-
 
133253
      if (that == null)
-
 
133254
        return false;
-
 
133255
      if (that instanceof getHsItem_args)
-
 
133256
        return this.equals((getHsItem_args)that);
-
 
133257
      return false;
-
 
133258
    }
-
 
133259
 
-
 
133260
    public boolean equals(getHsItem_args that) {
-
 
133261
      if (that == null)
-
 
133262
        return false;
-
 
133263
 
-
 
133264
      boolean this_present_hsItemId = true && this.isSetHsItemId();
-
 
133265
      boolean that_present_hsItemId = true && that.isSetHsItemId();
-
 
133266
      if (this_present_hsItemId || that_present_hsItemId) {
-
 
133267
        if (!(this_present_hsItemId && that_present_hsItemId))
-
 
133268
          return false;
-
 
133269
        if (!this.hsItemId.equals(that.hsItemId))
-
 
133270
          return false;
-
 
133271
      }
-
 
133272
 
-
 
133273
      return true;
-
 
133274
    }
-
 
133275
 
-
 
133276
    @Override
-
 
133277
    public int hashCode() {
-
 
133278
      return 0;
-
 
133279
    }
-
 
133280
 
-
 
133281
    public int compareTo(getHsItem_args other) {
-
 
133282
      if (!getClass().equals(other.getClass())) {
-
 
133283
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133284
      }
-
 
133285
 
-
 
133286
      int lastComparison = 0;
-
 
133287
      getHsItem_args typedOther = (getHsItem_args)other;
-
 
133288
 
-
 
133289
      lastComparison = Boolean.valueOf(isSetHsItemId()).compareTo(typedOther.isSetHsItemId());
-
 
133290
      if (lastComparison != 0) {
-
 
133291
        return lastComparison;
-
 
133292
      }
-
 
133293
      if (isSetHsItemId()) {
-
 
133294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItemId, typedOther.hsItemId);
-
 
133295
        if (lastComparison != 0) {
-
 
133296
          return lastComparison;
-
 
133297
        }
-
 
133298
      }
-
 
133299
      return 0;
-
 
133300
    }
-
 
133301
 
-
 
133302
    public _Fields fieldForId(int fieldId) {
-
 
133303
      return _Fields.findByThriftId(fieldId);
-
 
133304
    }
-
 
133305
 
-
 
133306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133307
      org.apache.thrift.protocol.TField field;
-
 
133308
      iprot.readStructBegin();
-
 
133309
      while (true)
-
 
133310
      {
-
 
133311
        field = iprot.readFieldBegin();
-
 
133312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133313
          break;
-
 
133314
        }
-
 
133315
        switch (field.id) {
-
 
133316
          case 1: // HS_ITEM_ID
-
 
133317
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
133318
              this.hsItemId = iprot.readString();
-
 
133319
            } else { 
-
 
133320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133321
            }
-
 
133322
            break;
-
 
133323
          default:
-
 
133324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133325
        }
-
 
133326
        iprot.readFieldEnd();
-
 
133327
      }
-
 
133328
      iprot.readStructEnd();
-
 
133329
      validate();
-
 
133330
    }
-
 
133331
 
-
 
133332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
133333
      validate();
-
 
133334
 
-
 
133335
      oprot.writeStructBegin(STRUCT_DESC);
-
 
133336
      if (this.hsItemId != null) {
-
 
133337
        oprot.writeFieldBegin(HS_ITEM_ID_FIELD_DESC);
-
 
133338
        oprot.writeString(this.hsItemId);
-
 
133339
        oprot.writeFieldEnd();
-
 
133340
      }
-
 
133341
      oprot.writeFieldStop();
-
 
133342
      oprot.writeStructEnd();
-
 
133343
    }
-
 
133344
 
-
 
133345
    @Override
-
 
133346
    public String toString() {
-
 
133347
      StringBuilder sb = new StringBuilder("getHsItem_args(");
-
 
133348
      boolean first = true;
-
 
133349
 
-
 
133350
      sb.append("hsItemId:");
-
 
133351
      if (this.hsItemId == null) {
-
 
133352
        sb.append("null");
-
 
133353
      } else {
-
 
133354
        sb.append(this.hsItemId);
-
 
133355
      }
-
 
133356
      first = false;
-
 
133357
      sb.append(")");
-
 
133358
      return sb.toString();
-
 
133359
    }
-
 
133360
 
-
 
133361
    public void validate() throws org.apache.thrift.TException {
-
 
133362
      // check for required fields
-
 
133363
    }
-
 
133364
 
-
 
133365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133366
      try {
-
 
133367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133368
      } catch (org.apache.thrift.TException te) {
-
 
133369
        throw new java.io.IOException(te);
-
 
133370
      }
-
 
133371
    }
-
 
133372
 
-
 
133373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133374
      try {
-
 
133375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133376
      } catch (org.apache.thrift.TException te) {
-
 
133377
        throw new java.io.IOException(te);
-
 
133378
      }
-
 
133379
    }
-
 
133380
 
-
 
133381
  }
-
 
133382
 
-
 
133383
  public static class getHsItem_result implements org.apache.thrift.TBase<getHsItem_result, getHsItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
133384
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsItem_result");
-
 
133385
 
-
 
133386
    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);
-
 
133387
 
-
 
133388
    private HsItem success; // required
-
 
133389
 
-
 
133390
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133391
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133392
      SUCCESS((short)0, "success");
-
 
133393
 
-
 
133394
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133395
 
-
 
133396
      static {
-
 
133397
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133398
          byName.put(field.getFieldName(), field);
-
 
133399
        }
-
 
133400
      }
-
 
133401
 
-
 
133402
      /**
-
 
133403
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133404
       */
-
 
133405
      public static _Fields findByThriftId(int fieldId) {
-
 
133406
        switch(fieldId) {
-
 
133407
          case 0: // SUCCESS
-
 
133408
            return SUCCESS;
-
 
133409
          default:
-
 
133410
            return null;
-
 
133411
        }
-
 
133412
      }
-
 
133413
 
-
 
133414
      /**
-
 
133415
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133416
       * if it is not found.
-
 
133417
       */
-
 
133418
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133419
        _Fields fields = findByThriftId(fieldId);
-
 
133420
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133421
        return fields;
-
 
133422
      }
-
 
133423
 
-
 
133424
      /**
-
 
133425
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133426
       */
-
 
133427
      public static _Fields findByName(String name) {
-
 
133428
        return byName.get(name);
-
 
133429
      }
-
 
133430
 
-
 
133431
      private final short _thriftId;
-
 
133432
      private final String _fieldName;
-
 
133433
 
-
 
133434
      _Fields(short thriftId, String fieldName) {
-
 
133435
        _thriftId = thriftId;
-
 
133436
        _fieldName = fieldName;
-
 
133437
      }
-
 
133438
 
-
 
133439
      public short getThriftFieldId() {
-
 
133440
        return _thriftId;
-
 
133441
      }
-
 
133442
 
-
 
133443
      public String getFieldName() {
-
 
133444
        return _fieldName;
-
 
133445
      }
-
 
133446
    }
-
 
133447
 
-
 
133448
    // isset id assignments
-
 
133449
 
-
 
133450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133451
    static {
-
 
133452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133453
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133454
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class)));
-
 
133455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsItem_result.class, metaDataMap);
-
 
133457
    }
-
 
133458
 
-
 
133459
    public getHsItem_result() {
-
 
133460
    }
-
 
133461
 
-
 
133462
    public getHsItem_result(
-
 
133463
      HsItem success)
-
 
133464
    {
-
 
133465
      this();
-
 
133466
      this.success = success;
-
 
133467
    }
-
 
133468
 
-
 
133469
    /**
-
 
133470
     * Performs a deep copy on <i>other</i>.
-
 
133471
     */
-
 
133472
    public getHsItem_result(getHsItem_result other) {
-
 
133473
      if (other.isSetSuccess()) {
-
 
133474
        this.success = new HsItem(other.success);
-
 
133475
      }
-
 
133476
    }
-
 
133477
 
-
 
133478
    public getHsItem_result deepCopy() {
-
 
133479
      return new getHsItem_result(this);
-
 
133480
    }
-
 
133481
 
-
 
133482
    @Override
-
 
133483
    public void clear() {
-
 
133484
      this.success = null;
-
 
133485
    }
-
 
133486
 
-
 
133487
    public HsItem getSuccess() {
-
 
133488
      return this.success;
-
 
133489
    }
-
 
133490
 
-
 
133491
    public void setSuccess(HsItem success) {
-
 
133492
      this.success = success;
-
 
133493
    }
-
 
133494
 
-
 
133495
    public void unsetSuccess() {
-
 
133496
      this.success = null;
-
 
133497
    }
-
 
133498
 
-
 
133499
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
133500
    public boolean isSetSuccess() {
-
 
133501
      return this.success != null;
-
 
133502
    }
-
 
133503
 
-
 
133504
    public void setSuccessIsSet(boolean value) {
-
 
133505
      if (!value) {
-
 
133506
        this.success = null;
-
 
133507
      }
-
 
133508
    }
-
 
133509
 
-
 
133510
    public void setFieldValue(_Fields field, Object value) {
-
 
133511
      switch (field) {
-
 
133512
      case SUCCESS:
-
 
133513
        if (value == null) {
-
 
133514
          unsetSuccess();
-
 
133515
        } else {
-
 
133516
          setSuccess((HsItem)value);
-
 
133517
        }
-
 
133518
        break;
-
 
133519
 
-
 
133520
      }
-
 
133521
    }
-
 
133522
 
-
 
133523
    public Object getFieldValue(_Fields field) {
-
 
133524
      switch (field) {
-
 
133525
      case SUCCESS:
-
 
133526
        return getSuccess();
-
 
133527
 
-
 
133528
      }
-
 
133529
      throw new IllegalStateException();
-
 
133530
    }
-
 
133531
 
-
 
133532
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133533
    public boolean isSet(_Fields field) {
-
 
133534
      if (field == null) {
-
 
133535
        throw new IllegalArgumentException();
-
 
133536
      }
-
 
133537
 
-
 
133538
      switch (field) {
-
 
133539
      case SUCCESS:
-
 
133540
        return isSetSuccess();
-
 
133541
      }
-
 
133542
      throw new IllegalStateException();
-
 
133543
    }
-
 
133544
 
-
 
133545
    @Override
-
 
133546
    public boolean equals(Object that) {
-
 
133547
      if (that == null)
-
 
133548
        return false;
-
 
133549
      if (that instanceof getHsItem_result)
-
 
133550
        return this.equals((getHsItem_result)that);
-
 
133551
      return false;
-
 
133552
    }
-
 
133553
 
-
 
133554
    public boolean equals(getHsItem_result that) {
-
 
133555
      if (that == null)
-
 
133556
        return false;
-
 
133557
 
-
 
133558
      boolean this_present_success = true && this.isSetSuccess();
-
 
133559
      boolean that_present_success = true && that.isSetSuccess();
-
 
133560
      if (this_present_success || that_present_success) {
-
 
133561
        if (!(this_present_success && that_present_success))
-
 
133562
          return false;
-
 
133563
        if (!this.success.equals(that.success))
-
 
133564
          return false;
-
 
133565
      }
-
 
133566
 
-
 
133567
      return true;
-
 
133568
    }
-
 
133569
 
-
 
133570
    @Override
-
 
133571
    public int hashCode() {
-
 
133572
      return 0;
-
 
133573
    }
-
 
133574
 
-
 
133575
    public int compareTo(getHsItem_result other) {
-
 
133576
      if (!getClass().equals(other.getClass())) {
-
 
133577
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133578
      }
-
 
133579
 
-
 
133580
      int lastComparison = 0;
-
 
133581
      getHsItem_result typedOther = (getHsItem_result)other;
-
 
133582
 
-
 
133583
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
133584
      if (lastComparison != 0) {
-
 
133585
        return lastComparison;
-
 
133586
      }
-
 
133587
      if (isSetSuccess()) {
-
 
133588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
133589
        if (lastComparison != 0) {
-
 
133590
          return lastComparison;
-
 
133591
        }
-
 
133592
      }
-
 
133593
      return 0;
-
 
133594
    }
-
 
133595
 
-
 
133596
    public _Fields fieldForId(int fieldId) {
-
 
133597
      return _Fields.findByThriftId(fieldId);
-
 
133598
    }
-
 
133599
 
-
 
133600
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133601
      org.apache.thrift.protocol.TField field;
-
 
133602
      iprot.readStructBegin();
-
 
133603
      while (true)
-
 
133604
      {
-
 
133605
        field = iprot.readFieldBegin();
-
 
133606
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133607
          break;
-
 
133608
        }
-
 
133609
        switch (field.id) {
-
 
133610
          case 0: // SUCCESS
-
 
133611
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
133612
              this.success = new HsItem();
-
 
133613
              this.success.read(iprot);
-
 
133614
            } else { 
-
 
133615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133616
            }
-
 
133617
            break;
-
 
133618
          default:
-
 
133619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133620
        }
-
 
133621
        iprot.readFieldEnd();
-
 
133622
      }
-
 
133623
      iprot.readStructEnd();
-
 
133624
      validate();
-
 
133625
    }
-
 
133626
 
-
 
133627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
133628
      oprot.writeStructBegin(STRUCT_DESC);
-
 
133629
 
-
 
133630
      if (this.isSetSuccess()) {
-
 
133631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
133632
        this.success.write(oprot);
-
 
133633
        oprot.writeFieldEnd();
-
 
133634
      }
-
 
133635
      oprot.writeFieldStop();
-
 
133636
      oprot.writeStructEnd();
-
 
133637
    }
-
 
133638
 
-
 
133639
    @Override
-
 
133640
    public String toString() {
-
 
133641
      StringBuilder sb = new StringBuilder("getHsItem_result(");
-
 
133642
      boolean first = true;
-
 
133643
 
-
 
133644
      sb.append("success:");
-
 
133645
      if (this.success == null) {
-
 
133646
        sb.append("null");
-
 
133647
      } else {
-
 
133648
        sb.append(this.success);
-
 
133649
      }
-
 
133650
      first = false;
-
 
133651
      sb.append(")");
-
 
133652
      return sb.toString();
-
 
133653
    }
-
 
133654
 
-
 
133655
    public void validate() throws org.apache.thrift.TException {
-
 
133656
      // check for required fields
-
 
133657
    }
-
 
133658
 
-
 
133659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133660
      try {
-
 
133661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133662
      } catch (org.apache.thrift.TException te) {
-
 
133663
        throw new java.io.IOException(te);
-
 
133664
      }
-
 
133665
    }
-
 
133666
 
-
 
133667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133668
      try {
-
 
133669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133670
      } catch (org.apache.thrift.TException te) {
-
 
133671
        throw new java.io.IOException(te);
-
 
133672
      }
-
 
133673
    }
-
 
133674
 
-
 
133675
  }
-
 
133676
 
-
 
133677
  public static class updateHsItem_args implements org.apache.thrift.TBase<updateHsItem_args, updateHsItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
133678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHsItem_args");
-
 
133679
 
-
 
133680
    private static final org.apache.thrift.protocol.TField HS_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
133681
 
-
 
133682
    private HsItem hsItem; // required
-
 
133683
 
-
 
133684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133686
      HS_ITEM((short)1, "hsItem");
-
 
133687
 
-
 
133688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133689
 
-
 
133690
      static {
-
 
133691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133692
          byName.put(field.getFieldName(), field);
-
 
133693
        }
-
 
133694
      }
-
 
133695
 
-
 
133696
      /**
-
 
133697
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133698
       */
-
 
133699
      public static _Fields findByThriftId(int fieldId) {
-
 
133700
        switch(fieldId) {
-
 
133701
          case 1: // HS_ITEM
-
 
133702
            return HS_ITEM;
-
 
133703
          default:
-
 
133704
            return null;
-
 
133705
        }
-
 
133706
      }
-
 
133707
 
-
 
133708
      /**
-
 
133709
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133710
       * if it is not found.
-
 
133711
       */
-
 
133712
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133713
        _Fields fields = findByThriftId(fieldId);
-
 
133714
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133715
        return fields;
-
 
133716
      }
-
 
133717
 
-
 
133718
      /**
-
 
133719
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133720
       */
-
 
133721
      public static _Fields findByName(String name) {
-
 
133722
        return byName.get(name);
-
 
133723
      }
-
 
133724
 
-
 
133725
      private final short _thriftId;
-
 
133726
      private final String _fieldName;
-
 
133727
 
-
 
133728
      _Fields(short thriftId, String fieldName) {
-
 
133729
        _thriftId = thriftId;
-
 
133730
        _fieldName = fieldName;
-
 
133731
      }
-
 
133732
 
-
 
133733
      public short getThriftFieldId() {
-
 
133734
        return _thriftId;
-
 
133735
      }
-
 
133736
 
-
 
133737
      public String getFieldName() {
-
 
133738
        return _fieldName;
-
 
133739
      }
-
 
133740
    }
-
 
133741
 
-
 
133742
    // isset id assignments
-
 
133743
 
-
 
133744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133745
    static {
-
 
133746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133747
      tmpMap.put(_Fields.HS_ITEM, new org.apache.thrift.meta_data.FieldMetaData("hsItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133748
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HsItem.class)));
-
 
133749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHsItem_args.class, metaDataMap);
-
 
133751
    }
-
 
133752
 
-
 
133753
    public updateHsItem_args() {
-
 
133754
    }
-
 
133755
 
-
 
133756
    public updateHsItem_args(
-
 
133757
      HsItem hsItem)
-
 
133758
    {
-
 
133759
      this();
-
 
133760
      this.hsItem = hsItem;
-
 
133761
    }
-
 
133762
 
-
 
133763
    /**
-
 
133764
     * Performs a deep copy on <i>other</i>.
-
 
133765
     */
-
 
133766
    public updateHsItem_args(updateHsItem_args other) {
-
 
133767
      if (other.isSetHsItem()) {
-
 
133768
        this.hsItem = new HsItem(other.hsItem);
-
 
133769
      }
-
 
133770
    }
-
 
133771
 
-
 
133772
    public updateHsItem_args deepCopy() {
-
 
133773
      return new updateHsItem_args(this);
-
 
133774
    }
-
 
133775
 
-
 
133776
    @Override
-
 
133777
    public void clear() {
-
 
133778
      this.hsItem = null;
-
 
133779
    }
-
 
133780
 
-
 
133781
    public HsItem getHsItem() {
-
 
133782
      return this.hsItem;
-
 
133783
    }
-
 
133784
 
-
 
133785
    public void setHsItem(HsItem hsItem) {
-
 
133786
      this.hsItem = hsItem;
-
 
133787
    }
-
 
133788
 
-
 
133789
    public void unsetHsItem() {
-
 
133790
      this.hsItem = null;
-
 
133791
    }
-
 
133792
 
-
 
133793
    /** Returns true if field hsItem is set (has been assigned a value) and false otherwise */
-
 
133794
    public boolean isSetHsItem() {
-
 
133795
      return this.hsItem != null;
-
 
133796
    }
-
 
133797
 
-
 
133798
    public void setHsItemIsSet(boolean value) {
-
 
133799
      if (!value) {
-
 
133800
        this.hsItem = null;
-
 
133801
      }
-
 
133802
    }
-
 
133803
 
-
 
133804
    public void setFieldValue(_Fields field, Object value) {
-
 
133805
      switch (field) {
-
 
133806
      case HS_ITEM:
-
 
133807
        if (value == null) {
-
 
133808
          unsetHsItem();
-
 
133809
        } else {
-
 
133810
          setHsItem((HsItem)value);
-
 
133811
        }
-
 
133812
        break;
-
 
133813
 
-
 
133814
      }
-
 
133815
    }
-
 
133816
 
-
 
133817
    public Object getFieldValue(_Fields field) {
-
 
133818
      switch (field) {
-
 
133819
      case HS_ITEM:
-
 
133820
        return getHsItem();
-
 
133821
 
-
 
133822
      }
-
 
133823
      throw new IllegalStateException();
-
 
133824
    }
-
 
133825
 
-
 
133826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133827
    public boolean isSet(_Fields field) {
-
 
133828
      if (field == null) {
-
 
133829
        throw new IllegalArgumentException();
-
 
133830
      }
-
 
133831
 
-
 
133832
      switch (field) {
-
 
133833
      case HS_ITEM:
-
 
133834
        return isSetHsItem();
-
 
133835
      }
-
 
133836
      throw new IllegalStateException();
-
 
133837
    }
-
 
133838
 
-
 
133839
    @Override
-
 
133840
    public boolean equals(Object that) {
-
 
133841
      if (that == null)
-
 
133842
        return false;
-
 
133843
      if (that instanceof updateHsItem_args)
-
 
133844
        return this.equals((updateHsItem_args)that);
-
 
133845
      return false;
-
 
133846
    }
-
 
133847
 
-
 
133848
    public boolean equals(updateHsItem_args that) {
-
 
133849
      if (that == null)
-
 
133850
        return false;
-
 
133851
 
-
 
133852
      boolean this_present_hsItem = true && this.isSetHsItem();
-
 
133853
      boolean that_present_hsItem = true && that.isSetHsItem();
-
 
133854
      if (this_present_hsItem || that_present_hsItem) {
-
 
133855
        if (!(this_present_hsItem && that_present_hsItem))
-
 
133856
          return false;
-
 
133857
        if (!this.hsItem.equals(that.hsItem))
-
 
133858
          return false;
-
 
133859
      }
-
 
133860
 
-
 
133861
      return true;
-
 
133862
    }
-
 
133863
 
-
 
133864
    @Override
-
 
133865
    public int hashCode() {
-
 
133866
      return 0;
-
 
133867
    }
-
 
133868
 
-
 
133869
    public int compareTo(updateHsItem_args other) {
-
 
133870
      if (!getClass().equals(other.getClass())) {
-
 
133871
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133872
      }
-
 
133873
 
-
 
133874
      int lastComparison = 0;
-
 
133875
      updateHsItem_args typedOther = (updateHsItem_args)other;
-
 
133876
 
-
 
133877
      lastComparison = Boolean.valueOf(isSetHsItem()).compareTo(typedOther.isSetHsItem());
-
 
133878
      if (lastComparison != 0) {
-
 
133879
        return lastComparison;
-
 
133880
      }
-
 
133881
      if (isSetHsItem()) {
-
 
133882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItem, typedOther.hsItem);
-
 
133883
        if (lastComparison != 0) {
-
 
133884
          return lastComparison;
-
 
133885
        }
-
 
133886
      }
-
 
133887
      return 0;
-
 
133888
    }
-
 
133889
 
-
 
133890
    public _Fields fieldForId(int fieldId) {
-
 
133891
      return _Fields.findByThriftId(fieldId);
-
 
133892
    }
-
 
133893
 
-
 
133894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133895
      org.apache.thrift.protocol.TField field;
-
 
133896
      iprot.readStructBegin();
-
 
133897
      while (true)
-
 
133898
      {
-
 
133899
        field = iprot.readFieldBegin();
-
 
133900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133901
          break;
-
 
133902
        }
-
 
133903
        switch (field.id) {
-
 
133904
          case 1: // HS_ITEM
-
 
133905
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
133906
              this.hsItem = new HsItem();
-
 
133907
              this.hsItem.read(iprot);
-
 
133908
            } else { 
-
 
133909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133910
            }
-
 
133911
            break;
-
 
133912
          default:
-
 
133913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133914
        }
-
 
133915
        iprot.readFieldEnd();
-
 
133916
      }
-
 
133917
      iprot.readStructEnd();
-
 
133918
      validate();
-
 
133919
    }
-
 
133920
 
-
 
133921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
133922
      validate();
-
 
133923
 
-
 
133924
      oprot.writeStructBegin(STRUCT_DESC);
-
 
133925
      if (this.hsItem != null) {
-
 
133926
        oprot.writeFieldBegin(HS_ITEM_FIELD_DESC);
-
 
133927
        this.hsItem.write(oprot);
-
 
133928
        oprot.writeFieldEnd();
-
 
133929
      }
-
 
133930
      oprot.writeFieldStop();
-
 
133931
      oprot.writeStructEnd();
-
 
133932
    }
-
 
133933
 
-
 
133934
    @Override
-
 
133935
    public String toString() {
-
 
133936
      StringBuilder sb = new StringBuilder("updateHsItem_args(");
-
 
133937
      boolean first = true;
-
 
133938
 
-
 
133939
      sb.append("hsItem:");
-
 
133940
      if (this.hsItem == null) {
-
 
133941
        sb.append("null");
-
 
133942
      } else {
-
 
133943
        sb.append(this.hsItem);
-
 
133944
      }
-
 
133945
      first = false;
-
 
133946
      sb.append(")");
-
 
133947
      return sb.toString();
-
 
133948
    }
-
 
133949
 
-
 
133950
    public void validate() throws org.apache.thrift.TException {
-
 
133951
      // check for required fields
-
 
133952
    }
-
 
133953
 
-
 
133954
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133955
      try {
-
 
133956
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133957
      } catch (org.apache.thrift.TException te) {
-
 
133958
        throw new java.io.IOException(te);
-
 
133959
      }
-
 
133960
    }
-
 
133961
 
-
 
133962
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133963
      try {
-
 
133964
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133965
      } catch (org.apache.thrift.TException te) {
-
 
133966
        throw new java.io.IOException(te);
-
 
133967
      }
-
 
133968
    }
-
 
133969
 
-
 
133970
  }
-
 
133971
 
-
 
133972
  public static class updateHsItem_result implements org.apache.thrift.TBase<updateHsItem_result, updateHsItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
133973
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHsItem_result");
-
 
133974
 
-
 
133975
 
-
 
133976
 
-
 
133977
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133978
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133979
;
-
 
133980
 
-
 
133981
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133982
 
-
 
133983
      static {
-
 
133984
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133985
          byName.put(field.getFieldName(), field);
-
 
133986
        }
-
 
133987
      }
-
 
133988
 
-
 
133989
      /**
-
 
133990
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133991
       */
-
 
133992
      public static _Fields findByThriftId(int fieldId) {
-
 
133993
        switch(fieldId) {
-
 
133994
          default:
-
 
133995
            return null;
-
 
133996
        }
-
 
133997
      }
-
 
133998
 
-
 
133999
      /**
-
 
134000
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134001
       * if it is not found.
-
 
134002
       */
-
 
134003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134004
        _Fields fields = findByThriftId(fieldId);
-
 
134005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134006
        return fields;
-
 
134007
      }
-
 
134008
 
-
 
134009
      /**
-
 
134010
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134011
       */
-
 
134012
      public static _Fields findByName(String name) {
-
 
134013
        return byName.get(name);
-
 
134014
      }
-
 
134015
 
-
 
134016
      private final short _thriftId;
-
 
134017
      private final String _fieldName;
-
 
134018
 
-
 
134019
      _Fields(short thriftId, String fieldName) {
-
 
134020
        _thriftId = thriftId;
-
 
134021
        _fieldName = fieldName;
-
 
134022
      }
-
 
134023
 
-
 
134024
      public short getThriftFieldId() {
-
 
134025
        return _thriftId;
-
 
134026
      }
-
 
134027
 
-
 
134028
      public String getFieldName() {
-
 
134029
        return _fieldName;
-
 
134030
      }
-
 
134031
    }
-
 
134032
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134033
    static {
-
 
134034
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHsItem_result.class, metaDataMap);
-
 
134037
    }
-
 
134038
 
-
 
134039
    public updateHsItem_result() {
-
 
134040
    }
-
 
134041
 
-
 
134042
    /**
-
 
134043
     * Performs a deep copy on <i>other</i>.
-
 
134044
     */
-
 
134045
    public updateHsItem_result(updateHsItem_result other) {
-
 
134046
    }
-
 
134047
 
-
 
134048
    public updateHsItem_result deepCopy() {
-
 
134049
      return new updateHsItem_result(this);
-
 
134050
    }
-
 
134051
 
-
 
134052
    @Override
-
 
134053
    public void clear() {
-
 
134054
    }
-
 
134055
 
-
 
134056
    public void setFieldValue(_Fields field, Object value) {
-
 
134057
      switch (field) {
-
 
134058
      }
-
 
134059
    }
-
 
134060
 
-
 
134061
    public Object getFieldValue(_Fields field) {
-
 
134062
      switch (field) {
-
 
134063
      }
-
 
134064
      throw new IllegalStateException();
-
 
134065
    }
-
 
134066
 
-
 
134067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134068
    public boolean isSet(_Fields field) {
-
 
134069
      if (field == null) {
-
 
134070
        throw new IllegalArgumentException();
-
 
134071
      }
-
 
134072
 
-
 
134073
      switch (field) {
-
 
134074
      }
-
 
134075
      throw new IllegalStateException();
-
 
134076
    }
-
 
134077
 
-
 
134078
    @Override
-
 
134079
    public boolean equals(Object that) {
-
 
134080
      if (that == null)
-
 
134081
        return false;
-
 
134082
      if (that instanceof updateHsItem_result)
-
 
134083
        return this.equals((updateHsItem_result)that);
-
 
134084
      return false;
-
 
134085
    }
-
 
134086
 
-
 
134087
    public boolean equals(updateHsItem_result that) {
-
 
134088
      if (that == null)
-
 
134089
        return false;
-
 
134090
 
-
 
134091
      return true;
-
 
134092
    }
-
 
134093
 
-
 
134094
    @Override
-
 
134095
    public int hashCode() {
-
 
134096
      return 0;
-
 
134097
    }
-
 
134098
 
-
 
134099
    public int compareTo(updateHsItem_result other) {
-
 
134100
      if (!getClass().equals(other.getClass())) {
-
 
134101
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134102
      }
-
 
134103
 
-
 
134104
      int lastComparison = 0;
-
 
134105
      updateHsItem_result typedOther = (updateHsItem_result)other;
-
 
134106
 
-
 
134107
      return 0;
-
 
134108
    }
-
 
134109
 
-
 
134110
    public _Fields fieldForId(int fieldId) {
-
 
134111
      return _Fields.findByThriftId(fieldId);
-
 
134112
    }
-
 
134113
 
-
 
134114
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134115
      org.apache.thrift.protocol.TField field;
-
 
134116
      iprot.readStructBegin();
-
 
134117
      while (true)
-
 
134118
      {
-
 
134119
        field = iprot.readFieldBegin();
-
 
134120
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134121
          break;
-
 
134122
        }
-
 
134123
        switch (field.id) {
-
 
134124
          default:
-
 
134125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134126
        }
-
 
134127
        iprot.readFieldEnd();
-
 
134128
      }
-
 
134129
      iprot.readStructEnd();
-
 
134130
      validate();
-
 
134131
    }
-
 
134132
 
-
 
134133
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134134
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134135
 
-
 
134136
      oprot.writeFieldStop();
-
 
134137
      oprot.writeStructEnd();
-
 
134138
    }
-
 
134139
 
-
 
134140
    @Override
-
 
134141
    public String toString() {
-
 
134142
      StringBuilder sb = new StringBuilder("updateHsItem_result(");
-
 
134143
      boolean first = true;
-
 
134144
 
-
 
134145
      sb.append(")");
-
 
134146
      return sb.toString();
-
 
134147
    }
-
 
134148
 
-
 
134149
    public void validate() throws org.apache.thrift.TException {
132315
      // check for required fields
134150
      // check for required fields
132316
    }
134151
    }
132317
 
134152
 
132318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
134153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
132319
      try {
134154
      try {