protobuf-platform 1.2.208 → 1.2.210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,8 @@ service Analytic {
19
19
  rpc getMainDashboard(DashboardRequest) returns (MainDashboardResponse);
20
20
  //Segmentation
21
21
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
22
+ //Scaleo Activity Events
23
+ rpc getScaleoActivityBuckets(ScaleoActivityBucketsRequest) returns (ScaleoActivityBucketsResponse);
22
24
  }
23
25
 
24
26
  //Technical
@@ -262,4 +264,28 @@ message SegmentedUserRequest {
262
264
 
263
265
  message SegmentedUserResponse {
264
266
  repeated int32 user_ids = 1;
267
+ }
268
+
269
+ //Scaleo Activity Events
270
+ message ScaleoActivityBucketsRequest {
271
+ string date_start = 1; // UTC "YYYY-MM-DD HH:MM:SS" (inclusive)
272
+ string date_end = 2; // UTC "YYYY-MM-DD HH:MM:SS" (exclusive)
273
+ repeated string types = 3; // allowed: "bet", "win"
274
+ optional int32 limit = 4; // default handled by gateway/service, e.g. 1000 max
275
+ optional string cursor = 5; // opaque cursor returned by previous response
276
+ }
277
+
278
+ message ScaleoActivityBucketsResponse {
279
+ repeated ScaleoActivityBucketItem items = 1;
280
+ optional string next_cursor = 2; // present if there are more items
281
+ }
282
+
283
+ message ScaleoActivityBucketItem {
284
+ string hour = 1; // UTC bucket start "YYYY-MM-DD HH:00:00"
285
+ string type = 2; // "bet" | "win"
286
+ int32 user_id = 3; // internal numeric user id (used to join with user service)
287
+ string product = 4; // "casino" | "sportsbook"
288
+ int32 count = 5; // aggregated count for the bucket
289
+ double amount = 6; // aggregated amount for the bucket (supports decimals)
290
+ string currency = 7; // currency code used by analytic for this aggregation
265
291
  }
@@ -114,6 +114,28 @@ function deserialize_analytic_PongResponse(buffer_arg) {
114
114
  return analytic_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_analytic_ScaleoActivityBucketsRequest(arg) {
118
+ if (!(arg instanceof analytic_pb.ScaleoActivityBucketsRequest)) {
119
+ throw new Error('Expected argument of type analytic.ScaleoActivityBucketsRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_analytic_ScaleoActivityBucketsRequest(buffer_arg) {
125
+ return analytic_pb.ScaleoActivityBucketsRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_analytic_ScaleoActivityBucketsResponse(arg) {
129
+ if (!(arg instanceof analytic_pb.ScaleoActivityBucketsResponse)) {
130
+ throw new Error('Expected argument of type analytic.ScaleoActivityBucketsResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_analytic_ScaleoActivityBucketsResponse(buffer_arg) {
136
+ return analytic_pb.ScaleoActivityBucketsResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
117
139
  function serialize_analytic_SegmentedUserRequest(arg) {
118
140
  if (!(arg instanceof analytic_pb.SegmentedUserRequest)) {
119
141
  throw new Error('Expected argument of type analytic.SegmentedUserRequest');
@@ -255,6 +277,18 @@ getSegmentedUsers: {
255
277
  responseSerialize: serialize_analytic_SegmentedUserResponse,
256
278
  responseDeserialize: deserialize_analytic_SegmentedUserResponse,
257
279
  },
280
+ // Scaleo Activity Events
281
+ getScaleoActivityBuckets: {
282
+ path: '/analytic.Analytic/getScaleoActivityBuckets',
283
+ requestStream: false,
284
+ responseStream: false,
285
+ requestType: analytic_pb.ScaleoActivityBucketsRequest,
286
+ responseType: analytic_pb.ScaleoActivityBucketsResponse,
287
+ requestSerialize: serialize_analytic_ScaleoActivityBucketsRequest,
288
+ requestDeserialize: deserialize_analytic_ScaleoActivityBucketsRequest,
289
+ responseSerialize: serialize_analytic_ScaleoActivityBucketsResponse,
290
+ responseDeserialize: deserialize_analytic_ScaleoActivityBucketsResponse,
291
+ },
258
292
  };
259
293
 
260
294
  exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
@@ -39,6 +39,9 @@ goog.exportSymbol('proto.analytic.PaymentItem', null, global);
39
39
  goog.exportSymbol('proto.analytic.PaymentProvidersResponse', null, global);
40
40
  goog.exportSymbol('proto.analytic.PingRequest', null, global);
41
41
  goog.exportSymbol('proto.analytic.PongResponse', null, global);
42
+ goog.exportSymbol('proto.analytic.ScaleoActivityBucketItem', null, global);
43
+ goog.exportSymbol('proto.analytic.ScaleoActivityBucketsRequest', null, global);
44
+ goog.exportSymbol('proto.analytic.ScaleoActivityBucketsResponse', null, global);
42
45
  goog.exportSymbol('proto.analytic.SegmentedUserRequest', null, global);
43
46
  goog.exportSymbol('proto.analytic.SegmentedUserResponse', null, global);
44
47
  goog.exportSymbol('proto.analytic.SportItem', null, global);
@@ -527,6 +530,69 @@ if (goog.DEBUG && !COMPILED) {
527
530
  */
528
531
  proto.analytic.SegmentedUserResponse.displayName = 'proto.analytic.SegmentedUserResponse';
529
532
  }
533
+ /**
534
+ * Generated by JsPbCodeGenerator.
535
+ * @param {Array=} opt_data Optional initial data array, typically from a
536
+ * server response, or constructed directly in Javascript. The array is used
537
+ * in place and becomes part of the constructed object. It is not cloned.
538
+ * If no data is provided, the constructed object will be empty, but still
539
+ * valid.
540
+ * @extends {jspb.Message}
541
+ * @constructor
542
+ */
543
+ proto.analytic.ScaleoActivityBucketsRequest = function(opt_data) {
544
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.ScaleoActivityBucketsRequest.repeatedFields_, null);
545
+ };
546
+ goog.inherits(proto.analytic.ScaleoActivityBucketsRequest, jspb.Message);
547
+ if (goog.DEBUG && !COMPILED) {
548
+ /**
549
+ * @public
550
+ * @override
551
+ */
552
+ proto.analytic.ScaleoActivityBucketsRequest.displayName = 'proto.analytic.ScaleoActivityBucketsRequest';
553
+ }
554
+ /**
555
+ * Generated by JsPbCodeGenerator.
556
+ * @param {Array=} opt_data Optional initial data array, typically from a
557
+ * server response, or constructed directly in Javascript. The array is used
558
+ * in place and becomes part of the constructed object. It is not cloned.
559
+ * If no data is provided, the constructed object will be empty, but still
560
+ * valid.
561
+ * @extends {jspb.Message}
562
+ * @constructor
563
+ */
564
+ proto.analytic.ScaleoActivityBucketsResponse = function(opt_data) {
565
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.ScaleoActivityBucketsResponse.repeatedFields_, null);
566
+ };
567
+ goog.inherits(proto.analytic.ScaleoActivityBucketsResponse, jspb.Message);
568
+ if (goog.DEBUG && !COMPILED) {
569
+ /**
570
+ * @public
571
+ * @override
572
+ */
573
+ proto.analytic.ScaleoActivityBucketsResponse.displayName = 'proto.analytic.ScaleoActivityBucketsResponse';
574
+ }
575
+ /**
576
+ * Generated by JsPbCodeGenerator.
577
+ * @param {Array=} opt_data Optional initial data array, typically from a
578
+ * server response, or constructed directly in Javascript. The array is used
579
+ * in place and becomes part of the constructed object. It is not cloned.
580
+ * If no data is provided, the constructed object will be empty, but still
581
+ * valid.
582
+ * @extends {jspb.Message}
583
+ * @constructor
584
+ */
585
+ proto.analytic.ScaleoActivityBucketItem = function(opt_data) {
586
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
587
+ };
588
+ goog.inherits(proto.analytic.ScaleoActivityBucketItem, jspb.Message);
589
+ if (goog.DEBUG && !COMPILED) {
590
+ /**
591
+ * @public
592
+ * @override
593
+ */
594
+ proto.analytic.ScaleoActivityBucketItem.displayName = 'proto.analytic.ScaleoActivityBucketItem';
595
+ }
530
596
 
531
597
 
532
598
 
@@ -10406,4 +10472,834 @@ proto.analytic.SegmentedUserResponse.prototype.clearUserIdsList = function() {
10406
10472
  };
10407
10473
 
10408
10474
 
10475
+
10476
+ /**
10477
+ * List of repeated fields within this message type.
10478
+ * @private {!Array<number>}
10479
+ * @const
10480
+ */
10481
+ proto.analytic.ScaleoActivityBucketsRequest.repeatedFields_ = [3];
10482
+
10483
+
10484
+
10485
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10486
+ /**
10487
+ * Creates an object representation of this proto.
10488
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10489
+ * Optional fields that are not set will be set to undefined.
10490
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10491
+ * For the list of reserved names please see:
10492
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10493
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10494
+ * JSPB instance for transitional soy proto support:
10495
+ * http://goto/soy-param-migration
10496
+ * @return {!Object}
10497
+ */
10498
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.toObject = function(opt_includeInstance) {
10499
+ return proto.analytic.ScaleoActivityBucketsRequest.toObject(opt_includeInstance, this);
10500
+ };
10501
+
10502
+
10503
+ /**
10504
+ * Static version of the {@see toObject} method.
10505
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10506
+ * the JSPB instance for transitional soy proto support:
10507
+ * http://goto/soy-param-migration
10508
+ * @param {!proto.analytic.ScaleoActivityBucketsRequest} msg The msg instance to transform.
10509
+ * @return {!Object}
10510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10511
+ */
10512
+ proto.analytic.ScaleoActivityBucketsRequest.toObject = function(includeInstance, msg) {
10513
+ var f, obj = {
10514
+ dateStart: jspb.Message.getFieldWithDefault(msg, 1, ""),
10515
+ dateEnd: jspb.Message.getFieldWithDefault(msg, 2, ""),
10516
+ typesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
10517
+ limit: jspb.Message.getFieldWithDefault(msg, 4, 0),
10518
+ cursor: jspb.Message.getFieldWithDefault(msg, 5, "")
10519
+ };
10520
+
10521
+ if (includeInstance) {
10522
+ obj.$jspbMessageInstance = msg;
10523
+ }
10524
+ return obj;
10525
+ };
10526
+ }
10527
+
10528
+
10529
+ /**
10530
+ * Deserializes binary data (in protobuf wire format).
10531
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10532
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest}
10533
+ */
10534
+ proto.analytic.ScaleoActivityBucketsRequest.deserializeBinary = function(bytes) {
10535
+ var reader = new jspb.BinaryReader(bytes);
10536
+ var msg = new proto.analytic.ScaleoActivityBucketsRequest;
10537
+ return proto.analytic.ScaleoActivityBucketsRequest.deserializeBinaryFromReader(msg, reader);
10538
+ };
10539
+
10540
+
10541
+ /**
10542
+ * Deserializes binary data (in protobuf wire format) from the
10543
+ * given reader into the given message object.
10544
+ * @param {!proto.analytic.ScaleoActivityBucketsRequest} msg The message object to deserialize into.
10545
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10546
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest}
10547
+ */
10548
+ proto.analytic.ScaleoActivityBucketsRequest.deserializeBinaryFromReader = function(msg, reader) {
10549
+ while (reader.nextField()) {
10550
+ if (reader.isEndGroup()) {
10551
+ break;
10552
+ }
10553
+ var field = reader.getFieldNumber();
10554
+ switch (field) {
10555
+ case 1:
10556
+ var value = /** @type {string} */ (reader.readString());
10557
+ msg.setDateStart(value);
10558
+ break;
10559
+ case 2:
10560
+ var value = /** @type {string} */ (reader.readString());
10561
+ msg.setDateEnd(value);
10562
+ break;
10563
+ case 3:
10564
+ var value = /** @type {string} */ (reader.readString());
10565
+ msg.addTypes(value);
10566
+ break;
10567
+ case 4:
10568
+ var value = /** @type {number} */ (reader.readInt32());
10569
+ msg.setLimit(value);
10570
+ break;
10571
+ case 5:
10572
+ var value = /** @type {string} */ (reader.readString());
10573
+ msg.setCursor(value);
10574
+ break;
10575
+ default:
10576
+ reader.skipField();
10577
+ break;
10578
+ }
10579
+ }
10580
+ return msg;
10581
+ };
10582
+
10583
+
10584
+ /**
10585
+ * Serializes the message to binary data (in protobuf wire format).
10586
+ * @return {!Uint8Array}
10587
+ */
10588
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.serializeBinary = function() {
10589
+ var writer = new jspb.BinaryWriter();
10590
+ proto.analytic.ScaleoActivityBucketsRequest.serializeBinaryToWriter(this, writer);
10591
+ return writer.getResultBuffer();
10592
+ };
10593
+
10594
+
10595
+ /**
10596
+ * Serializes the given message to binary data (in protobuf wire
10597
+ * format), writing to the given BinaryWriter.
10598
+ * @param {!proto.analytic.ScaleoActivityBucketsRequest} message
10599
+ * @param {!jspb.BinaryWriter} writer
10600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10601
+ */
10602
+ proto.analytic.ScaleoActivityBucketsRequest.serializeBinaryToWriter = function(message, writer) {
10603
+ var f = undefined;
10604
+ f = message.getDateStart();
10605
+ if (f.length > 0) {
10606
+ writer.writeString(
10607
+ 1,
10608
+ f
10609
+ );
10610
+ }
10611
+ f = message.getDateEnd();
10612
+ if (f.length > 0) {
10613
+ writer.writeString(
10614
+ 2,
10615
+ f
10616
+ );
10617
+ }
10618
+ f = message.getTypesList();
10619
+ if (f.length > 0) {
10620
+ writer.writeRepeatedString(
10621
+ 3,
10622
+ f
10623
+ );
10624
+ }
10625
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
10626
+ if (f != null) {
10627
+ writer.writeInt32(
10628
+ 4,
10629
+ f
10630
+ );
10631
+ }
10632
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
10633
+ if (f != null) {
10634
+ writer.writeString(
10635
+ 5,
10636
+ f
10637
+ );
10638
+ }
10639
+ };
10640
+
10641
+
10642
+ /**
10643
+ * optional string date_start = 1;
10644
+ * @return {string}
10645
+ */
10646
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.getDateStart = function() {
10647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10648
+ };
10649
+
10650
+
10651
+ /**
10652
+ * @param {string} value
10653
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10654
+ */
10655
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.setDateStart = function(value) {
10656
+ return jspb.Message.setProto3StringField(this, 1, value);
10657
+ };
10658
+
10659
+
10660
+ /**
10661
+ * optional string date_end = 2;
10662
+ * @return {string}
10663
+ */
10664
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.getDateEnd = function() {
10665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10666
+ };
10667
+
10668
+
10669
+ /**
10670
+ * @param {string} value
10671
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10672
+ */
10673
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.setDateEnd = function(value) {
10674
+ return jspb.Message.setProto3StringField(this, 2, value);
10675
+ };
10676
+
10677
+
10678
+ /**
10679
+ * repeated string types = 3;
10680
+ * @return {!Array<string>}
10681
+ */
10682
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.getTypesList = function() {
10683
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
10684
+ };
10685
+
10686
+
10687
+ /**
10688
+ * @param {!Array<string>} value
10689
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10690
+ */
10691
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.setTypesList = function(value) {
10692
+ return jspb.Message.setField(this, 3, value || []);
10693
+ };
10694
+
10695
+
10696
+ /**
10697
+ * @param {string} value
10698
+ * @param {number=} opt_index
10699
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10700
+ */
10701
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.addTypes = function(value, opt_index) {
10702
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
10703
+ };
10704
+
10705
+
10706
+ /**
10707
+ * Clears the list making it empty but non-null.
10708
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10709
+ */
10710
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.clearTypesList = function() {
10711
+ return this.setTypesList([]);
10712
+ };
10713
+
10714
+
10715
+ /**
10716
+ * optional int32 limit = 4;
10717
+ * @return {number}
10718
+ */
10719
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.getLimit = function() {
10720
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
10721
+ };
10722
+
10723
+
10724
+ /**
10725
+ * @param {number} value
10726
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10727
+ */
10728
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.setLimit = function(value) {
10729
+ return jspb.Message.setField(this, 4, value);
10730
+ };
10731
+
10732
+
10733
+ /**
10734
+ * Clears the field making it undefined.
10735
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10736
+ */
10737
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.clearLimit = function() {
10738
+ return jspb.Message.setField(this, 4, undefined);
10739
+ };
10740
+
10741
+
10742
+ /**
10743
+ * Returns whether this field is set.
10744
+ * @return {boolean}
10745
+ */
10746
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.hasLimit = function() {
10747
+ return jspb.Message.getField(this, 4) != null;
10748
+ };
10749
+
10750
+
10751
+ /**
10752
+ * optional string cursor = 5;
10753
+ * @return {string}
10754
+ */
10755
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.getCursor = function() {
10756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
10757
+ };
10758
+
10759
+
10760
+ /**
10761
+ * @param {string} value
10762
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10763
+ */
10764
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.setCursor = function(value) {
10765
+ return jspb.Message.setField(this, 5, value);
10766
+ };
10767
+
10768
+
10769
+ /**
10770
+ * Clears the field making it undefined.
10771
+ * @return {!proto.analytic.ScaleoActivityBucketsRequest} returns this
10772
+ */
10773
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.clearCursor = function() {
10774
+ return jspb.Message.setField(this, 5, undefined);
10775
+ };
10776
+
10777
+
10778
+ /**
10779
+ * Returns whether this field is set.
10780
+ * @return {boolean}
10781
+ */
10782
+ proto.analytic.ScaleoActivityBucketsRequest.prototype.hasCursor = function() {
10783
+ return jspb.Message.getField(this, 5) != null;
10784
+ };
10785
+
10786
+
10787
+
10788
+ /**
10789
+ * List of repeated fields within this message type.
10790
+ * @private {!Array<number>}
10791
+ * @const
10792
+ */
10793
+ proto.analytic.ScaleoActivityBucketsResponse.repeatedFields_ = [1];
10794
+
10795
+
10796
+
10797
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10798
+ /**
10799
+ * Creates an object representation of this proto.
10800
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10801
+ * Optional fields that are not set will be set to undefined.
10802
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10803
+ * For the list of reserved names please see:
10804
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10805
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10806
+ * JSPB instance for transitional soy proto support:
10807
+ * http://goto/soy-param-migration
10808
+ * @return {!Object}
10809
+ */
10810
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.toObject = function(opt_includeInstance) {
10811
+ return proto.analytic.ScaleoActivityBucketsResponse.toObject(opt_includeInstance, this);
10812
+ };
10813
+
10814
+
10815
+ /**
10816
+ * Static version of the {@see toObject} method.
10817
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10818
+ * the JSPB instance for transitional soy proto support:
10819
+ * http://goto/soy-param-migration
10820
+ * @param {!proto.analytic.ScaleoActivityBucketsResponse} msg The msg instance to transform.
10821
+ * @return {!Object}
10822
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10823
+ */
10824
+ proto.analytic.ScaleoActivityBucketsResponse.toObject = function(includeInstance, msg) {
10825
+ var f, obj = {
10826
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
10827
+ proto.analytic.ScaleoActivityBucketItem.toObject, includeInstance),
10828
+ nextCursor: jspb.Message.getFieldWithDefault(msg, 2, "")
10829
+ };
10830
+
10831
+ if (includeInstance) {
10832
+ obj.$jspbMessageInstance = msg;
10833
+ }
10834
+ return obj;
10835
+ };
10836
+ }
10837
+
10838
+
10839
+ /**
10840
+ * Deserializes binary data (in protobuf wire format).
10841
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10842
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse}
10843
+ */
10844
+ proto.analytic.ScaleoActivityBucketsResponse.deserializeBinary = function(bytes) {
10845
+ var reader = new jspb.BinaryReader(bytes);
10846
+ var msg = new proto.analytic.ScaleoActivityBucketsResponse;
10847
+ return proto.analytic.ScaleoActivityBucketsResponse.deserializeBinaryFromReader(msg, reader);
10848
+ };
10849
+
10850
+
10851
+ /**
10852
+ * Deserializes binary data (in protobuf wire format) from the
10853
+ * given reader into the given message object.
10854
+ * @param {!proto.analytic.ScaleoActivityBucketsResponse} msg The message object to deserialize into.
10855
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10856
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse}
10857
+ */
10858
+ proto.analytic.ScaleoActivityBucketsResponse.deserializeBinaryFromReader = function(msg, reader) {
10859
+ while (reader.nextField()) {
10860
+ if (reader.isEndGroup()) {
10861
+ break;
10862
+ }
10863
+ var field = reader.getFieldNumber();
10864
+ switch (field) {
10865
+ case 1:
10866
+ var value = new proto.analytic.ScaleoActivityBucketItem;
10867
+ reader.readMessage(value,proto.analytic.ScaleoActivityBucketItem.deserializeBinaryFromReader);
10868
+ msg.addItems(value);
10869
+ break;
10870
+ case 2:
10871
+ var value = /** @type {string} */ (reader.readString());
10872
+ msg.setNextCursor(value);
10873
+ break;
10874
+ default:
10875
+ reader.skipField();
10876
+ break;
10877
+ }
10878
+ }
10879
+ return msg;
10880
+ };
10881
+
10882
+
10883
+ /**
10884
+ * Serializes the message to binary data (in protobuf wire format).
10885
+ * @return {!Uint8Array}
10886
+ */
10887
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.serializeBinary = function() {
10888
+ var writer = new jspb.BinaryWriter();
10889
+ proto.analytic.ScaleoActivityBucketsResponse.serializeBinaryToWriter(this, writer);
10890
+ return writer.getResultBuffer();
10891
+ };
10892
+
10893
+
10894
+ /**
10895
+ * Serializes the given message to binary data (in protobuf wire
10896
+ * format), writing to the given BinaryWriter.
10897
+ * @param {!proto.analytic.ScaleoActivityBucketsResponse} message
10898
+ * @param {!jspb.BinaryWriter} writer
10899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10900
+ */
10901
+ proto.analytic.ScaleoActivityBucketsResponse.serializeBinaryToWriter = function(message, writer) {
10902
+ var f = undefined;
10903
+ f = message.getItemsList();
10904
+ if (f.length > 0) {
10905
+ writer.writeRepeatedMessage(
10906
+ 1,
10907
+ f,
10908
+ proto.analytic.ScaleoActivityBucketItem.serializeBinaryToWriter
10909
+ );
10910
+ }
10911
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
10912
+ if (f != null) {
10913
+ writer.writeString(
10914
+ 2,
10915
+ f
10916
+ );
10917
+ }
10918
+ };
10919
+
10920
+
10921
+ /**
10922
+ * repeated ScaleoActivityBucketItem items = 1;
10923
+ * @return {!Array<!proto.analytic.ScaleoActivityBucketItem>}
10924
+ */
10925
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.getItemsList = function() {
10926
+ return /** @type{!Array<!proto.analytic.ScaleoActivityBucketItem>} */ (
10927
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.ScaleoActivityBucketItem, 1));
10928
+ };
10929
+
10930
+
10931
+ /**
10932
+ * @param {!Array<!proto.analytic.ScaleoActivityBucketItem>} value
10933
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse} returns this
10934
+ */
10935
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.setItemsList = function(value) {
10936
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10937
+ };
10938
+
10939
+
10940
+ /**
10941
+ * @param {!proto.analytic.ScaleoActivityBucketItem=} opt_value
10942
+ * @param {number=} opt_index
10943
+ * @return {!proto.analytic.ScaleoActivityBucketItem}
10944
+ */
10945
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.addItems = function(opt_value, opt_index) {
10946
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.analytic.ScaleoActivityBucketItem, opt_index);
10947
+ };
10948
+
10949
+
10950
+ /**
10951
+ * Clears the list making it empty but non-null.
10952
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse} returns this
10953
+ */
10954
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.clearItemsList = function() {
10955
+ return this.setItemsList([]);
10956
+ };
10957
+
10958
+
10959
+ /**
10960
+ * optional string next_cursor = 2;
10961
+ * @return {string}
10962
+ */
10963
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.getNextCursor = function() {
10964
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10965
+ };
10966
+
10967
+
10968
+ /**
10969
+ * @param {string} value
10970
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse} returns this
10971
+ */
10972
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.setNextCursor = function(value) {
10973
+ return jspb.Message.setField(this, 2, value);
10974
+ };
10975
+
10976
+
10977
+ /**
10978
+ * Clears the field making it undefined.
10979
+ * @return {!proto.analytic.ScaleoActivityBucketsResponse} returns this
10980
+ */
10981
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.clearNextCursor = function() {
10982
+ return jspb.Message.setField(this, 2, undefined);
10983
+ };
10984
+
10985
+
10986
+ /**
10987
+ * Returns whether this field is set.
10988
+ * @return {boolean}
10989
+ */
10990
+ proto.analytic.ScaleoActivityBucketsResponse.prototype.hasNextCursor = function() {
10991
+ return jspb.Message.getField(this, 2) != null;
10992
+ };
10993
+
10994
+
10995
+
10996
+
10997
+
10998
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10999
+ /**
11000
+ * Creates an object representation of this proto.
11001
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11002
+ * Optional fields that are not set will be set to undefined.
11003
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11004
+ * For the list of reserved names please see:
11005
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11006
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11007
+ * JSPB instance for transitional soy proto support:
11008
+ * http://goto/soy-param-migration
11009
+ * @return {!Object}
11010
+ */
11011
+ proto.analytic.ScaleoActivityBucketItem.prototype.toObject = function(opt_includeInstance) {
11012
+ return proto.analytic.ScaleoActivityBucketItem.toObject(opt_includeInstance, this);
11013
+ };
11014
+
11015
+
11016
+ /**
11017
+ * Static version of the {@see toObject} method.
11018
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11019
+ * the JSPB instance for transitional soy proto support:
11020
+ * http://goto/soy-param-migration
11021
+ * @param {!proto.analytic.ScaleoActivityBucketItem} msg The msg instance to transform.
11022
+ * @return {!Object}
11023
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11024
+ */
11025
+ proto.analytic.ScaleoActivityBucketItem.toObject = function(includeInstance, msg) {
11026
+ var f, obj = {
11027
+ hour: jspb.Message.getFieldWithDefault(msg, 1, ""),
11028
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
11029
+ userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
11030
+ product: jspb.Message.getFieldWithDefault(msg, 4, ""),
11031
+ count: jspb.Message.getFieldWithDefault(msg, 5, 0),
11032
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
11033
+ currency: jspb.Message.getFieldWithDefault(msg, 7, "")
11034
+ };
11035
+
11036
+ if (includeInstance) {
11037
+ obj.$jspbMessageInstance = msg;
11038
+ }
11039
+ return obj;
11040
+ };
11041
+ }
11042
+
11043
+
11044
+ /**
11045
+ * Deserializes binary data (in protobuf wire format).
11046
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11047
+ * @return {!proto.analytic.ScaleoActivityBucketItem}
11048
+ */
11049
+ proto.analytic.ScaleoActivityBucketItem.deserializeBinary = function(bytes) {
11050
+ var reader = new jspb.BinaryReader(bytes);
11051
+ var msg = new proto.analytic.ScaleoActivityBucketItem;
11052
+ return proto.analytic.ScaleoActivityBucketItem.deserializeBinaryFromReader(msg, reader);
11053
+ };
11054
+
11055
+
11056
+ /**
11057
+ * Deserializes binary data (in protobuf wire format) from the
11058
+ * given reader into the given message object.
11059
+ * @param {!proto.analytic.ScaleoActivityBucketItem} msg The message object to deserialize into.
11060
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11061
+ * @return {!proto.analytic.ScaleoActivityBucketItem}
11062
+ */
11063
+ proto.analytic.ScaleoActivityBucketItem.deserializeBinaryFromReader = function(msg, reader) {
11064
+ while (reader.nextField()) {
11065
+ if (reader.isEndGroup()) {
11066
+ break;
11067
+ }
11068
+ var field = reader.getFieldNumber();
11069
+ switch (field) {
11070
+ case 1:
11071
+ var value = /** @type {string} */ (reader.readString());
11072
+ msg.setHour(value);
11073
+ break;
11074
+ case 2:
11075
+ var value = /** @type {string} */ (reader.readString());
11076
+ msg.setType(value);
11077
+ break;
11078
+ case 3:
11079
+ var value = /** @type {number} */ (reader.readInt32());
11080
+ msg.setUserId(value);
11081
+ break;
11082
+ case 4:
11083
+ var value = /** @type {string} */ (reader.readString());
11084
+ msg.setProduct(value);
11085
+ break;
11086
+ case 5:
11087
+ var value = /** @type {number} */ (reader.readInt32());
11088
+ msg.setCount(value);
11089
+ break;
11090
+ case 6:
11091
+ var value = /** @type {number} */ (reader.readDouble());
11092
+ msg.setAmount(value);
11093
+ break;
11094
+ case 7:
11095
+ var value = /** @type {string} */ (reader.readString());
11096
+ msg.setCurrency(value);
11097
+ break;
11098
+ default:
11099
+ reader.skipField();
11100
+ break;
11101
+ }
11102
+ }
11103
+ return msg;
11104
+ };
11105
+
11106
+
11107
+ /**
11108
+ * Serializes the message to binary data (in protobuf wire format).
11109
+ * @return {!Uint8Array}
11110
+ */
11111
+ proto.analytic.ScaleoActivityBucketItem.prototype.serializeBinary = function() {
11112
+ var writer = new jspb.BinaryWriter();
11113
+ proto.analytic.ScaleoActivityBucketItem.serializeBinaryToWriter(this, writer);
11114
+ return writer.getResultBuffer();
11115
+ };
11116
+
11117
+
11118
+ /**
11119
+ * Serializes the given message to binary data (in protobuf wire
11120
+ * format), writing to the given BinaryWriter.
11121
+ * @param {!proto.analytic.ScaleoActivityBucketItem} message
11122
+ * @param {!jspb.BinaryWriter} writer
11123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11124
+ */
11125
+ proto.analytic.ScaleoActivityBucketItem.serializeBinaryToWriter = function(message, writer) {
11126
+ var f = undefined;
11127
+ f = message.getHour();
11128
+ if (f.length > 0) {
11129
+ writer.writeString(
11130
+ 1,
11131
+ f
11132
+ );
11133
+ }
11134
+ f = message.getType();
11135
+ if (f.length > 0) {
11136
+ writer.writeString(
11137
+ 2,
11138
+ f
11139
+ );
11140
+ }
11141
+ f = message.getUserId();
11142
+ if (f !== 0) {
11143
+ writer.writeInt32(
11144
+ 3,
11145
+ f
11146
+ );
11147
+ }
11148
+ f = message.getProduct();
11149
+ if (f.length > 0) {
11150
+ writer.writeString(
11151
+ 4,
11152
+ f
11153
+ );
11154
+ }
11155
+ f = message.getCount();
11156
+ if (f !== 0) {
11157
+ writer.writeInt32(
11158
+ 5,
11159
+ f
11160
+ );
11161
+ }
11162
+ f = message.getAmount();
11163
+ if (f !== 0.0) {
11164
+ writer.writeDouble(
11165
+ 6,
11166
+ f
11167
+ );
11168
+ }
11169
+ f = message.getCurrency();
11170
+ if (f.length > 0) {
11171
+ writer.writeString(
11172
+ 7,
11173
+ f
11174
+ );
11175
+ }
11176
+ };
11177
+
11178
+
11179
+ /**
11180
+ * optional string hour = 1;
11181
+ * @return {string}
11182
+ */
11183
+ proto.analytic.ScaleoActivityBucketItem.prototype.getHour = function() {
11184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11185
+ };
11186
+
11187
+
11188
+ /**
11189
+ * @param {string} value
11190
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11191
+ */
11192
+ proto.analytic.ScaleoActivityBucketItem.prototype.setHour = function(value) {
11193
+ return jspb.Message.setProto3StringField(this, 1, value);
11194
+ };
11195
+
11196
+
11197
+ /**
11198
+ * optional string type = 2;
11199
+ * @return {string}
11200
+ */
11201
+ proto.analytic.ScaleoActivityBucketItem.prototype.getType = function() {
11202
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11203
+ };
11204
+
11205
+
11206
+ /**
11207
+ * @param {string} value
11208
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11209
+ */
11210
+ proto.analytic.ScaleoActivityBucketItem.prototype.setType = function(value) {
11211
+ return jspb.Message.setProto3StringField(this, 2, value);
11212
+ };
11213
+
11214
+
11215
+ /**
11216
+ * optional int32 user_id = 3;
11217
+ * @return {number}
11218
+ */
11219
+ proto.analytic.ScaleoActivityBucketItem.prototype.getUserId = function() {
11220
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11221
+ };
11222
+
11223
+
11224
+ /**
11225
+ * @param {number} value
11226
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11227
+ */
11228
+ proto.analytic.ScaleoActivityBucketItem.prototype.setUserId = function(value) {
11229
+ return jspb.Message.setProto3IntField(this, 3, value);
11230
+ };
11231
+
11232
+
11233
+ /**
11234
+ * optional string product = 4;
11235
+ * @return {string}
11236
+ */
11237
+ proto.analytic.ScaleoActivityBucketItem.prototype.getProduct = function() {
11238
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11239
+ };
11240
+
11241
+
11242
+ /**
11243
+ * @param {string} value
11244
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11245
+ */
11246
+ proto.analytic.ScaleoActivityBucketItem.prototype.setProduct = function(value) {
11247
+ return jspb.Message.setProto3StringField(this, 4, value);
11248
+ };
11249
+
11250
+
11251
+ /**
11252
+ * optional int32 count = 5;
11253
+ * @return {number}
11254
+ */
11255
+ proto.analytic.ScaleoActivityBucketItem.prototype.getCount = function() {
11256
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11257
+ };
11258
+
11259
+
11260
+ /**
11261
+ * @param {number} value
11262
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11263
+ */
11264
+ proto.analytic.ScaleoActivityBucketItem.prototype.setCount = function(value) {
11265
+ return jspb.Message.setProto3IntField(this, 5, value);
11266
+ };
11267
+
11268
+
11269
+ /**
11270
+ * optional double amount = 6;
11271
+ * @return {number}
11272
+ */
11273
+ proto.analytic.ScaleoActivityBucketItem.prototype.getAmount = function() {
11274
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
11275
+ };
11276
+
11277
+
11278
+ /**
11279
+ * @param {number} value
11280
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11281
+ */
11282
+ proto.analytic.ScaleoActivityBucketItem.prototype.setAmount = function(value) {
11283
+ return jspb.Message.setProto3FloatField(this, 6, value);
11284
+ };
11285
+
11286
+
11287
+ /**
11288
+ * optional string currency = 7;
11289
+ * @return {string}
11290
+ */
11291
+ proto.analytic.ScaleoActivityBucketItem.prototype.getCurrency = function() {
11292
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11293
+ };
11294
+
11295
+
11296
+ /**
11297
+ * @param {string} value
11298
+ * @return {!proto.analytic.ScaleoActivityBucketItem} returns this
11299
+ */
11300
+ proto.analytic.ScaleoActivityBucketItem.prototype.setCurrency = function(value) {
11301
+ return jspb.Message.setProto3StringField(this, 7, value);
11302
+ };
11303
+
11304
+
10409
11305
  goog.object.extend(exports, proto.analytic);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.208",
3
+ "version": "1.2.210",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {