Subversion Repositories SmartDukaan

Rev

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

Rev 7897 Rev 7977
Line 415... Line 415...
415
 
415
 
416
    public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException;
416
    public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException;
417
 
417
 
418
    public List<Category> getAllParentCategories() throws org.apache.thrift.TException;
418
    public List<Category> getAllParentCategories() throws org.apache.thrift.TException;
419
 
419
 
-
 
420
    public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException;
-
 
421
 
-
 
422
    public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException;
-
 
423
 
420
  }
424
  }
421
 
425
 
422
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
426
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
423
 
427
 
424
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
428
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 619... Line 623...
619
 
623
 
620
    public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException;
624
    public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException;
621
 
625
 
622
    public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException;
626
    public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException;
623
 
627
 
-
 
628
    public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException;
-
 
629
 
-
 
630
    public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCartEvent_call> resultHandler) throws org.apache.thrift.TException;
-
 
631
 
624
  }
632
  }
625
 
633
 
626
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
634
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
627
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
635
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
628
      public Factory() {}
636
      public Factory() {}
Line 3067... Line 3075...
3067
        return result.success;
3075
        return result.success;
3068
      }
3076
      }
3069
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
3077
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
3070
    }
3078
    }
3071
 
3079
 
-
 
3080
    public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException
-
 
3081
    {
-
 
3082
      send_addPageViewEvent(pageViewEvents);
-
 
3083
      recv_addPageViewEvent();
-
 
3084
    }
-
 
3085
 
-
 
3086
    public void send_addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException
-
 
3087
    {
-
 
3088
      addPageViewEvent_args args = new addPageViewEvent_args();
-
 
3089
      args.setPageViewEvents(pageViewEvents);
-
 
3090
      sendBase("addPageViewEvent", args);
-
 
3091
    }
-
 
3092
 
-
 
3093
    public void recv_addPageViewEvent() throws org.apache.thrift.TException
-
 
3094
    {
-
 
3095
      addPageViewEvent_result result = new addPageViewEvent_result();
-
 
3096
      receiveBase(result, "addPageViewEvent");
-
 
3097
      return;
-
 
3098
    }
-
 
3099
 
-
 
3100
    public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException
-
 
3101
    {
-
 
3102
      send_addCartEvent(cartEvents);
-
 
3103
      recv_addCartEvent();
-
 
3104
    }
-
 
3105
 
-
 
3106
    public void send_addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException
-
 
3107
    {
-
 
3108
      addCartEvent_args args = new addCartEvent_args();
-
 
3109
      args.setCartEvents(cartEvents);
-
 
3110
      sendBase("addCartEvent", args);
-
 
3111
    }
-
 
3112
 
-
 
3113
    public void recv_addCartEvent() throws org.apache.thrift.TException
-
 
3114
    {
-
 
3115
      addCartEvent_result result = new addCartEvent_result();
-
 
3116
      receiveBase(result, "addCartEvent");
-
 
3117
      return;
-
 
3118
    }
-
 
3119
 
3072
  }
3120
  }
3073
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3121
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3074
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3122
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3075
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3123
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3076
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3124
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6429... Line 6477...
6429
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6477
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6430
        return (new Client(prot)).recv_getAllParentCategories();
6478
        return (new Client(prot)).recv_getAllParentCategories();
6431
      }
6479
      }
6432
    }
6480
    }
6433
 
6481
 
-
 
6482
    public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException {
-
 
6483
      checkReady();
-
 
6484
      addPageViewEvent_call method_call = new addPageViewEvent_call(pageViewEvents, resultHandler, this, ___protocolFactory, ___transport);
-
 
6485
      this.___currentMethod = method_call;
-
 
6486
      ___manager.call(method_call);
-
 
6487
    }
-
 
6488
 
-
 
6489
    public static class addPageViewEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6490
      private PageViewEvents pageViewEvents;
-
 
6491
      public addPageViewEvent_call(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<addPageViewEvent_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 {
-
 
6492
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6493
        this.pageViewEvents = pageViewEvents;
-
 
6494
      }
-
 
6495
 
-
 
6496
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6497
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPageViewEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6498
        addPageViewEvent_args args = new addPageViewEvent_args();
-
 
6499
        args.setPageViewEvents(pageViewEvents);
-
 
6500
        args.write(prot);
-
 
6501
        prot.writeMessageEnd();
-
 
6502
      }
-
 
6503
 
-
 
6504
      public void getResult() throws org.apache.thrift.TException {
-
 
6505
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6506
          throw new IllegalStateException("Method call not finished!");
-
 
6507
        }
-
 
6508
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6509
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6510
        (new Client(prot)).recv_addPageViewEvent();
-
 
6511
      }
-
 
6512
    }
-
 
6513
 
-
 
6514
    public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<addCartEvent_call> resultHandler) throws org.apache.thrift.TException {
-
 
6515
      checkReady();
-
 
6516
      addCartEvent_call method_call = new addCartEvent_call(cartEvents, resultHandler, this, ___protocolFactory, ___transport);
-
 
6517
      this.___currentMethod = method_call;
-
 
6518
      ___manager.call(method_call);
-
 
6519
    }
-
 
6520
 
-
 
6521
    public static class addCartEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6522
      private CartEvents cartEvents;
-
 
6523
      public addCartEvent_call(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<addCartEvent_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 {
-
 
6524
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6525
        this.cartEvents = cartEvents;
-
 
6526
      }
-
 
6527
 
-
 
6528
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6529
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCartEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6530
        addCartEvent_args args = new addCartEvent_args();
-
 
6531
        args.setCartEvents(cartEvents);
-
 
6532
        args.write(prot);
-
 
6533
        prot.writeMessageEnd();
-
 
6534
      }
-
 
6535
 
-
 
6536
      public void getResult() throws org.apache.thrift.TException {
-
 
6537
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6538
          throw new IllegalStateException("Method call not finished!");
-
 
6539
        }
-
 
6540
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6541
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6542
        (new Client(prot)).recv_addCartEvent();
-
 
6543
      }
-
 
6544
    }
-
 
6545
 
6434
  }
6546
  }
6435
 
6547
 
6436
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6548
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6437
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6549
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6438
    public Processor(I iface) {
6550
    public Processor(I iface) {
Line 6542... Line 6654...
6542
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
6654
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
6543
      processMap.put("getAllNonFbaListedItems", new getAllNonFbaListedItems());
6655
      processMap.put("getAllNonFbaListedItems", new getAllNonFbaListedItems());
6544
      processMap.put("updateItemInventory", new updateItemInventory());
6656
      processMap.put("updateItemInventory", new updateItemInventory());
6545
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
6657
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
6546
      processMap.put("getAllParentCategories", new getAllParentCategories());
6658
      processMap.put("getAllParentCategories", new getAllParentCategories());
-
 
6659
      processMap.put("addPageViewEvent", new addPageViewEvent());
-
 
6660
      processMap.put("addCartEvent", new addCartEvent());
6547
      return processMap;
6661
      return processMap;
6548
    }
6662
    }
6549
 
6663
 
6550
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6664
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6551
      public addItem() {
6665
      public addItem() {
Line 8330... Line 8444...
8330
        result.success = iface.getAllParentCategories();
8444
        result.success = iface.getAllParentCategories();
8331
        return result;
8445
        return result;
8332
      }
8446
      }
8333
    }
8447
    }
8334
 
8448
 
-
 
8449
    private static class addPageViewEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPageViewEvent_args> {
-
 
8450
      public addPageViewEvent() {
-
 
8451
        super("addPageViewEvent");
-
 
8452
      }
-
 
8453
 
-
 
8454
      protected addPageViewEvent_args getEmptyArgsInstance() {
-
 
8455
        return new addPageViewEvent_args();
-
 
8456
      }
-
 
8457
 
-
 
8458
      protected addPageViewEvent_result getResult(I iface, addPageViewEvent_args args) throws org.apache.thrift.TException {
-
 
8459
        addPageViewEvent_result result = new addPageViewEvent_result();
-
 
8460
        iface.addPageViewEvent(args.pageViewEvents);
-
 
8461
        return result;
-
 
8462
      }
-
 
8463
    }
-
 
8464
 
-
 
8465
    private static class addCartEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCartEvent_args> {
-
 
8466
      public addCartEvent() {
-
 
8467
        super("addCartEvent");
-
 
8468
      }
-
 
8469
 
-
 
8470
      protected addCartEvent_args getEmptyArgsInstance() {
-
 
8471
        return new addCartEvent_args();
-
 
8472
      }
-
 
8473
 
-
 
8474
      protected addCartEvent_result getResult(I iface, addCartEvent_args args) throws org.apache.thrift.TException {
-
 
8475
        addCartEvent_result result = new addCartEvent_result();
-
 
8476
        iface.addCartEvent(args.cartEvents);
-
 
8477
        return result;
-
 
8478
      }
-
 
8479
    }
-
 
8480
 
8335
  }
8481
  }
8336
 
8482
 
8337
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8483
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8339
 
8485
 
Line 75067... Line 75213...
75067
      sb.append(")");
75213
      sb.append(")");
75068
      return sb.toString();
75214
      return sb.toString();
75069
    }
75215
    }
75070
 
75216
 
75071
    public void validate() throws org.apache.thrift.TException {
75217
    public void validate() throws org.apache.thrift.TException {
-
 
75218
      // check for required fields
-
 
75219
    }
-
 
75220
 
-
 
75221
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75222
      try {
-
 
75223
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75224
      } catch (org.apache.thrift.TException te) {
-
 
75225
        throw new java.io.IOException(te);
-
 
75226
      }
-
 
75227
    }
-
 
75228
 
-
 
75229
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75230
      try {
-
 
75231
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75232
      } catch (org.apache.thrift.TException te) {
-
 
75233
        throw new java.io.IOException(te);
-
 
75234
      }
-
 
75235
    }
-
 
75236
 
-
 
75237
  }
-
 
75238
 
-
 
75239
  public static class addPageViewEvent_args implements org.apache.thrift.TBase<addPageViewEvent_args, addPageViewEvent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
75240
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPageViewEvent_args");
-
 
75241
 
-
 
75242
    private static final org.apache.thrift.protocol.TField PAGE_VIEW_EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("pageViewEvents", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
75243
 
-
 
75244
    private PageViewEvents pageViewEvents; // required
-
 
75245
 
-
 
75246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75248
      PAGE_VIEW_EVENTS((short)1, "pageViewEvents");
-
 
75249
 
-
 
75250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75251
 
-
 
75252
      static {
-
 
75253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75254
          byName.put(field.getFieldName(), field);
-
 
75255
        }
-
 
75256
      }
-
 
75257
 
-
 
75258
      /**
-
 
75259
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75260
       */
-
 
75261
      public static _Fields findByThriftId(int fieldId) {
-
 
75262
        switch(fieldId) {
-
 
75263
          case 1: // PAGE_VIEW_EVENTS
-
 
75264
            return PAGE_VIEW_EVENTS;
-
 
75265
          default:
-
 
75266
            return null;
-
 
75267
        }
-
 
75268
      }
-
 
75269
 
-
 
75270
      /**
-
 
75271
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75272
       * if it is not found.
-
 
75273
       */
-
 
75274
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75275
        _Fields fields = findByThriftId(fieldId);
-
 
75276
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75277
        return fields;
-
 
75278
      }
-
 
75279
 
-
 
75280
      /**
-
 
75281
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75282
       */
-
 
75283
      public static _Fields findByName(String name) {
-
 
75284
        return byName.get(name);
-
 
75285
      }
-
 
75286
 
-
 
75287
      private final short _thriftId;
-
 
75288
      private final String _fieldName;
-
 
75289
 
-
 
75290
      _Fields(short thriftId, String fieldName) {
-
 
75291
        _thriftId = thriftId;
-
 
75292
        _fieldName = fieldName;
-
 
75293
      }
-
 
75294
 
-
 
75295
      public short getThriftFieldId() {
-
 
75296
        return _thriftId;
-
 
75297
      }
-
 
75298
 
-
 
75299
      public String getFieldName() {
-
 
75300
        return _fieldName;
-
 
75301
      }
-
 
75302
    }
-
 
75303
 
-
 
75304
    // isset id assignments
-
 
75305
 
-
 
75306
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75307
    static {
-
 
75308
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75309
      tmpMap.put(_Fields.PAGE_VIEW_EVENTS, new org.apache.thrift.meta_data.FieldMetaData("pageViewEvents", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
75310
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PageViewEvents.class)));
-
 
75311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPageViewEvent_args.class, metaDataMap);
-
 
75313
    }
-
 
75314
 
-
 
75315
    public addPageViewEvent_args() {
-
 
75316
    }
-
 
75317
 
-
 
75318
    public addPageViewEvent_args(
-
 
75319
      PageViewEvents pageViewEvents)
-
 
75320
    {
-
 
75321
      this();
-
 
75322
      this.pageViewEvents = pageViewEvents;
-
 
75323
    }
-
 
75324
 
-
 
75325
    /**
-
 
75326
     * Performs a deep copy on <i>other</i>.
-
 
75327
     */
-
 
75328
    public addPageViewEvent_args(addPageViewEvent_args other) {
-
 
75329
      if (other.isSetPageViewEvents()) {
-
 
75330
        this.pageViewEvents = new PageViewEvents(other.pageViewEvents);
-
 
75331
      }
-
 
75332
    }
-
 
75333
 
-
 
75334
    public addPageViewEvent_args deepCopy() {
-
 
75335
      return new addPageViewEvent_args(this);
-
 
75336
    }
-
 
75337
 
-
 
75338
    @Override
-
 
75339
    public void clear() {
-
 
75340
      this.pageViewEvents = null;
-
 
75341
    }
-
 
75342
 
-
 
75343
    public PageViewEvents getPageViewEvents() {
-
 
75344
      return this.pageViewEvents;
-
 
75345
    }
-
 
75346
 
-
 
75347
    public void setPageViewEvents(PageViewEvents pageViewEvents) {
-
 
75348
      this.pageViewEvents = pageViewEvents;
-
 
75349
    }
-
 
75350
 
-
 
75351
    public void unsetPageViewEvents() {
-
 
75352
      this.pageViewEvents = null;
-
 
75353
    }
-
 
75354
 
-
 
75355
    /** Returns true if field pageViewEvents is set (has been assigned a value) and false otherwise */
-
 
75356
    public boolean isSetPageViewEvents() {
-
 
75357
      return this.pageViewEvents != null;
-
 
75358
    }
-
 
75359
 
-
 
75360
    public void setPageViewEventsIsSet(boolean value) {
-
 
75361
      if (!value) {
-
 
75362
        this.pageViewEvents = null;
-
 
75363
      }
-
 
75364
    }
-
 
75365
 
-
 
75366
    public void setFieldValue(_Fields field, Object value) {
-
 
75367
      switch (field) {
-
 
75368
      case PAGE_VIEW_EVENTS:
-
 
75369
        if (value == null) {
-
 
75370
          unsetPageViewEvents();
-
 
75371
        } else {
-
 
75372
          setPageViewEvents((PageViewEvents)value);
-
 
75373
        }
-
 
75374
        break;
-
 
75375
 
-
 
75376
      }
-
 
75377
    }
-
 
75378
 
-
 
75379
    public Object getFieldValue(_Fields field) {
-
 
75380
      switch (field) {
-
 
75381
      case PAGE_VIEW_EVENTS:
-
 
75382
        return getPageViewEvents();
-
 
75383
 
-
 
75384
      }
-
 
75385
      throw new IllegalStateException();
-
 
75386
    }
-
 
75387
 
-
 
75388
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
75389
    public boolean isSet(_Fields field) {
-
 
75390
      if (field == null) {
-
 
75391
        throw new IllegalArgumentException();
-
 
75392
      }
-
 
75393
 
-
 
75394
      switch (field) {
-
 
75395
      case PAGE_VIEW_EVENTS:
-
 
75396
        return isSetPageViewEvents();
-
 
75397
      }
-
 
75398
      throw new IllegalStateException();
-
 
75399
    }
-
 
75400
 
-
 
75401
    @Override
-
 
75402
    public boolean equals(Object that) {
-
 
75403
      if (that == null)
-
 
75404
        return false;
-
 
75405
      if (that instanceof addPageViewEvent_args)
-
 
75406
        return this.equals((addPageViewEvent_args)that);
-
 
75407
      return false;
-
 
75408
    }
-
 
75409
 
-
 
75410
    public boolean equals(addPageViewEvent_args that) {
-
 
75411
      if (that == null)
-
 
75412
        return false;
-
 
75413
 
-
 
75414
      boolean this_present_pageViewEvents = true && this.isSetPageViewEvents();
-
 
75415
      boolean that_present_pageViewEvents = true && that.isSetPageViewEvents();
-
 
75416
      if (this_present_pageViewEvents || that_present_pageViewEvents) {
-
 
75417
        if (!(this_present_pageViewEvents && that_present_pageViewEvents))
-
 
75418
          return false;
-
 
75419
        if (!this.pageViewEvents.equals(that.pageViewEvents))
-
 
75420
          return false;
-
 
75421
      }
-
 
75422
 
-
 
75423
      return true;
-
 
75424
    }
-
 
75425
 
-
 
75426
    @Override
-
 
75427
    public int hashCode() {
-
 
75428
      return 0;
-
 
75429
    }
-
 
75430
 
-
 
75431
    public int compareTo(addPageViewEvent_args other) {
-
 
75432
      if (!getClass().equals(other.getClass())) {
-
 
75433
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75434
      }
-
 
75435
 
-
 
75436
      int lastComparison = 0;
-
 
75437
      addPageViewEvent_args typedOther = (addPageViewEvent_args)other;
-
 
75438
 
-
 
75439
      lastComparison = Boolean.valueOf(isSetPageViewEvents()).compareTo(typedOther.isSetPageViewEvents());
-
 
75440
      if (lastComparison != 0) {
-
 
75441
        return lastComparison;
-
 
75442
      }
-
 
75443
      if (isSetPageViewEvents()) {
-
 
75444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pageViewEvents, typedOther.pageViewEvents);
-
 
75445
        if (lastComparison != 0) {
-
 
75446
          return lastComparison;
-
 
75447
        }
-
 
75448
      }
-
 
75449
      return 0;
-
 
75450
    }
-
 
75451
 
-
 
75452
    public _Fields fieldForId(int fieldId) {
-
 
75453
      return _Fields.findByThriftId(fieldId);
-
 
75454
    }
-
 
75455
 
-
 
75456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75457
      org.apache.thrift.protocol.TField field;
-
 
75458
      iprot.readStructBegin();
-
 
75459
      while (true)
-
 
75460
      {
-
 
75461
        field = iprot.readFieldBegin();
-
 
75462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75463
          break;
-
 
75464
        }
-
 
75465
        switch (field.id) {
-
 
75466
          case 1: // PAGE_VIEW_EVENTS
-
 
75467
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
75468
              this.pageViewEvents = new PageViewEvents();
-
 
75469
              this.pageViewEvents.read(iprot);
-
 
75470
            } else { 
-
 
75471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75472
            }
-
 
75473
            break;
-
 
75474
          default:
-
 
75475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75476
        }
-
 
75477
        iprot.readFieldEnd();
-
 
75478
      }
-
 
75479
      iprot.readStructEnd();
-
 
75480
      validate();
-
 
75481
    }
-
 
75482
 
-
 
75483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75484
      validate();
-
 
75485
 
-
 
75486
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75487
      if (this.pageViewEvents != null) {
-
 
75488
        oprot.writeFieldBegin(PAGE_VIEW_EVENTS_FIELD_DESC);
-
 
75489
        this.pageViewEvents.write(oprot);
-
 
75490
        oprot.writeFieldEnd();
-
 
75491
      }
-
 
75492
      oprot.writeFieldStop();
-
 
75493
      oprot.writeStructEnd();
-
 
75494
    }
-
 
75495
 
-
 
75496
    @Override
-
 
75497
    public String toString() {
-
 
75498
      StringBuilder sb = new StringBuilder("addPageViewEvent_args(");
-
 
75499
      boolean first = true;
-
 
75500
 
-
 
75501
      sb.append("pageViewEvents:");
-
 
75502
      if (this.pageViewEvents == null) {
-
 
75503
        sb.append("null");
-
 
75504
      } else {
-
 
75505
        sb.append(this.pageViewEvents);
-
 
75506
      }
-
 
75507
      first = false;
-
 
75508
      sb.append(")");
-
 
75509
      return sb.toString();
-
 
75510
    }
-
 
75511
 
-
 
75512
    public void validate() throws org.apache.thrift.TException {
-
 
75513
      // check for required fields
-
 
75514
    }
-
 
75515
 
-
 
75516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75517
      try {
-
 
75518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75519
      } catch (org.apache.thrift.TException te) {
-
 
75520
        throw new java.io.IOException(te);
-
 
75521
      }
-
 
75522
    }
-
 
75523
 
-
 
75524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75525
      try {
-
 
75526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75527
      } catch (org.apache.thrift.TException te) {
-
 
75528
        throw new java.io.IOException(te);
-
 
75529
      }
-
 
75530
    }
-
 
75531
 
-
 
75532
  }
-
 
75533
 
-
 
75534
  public static class addPageViewEvent_result implements org.apache.thrift.TBase<addPageViewEvent_result, addPageViewEvent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
75535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPageViewEvent_result");
-
 
75536
 
-
 
75537
 
-
 
75538
 
-
 
75539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75541
;
-
 
75542
 
-
 
75543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75544
 
-
 
75545
      static {
-
 
75546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75547
          byName.put(field.getFieldName(), field);
-
 
75548
        }
-
 
75549
      }
-
 
75550
 
-
 
75551
      /**
-
 
75552
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75553
       */
-
 
75554
      public static _Fields findByThriftId(int fieldId) {
-
 
75555
        switch(fieldId) {
-
 
75556
          default:
-
 
75557
            return null;
-
 
75558
        }
-
 
75559
      }
-
 
75560
 
-
 
75561
      /**
-
 
75562
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75563
       * if it is not found.
-
 
75564
       */
-
 
75565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75566
        _Fields fields = findByThriftId(fieldId);
-
 
75567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75568
        return fields;
-
 
75569
      }
-
 
75570
 
-
 
75571
      /**
-
 
75572
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75573
       */
-
 
75574
      public static _Fields findByName(String name) {
-
 
75575
        return byName.get(name);
-
 
75576
      }
-
 
75577
 
-
 
75578
      private final short _thriftId;
-
 
75579
      private final String _fieldName;
-
 
75580
 
-
 
75581
      _Fields(short thriftId, String fieldName) {
-
 
75582
        _thriftId = thriftId;
-
 
75583
        _fieldName = fieldName;
-
 
75584
      }
-
 
75585
 
-
 
75586
      public short getThriftFieldId() {
-
 
75587
        return _thriftId;
-
 
75588
      }
-
 
75589
 
-
 
75590
      public String getFieldName() {
-
 
75591
        return _fieldName;
-
 
75592
      }
-
 
75593
    }
-
 
75594
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75595
    static {
-
 
75596
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPageViewEvent_result.class, metaDataMap);
-
 
75599
    }
-
 
75600
 
-
 
75601
    public addPageViewEvent_result() {
-
 
75602
    }
-
 
75603
 
-
 
75604
    /**
-
 
75605
     * Performs a deep copy on <i>other</i>.
-
 
75606
     */
-
 
75607
    public addPageViewEvent_result(addPageViewEvent_result other) {
-
 
75608
    }
-
 
75609
 
-
 
75610
    public addPageViewEvent_result deepCopy() {
-
 
75611
      return new addPageViewEvent_result(this);
-
 
75612
    }
-
 
75613
 
-
 
75614
    @Override
-
 
75615
    public void clear() {
-
 
75616
    }
-
 
75617
 
-
 
75618
    public void setFieldValue(_Fields field, Object value) {
-
 
75619
      switch (field) {
-
 
75620
      }
-
 
75621
    }
-
 
75622
 
-
 
75623
    public Object getFieldValue(_Fields field) {
-
 
75624
      switch (field) {
-
 
75625
      }
-
 
75626
      throw new IllegalStateException();
-
 
75627
    }
-
 
75628
 
-
 
75629
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
75630
    public boolean isSet(_Fields field) {
-
 
75631
      if (field == null) {
-
 
75632
        throw new IllegalArgumentException();
-
 
75633
      }
-
 
75634
 
-
 
75635
      switch (field) {
-
 
75636
      }
-
 
75637
      throw new IllegalStateException();
-
 
75638
    }
-
 
75639
 
-
 
75640
    @Override
-
 
75641
    public boolean equals(Object that) {
-
 
75642
      if (that == null)
-
 
75643
        return false;
-
 
75644
      if (that instanceof addPageViewEvent_result)
-
 
75645
        return this.equals((addPageViewEvent_result)that);
-
 
75646
      return false;
-
 
75647
    }
-
 
75648
 
-
 
75649
    public boolean equals(addPageViewEvent_result that) {
-
 
75650
      if (that == null)
-
 
75651
        return false;
-
 
75652
 
-
 
75653
      return true;
-
 
75654
    }
-
 
75655
 
-
 
75656
    @Override
-
 
75657
    public int hashCode() {
-
 
75658
      return 0;
-
 
75659
    }
-
 
75660
 
-
 
75661
    public int compareTo(addPageViewEvent_result other) {
-
 
75662
      if (!getClass().equals(other.getClass())) {
-
 
75663
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75664
      }
-
 
75665
 
-
 
75666
      int lastComparison = 0;
-
 
75667
      addPageViewEvent_result typedOther = (addPageViewEvent_result)other;
-
 
75668
 
-
 
75669
      return 0;
-
 
75670
    }
-
 
75671
 
-
 
75672
    public _Fields fieldForId(int fieldId) {
-
 
75673
      return _Fields.findByThriftId(fieldId);
-
 
75674
    }
-
 
75675
 
-
 
75676
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75677
      org.apache.thrift.protocol.TField field;
-
 
75678
      iprot.readStructBegin();
-
 
75679
      while (true)
-
 
75680
      {
-
 
75681
        field = iprot.readFieldBegin();
-
 
75682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75683
          break;
-
 
75684
        }
-
 
75685
        switch (field.id) {
-
 
75686
          default:
-
 
75687
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75688
        }
-
 
75689
        iprot.readFieldEnd();
-
 
75690
      }
-
 
75691
      iprot.readStructEnd();
-
 
75692
      validate();
-
 
75693
    }
-
 
75694
 
-
 
75695
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75696
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75697
 
-
 
75698
      oprot.writeFieldStop();
-
 
75699
      oprot.writeStructEnd();
-
 
75700
    }
-
 
75701
 
-
 
75702
    @Override
-
 
75703
    public String toString() {
-
 
75704
      StringBuilder sb = new StringBuilder("addPageViewEvent_result(");
-
 
75705
      boolean first = true;
-
 
75706
 
-
 
75707
      sb.append(")");
-
 
75708
      return sb.toString();
-
 
75709
    }
-
 
75710
 
-
 
75711
    public void validate() throws org.apache.thrift.TException {
-
 
75712
      // check for required fields
-
 
75713
    }
-
 
75714
 
-
 
75715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75716
      try {
-
 
75717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75718
      } catch (org.apache.thrift.TException te) {
-
 
75719
        throw new java.io.IOException(te);
-
 
75720
      }
-
 
75721
    }
-
 
75722
 
-
 
75723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75724
      try {
-
 
75725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75726
      } catch (org.apache.thrift.TException te) {
-
 
75727
        throw new java.io.IOException(te);
-
 
75728
      }
-
 
75729
    }
-
 
75730
 
-
 
75731
  }
-
 
75732
 
-
 
75733
  public static class addCartEvent_args implements org.apache.thrift.TBase<addCartEvent_args, addCartEvent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
75734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCartEvent_args");
-
 
75735
 
-
 
75736
    private static final org.apache.thrift.protocol.TField CART_EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("cartEvents", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
75737
 
-
 
75738
    private CartEvents cartEvents; // required
-
 
75739
 
-
 
75740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75742
      CART_EVENTS((short)1, "cartEvents");
-
 
75743
 
-
 
75744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75745
 
-
 
75746
      static {
-
 
75747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75748
          byName.put(field.getFieldName(), field);
-
 
75749
        }
-
 
75750
      }
-
 
75751
 
-
 
75752
      /**
-
 
75753
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75754
       */
-
 
75755
      public static _Fields findByThriftId(int fieldId) {
-
 
75756
        switch(fieldId) {
-
 
75757
          case 1: // CART_EVENTS
-
 
75758
            return CART_EVENTS;
-
 
75759
          default:
-
 
75760
            return null;
-
 
75761
        }
-
 
75762
      }
-
 
75763
 
-
 
75764
      /**
-
 
75765
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75766
       * if it is not found.
-
 
75767
       */
-
 
75768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75769
        _Fields fields = findByThriftId(fieldId);
-
 
75770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75771
        return fields;
-
 
75772
      }
-
 
75773
 
-
 
75774
      /**
-
 
75775
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75776
       */
-
 
75777
      public static _Fields findByName(String name) {
-
 
75778
        return byName.get(name);
-
 
75779
      }
-
 
75780
 
-
 
75781
      private final short _thriftId;
-
 
75782
      private final String _fieldName;
-
 
75783
 
-
 
75784
      _Fields(short thriftId, String fieldName) {
-
 
75785
        _thriftId = thriftId;
-
 
75786
        _fieldName = fieldName;
-
 
75787
      }
-
 
75788
 
-
 
75789
      public short getThriftFieldId() {
-
 
75790
        return _thriftId;
-
 
75791
      }
-
 
75792
 
-
 
75793
      public String getFieldName() {
-
 
75794
        return _fieldName;
-
 
75795
      }
-
 
75796
    }
-
 
75797
 
-
 
75798
    // isset id assignments
-
 
75799
 
-
 
75800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75801
    static {
-
 
75802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75803
      tmpMap.put(_Fields.CART_EVENTS, new org.apache.thrift.meta_data.FieldMetaData("cartEvents", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
75804
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CartEvents.class)));
-
 
75805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCartEvent_args.class, metaDataMap);
-
 
75807
    }
-
 
75808
 
-
 
75809
    public addCartEvent_args() {
-
 
75810
    }
-
 
75811
 
-
 
75812
    public addCartEvent_args(
-
 
75813
      CartEvents cartEvents)
-
 
75814
    {
-
 
75815
      this();
-
 
75816
      this.cartEvents = cartEvents;
-
 
75817
    }
-
 
75818
 
-
 
75819
    /**
-
 
75820
     * Performs a deep copy on <i>other</i>.
-
 
75821
     */
-
 
75822
    public addCartEvent_args(addCartEvent_args other) {
-
 
75823
      if (other.isSetCartEvents()) {
-
 
75824
        this.cartEvents = new CartEvents(other.cartEvents);
-
 
75825
      }
-
 
75826
    }
-
 
75827
 
-
 
75828
    public addCartEvent_args deepCopy() {
-
 
75829
      return new addCartEvent_args(this);
-
 
75830
    }
-
 
75831
 
-
 
75832
    @Override
-
 
75833
    public void clear() {
-
 
75834
      this.cartEvents = null;
-
 
75835
    }
-
 
75836
 
-
 
75837
    public CartEvents getCartEvents() {
-
 
75838
      return this.cartEvents;
-
 
75839
    }
-
 
75840
 
-
 
75841
    public void setCartEvents(CartEvents cartEvents) {
-
 
75842
      this.cartEvents = cartEvents;
-
 
75843
    }
-
 
75844
 
-
 
75845
    public void unsetCartEvents() {
-
 
75846
      this.cartEvents = null;
-
 
75847
    }
-
 
75848
 
-
 
75849
    /** Returns true if field cartEvents is set (has been assigned a value) and false otherwise */
-
 
75850
    public boolean isSetCartEvents() {
-
 
75851
      return this.cartEvents != null;
-
 
75852
    }
-
 
75853
 
-
 
75854
    public void setCartEventsIsSet(boolean value) {
-
 
75855
      if (!value) {
-
 
75856
        this.cartEvents = null;
-
 
75857
      }
-
 
75858
    }
-
 
75859
 
-
 
75860
    public void setFieldValue(_Fields field, Object value) {
-
 
75861
      switch (field) {
-
 
75862
      case CART_EVENTS:
-
 
75863
        if (value == null) {
-
 
75864
          unsetCartEvents();
-
 
75865
        } else {
-
 
75866
          setCartEvents((CartEvents)value);
-
 
75867
        }
-
 
75868
        break;
-
 
75869
 
-
 
75870
      }
-
 
75871
    }
-
 
75872
 
-
 
75873
    public Object getFieldValue(_Fields field) {
-
 
75874
      switch (field) {
-
 
75875
      case CART_EVENTS:
-
 
75876
        return getCartEvents();
-
 
75877
 
-
 
75878
      }
-
 
75879
      throw new IllegalStateException();
-
 
75880
    }
-
 
75881
 
-
 
75882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
75883
    public boolean isSet(_Fields field) {
-
 
75884
      if (field == null) {
-
 
75885
        throw new IllegalArgumentException();
-
 
75886
      }
-
 
75887
 
-
 
75888
      switch (field) {
-
 
75889
      case CART_EVENTS:
-
 
75890
        return isSetCartEvents();
-
 
75891
      }
-
 
75892
      throw new IllegalStateException();
-
 
75893
    }
-
 
75894
 
-
 
75895
    @Override
-
 
75896
    public boolean equals(Object that) {
-
 
75897
      if (that == null)
-
 
75898
        return false;
-
 
75899
      if (that instanceof addCartEvent_args)
-
 
75900
        return this.equals((addCartEvent_args)that);
-
 
75901
      return false;
-
 
75902
    }
-
 
75903
 
-
 
75904
    public boolean equals(addCartEvent_args that) {
-
 
75905
      if (that == null)
-
 
75906
        return false;
-
 
75907
 
-
 
75908
      boolean this_present_cartEvents = true && this.isSetCartEvents();
-
 
75909
      boolean that_present_cartEvents = true && that.isSetCartEvents();
-
 
75910
      if (this_present_cartEvents || that_present_cartEvents) {
-
 
75911
        if (!(this_present_cartEvents && that_present_cartEvents))
-
 
75912
          return false;
-
 
75913
        if (!this.cartEvents.equals(that.cartEvents))
-
 
75914
          return false;
-
 
75915
      }
-
 
75916
 
-
 
75917
      return true;
-
 
75918
    }
-
 
75919
 
-
 
75920
    @Override
-
 
75921
    public int hashCode() {
-
 
75922
      return 0;
-
 
75923
    }
-
 
75924
 
-
 
75925
    public int compareTo(addCartEvent_args other) {
-
 
75926
      if (!getClass().equals(other.getClass())) {
-
 
75927
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75928
      }
-
 
75929
 
-
 
75930
      int lastComparison = 0;
-
 
75931
      addCartEvent_args typedOther = (addCartEvent_args)other;
-
 
75932
 
-
 
75933
      lastComparison = Boolean.valueOf(isSetCartEvents()).compareTo(typedOther.isSetCartEvents());
-
 
75934
      if (lastComparison != 0) {
-
 
75935
        return lastComparison;
-
 
75936
      }
-
 
75937
      if (isSetCartEvents()) {
-
 
75938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartEvents, typedOther.cartEvents);
-
 
75939
        if (lastComparison != 0) {
-
 
75940
          return lastComparison;
-
 
75941
        }
-
 
75942
      }
-
 
75943
      return 0;
-
 
75944
    }
-
 
75945
 
-
 
75946
    public _Fields fieldForId(int fieldId) {
-
 
75947
      return _Fields.findByThriftId(fieldId);
-
 
75948
    }
-
 
75949
 
-
 
75950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75951
      org.apache.thrift.protocol.TField field;
-
 
75952
      iprot.readStructBegin();
-
 
75953
      while (true)
-
 
75954
      {
-
 
75955
        field = iprot.readFieldBegin();
-
 
75956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75957
          break;
-
 
75958
        }
-
 
75959
        switch (field.id) {
-
 
75960
          case 1: // CART_EVENTS
-
 
75961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
75962
              this.cartEvents = new CartEvents();
-
 
75963
              this.cartEvents.read(iprot);
-
 
75964
            } else { 
-
 
75965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75966
            }
-
 
75967
            break;
-
 
75968
          default:
-
 
75969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75970
        }
-
 
75971
        iprot.readFieldEnd();
-
 
75972
      }
-
 
75973
      iprot.readStructEnd();
-
 
75974
      validate();
-
 
75975
    }
-
 
75976
 
-
 
75977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75978
      validate();
-
 
75979
 
-
 
75980
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75981
      if (this.cartEvents != null) {
-
 
75982
        oprot.writeFieldBegin(CART_EVENTS_FIELD_DESC);
-
 
75983
        this.cartEvents.write(oprot);
-
 
75984
        oprot.writeFieldEnd();
-
 
75985
      }
-
 
75986
      oprot.writeFieldStop();
-
 
75987
      oprot.writeStructEnd();
-
 
75988
    }
-
 
75989
 
-
 
75990
    @Override
-
 
75991
    public String toString() {
-
 
75992
      StringBuilder sb = new StringBuilder("addCartEvent_args(");
-
 
75993
      boolean first = true;
-
 
75994
 
-
 
75995
      sb.append("cartEvents:");
-
 
75996
      if (this.cartEvents == null) {
-
 
75997
        sb.append("null");
-
 
75998
      } else {
-
 
75999
        sb.append(this.cartEvents);
-
 
76000
      }
-
 
76001
      first = false;
-
 
76002
      sb.append(")");
-
 
76003
      return sb.toString();
-
 
76004
    }
-
 
76005
 
-
 
76006
    public void validate() throws org.apache.thrift.TException {
-
 
76007
      // check for required fields
-
 
76008
    }
-
 
76009
 
-
 
76010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76011
      try {
-
 
76012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76013
      } catch (org.apache.thrift.TException te) {
-
 
76014
        throw new java.io.IOException(te);
-
 
76015
      }
-
 
76016
    }
-
 
76017
 
-
 
76018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76019
      try {
-
 
76020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76021
      } catch (org.apache.thrift.TException te) {
-
 
76022
        throw new java.io.IOException(te);
-
 
76023
      }
-
 
76024
    }
-
 
76025
 
-
 
76026
  }
-
 
76027
 
-
 
76028
  public static class addCartEvent_result implements org.apache.thrift.TBase<addCartEvent_result, addCartEvent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
76029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCartEvent_result");
-
 
76030
 
-
 
76031
 
-
 
76032
 
-
 
76033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76035
;
-
 
76036
 
-
 
76037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76038
 
-
 
76039
      static {
-
 
76040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76041
          byName.put(field.getFieldName(), field);
-
 
76042
        }
-
 
76043
      }
-
 
76044
 
-
 
76045
      /**
-
 
76046
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76047
       */
-
 
76048
      public static _Fields findByThriftId(int fieldId) {
-
 
76049
        switch(fieldId) {
-
 
76050
          default:
-
 
76051
            return null;
-
 
76052
        }
-
 
76053
      }
-
 
76054
 
-
 
76055
      /**
-
 
76056
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76057
       * if it is not found.
-
 
76058
       */
-
 
76059
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76060
        _Fields fields = findByThriftId(fieldId);
-
 
76061
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76062
        return fields;
-
 
76063
      }
-
 
76064
 
-
 
76065
      /**
-
 
76066
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76067
       */
-
 
76068
      public static _Fields findByName(String name) {
-
 
76069
        return byName.get(name);
-
 
76070
      }
-
 
76071
 
-
 
76072
      private final short _thriftId;
-
 
76073
      private final String _fieldName;
-
 
76074
 
-
 
76075
      _Fields(short thriftId, String fieldName) {
-
 
76076
        _thriftId = thriftId;
-
 
76077
        _fieldName = fieldName;
-
 
76078
      }
-
 
76079
 
-
 
76080
      public short getThriftFieldId() {
-
 
76081
        return _thriftId;
-
 
76082
      }
-
 
76083
 
-
 
76084
      public String getFieldName() {
-
 
76085
        return _fieldName;
-
 
76086
      }
-
 
76087
    }
-
 
76088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76089
    static {
-
 
76090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCartEvent_result.class, metaDataMap);
-
 
76093
    }
-
 
76094
 
-
 
76095
    public addCartEvent_result() {
-
 
76096
    }
-
 
76097
 
-
 
76098
    /**
-
 
76099
     * Performs a deep copy on <i>other</i>.
-
 
76100
     */
-
 
76101
    public addCartEvent_result(addCartEvent_result other) {
-
 
76102
    }
-
 
76103
 
-
 
76104
    public addCartEvent_result deepCopy() {
-
 
76105
      return new addCartEvent_result(this);
-
 
76106
    }
-
 
76107
 
-
 
76108
    @Override
-
 
76109
    public void clear() {
-
 
76110
    }
-
 
76111
 
-
 
76112
    public void setFieldValue(_Fields field, Object value) {
-
 
76113
      switch (field) {
-
 
76114
      }
-
 
76115
    }
-
 
76116
 
-
 
76117
    public Object getFieldValue(_Fields field) {
-
 
76118
      switch (field) {
-
 
76119
      }
-
 
76120
      throw new IllegalStateException();
-
 
76121
    }
-
 
76122
 
-
 
76123
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76124
    public boolean isSet(_Fields field) {
-
 
76125
      if (field == null) {
-
 
76126
        throw new IllegalArgumentException();
-
 
76127
      }
-
 
76128
 
-
 
76129
      switch (field) {
-
 
76130
      }
-
 
76131
      throw new IllegalStateException();
-
 
76132
    }
-
 
76133
 
-
 
76134
    @Override
-
 
76135
    public boolean equals(Object that) {
-
 
76136
      if (that == null)
-
 
76137
        return false;
-
 
76138
      if (that instanceof addCartEvent_result)
-
 
76139
        return this.equals((addCartEvent_result)that);
-
 
76140
      return false;
-
 
76141
    }
-
 
76142
 
-
 
76143
    public boolean equals(addCartEvent_result that) {
-
 
76144
      if (that == null)
-
 
76145
        return false;
-
 
76146
 
-
 
76147
      return true;
-
 
76148
    }
-
 
76149
 
-
 
76150
    @Override
-
 
76151
    public int hashCode() {
-
 
76152
      return 0;
-
 
76153
    }
-
 
76154
 
-
 
76155
    public int compareTo(addCartEvent_result other) {
-
 
76156
      if (!getClass().equals(other.getClass())) {
-
 
76157
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76158
      }
-
 
76159
 
-
 
76160
      int lastComparison = 0;
-
 
76161
      addCartEvent_result typedOther = (addCartEvent_result)other;
-
 
76162
 
-
 
76163
      return 0;
-
 
76164
    }
-
 
76165
 
-
 
76166
    public _Fields fieldForId(int fieldId) {
-
 
76167
      return _Fields.findByThriftId(fieldId);
-
 
76168
    }
-
 
76169
 
-
 
76170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76171
      org.apache.thrift.protocol.TField field;
-
 
76172
      iprot.readStructBegin();
-
 
76173
      while (true)
-
 
76174
      {
-
 
76175
        field = iprot.readFieldBegin();
-
 
76176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76177
          break;
-
 
76178
        }
-
 
76179
        switch (field.id) {
-
 
76180
          default:
-
 
76181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76182
        }
-
 
76183
        iprot.readFieldEnd();
-
 
76184
      }
-
 
76185
      iprot.readStructEnd();
-
 
76186
      validate();
-
 
76187
    }
-
 
76188
 
-
 
76189
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76190
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76191
 
-
 
76192
      oprot.writeFieldStop();
-
 
76193
      oprot.writeStructEnd();
-
 
76194
    }
-
 
76195
 
-
 
76196
    @Override
-
 
76197
    public String toString() {
-
 
76198
      StringBuilder sb = new StringBuilder("addCartEvent_result(");
-
 
76199
      boolean first = true;
-
 
76200
 
-
 
76201
      sb.append(")");
-
 
76202
      return sb.toString();
-
 
76203
    }
-
 
76204
 
-
 
76205
    public void validate() throws org.apache.thrift.TException {
75072
      // check for required fields
76206
      // check for required fields
75073
    }
76207
    }
75074
 
76208
 
75075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
76209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
75076
      try {
76210
      try {