Subversion Repositories SmartDukaan

Rev

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

Rev 6962 Rev 7190
Line 380... Line 380...
380
 
380
 
381
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
381
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
382
 
382
 
383
    public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException;
383
    public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException;
384
 
384
 
-
 
385
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;
-
 
386
 
-
 
387
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;
-
 
388
 
385
  }
389
  }
386
 
390
 
387
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
391
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
388
 
392
 
389
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
393
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 550... Line 554...
550
 
554
 
551
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
555
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
552
 
556
 
553
    public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException;
557
    public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException;
554
 
558
 
-
 
559
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
560
 
-
 
561
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
562
 
555
  }
563
  }
556
 
564
 
557
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
558
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
559
      public Factory() {}
567
      public Factory() {}
Line 2610... Line 2618...
2610
      updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();
2618
      updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();
2611
      receiveBase(result, "updateInsuranceDeclaredAmount");
2619
      receiveBase(result, "updateInsuranceDeclaredAmount");
2612
      return;
2620
      return;
2613
    }
2621
    }
2614
 
2622
 
-
 
2623
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException
-
 
2624
    {
-
 
2625
      send_getFreebieForItem(itemId);
-
 
2626
      return recv_getFreebieForItem();
-
 
2627
    }
-
 
2628
 
-
 
2629
    public void send_getFreebieForItem(long itemId) throws org.apache.thrift.TException
-
 
2630
    {
-
 
2631
      getFreebieForItem_args args = new getFreebieForItem_args();
-
 
2632
      args.setItemId(itemId);
-
 
2633
      sendBase("getFreebieForItem", args);
-
 
2634
    }
-
 
2635
 
-
 
2636
    public long recv_getFreebieForItem() throws org.apache.thrift.TException
-
 
2637
    {
-
 
2638
      getFreebieForItem_result result = new getFreebieForItem_result();
-
 
2639
      receiveBase(result, "getFreebieForItem");
-
 
2640
      if (result.isSetSuccess()) {
-
 
2641
        return result.success;
-
 
2642
      }
-
 
2643
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
-
 
2644
    }
-
 
2645
 
-
 
2646
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException
-
 
2647
    {
-
 
2648
      send_addOrUpdateFreebieForItem(freebieItem);
-
 
2649
      recv_addOrUpdateFreebieForItem();
-
 
2650
    }
-
 
2651
 
-
 
2652
    public void send_addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException
-
 
2653
    {
-
 
2654
      addOrUpdateFreebieForItem_args args = new addOrUpdateFreebieForItem_args();
-
 
2655
      args.setFreebieItem(freebieItem);
-
 
2656
      sendBase("addOrUpdateFreebieForItem", args);
-
 
2657
    }
-
 
2658
 
-
 
2659
    public void recv_addOrUpdateFreebieForItem() throws org.apache.thrift.TException
-
 
2660
    {
-
 
2661
      addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
-
 
2662
      receiveBase(result, "addOrUpdateFreebieForItem");
-
 
2663
      return;
-
 
2664
    }
-
 
2665
 
2615
  }
2666
  }
2616
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2667
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2617
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2668
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2618
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2669
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2619
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2670
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5401... Line 5452...
5401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5452
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5402
        (new Client(prot)).recv_updateInsuranceDeclaredAmount();
5453
        (new Client(prot)).recv_updateInsuranceDeclaredAmount();
5403
      }
5454
      }
5404
    }
5455
    }
5405
 
5456
 
-
 
5457
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
5458
      checkReady();
-
 
5459
      getFreebieForItem_call method_call = new getFreebieForItem_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5460
      this.___currentMethod = method_call;
-
 
5461
      ___manager.call(method_call);
-
 
5462
    }
-
 
5463
 
-
 
5464
    public static class getFreebieForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5465
      private long itemId;
-
 
5466
      public getFreebieForItem_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getFreebieForItem_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 {
-
 
5467
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5468
        this.itemId = itemId;
-
 
5469
      }
-
 
5470
 
-
 
5471
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5472
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreebieForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5473
        getFreebieForItem_args args = new getFreebieForItem_args();
-
 
5474
        args.setItemId(itemId);
-
 
5475
        args.write(prot);
-
 
5476
        prot.writeMessageEnd();
-
 
5477
      }
-
 
5478
 
-
 
5479
      public long getResult() throws org.apache.thrift.TException {
-
 
5480
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5481
          throw new IllegalStateException("Method call not finished!");
-
 
5482
        }
-
 
5483
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5484
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5485
        return (new Client(prot)).recv_getFreebieForItem();
-
 
5486
      }
-
 
5487
    }
-
 
5488
 
-
 
5489
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
5490
      checkReady();
-
 
5491
      addOrUpdateFreebieForItem_call method_call = new addOrUpdateFreebieForItem_call(freebieItem, resultHandler, this, ___protocolFactory, ___transport);
-
 
5492
      this.___currentMethod = method_call;
-
 
5493
      ___manager.call(method_call);
-
 
5494
    }
-
 
5495
 
-
 
5496
    public static class addOrUpdateFreebieForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5497
      private FreebieItem freebieItem;
-
 
5498
      public addOrUpdateFreebieForItem_call(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFreebieForItem_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 {
-
 
5499
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5500
        this.freebieItem = freebieItem;
-
 
5501
      }
-
 
5502
 
-
 
5503
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5504
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFreebieForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5505
        addOrUpdateFreebieForItem_args args = new addOrUpdateFreebieForItem_args();
-
 
5506
        args.setFreebieItem(freebieItem);
-
 
5507
        args.write(prot);
-
 
5508
        prot.writeMessageEnd();
-
 
5509
      }
-
 
5510
 
-
 
5511
      public void getResult() throws org.apache.thrift.TException {
-
 
5512
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5513
          throw new IllegalStateException("Method call not finished!");
-
 
5514
        }
-
 
5515
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5517
        (new Client(prot)).recv_addOrUpdateFreebieForItem();
-
 
5518
      }
-
 
5519
    }
-
 
5520
 
5406
  }
5521
  }
5407
 
5522
 
5408
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5523
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5409
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5524
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5410
    public Processor(I iface) {
5525
    public Processor(I iface) {
Line 5497... Line 5612...
5497
      processMap.put("getAllAliveItems", new getAllAliveItems());
5612
      processMap.put("getAllAliveItems", new getAllAliveItems());
5498
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
5613
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
5499
      processMap.put("getInsurer", new getInsurer());
5614
      processMap.put("getInsurer", new getInsurer());
5500
      processMap.put("getAllInsurers", new getAllInsurers());
5615
      processMap.put("getAllInsurers", new getAllInsurers());
5501
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5616
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
-
 
5617
      processMap.put("getFreebieForItem", new getFreebieForItem());
-
 
5618
      processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());
5502
      return processMap;
5619
      return processMap;
5503
    }
5620
    }
5504
 
5621
 
5505
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5622
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5506
      public addItem() {
5623
      public addItem() {
Line 7006... Line 7123...
7006
        iface.updateInsuranceDeclaredAmount(args.insurerId, args.amount);
7123
        iface.updateInsuranceDeclaredAmount(args.insurerId, args.amount);
7007
        return result;
7124
        return result;
7008
      }
7125
      }
7009
    }
7126
    }
7010
 
7127
 
-
 
7128
    private static class getFreebieForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreebieForItem_args> {
-
 
7129
      public getFreebieForItem() {
-
 
7130
        super("getFreebieForItem");
-
 
7131
      }
-
 
7132
 
-
 
7133
      protected getFreebieForItem_args getEmptyArgsInstance() {
-
 
7134
        return new getFreebieForItem_args();
-
 
7135
      }
-
 
7136
 
-
 
7137
      protected getFreebieForItem_result getResult(I iface, getFreebieForItem_args args) throws org.apache.thrift.TException {
-
 
7138
        getFreebieForItem_result result = new getFreebieForItem_result();
-
 
7139
        result.success = iface.getFreebieForItem(args.itemId);
-
 
7140
        result.setSuccessIsSet(true);
-
 
7141
        return result;
-
 
7142
      }
-
 
7143
    }
-
 
7144
 
-
 
7145
    private static class addOrUpdateFreebieForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFreebieForItem_args> {
-
 
7146
      public addOrUpdateFreebieForItem() {
-
 
7147
        super("addOrUpdateFreebieForItem");
-
 
7148
      }
-
 
7149
 
-
 
7150
      protected addOrUpdateFreebieForItem_args getEmptyArgsInstance() {
-
 
7151
        return new addOrUpdateFreebieForItem_args();
-
 
7152
      }
-
 
7153
 
-
 
7154
      protected addOrUpdateFreebieForItem_result getResult(I iface, addOrUpdateFreebieForItem_args args) throws org.apache.thrift.TException {
-
 
7155
        addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
-
 
7156
        iface.addOrUpdateFreebieForItem(args.freebieItem);
-
 
7157
        return result;
-
 
7158
      }
-
 
7159
    }
-
 
7160
 
7011
  }
7161
  }
7012
 
7162
 
7013
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7163
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7164
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7015
 
7165
 
Line 63040... Line 63190...
63040
      boolean first = true;
63190
      boolean first = true;
63041
 
63191
 
63042
      sb.append(")");
63192
      sb.append(")");
63043
      return sb.toString();
63193
      return sb.toString();
63044
    }
63194
    }
-
 
63195
 
-
 
63196
    public void validate() throws org.apache.thrift.TException {
-
 
63197
      // check for required fields
-
 
63198
    }
-
 
63199
 
-
 
63200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63201
      try {
-
 
63202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63203
      } catch (org.apache.thrift.TException te) {
-
 
63204
        throw new java.io.IOException(te);
-
 
63205
      }
-
 
63206
    }
-
 
63207
 
-
 
63208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63209
      try {
-
 
63210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63211
      } catch (org.apache.thrift.TException te) {
-
 
63212
        throw new java.io.IOException(te);
-
 
63213
      }
-
 
63214
    }
-
 
63215
 
-
 
63216
  }
-
 
63217
 
-
 
63218
  public static class getFreebieForItem_args implements org.apache.thrift.TBase<getFreebieForItem_args, getFreebieForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
63219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreebieForItem_args");
-
 
63220
 
-
 
63221
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
63222
 
-
 
63223
    private long itemId; // required
-
 
63224
 
-
 
63225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63227
      ITEM_ID((short)1, "itemId");
-
 
63228
 
-
 
63229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63230
 
-
 
63231
      static {
-
 
63232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63233
          byName.put(field.getFieldName(), field);
-
 
63234
        }
-
 
63235
      }
-
 
63236
 
-
 
63237
      /**
-
 
63238
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63239
       */
-
 
63240
      public static _Fields findByThriftId(int fieldId) {
-
 
63241
        switch(fieldId) {
-
 
63242
          case 1: // ITEM_ID
-
 
63243
            return ITEM_ID;
-
 
63244
          default:
-
 
63245
            return null;
-
 
63246
        }
-
 
63247
      }
-
 
63248
 
-
 
63249
      /**
-
 
63250
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63251
       * if it is not found.
-
 
63252
       */
-
 
63253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63254
        _Fields fields = findByThriftId(fieldId);
-
 
63255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63256
        return fields;
-
 
63257
      }
-
 
63258
 
-
 
63259
      /**
-
 
63260
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63261
       */
-
 
63262
      public static _Fields findByName(String name) {
-
 
63263
        return byName.get(name);
-
 
63264
      }
-
 
63265
 
-
 
63266
      private final short _thriftId;
-
 
63267
      private final String _fieldName;
-
 
63268
 
-
 
63269
      _Fields(short thriftId, String fieldName) {
-
 
63270
        _thriftId = thriftId;
-
 
63271
        _fieldName = fieldName;
-
 
63272
      }
-
 
63273
 
-
 
63274
      public short getThriftFieldId() {
-
 
63275
        return _thriftId;
-
 
63276
      }
-
 
63277
 
-
 
63278
      public String getFieldName() {
-
 
63279
        return _fieldName;
-
 
63280
      }
-
 
63281
    }
-
 
63282
 
-
 
63283
    // isset id assignments
-
 
63284
    private static final int __ITEMID_ISSET_ID = 0;
-
 
63285
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
63286
 
-
 
63287
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63288
    static {
-
 
63289
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63290
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
63292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreebieForItem_args.class, metaDataMap);
-
 
63294
    }
-
 
63295
 
-
 
63296
    public getFreebieForItem_args() {
-
 
63297
    }
-
 
63298
 
-
 
63299
    public getFreebieForItem_args(
-
 
63300
      long itemId)
-
 
63301
    {
-
 
63302
      this();
-
 
63303
      this.itemId = itemId;
-
 
63304
      setItemIdIsSet(true);
-
 
63305
    }
-
 
63306
 
-
 
63307
    /**
-
 
63308
     * Performs a deep copy on <i>other</i>.
-
 
63309
     */
-
 
63310
    public getFreebieForItem_args(getFreebieForItem_args other) {
-
 
63311
      __isset_bit_vector.clear();
-
 
63312
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
63313
      this.itemId = other.itemId;
-
 
63314
    }
-
 
63315
 
-
 
63316
    public getFreebieForItem_args deepCopy() {
-
 
63317
      return new getFreebieForItem_args(this);
-
 
63318
    }
-
 
63319
 
-
 
63320
    @Override
-
 
63321
    public void clear() {
-
 
63322
      setItemIdIsSet(false);
-
 
63323
      this.itemId = 0;
-
 
63324
    }
-
 
63325
 
-
 
63326
    public long getItemId() {
-
 
63327
      return this.itemId;
-
 
63328
    }
-
 
63329
 
-
 
63330
    public void setItemId(long itemId) {
-
 
63331
      this.itemId = itemId;
-
 
63332
      setItemIdIsSet(true);
-
 
63333
    }
-
 
63334
 
-
 
63335
    public void unsetItemId() {
-
 
63336
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
63337
    }
-
 
63338
 
-
 
63339
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
63340
    public boolean isSetItemId() {
-
 
63341
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
63342
    }
-
 
63343
 
-
 
63344
    public void setItemIdIsSet(boolean value) {
-
 
63345
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
63346
    }
-
 
63347
 
-
 
63348
    public void setFieldValue(_Fields field, Object value) {
-
 
63349
      switch (field) {
-
 
63350
      case ITEM_ID:
-
 
63351
        if (value == null) {
-
 
63352
          unsetItemId();
-
 
63353
        } else {
-
 
63354
          setItemId((Long)value);
-
 
63355
        }
-
 
63356
        break;
-
 
63357
 
-
 
63358
      }
-
 
63359
    }
-
 
63360
 
-
 
63361
    public Object getFieldValue(_Fields field) {
-
 
63362
      switch (field) {
-
 
63363
      case ITEM_ID:
-
 
63364
        return Long.valueOf(getItemId());
-
 
63365
 
-
 
63366
      }
-
 
63367
      throw new IllegalStateException();
-
 
63368
    }
-
 
63369
 
-
 
63370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63371
    public boolean isSet(_Fields field) {
-
 
63372
      if (field == null) {
-
 
63373
        throw new IllegalArgumentException();
-
 
63374
      }
-
 
63375
 
-
 
63376
      switch (field) {
-
 
63377
      case ITEM_ID:
-
 
63378
        return isSetItemId();
-
 
63379
      }
-
 
63380
      throw new IllegalStateException();
-
 
63381
    }
-
 
63382
 
-
 
63383
    @Override
-
 
63384
    public boolean equals(Object that) {
-
 
63385
      if (that == null)
-
 
63386
        return false;
-
 
63387
      if (that instanceof getFreebieForItem_args)
-
 
63388
        return this.equals((getFreebieForItem_args)that);
-
 
63389
      return false;
-
 
63390
    }
-
 
63391
 
-
 
63392
    public boolean equals(getFreebieForItem_args that) {
-
 
63393
      if (that == null)
-
 
63394
        return false;
-
 
63395
 
-
 
63396
      boolean this_present_itemId = true;
-
 
63397
      boolean that_present_itemId = true;
-
 
63398
      if (this_present_itemId || that_present_itemId) {
-
 
63399
        if (!(this_present_itemId && that_present_itemId))
-
 
63400
          return false;
-
 
63401
        if (this.itemId != that.itemId)
-
 
63402
          return false;
-
 
63403
      }
-
 
63404
 
-
 
63405
      return true;
-
 
63406
    }
-
 
63407
 
-
 
63408
    @Override
-
 
63409
    public int hashCode() {
-
 
63410
      return 0;
-
 
63411
    }
-
 
63412
 
-
 
63413
    public int compareTo(getFreebieForItem_args other) {
-
 
63414
      if (!getClass().equals(other.getClass())) {
-
 
63415
        return getClass().getName().compareTo(other.getClass().getName());
-
 
63416
      }
-
 
63417
 
-
 
63418
      int lastComparison = 0;
-
 
63419
      getFreebieForItem_args typedOther = (getFreebieForItem_args)other;
-
 
63420
 
-
 
63421
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
63422
      if (lastComparison != 0) {
-
 
63423
        return lastComparison;
-
 
63424
      }
-
 
63425
      if (isSetItemId()) {
-
 
63426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
63427
        if (lastComparison != 0) {
-
 
63428
          return lastComparison;
-
 
63429
        }
-
 
63430
      }
-
 
63431
      return 0;
-
 
63432
    }
-
 
63433
 
-
 
63434
    public _Fields fieldForId(int fieldId) {
-
 
63435
      return _Fields.findByThriftId(fieldId);
-
 
63436
    }
-
 
63437
 
-
 
63438
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63439
      org.apache.thrift.protocol.TField field;
-
 
63440
      iprot.readStructBegin();
-
 
63441
      while (true)
-
 
63442
      {
-
 
63443
        field = iprot.readFieldBegin();
-
 
63444
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63445
          break;
-
 
63446
        }
-
 
63447
        switch (field.id) {
-
 
63448
          case 1: // ITEM_ID
-
 
63449
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
63450
              this.itemId = iprot.readI64();
-
 
63451
              setItemIdIsSet(true);
-
 
63452
            } else { 
-
 
63453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63454
            }
-
 
63455
            break;
-
 
63456
          default:
-
 
63457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63458
        }
-
 
63459
        iprot.readFieldEnd();
-
 
63460
      }
-
 
63461
      iprot.readStructEnd();
-
 
63462
      validate();
-
 
63463
    }
-
 
63464
 
-
 
63465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63466
      validate();
-
 
63467
 
-
 
63468
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63469
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
63470
      oprot.writeI64(this.itemId);
-
 
63471
      oprot.writeFieldEnd();
-
 
63472
      oprot.writeFieldStop();
-
 
63473
      oprot.writeStructEnd();
-
 
63474
    }
-
 
63475
 
-
 
63476
    @Override
-
 
63477
    public String toString() {
-
 
63478
      StringBuilder sb = new StringBuilder("getFreebieForItem_args(");
-
 
63479
      boolean first = true;
-
 
63480
 
-
 
63481
      sb.append("itemId:");
-
 
63482
      sb.append(this.itemId);
-
 
63483
      first = false;
-
 
63484
      sb.append(")");
-
 
63485
      return sb.toString();
-
 
63486
    }
-
 
63487
 
-
 
63488
    public void validate() throws org.apache.thrift.TException {
-
 
63489
      // check for required fields
-
 
63490
    }
-
 
63491
 
-
 
63492
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63493
      try {
-
 
63494
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63495
      } catch (org.apache.thrift.TException te) {
-
 
63496
        throw new java.io.IOException(te);
-
 
63497
      }
-
 
63498
    }
-
 
63499
 
-
 
63500
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63501
      try {
-
 
63502
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63503
        __isset_bit_vector = new BitSet(1);
-
 
63504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63505
      } catch (org.apache.thrift.TException te) {
-
 
63506
        throw new java.io.IOException(te);
-
 
63507
      }
-
 
63508
    }
-
 
63509
 
-
 
63510
  }
-
 
63511
 
-
 
63512
  public static class getFreebieForItem_result implements org.apache.thrift.TBase<getFreebieForItem_result, getFreebieForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
63513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreebieForItem_result");
-
 
63514
 
-
 
63515
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
63516
 
-
 
63517
    private long success; // required
-
 
63518
 
-
 
63519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63521
      SUCCESS((short)0, "success");
-
 
63522
 
-
 
63523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63524
 
-
 
63525
      static {
-
 
63526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63527
          byName.put(field.getFieldName(), field);
-
 
63528
        }
-
 
63529
      }
-
 
63530
 
-
 
63531
      /**
-
 
63532
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63533
       */
-
 
63534
      public static _Fields findByThriftId(int fieldId) {
-
 
63535
        switch(fieldId) {
-
 
63536
          case 0: // SUCCESS
-
 
63537
            return SUCCESS;
-
 
63538
          default:
-
 
63539
            return null;
-
 
63540
        }
-
 
63541
      }
-
 
63542
 
-
 
63543
      /**
-
 
63544
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63545
       * if it is not found.
-
 
63546
       */
-
 
63547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63548
        _Fields fields = findByThriftId(fieldId);
-
 
63549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63550
        return fields;
-
 
63551
      }
-
 
63552
 
-
 
63553
      /**
-
 
63554
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63555
       */
-
 
63556
      public static _Fields findByName(String name) {
-
 
63557
        return byName.get(name);
-
 
63558
      }
-
 
63559
 
-
 
63560
      private final short _thriftId;
-
 
63561
      private final String _fieldName;
-
 
63562
 
-
 
63563
      _Fields(short thriftId, String fieldName) {
-
 
63564
        _thriftId = thriftId;
-
 
63565
        _fieldName = fieldName;
-
 
63566
      }
-
 
63567
 
-
 
63568
      public short getThriftFieldId() {
-
 
63569
        return _thriftId;
-
 
63570
      }
-
 
63571
 
-
 
63572
      public String getFieldName() {
-
 
63573
        return _fieldName;
-
 
63574
      }
-
 
63575
    }
-
 
63576
 
-
 
63577
    // isset id assignments
-
 
63578
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
63579
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
63580
 
-
 
63581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63582
    static {
-
 
63583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63584
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
63586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreebieForItem_result.class, metaDataMap);
-
 
63588
    }
-
 
63589
 
-
 
63590
    public getFreebieForItem_result() {
-
 
63591
    }
-
 
63592
 
-
 
63593
    public getFreebieForItem_result(
-
 
63594
      long success)
-
 
63595
    {
-
 
63596
      this();
-
 
63597
      this.success = success;
-
 
63598
      setSuccessIsSet(true);
-
 
63599
    }
-
 
63600
 
-
 
63601
    /**
-
 
63602
     * Performs a deep copy on <i>other</i>.
-
 
63603
     */
-
 
63604
    public getFreebieForItem_result(getFreebieForItem_result other) {
-
 
63605
      __isset_bit_vector.clear();
-
 
63606
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
63607
      this.success = other.success;
-
 
63608
    }
-
 
63609
 
-
 
63610
    public getFreebieForItem_result deepCopy() {
-
 
63611
      return new getFreebieForItem_result(this);
-
 
63612
    }
-
 
63613
 
-
 
63614
    @Override
-
 
63615
    public void clear() {
-
 
63616
      setSuccessIsSet(false);
-
 
63617
      this.success = 0;
-
 
63618
    }
-
 
63619
 
-
 
63620
    public long getSuccess() {
-
 
63621
      return this.success;
-
 
63622
    }
-
 
63623
 
-
 
63624
    public void setSuccess(long success) {
-
 
63625
      this.success = success;
-
 
63626
      setSuccessIsSet(true);
-
 
63627
    }
-
 
63628
 
-
 
63629
    public void unsetSuccess() {
-
 
63630
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
63631
    }
-
 
63632
 
-
 
63633
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
63634
    public boolean isSetSuccess() {
-
 
63635
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
63636
    }
-
 
63637
 
-
 
63638
    public void setSuccessIsSet(boolean value) {
-
 
63639
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
63640
    }
-
 
63641
 
-
 
63642
    public void setFieldValue(_Fields field, Object value) {
-
 
63643
      switch (field) {
-
 
63644
      case SUCCESS:
-
 
63645
        if (value == null) {
-
 
63646
          unsetSuccess();
-
 
63647
        } else {
-
 
63648
          setSuccess((Long)value);
-
 
63649
        }
-
 
63650
        break;
-
 
63651
 
-
 
63652
      }
-
 
63653
    }
-
 
63654
 
-
 
63655
    public Object getFieldValue(_Fields field) {
-
 
63656
      switch (field) {
-
 
63657
      case SUCCESS:
-
 
63658
        return Long.valueOf(getSuccess());
-
 
63659
 
-
 
63660
      }
-
 
63661
      throw new IllegalStateException();
-
 
63662
    }
-
 
63663
 
-
 
63664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63665
    public boolean isSet(_Fields field) {
-
 
63666
      if (field == null) {
-
 
63667
        throw new IllegalArgumentException();
-
 
63668
      }
-
 
63669
 
-
 
63670
      switch (field) {
-
 
63671
      case SUCCESS:
-
 
63672
        return isSetSuccess();
-
 
63673
      }
-
 
63674
      throw new IllegalStateException();
-
 
63675
    }
-
 
63676
 
-
 
63677
    @Override
-
 
63678
    public boolean equals(Object that) {
-
 
63679
      if (that == null)
-
 
63680
        return false;
-
 
63681
      if (that instanceof getFreebieForItem_result)
-
 
63682
        return this.equals((getFreebieForItem_result)that);
-
 
63683
      return false;
-
 
63684
    }
-
 
63685
 
-
 
63686
    public boolean equals(getFreebieForItem_result that) {
-
 
63687
      if (that == null)
-
 
63688
        return false;
-
 
63689
 
-
 
63690
      boolean this_present_success = true;
-
 
63691
      boolean that_present_success = true;
-
 
63692
      if (this_present_success || that_present_success) {
-
 
63693
        if (!(this_present_success && that_present_success))
-
 
63694
          return false;
-
 
63695
        if (this.success != that.success)
-
 
63696
          return false;
-
 
63697
      }
-
 
63698
 
-
 
63699
      return true;
-
 
63700
    }
-
 
63701
 
-
 
63702
    @Override
-
 
63703
    public int hashCode() {
-
 
63704
      return 0;
-
 
63705
    }
-
 
63706
 
-
 
63707
    public int compareTo(getFreebieForItem_result other) {
-
 
63708
      if (!getClass().equals(other.getClass())) {
-
 
63709
        return getClass().getName().compareTo(other.getClass().getName());
-
 
63710
      }
-
 
63711
 
-
 
63712
      int lastComparison = 0;
-
 
63713
      getFreebieForItem_result typedOther = (getFreebieForItem_result)other;
-
 
63714
 
-
 
63715
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
63716
      if (lastComparison != 0) {
-
 
63717
        return lastComparison;
-
 
63718
      }
-
 
63719
      if (isSetSuccess()) {
-
 
63720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
63721
        if (lastComparison != 0) {
-
 
63722
          return lastComparison;
-
 
63723
        }
-
 
63724
      }
-
 
63725
      return 0;
-
 
63726
    }
-
 
63727
 
-
 
63728
    public _Fields fieldForId(int fieldId) {
-
 
63729
      return _Fields.findByThriftId(fieldId);
-
 
63730
    }
-
 
63731
 
-
 
63732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63733
      org.apache.thrift.protocol.TField field;
-
 
63734
      iprot.readStructBegin();
-
 
63735
      while (true)
-
 
63736
      {
-
 
63737
        field = iprot.readFieldBegin();
-
 
63738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63739
          break;
-
 
63740
        }
-
 
63741
        switch (field.id) {
-
 
63742
          case 0: // SUCCESS
-
 
63743
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
63744
              this.success = iprot.readI64();
-
 
63745
              setSuccessIsSet(true);
-
 
63746
            } else { 
-
 
63747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63748
            }
-
 
63749
            break;
-
 
63750
          default:
-
 
63751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63752
        }
-
 
63753
        iprot.readFieldEnd();
-
 
63754
      }
-
 
63755
      iprot.readStructEnd();
-
 
63756
      validate();
-
 
63757
    }
-
 
63758
 
-
 
63759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63760
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63761
 
-
 
63762
      if (this.isSetSuccess()) {
-
 
63763
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
63764
        oprot.writeI64(this.success);
-
 
63765
        oprot.writeFieldEnd();
-
 
63766
      }
-
 
63767
      oprot.writeFieldStop();
-
 
63768
      oprot.writeStructEnd();
-
 
63769
    }
-
 
63770
 
-
 
63771
    @Override
-
 
63772
    public String toString() {
-
 
63773
      StringBuilder sb = new StringBuilder("getFreebieForItem_result(");
-
 
63774
      boolean first = true;
-
 
63775
 
-
 
63776
      sb.append("success:");
-
 
63777
      sb.append(this.success);
-
 
63778
      first = false;
-
 
63779
      sb.append(")");
-
 
63780
      return sb.toString();
-
 
63781
    }
-
 
63782
 
-
 
63783
    public void validate() throws org.apache.thrift.TException {
-
 
63784
      // check for required fields
-
 
63785
    }
-
 
63786
 
-
 
63787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63788
      try {
-
 
63789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63790
      } catch (org.apache.thrift.TException te) {
-
 
63791
        throw new java.io.IOException(te);
-
 
63792
      }
-
 
63793
    }
-
 
63794
 
-
 
63795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63796
      try {
-
 
63797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63798
      } catch (org.apache.thrift.TException te) {
-
 
63799
        throw new java.io.IOException(te);
-
 
63800
      }
-
 
63801
    }
-
 
63802
 
-
 
63803
  }
-
 
63804
 
-
 
63805
  public static class addOrUpdateFreebieForItem_args implements org.apache.thrift.TBase<addOrUpdateFreebieForItem_args, addOrUpdateFreebieForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
63806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFreebieForItem_args");
-
 
63807
 
-
 
63808
    private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
63809
 
-
 
63810
    private FreebieItem freebieItem; // required
-
 
63811
 
-
 
63812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63814
      FREEBIE_ITEM((short)1, "freebieItem");
-
 
63815
 
-
 
63816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63817
 
-
 
63818
      static {
-
 
63819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63820
          byName.put(field.getFieldName(), field);
-
 
63821
        }
-
 
63822
      }
-
 
63823
 
-
 
63824
      /**
-
 
63825
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63826
       */
-
 
63827
      public static _Fields findByThriftId(int fieldId) {
-
 
63828
        switch(fieldId) {
-
 
63829
          case 1: // FREEBIE_ITEM
-
 
63830
            return FREEBIE_ITEM;
-
 
63831
          default:
-
 
63832
            return null;
-
 
63833
        }
-
 
63834
      }
-
 
63835
 
-
 
63836
      /**
-
 
63837
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63838
       * if it is not found.
-
 
63839
       */
-
 
63840
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63841
        _Fields fields = findByThriftId(fieldId);
-
 
63842
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63843
        return fields;
-
 
63844
      }
-
 
63845
 
-
 
63846
      /**
-
 
63847
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63848
       */
-
 
63849
      public static _Fields findByName(String name) {
-
 
63850
        return byName.get(name);
-
 
63851
      }
-
 
63852
 
-
 
63853
      private final short _thriftId;
-
 
63854
      private final String _fieldName;
-
 
63855
 
-
 
63856
      _Fields(short thriftId, String fieldName) {
-
 
63857
        _thriftId = thriftId;
-
 
63858
        _fieldName = fieldName;
-
 
63859
      }
-
 
63860
 
-
 
63861
      public short getThriftFieldId() {
-
 
63862
        return _thriftId;
-
 
63863
      }
-
 
63864
 
-
 
63865
      public String getFieldName() {
-
 
63866
        return _fieldName;
-
 
63867
      }
-
 
63868
    }
-
 
63869
 
-
 
63870
    // isset id assignments
-
 
63871
 
-
 
63872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63873
    static {
-
 
63874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63875
      tmpMap.put(_Fields.FREEBIE_ITEM, new org.apache.thrift.meta_data.FieldMetaData("freebieItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63876
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FreebieItem.class)));
-
 
63877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFreebieForItem_args.class, metaDataMap);
-
 
63879
    }
-
 
63880
 
-
 
63881
    public addOrUpdateFreebieForItem_args() {
-
 
63882
    }
-
 
63883
 
-
 
63884
    public addOrUpdateFreebieForItem_args(
-
 
63885
      FreebieItem freebieItem)
-
 
63886
    {
-
 
63887
      this();
-
 
63888
      this.freebieItem = freebieItem;
-
 
63889
    }
-
 
63890
 
-
 
63891
    /**
-
 
63892
     * Performs a deep copy on <i>other</i>.
-
 
63893
     */
-
 
63894
    public addOrUpdateFreebieForItem_args(addOrUpdateFreebieForItem_args other) {
-
 
63895
      if (other.isSetFreebieItem()) {
-
 
63896
        this.freebieItem = new FreebieItem(other.freebieItem);
-
 
63897
      }
-
 
63898
    }
-
 
63899
 
-
 
63900
    public addOrUpdateFreebieForItem_args deepCopy() {
-
 
63901
      return new addOrUpdateFreebieForItem_args(this);
-
 
63902
    }
-
 
63903
 
-
 
63904
    @Override
-
 
63905
    public void clear() {
-
 
63906
      this.freebieItem = null;
-
 
63907
    }
-
 
63908
 
-
 
63909
    public FreebieItem getFreebieItem() {
-
 
63910
      return this.freebieItem;
-
 
63911
    }
-
 
63912
 
-
 
63913
    public void setFreebieItem(FreebieItem freebieItem) {
-
 
63914
      this.freebieItem = freebieItem;
-
 
63915
    }
-
 
63916
 
-
 
63917
    public void unsetFreebieItem() {
-
 
63918
      this.freebieItem = null;
-
 
63919
    }
-
 
63920
 
-
 
63921
    /** Returns true if field freebieItem is set (has been assigned a value) and false otherwise */
-
 
63922
    public boolean isSetFreebieItem() {
-
 
63923
      return this.freebieItem != null;
-
 
63924
    }
-
 
63925
 
-
 
63926
    public void setFreebieItemIsSet(boolean value) {
-
 
63927
      if (!value) {
-
 
63928
        this.freebieItem = null;
-
 
63929
      }
-
 
63930
    }
-
 
63931
 
-
 
63932
    public void setFieldValue(_Fields field, Object value) {
-
 
63933
      switch (field) {
-
 
63934
      case FREEBIE_ITEM:
-
 
63935
        if (value == null) {
-
 
63936
          unsetFreebieItem();
-
 
63937
        } else {
-
 
63938
          setFreebieItem((FreebieItem)value);
-
 
63939
        }
-
 
63940
        break;
-
 
63941
 
-
 
63942
      }
-
 
63943
    }
-
 
63944
 
-
 
63945
    public Object getFieldValue(_Fields field) {
-
 
63946
      switch (field) {
-
 
63947
      case FREEBIE_ITEM:
-
 
63948
        return getFreebieItem();
-
 
63949
 
-
 
63950
      }
-
 
63951
      throw new IllegalStateException();
-
 
63952
    }
-
 
63953
 
-
 
63954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63955
    public boolean isSet(_Fields field) {
-
 
63956
      if (field == null) {
-
 
63957
        throw new IllegalArgumentException();
-
 
63958
      }
-
 
63959
 
-
 
63960
      switch (field) {
-
 
63961
      case FREEBIE_ITEM:
-
 
63962
        return isSetFreebieItem();
-
 
63963
      }
-
 
63964
      throw new IllegalStateException();
-
 
63965
    }
-
 
63966
 
-
 
63967
    @Override
-
 
63968
    public boolean equals(Object that) {
-
 
63969
      if (that == null)
-
 
63970
        return false;
-
 
63971
      if (that instanceof addOrUpdateFreebieForItem_args)
-
 
63972
        return this.equals((addOrUpdateFreebieForItem_args)that);
-
 
63973
      return false;
-
 
63974
    }
-
 
63975
 
-
 
63976
    public boolean equals(addOrUpdateFreebieForItem_args that) {
-
 
63977
      if (that == null)
-
 
63978
        return false;
-
 
63979
 
-
 
63980
      boolean this_present_freebieItem = true && this.isSetFreebieItem();
-
 
63981
      boolean that_present_freebieItem = true && that.isSetFreebieItem();
-
 
63982
      if (this_present_freebieItem || that_present_freebieItem) {
-
 
63983
        if (!(this_present_freebieItem && that_present_freebieItem))
-
 
63984
          return false;
-
 
63985
        if (!this.freebieItem.equals(that.freebieItem))
-
 
63986
          return false;
-
 
63987
      }
-
 
63988
 
-
 
63989
      return true;
-
 
63990
    }
-
 
63991
 
-
 
63992
    @Override
-
 
63993
    public int hashCode() {
-
 
63994
      return 0;
-
 
63995
    }
-
 
63996
 
-
 
63997
    public int compareTo(addOrUpdateFreebieForItem_args other) {
-
 
63998
      if (!getClass().equals(other.getClass())) {
-
 
63999
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64000
      }
-
 
64001
 
-
 
64002
      int lastComparison = 0;
-
 
64003
      addOrUpdateFreebieForItem_args typedOther = (addOrUpdateFreebieForItem_args)other;
-
 
64004
 
-
 
64005
      lastComparison = Boolean.valueOf(isSetFreebieItem()).compareTo(typedOther.isSetFreebieItem());
-
 
64006
      if (lastComparison != 0) {
-
 
64007
        return lastComparison;
-
 
64008
      }
-
 
64009
      if (isSetFreebieItem()) {
-
 
64010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItem, typedOther.freebieItem);
-
 
64011
        if (lastComparison != 0) {
-
 
64012
          return lastComparison;
-
 
64013
        }
-
 
64014
      }
-
 
64015
      return 0;
-
 
64016
    }
-
 
64017
 
-
 
64018
    public _Fields fieldForId(int fieldId) {
-
 
64019
      return _Fields.findByThriftId(fieldId);
-
 
64020
    }
-
 
64021
 
-
 
64022
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64023
      org.apache.thrift.protocol.TField field;
-
 
64024
      iprot.readStructBegin();
-
 
64025
      while (true)
-
 
64026
      {
-
 
64027
        field = iprot.readFieldBegin();
-
 
64028
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64029
          break;
-
 
64030
        }
-
 
64031
        switch (field.id) {
-
 
64032
          case 1: // FREEBIE_ITEM
-
 
64033
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
64034
              this.freebieItem = new FreebieItem();
-
 
64035
              this.freebieItem.read(iprot);
-
 
64036
            } else { 
-
 
64037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64038
            }
-
 
64039
            break;
-
 
64040
          default:
-
 
64041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64042
        }
-
 
64043
        iprot.readFieldEnd();
-
 
64044
      }
-
 
64045
      iprot.readStructEnd();
-
 
64046
      validate();
-
 
64047
    }
-
 
64048
 
-
 
64049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64050
      validate();
-
 
64051
 
-
 
64052
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64053
      if (this.freebieItem != null) {
-
 
64054
        oprot.writeFieldBegin(FREEBIE_ITEM_FIELD_DESC);
-
 
64055
        this.freebieItem.write(oprot);
-
 
64056
        oprot.writeFieldEnd();
-
 
64057
      }
-
 
64058
      oprot.writeFieldStop();
-
 
64059
      oprot.writeStructEnd();
-
 
64060
    }
-
 
64061
 
-
 
64062
    @Override
-
 
64063
    public String toString() {
-
 
64064
      StringBuilder sb = new StringBuilder("addOrUpdateFreebieForItem_args(");
-
 
64065
      boolean first = true;
-
 
64066
 
-
 
64067
      sb.append("freebieItem:");
-
 
64068
      if (this.freebieItem == null) {
-
 
64069
        sb.append("null");
-
 
64070
      } else {
-
 
64071
        sb.append(this.freebieItem);
-
 
64072
      }
-
 
64073
      first = false;
-
 
64074
      sb.append(")");
-
 
64075
      return sb.toString();
-
 
64076
    }
-
 
64077
 
-
 
64078
    public void validate() throws org.apache.thrift.TException {
-
 
64079
      // check for required fields
-
 
64080
    }
-
 
64081
 
-
 
64082
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64083
      try {
-
 
64084
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64085
      } catch (org.apache.thrift.TException te) {
-
 
64086
        throw new java.io.IOException(te);
-
 
64087
      }
-
 
64088
    }
-
 
64089
 
-
 
64090
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64091
      try {
-
 
64092
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64093
      } catch (org.apache.thrift.TException te) {
-
 
64094
        throw new java.io.IOException(te);
-
 
64095
      }
-
 
64096
    }
-
 
64097
 
-
 
64098
  }
-
 
64099
 
-
 
64100
  public static class addOrUpdateFreebieForItem_result implements org.apache.thrift.TBase<addOrUpdateFreebieForItem_result, addOrUpdateFreebieForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
64101
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFreebieForItem_result");
-
 
64102
 
-
 
64103
 
-
 
64104
 
-
 
64105
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64106
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64107
;
-
 
64108
 
-
 
64109
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64110
 
-
 
64111
      static {
-
 
64112
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64113
          byName.put(field.getFieldName(), field);
-
 
64114
        }
-
 
64115
      }
-
 
64116
 
-
 
64117
      /**
-
 
64118
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64119
       */
-
 
64120
      public static _Fields findByThriftId(int fieldId) {
-
 
64121
        switch(fieldId) {
-
 
64122
          default:
-
 
64123
            return null;
-
 
64124
        }
-
 
64125
      }
-
 
64126
 
-
 
64127
      /**
-
 
64128
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64129
       * if it is not found.
-
 
64130
       */
-
 
64131
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64132
        _Fields fields = findByThriftId(fieldId);
-
 
64133
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64134
        return fields;
-
 
64135
      }
-
 
64136
 
-
 
64137
      /**
-
 
64138
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64139
       */
-
 
64140
      public static _Fields findByName(String name) {
-
 
64141
        return byName.get(name);
-
 
64142
      }
-
 
64143
 
-
 
64144
      private final short _thriftId;
-
 
64145
      private final String _fieldName;
-
 
64146
 
-
 
64147
      _Fields(short thriftId, String fieldName) {
-
 
64148
        _thriftId = thriftId;
-
 
64149
        _fieldName = fieldName;
-
 
64150
      }
-
 
64151
 
-
 
64152
      public short getThriftFieldId() {
-
 
64153
        return _thriftId;
-
 
64154
      }
-
 
64155
 
-
 
64156
      public String getFieldName() {
-
 
64157
        return _fieldName;
-
 
64158
      }
-
 
64159
    }
-
 
64160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64161
    static {
-
 
64162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64163
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64164
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFreebieForItem_result.class, metaDataMap);
-
 
64165
    }
-
 
64166
 
-
 
64167
    public addOrUpdateFreebieForItem_result() {
-
 
64168
    }
-
 
64169
 
-
 
64170
    /**
-
 
64171
     * Performs a deep copy on <i>other</i>.
-
 
64172
     */
-
 
64173
    public addOrUpdateFreebieForItem_result(addOrUpdateFreebieForItem_result other) {
-
 
64174
    }
-
 
64175
 
-
 
64176
    public addOrUpdateFreebieForItem_result deepCopy() {
-
 
64177
      return new addOrUpdateFreebieForItem_result(this);
-
 
64178
    }
-
 
64179
 
-
 
64180
    @Override
-
 
64181
    public void clear() {
-
 
64182
    }
-
 
64183
 
-
 
64184
    public void setFieldValue(_Fields field, Object value) {
-
 
64185
      switch (field) {
-
 
64186
      }
-
 
64187
    }
-
 
64188
 
-
 
64189
    public Object getFieldValue(_Fields field) {
-
 
64190
      switch (field) {
-
 
64191
      }
-
 
64192
      throw new IllegalStateException();
-
 
64193
    }
-
 
64194
 
-
 
64195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64196
    public boolean isSet(_Fields field) {
-
 
64197
      if (field == null) {
-
 
64198
        throw new IllegalArgumentException();
-
 
64199
      }
-
 
64200
 
-
 
64201
      switch (field) {
-
 
64202
      }
-
 
64203
      throw new IllegalStateException();
-
 
64204
    }
-
 
64205
 
-
 
64206
    @Override
-
 
64207
    public boolean equals(Object that) {
-
 
64208
      if (that == null)
-
 
64209
        return false;
-
 
64210
      if (that instanceof addOrUpdateFreebieForItem_result)
-
 
64211
        return this.equals((addOrUpdateFreebieForItem_result)that);
-
 
64212
      return false;
-
 
64213
    }
-
 
64214
 
-
 
64215
    public boolean equals(addOrUpdateFreebieForItem_result that) {
-
 
64216
      if (that == null)
-
 
64217
        return false;
-
 
64218
 
-
 
64219
      return true;
-
 
64220
    }
-
 
64221
 
-
 
64222
    @Override
-
 
64223
    public int hashCode() {
-
 
64224
      return 0;
-
 
64225
    }
-
 
64226
 
-
 
64227
    public int compareTo(addOrUpdateFreebieForItem_result other) {
-
 
64228
      if (!getClass().equals(other.getClass())) {
-
 
64229
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64230
      }
-
 
64231
 
-
 
64232
      int lastComparison = 0;
-
 
64233
      addOrUpdateFreebieForItem_result typedOther = (addOrUpdateFreebieForItem_result)other;
-
 
64234
 
-
 
64235
      return 0;
-
 
64236
    }
-
 
64237
 
-
 
64238
    public _Fields fieldForId(int fieldId) {
-
 
64239
      return _Fields.findByThriftId(fieldId);
-
 
64240
    }
-
 
64241
 
-
 
64242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64243
      org.apache.thrift.protocol.TField field;
-
 
64244
      iprot.readStructBegin();
-
 
64245
      while (true)
-
 
64246
      {
-
 
64247
        field = iprot.readFieldBegin();
-
 
64248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64249
          break;
-
 
64250
        }
-
 
64251
        switch (field.id) {
-
 
64252
          default:
-
 
64253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64254
        }
-
 
64255
        iprot.readFieldEnd();
-
 
64256
      }
-
 
64257
      iprot.readStructEnd();
-
 
64258
      validate();
-
 
64259
    }
-
 
64260
 
-
 
64261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64262
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64263
 
-
 
64264
      oprot.writeFieldStop();
-
 
64265
      oprot.writeStructEnd();
-
 
64266
    }
-
 
64267
 
-
 
64268
    @Override
-
 
64269
    public String toString() {
-
 
64270
      StringBuilder sb = new StringBuilder("addOrUpdateFreebieForItem_result(");
-
 
64271
      boolean first = true;
-
 
64272
 
-
 
64273
      sb.append(")");
-
 
64274
      return sb.toString();
-
 
64275
    }
63045
 
64276
 
63046
    public void validate() throws org.apache.thrift.TException {
64277
    public void validate() throws org.apache.thrift.TException {
63047
      // check for required fields
64278
      // check for required fields
63048
    }
64279
    }
63049
 
64280