protobuf-platform 1.1.85 → 1.1.87
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.
- package/analytic/analytic.proto +12 -0
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +494 -0
- package/package.json +1 -1
- package/user/user.proto +1 -1
- package/user/user_pb.js +10 -8
package/analytic/analytic.proto
CHANGED
@@ -13,6 +13,8 @@ service Analytic {
|
|
13
13
|
rpc getGamesStats(PaginationRequest) returns (GamesResponse);
|
14
14
|
//Dashboard
|
15
15
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
16
|
+
//Segmentation
|
17
|
+
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
16
18
|
}
|
17
19
|
//Technical
|
18
20
|
message PingRequest { string ping = 1; }
|
@@ -138,4 +140,14 @@ message GamesResponse {
|
|
138
140
|
repeated GameItemWrapper items = 1;
|
139
141
|
optional int32 total_pages = 2;
|
140
142
|
optional int32 total_items = 3;
|
143
|
+
}
|
144
|
+
//Segmentation
|
145
|
+
message SegmentedUserRequest {
|
146
|
+
optional float session_minutes_min = 1;
|
147
|
+
optional float session_minutes_max = 2;
|
148
|
+
optional int32 session_count_min = 3;
|
149
|
+
optional int32 session_count_max = 4;
|
150
|
+
}
|
151
|
+
message SegmentedUserResponse {
|
152
|
+
repeated int32 user_ids = 1;
|
141
153
|
}
|
@@ -103,6 +103,28 @@ function deserialize_analytic_PongResponse(buffer_arg) {
|
|
103
103
|
return analytic_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
104
|
}
|
105
105
|
|
106
|
+
function serialize_analytic_SegmentedUserRequest(arg) {
|
107
|
+
if (!(arg instanceof analytic_pb.SegmentedUserRequest)) {
|
108
|
+
throw new Error('Expected argument of type analytic.SegmentedUserRequest');
|
109
|
+
}
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
111
|
+
}
|
112
|
+
|
113
|
+
function deserialize_analytic_SegmentedUserRequest(buffer_arg) {
|
114
|
+
return analytic_pb.SegmentedUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
115
|
+
}
|
116
|
+
|
117
|
+
function serialize_analytic_SegmentedUserResponse(arg) {
|
118
|
+
if (!(arg instanceof analytic_pb.SegmentedUserResponse)) {
|
119
|
+
throw new Error('Expected argument of type analytic.SegmentedUserResponse');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_analytic_SegmentedUserResponse(buffer_arg) {
|
125
|
+
return analytic_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
106
128
|
|
107
129
|
var AnalyticService = exports.AnalyticService = {
|
108
130
|
checkConnection: {
|
@@ -175,6 +197,18 @@ getDashboardInfo: {
|
|
175
197
|
responseSerialize: serialize_analytic_DashboardResponse,
|
176
198
|
responseDeserialize: deserialize_analytic_DashboardResponse,
|
177
199
|
},
|
200
|
+
// Segmentation
|
201
|
+
getSegmentedUsers: {
|
202
|
+
path: '/analytic.Analytic/getSegmentedUsers',
|
203
|
+
requestStream: false,
|
204
|
+
responseStream: false,
|
205
|
+
requestType: analytic_pb.SegmentedUserRequest,
|
206
|
+
responseType: analytic_pb.SegmentedUserResponse,
|
207
|
+
requestSerialize: serialize_analytic_SegmentedUserRequest,
|
208
|
+
requestDeserialize: deserialize_analytic_SegmentedUserRequest,
|
209
|
+
responseSerialize: serialize_analytic_SegmentedUserResponse,
|
210
|
+
responseDeserialize: deserialize_analytic_SegmentedUserResponse,
|
211
|
+
},
|
178
212
|
};
|
179
213
|
|
180
214
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService);
|
package/analytic/analytic_pb.js
CHANGED
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.analytic.PaymentItem', null, global);
|
|
36
36
|
goog.exportSymbol('proto.analytic.PaymentProvidersResponse', null, global);
|
37
37
|
goog.exportSymbol('proto.analytic.PingRequest', null, global);
|
38
38
|
goog.exportSymbol('proto.analytic.PongResponse', null, global);
|
39
|
+
goog.exportSymbol('proto.analytic.SegmentedUserRequest', null, global);
|
40
|
+
goog.exportSymbol('proto.analytic.SegmentedUserResponse', null, global);
|
39
41
|
/**
|
40
42
|
* Generated by JsPbCodeGenerator.
|
41
43
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -351,6 +353,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
351
353
|
*/
|
352
354
|
proto.analytic.GamesResponse.displayName = 'proto.analytic.GamesResponse';
|
353
355
|
}
|
356
|
+
/**
|
357
|
+
* Generated by JsPbCodeGenerator.
|
358
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
359
|
+
* server response, or constructed directly in Javascript. The array is used
|
360
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
361
|
+
* If no data is provided, the constructed object will be empty, but still
|
362
|
+
* valid.
|
363
|
+
* @extends {jspb.Message}
|
364
|
+
* @constructor
|
365
|
+
*/
|
366
|
+
proto.analytic.SegmentedUserRequest = function(opt_data) {
|
367
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
368
|
+
};
|
369
|
+
goog.inherits(proto.analytic.SegmentedUserRequest, jspb.Message);
|
370
|
+
if (goog.DEBUG && !COMPILED) {
|
371
|
+
/**
|
372
|
+
* @public
|
373
|
+
* @override
|
374
|
+
*/
|
375
|
+
proto.analytic.SegmentedUserRequest.displayName = 'proto.analytic.SegmentedUserRequest';
|
376
|
+
}
|
377
|
+
/**
|
378
|
+
* Generated by JsPbCodeGenerator.
|
379
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
380
|
+
* server response, or constructed directly in Javascript. The array is used
|
381
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
382
|
+
* If no data is provided, the constructed object will be empty, but still
|
383
|
+
* valid.
|
384
|
+
* @extends {jspb.Message}
|
385
|
+
* @constructor
|
386
|
+
*/
|
387
|
+
proto.analytic.SegmentedUserResponse = function(opt_data) {
|
388
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.SegmentedUserResponse.repeatedFields_, null);
|
389
|
+
};
|
390
|
+
goog.inherits(proto.analytic.SegmentedUserResponse, jspb.Message);
|
391
|
+
if (goog.DEBUG && !COMPILED) {
|
392
|
+
/**
|
393
|
+
* @public
|
394
|
+
* @override
|
395
|
+
*/
|
396
|
+
proto.analytic.SegmentedUserResponse.displayName = 'proto.analytic.SegmentedUserResponse';
|
397
|
+
}
|
354
398
|
|
355
399
|
|
356
400
|
|
@@ -6342,4 +6386,454 @@ proto.analytic.GamesResponse.prototype.hasTotalItems = function() {
|
|
6342
6386
|
};
|
6343
6387
|
|
6344
6388
|
|
6389
|
+
|
6390
|
+
|
6391
|
+
|
6392
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6393
|
+
/**
|
6394
|
+
* Creates an object representation of this proto.
|
6395
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6396
|
+
* Optional fields that are not set will be set to undefined.
|
6397
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6398
|
+
* For the list of reserved names please see:
|
6399
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6400
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6401
|
+
* JSPB instance for transitional soy proto support:
|
6402
|
+
* http://goto/soy-param-migration
|
6403
|
+
* @return {!Object}
|
6404
|
+
*/
|
6405
|
+
proto.analytic.SegmentedUserRequest.prototype.toObject = function(opt_includeInstance) {
|
6406
|
+
return proto.analytic.SegmentedUserRequest.toObject(opt_includeInstance, this);
|
6407
|
+
};
|
6408
|
+
|
6409
|
+
|
6410
|
+
/**
|
6411
|
+
* Static version of the {@see toObject} method.
|
6412
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6413
|
+
* the JSPB instance for transitional soy proto support:
|
6414
|
+
* http://goto/soy-param-migration
|
6415
|
+
* @param {!proto.analytic.SegmentedUserRequest} msg The msg instance to transform.
|
6416
|
+
* @return {!Object}
|
6417
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6418
|
+
*/
|
6419
|
+
proto.analytic.SegmentedUserRequest.toObject = function(includeInstance, msg) {
|
6420
|
+
var f, obj = {
|
6421
|
+
sessionMinutesMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
6422
|
+
sessionMinutesMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
6423
|
+
sessionCountMin: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
6424
|
+
sessionCountMax: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
6425
|
+
};
|
6426
|
+
|
6427
|
+
if (includeInstance) {
|
6428
|
+
obj.$jspbMessageInstance = msg;
|
6429
|
+
}
|
6430
|
+
return obj;
|
6431
|
+
};
|
6432
|
+
}
|
6433
|
+
|
6434
|
+
|
6435
|
+
/**
|
6436
|
+
* Deserializes binary data (in protobuf wire format).
|
6437
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6438
|
+
* @return {!proto.analytic.SegmentedUserRequest}
|
6439
|
+
*/
|
6440
|
+
proto.analytic.SegmentedUserRequest.deserializeBinary = function(bytes) {
|
6441
|
+
var reader = new jspb.BinaryReader(bytes);
|
6442
|
+
var msg = new proto.analytic.SegmentedUserRequest;
|
6443
|
+
return proto.analytic.SegmentedUserRequest.deserializeBinaryFromReader(msg, reader);
|
6444
|
+
};
|
6445
|
+
|
6446
|
+
|
6447
|
+
/**
|
6448
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6449
|
+
* given reader into the given message object.
|
6450
|
+
* @param {!proto.analytic.SegmentedUserRequest} msg The message object to deserialize into.
|
6451
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6452
|
+
* @return {!proto.analytic.SegmentedUserRequest}
|
6453
|
+
*/
|
6454
|
+
proto.analytic.SegmentedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
6455
|
+
while (reader.nextField()) {
|
6456
|
+
if (reader.isEndGroup()) {
|
6457
|
+
break;
|
6458
|
+
}
|
6459
|
+
var field = reader.getFieldNumber();
|
6460
|
+
switch (field) {
|
6461
|
+
case 1:
|
6462
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6463
|
+
msg.setSessionMinutesMin(value);
|
6464
|
+
break;
|
6465
|
+
case 2:
|
6466
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6467
|
+
msg.setSessionMinutesMax(value);
|
6468
|
+
break;
|
6469
|
+
case 3:
|
6470
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6471
|
+
msg.setSessionCountMin(value);
|
6472
|
+
break;
|
6473
|
+
case 4:
|
6474
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6475
|
+
msg.setSessionCountMax(value);
|
6476
|
+
break;
|
6477
|
+
default:
|
6478
|
+
reader.skipField();
|
6479
|
+
break;
|
6480
|
+
}
|
6481
|
+
}
|
6482
|
+
return msg;
|
6483
|
+
};
|
6484
|
+
|
6485
|
+
|
6486
|
+
/**
|
6487
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6488
|
+
* @return {!Uint8Array}
|
6489
|
+
*/
|
6490
|
+
proto.analytic.SegmentedUserRequest.prototype.serializeBinary = function() {
|
6491
|
+
var writer = new jspb.BinaryWriter();
|
6492
|
+
proto.analytic.SegmentedUserRequest.serializeBinaryToWriter(this, writer);
|
6493
|
+
return writer.getResultBuffer();
|
6494
|
+
};
|
6495
|
+
|
6496
|
+
|
6497
|
+
/**
|
6498
|
+
* Serializes the given message to binary data (in protobuf wire
|
6499
|
+
* format), writing to the given BinaryWriter.
|
6500
|
+
* @param {!proto.analytic.SegmentedUserRequest} message
|
6501
|
+
* @param {!jspb.BinaryWriter} writer
|
6502
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6503
|
+
*/
|
6504
|
+
proto.analytic.SegmentedUserRequest.serializeBinaryToWriter = function(message, writer) {
|
6505
|
+
var f = undefined;
|
6506
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
6507
|
+
if (f != null) {
|
6508
|
+
writer.writeFloat(
|
6509
|
+
1,
|
6510
|
+
f
|
6511
|
+
);
|
6512
|
+
}
|
6513
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6514
|
+
if (f != null) {
|
6515
|
+
writer.writeFloat(
|
6516
|
+
2,
|
6517
|
+
f
|
6518
|
+
);
|
6519
|
+
}
|
6520
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
6521
|
+
if (f != null) {
|
6522
|
+
writer.writeInt32(
|
6523
|
+
3,
|
6524
|
+
f
|
6525
|
+
);
|
6526
|
+
}
|
6527
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
6528
|
+
if (f != null) {
|
6529
|
+
writer.writeInt32(
|
6530
|
+
4,
|
6531
|
+
f
|
6532
|
+
);
|
6533
|
+
}
|
6534
|
+
};
|
6535
|
+
|
6536
|
+
|
6537
|
+
/**
|
6538
|
+
* optional float session_minutes_min = 1;
|
6539
|
+
* @return {number}
|
6540
|
+
*/
|
6541
|
+
proto.analytic.SegmentedUserRequest.prototype.getSessionMinutesMin = function() {
|
6542
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
6543
|
+
};
|
6544
|
+
|
6545
|
+
|
6546
|
+
/**
|
6547
|
+
* @param {number} value
|
6548
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6549
|
+
*/
|
6550
|
+
proto.analytic.SegmentedUserRequest.prototype.setSessionMinutesMin = function(value) {
|
6551
|
+
return jspb.Message.setField(this, 1, value);
|
6552
|
+
};
|
6553
|
+
|
6554
|
+
|
6555
|
+
/**
|
6556
|
+
* Clears the field making it undefined.
|
6557
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6558
|
+
*/
|
6559
|
+
proto.analytic.SegmentedUserRequest.prototype.clearSessionMinutesMin = function() {
|
6560
|
+
return jspb.Message.setField(this, 1, undefined);
|
6561
|
+
};
|
6562
|
+
|
6563
|
+
|
6564
|
+
/**
|
6565
|
+
* Returns whether this field is set.
|
6566
|
+
* @return {boolean}
|
6567
|
+
*/
|
6568
|
+
proto.analytic.SegmentedUserRequest.prototype.hasSessionMinutesMin = function() {
|
6569
|
+
return jspb.Message.getField(this, 1) != null;
|
6570
|
+
};
|
6571
|
+
|
6572
|
+
|
6573
|
+
/**
|
6574
|
+
* optional float session_minutes_max = 2;
|
6575
|
+
* @return {number}
|
6576
|
+
*/
|
6577
|
+
proto.analytic.SegmentedUserRequest.prototype.getSessionMinutesMax = function() {
|
6578
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
6579
|
+
};
|
6580
|
+
|
6581
|
+
|
6582
|
+
/**
|
6583
|
+
* @param {number} value
|
6584
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6585
|
+
*/
|
6586
|
+
proto.analytic.SegmentedUserRequest.prototype.setSessionMinutesMax = function(value) {
|
6587
|
+
return jspb.Message.setField(this, 2, value);
|
6588
|
+
};
|
6589
|
+
|
6590
|
+
|
6591
|
+
/**
|
6592
|
+
* Clears the field making it undefined.
|
6593
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6594
|
+
*/
|
6595
|
+
proto.analytic.SegmentedUserRequest.prototype.clearSessionMinutesMax = function() {
|
6596
|
+
return jspb.Message.setField(this, 2, undefined);
|
6597
|
+
};
|
6598
|
+
|
6599
|
+
|
6600
|
+
/**
|
6601
|
+
* Returns whether this field is set.
|
6602
|
+
* @return {boolean}
|
6603
|
+
*/
|
6604
|
+
proto.analytic.SegmentedUserRequest.prototype.hasSessionMinutesMax = function() {
|
6605
|
+
return jspb.Message.getField(this, 2) != null;
|
6606
|
+
};
|
6607
|
+
|
6608
|
+
|
6609
|
+
/**
|
6610
|
+
* optional int32 session_count_min = 3;
|
6611
|
+
* @return {number}
|
6612
|
+
*/
|
6613
|
+
proto.analytic.SegmentedUserRequest.prototype.getSessionCountMin = function() {
|
6614
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6615
|
+
};
|
6616
|
+
|
6617
|
+
|
6618
|
+
/**
|
6619
|
+
* @param {number} value
|
6620
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6621
|
+
*/
|
6622
|
+
proto.analytic.SegmentedUserRequest.prototype.setSessionCountMin = function(value) {
|
6623
|
+
return jspb.Message.setField(this, 3, value);
|
6624
|
+
};
|
6625
|
+
|
6626
|
+
|
6627
|
+
/**
|
6628
|
+
* Clears the field making it undefined.
|
6629
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6630
|
+
*/
|
6631
|
+
proto.analytic.SegmentedUserRequest.prototype.clearSessionCountMin = function() {
|
6632
|
+
return jspb.Message.setField(this, 3, undefined);
|
6633
|
+
};
|
6634
|
+
|
6635
|
+
|
6636
|
+
/**
|
6637
|
+
* Returns whether this field is set.
|
6638
|
+
* @return {boolean}
|
6639
|
+
*/
|
6640
|
+
proto.analytic.SegmentedUserRequest.prototype.hasSessionCountMin = function() {
|
6641
|
+
return jspb.Message.getField(this, 3) != null;
|
6642
|
+
};
|
6643
|
+
|
6644
|
+
|
6645
|
+
/**
|
6646
|
+
* optional int32 session_count_max = 4;
|
6647
|
+
* @return {number}
|
6648
|
+
*/
|
6649
|
+
proto.analytic.SegmentedUserRequest.prototype.getSessionCountMax = function() {
|
6650
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
6651
|
+
};
|
6652
|
+
|
6653
|
+
|
6654
|
+
/**
|
6655
|
+
* @param {number} value
|
6656
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6657
|
+
*/
|
6658
|
+
proto.analytic.SegmentedUserRequest.prototype.setSessionCountMax = function(value) {
|
6659
|
+
return jspb.Message.setField(this, 4, value);
|
6660
|
+
};
|
6661
|
+
|
6662
|
+
|
6663
|
+
/**
|
6664
|
+
* Clears the field making it undefined.
|
6665
|
+
* @return {!proto.analytic.SegmentedUserRequest} returns this
|
6666
|
+
*/
|
6667
|
+
proto.analytic.SegmentedUserRequest.prototype.clearSessionCountMax = function() {
|
6668
|
+
return jspb.Message.setField(this, 4, undefined);
|
6669
|
+
};
|
6670
|
+
|
6671
|
+
|
6672
|
+
/**
|
6673
|
+
* Returns whether this field is set.
|
6674
|
+
* @return {boolean}
|
6675
|
+
*/
|
6676
|
+
proto.analytic.SegmentedUserRequest.prototype.hasSessionCountMax = function() {
|
6677
|
+
return jspb.Message.getField(this, 4) != null;
|
6678
|
+
};
|
6679
|
+
|
6680
|
+
|
6681
|
+
|
6682
|
+
/**
|
6683
|
+
* List of repeated fields within this message type.
|
6684
|
+
* @private {!Array<number>}
|
6685
|
+
* @const
|
6686
|
+
*/
|
6687
|
+
proto.analytic.SegmentedUserResponse.repeatedFields_ = [1];
|
6688
|
+
|
6689
|
+
|
6690
|
+
|
6691
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6692
|
+
/**
|
6693
|
+
* Creates an object representation of this proto.
|
6694
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6695
|
+
* Optional fields that are not set will be set to undefined.
|
6696
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6697
|
+
* For the list of reserved names please see:
|
6698
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6699
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6700
|
+
* JSPB instance for transitional soy proto support:
|
6701
|
+
* http://goto/soy-param-migration
|
6702
|
+
* @return {!Object}
|
6703
|
+
*/
|
6704
|
+
proto.analytic.SegmentedUserResponse.prototype.toObject = function(opt_includeInstance) {
|
6705
|
+
return proto.analytic.SegmentedUserResponse.toObject(opt_includeInstance, this);
|
6706
|
+
};
|
6707
|
+
|
6708
|
+
|
6709
|
+
/**
|
6710
|
+
* Static version of the {@see toObject} method.
|
6711
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6712
|
+
* the JSPB instance for transitional soy proto support:
|
6713
|
+
* http://goto/soy-param-migration
|
6714
|
+
* @param {!proto.analytic.SegmentedUserResponse} msg The msg instance to transform.
|
6715
|
+
* @return {!Object}
|
6716
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6717
|
+
*/
|
6718
|
+
proto.analytic.SegmentedUserResponse.toObject = function(includeInstance, msg) {
|
6719
|
+
var f, obj = {
|
6720
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
6721
|
+
};
|
6722
|
+
|
6723
|
+
if (includeInstance) {
|
6724
|
+
obj.$jspbMessageInstance = msg;
|
6725
|
+
}
|
6726
|
+
return obj;
|
6727
|
+
};
|
6728
|
+
}
|
6729
|
+
|
6730
|
+
|
6731
|
+
/**
|
6732
|
+
* Deserializes binary data (in protobuf wire format).
|
6733
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6734
|
+
* @return {!proto.analytic.SegmentedUserResponse}
|
6735
|
+
*/
|
6736
|
+
proto.analytic.SegmentedUserResponse.deserializeBinary = function(bytes) {
|
6737
|
+
var reader = new jspb.BinaryReader(bytes);
|
6738
|
+
var msg = new proto.analytic.SegmentedUserResponse;
|
6739
|
+
return proto.analytic.SegmentedUserResponse.deserializeBinaryFromReader(msg, reader);
|
6740
|
+
};
|
6741
|
+
|
6742
|
+
|
6743
|
+
/**
|
6744
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6745
|
+
* given reader into the given message object.
|
6746
|
+
* @param {!proto.analytic.SegmentedUserResponse} msg The message object to deserialize into.
|
6747
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6748
|
+
* @return {!proto.analytic.SegmentedUserResponse}
|
6749
|
+
*/
|
6750
|
+
proto.analytic.SegmentedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6751
|
+
while (reader.nextField()) {
|
6752
|
+
if (reader.isEndGroup()) {
|
6753
|
+
break;
|
6754
|
+
}
|
6755
|
+
var field = reader.getFieldNumber();
|
6756
|
+
switch (field) {
|
6757
|
+
case 1:
|
6758
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
6759
|
+
for (var i = 0; i < values.length; i++) {
|
6760
|
+
msg.addUserIds(values[i]);
|
6761
|
+
}
|
6762
|
+
break;
|
6763
|
+
default:
|
6764
|
+
reader.skipField();
|
6765
|
+
break;
|
6766
|
+
}
|
6767
|
+
}
|
6768
|
+
return msg;
|
6769
|
+
};
|
6770
|
+
|
6771
|
+
|
6772
|
+
/**
|
6773
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6774
|
+
* @return {!Uint8Array}
|
6775
|
+
*/
|
6776
|
+
proto.analytic.SegmentedUserResponse.prototype.serializeBinary = function() {
|
6777
|
+
var writer = new jspb.BinaryWriter();
|
6778
|
+
proto.analytic.SegmentedUserResponse.serializeBinaryToWriter(this, writer);
|
6779
|
+
return writer.getResultBuffer();
|
6780
|
+
};
|
6781
|
+
|
6782
|
+
|
6783
|
+
/**
|
6784
|
+
* Serializes the given message to binary data (in protobuf wire
|
6785
|
+
* format), writing to the given BinaryWriter.
|
6786
|
+
* @param {!proto.analytic.SegmentedUserResponse} message
|
6787
|
+
* @param {!jspb.BinaryWriter} writer
|
6788
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6789
|
+
*/
|
6790
|
+
proto.analytic.SegmentedUserResponse.serializeBinaryToWriter = function(message, writer) {
|
6791
|
+
var f = undefined;
|
6792
|
+
f = message.getUserIdsList();
|
6793
|
+
if (f.length > 0) {
|
6794
|
+
writer.writePackedInt32(
|
6795
|
+
1,
|
6796
|
+
f
|
6797
|
+
);
|
6798
|
+
}
|
6799
|
+
};
|
6800
|
+
|
6801
|
+
|
6802
|
+
/**
|
6803
|
+
* repeated int32 user_ids = 1;
|
6804
|
+
* @return {!Array<number>}
|
6805
|
+
*/
|
6806
|
+
proto.analytic.SegmentedUserResponse.prototype.getUserIdsList = function() {
|
6807
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
6808
|
+
};
|
6809
|
+
|
6810
|
+
|
6811
|
+
/**
|
6812
|
+
* @param {!Array<number>} value
|
6813
|
+
* @return {!proto.analytic.SegmentedUserResponse} returns this
|
6814
|
+
*/
|
6815
|
+
proto.analytic.SegmentedUserResponse.prototype.setUserIdsList = function(value) {
|
6816
|
+
return jspb.Message.setField(this, 1, value || []);
|
6817
|
+
};
|
6818
|
+
|
6819
|
+
|
6820
|
+
/**
|
6821
|
+
* @param {number} value
|
6822
|
+
* @param {number=} opt_index
|
6823
|
+
* @return {!proto.analytic.SegmentedUserResponse} returns this
|
6824
|
+
*/
|
6825
|
+
proto.analytic.SegmentedUserResponse.prototype.addUserIds = function(value, opt_index) {
|
6826
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
6827
|
+
};
|
6828
|
+
|
6829
|
+
|
6830
|
+
/**
|
6831
|
+
* Clears the list making it empty but non-null.
|
6832
|
+
* @return {!proto.analytic.SegmentedUserResponse} returns this
|
6833
|
+
*/
|
6834
|
+
proto.analytic.SegmentedUserResponse.prototype.clearUserIdsList = function() {
|
6835
|
+
return this.setUserIdsList([]);
|
6836
|
+
};
|
6837
|
+
|
6838
|
+
|
6345
6839
|
goog.object.extend(exports, proto.analytic);
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -293,7 +293,7 @@ message SegmentPaymentRuleRequest {
|
|
293
293
|
optional float deposit_sum_max = 10;
|
294
294
|
optional float deposit_avg_min = 11;
|
295
295
|
optional float deposit_avg_max = 12;
|
296
|
-
repeated
|
296
|
+
repeated int32 payment_providers = 13;
|
297
297
|
repeated string payment_types = 14;
|
298
298
|
optional int32 is_active = 15;
|
299
299
|
}
|
package/user/user_pb.js
CHANGED
@@ -11959,8 +11959,10 @@ proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader = function(msg,
|
|
11959
11959
|
msg.setDepositAvgMax(value);
|
11960
11960
|
break;
|
11961
11961
|
case 13:
|
11962
|
-
var
|
11963
|
-
|
11962
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
11963
|
+
for (var i = 0; i < values.length; i++) {
|
11964
|
+
msg.addPaymentProviders(values[i]);
|
11965
|
+
}
|
11964
11966
|
break;
|
11965
11967
|
case 14:
|
11966
11968
|
var value = /** @type {string} */ (reader.readString());
|
@@ -12085,7 +12087,7 @@ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter = function(message,
|
|
12085
12087
|
}
|
12086
12088
|
f = message.getPaymentProvidersList();
|
12087
12089
|
if (f.length > 0) {
|
12088
|
-
writer.
|
12090
|
+
writer.writePackedInt32(
|
12089
12091
|
13,
|
12090
12092
|
f
|
12091
12093
|
);
|
@@ -12504,16 +12506,16 @@ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAvgMax = function() {
|
|
12504
12506
|
|
12505
12507
|
|
12506
12508
|
/**
|
12507
|
-
* repeated
|
12508
|
-
* @return {!Array<
|
12509
|
+
* repeated int32 payment_providers = 13;
|
12510
|
+
* @return {!Array<number>}
|
12509
12511
|
*/
|
12510
12512
|
proto.user.SegmentPaymentRuleRequest.prototype.getPaymentProvidersList = function() {
|
12511
|
-
return /** @type {!Array<
|
12513
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 13));
|
12512
12514
|
};
|
12513
12515
|
|
12514
12516
|
|
12515
12517
|
/**
|
12516
|
-
* @param {!Array<
|
12518
|
+
* @param {!Array<number>} value
|
12517
12519
|
* @return {!proto.user.SegmentPaymentRuleRequest} returns this
|
12518
12520
|
*/
|
12519
12521
|
proto.user.SegmentPaymentRuleRequest.prototype.setPaymentProvidersList = function(value) {
|
@@ -12522,7 +12524,7 @@ proto.user.SegmentPaymentRuleRequest.prototype.setPaymentProvidersList = functio
|
|
12522
12524
|
|
12523
12525
|
|
12524
12526
|
/**
|
12525
|
-
* @param {
|
12527
|
+
* @param {number} value
|
12526
12528
|
* @param {number=} opt_index
|
12527
12529
|
* @return {!proto.user.SegmentPaymentRuleRequest} returns this
|
12528
12530
|
*/
|