protobuf-platform 1.0.226 → 1.0.228
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/package.json +1 -1
- package/user/user.proto +3 -1
- package/user/user_pb.js +119 -5
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -44,7 +44,8 @@ message UserSearchParams {
|
|
44
44
|
repeated int32 user_ids = 2;
|
45
45
|
}
|
46
46
|
message SegmentSearchParams {
|
47
|
-
string type = 1;
|
47
|
+
optional string type = 1;
|
48
|
+
optional string geo = 2;
|
48
49
|
}
|
49
50
|
|
50
51
|
//Auth [Registration & Login]
|
@@ -187,6 +188,7 @@ message GetSegmentRequest {
|
|
187
188
|
optional int32 id = 1;
|
188
189
|
repeated int32 user_ids = 2;
|
189
190
|
repeated int32 segments_ids = 3;
|
191
|
+
optional string geo = 4;
|
190
192
|
}
|
191
193
|
message SegmentResponse {
|
192
194
|
optional int32 id = 1;
|
package/user/user_pb.js
CHANGED
@@ -1376,7 +1376,8 @@ proto.user.SegmentSearchParams.prototype.toObject = function(opt_includeInstance
|
|
1376
1376
|
*/
|
1377
1377
|
proto.user.SegmentSearchParams.toObject = function(includeInstance, msg) {
|
1378
1378
|
var f, obj = {
|
1379
|
-
type: jspb.Message.getFieldWithDefault(msg, 1, "")
|
1379
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1380
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1380
1381
|
};
|
1381
1382
|
|
1382
1383
|
if (includeInstance) {
|
@@ -1417,6 +1418,10 @@ proto.user.SegmentSearchParams.deserializeBinaryFromReader = function(msg, reade
|
|
1417
1418
|
var value = /** @type {string} */ (reader.readString());
|
1418
1419
|
msg.setType(value);
|
1419
1420
|
break;
|
1421
|
+
case 2:
|
1422
|
+
var value = /** @type {string} */ (reader.readString());
|
1423
|
+
msg.setGeo(value);
|
1424
|
+
break;
|
1420
1425
|
default:
|
1421
1426
|
reader.skipField();
|
1422
1427
|
break;
|
@@ -1446,13 +1451,20 @@ proto.user.SegmentSearchParams.prototype.serializeBinary = function() {
|
|
1446
1451
|
*/
|
1447
1452
|
proto.user.SegmentSearchParams.serializeBinaryToWriter = function(message, writer) {
|
1448
1453
|
var f = undefined;
|
1449
|
-
f =
|
1450
|
-
if (f
|
1454
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
1455
|
+
if (f != null) {
|
1451
1456
|
writer.writeString(
|
1452
1457
|
1,
|
1453
1458
|
f
|
1454
1459
|
);
|
1455
1460
|
}
|
1461
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1462
|
+
if (f != null) {
|
1463
|
+
writer.writeString(
|
1464
|
+
2,
|
1465
|
+
f
|
1466
|
+
);
|
1467
|
+
}
|
1456
1468
|
};
|
1457
1469
|
|
1458
1470
|
|
@@ -1470,7 +1482,61 @@ proto.user.SegmentSearchParams.prototype.getType = function() {
|
|
1470
1482
|
* @return {!proto.user.SegmentSearchParams} returns this
|
1471
1483
|
*/
|
1472
1484
|
proto.user.SegmentSearchParams.prototype.setType = function(value) {
|
1473
|
-
return jspb.Message.
|
1485
|
+
return jspb.Message.setField(this, 1, value);
|
1486
|
+
};
|
1487
|
+
|
1488
|
+
|
1489
|
+
/**
|
1490
|
+
* Clears the field making it undefined.
|
1491
|
+
* @return {!proto.user.SegmentSearchParams} returns this
|
1492
|
+
*/
|
1493
|
+
proto.user.SegmentSearchParams.prototype.clearType = function() {
|
1494
|
+
return jspb.Message.setField(this, 1, undefined);
|
1495
|
+
};
|
1496
|
+
|
1497
|
+
|
1498
|
+
/**
|
1499
|
+
* Returns whether this field is set.
|
1500
|
+
* @return {boolean}
|
1501
|
+
*/
|
1502
|
+
proto.user.SegmentSearchParams.prototype.hasType = function() {
|
1503
|
+
return jspb.Message.getField(this, 1) != null;
|
1504
|
+
};
|
1505
|
+
|
1506
|
+
|
1507
|
+
/**
|
1508
|
+
* optional string geo = 2;
|
1509
|
+
* @return {string}
|
1510
|
+
*/
|
1511
|
+
proto.user.SegmentSearchParams.prototype.getGeo = function() {
|
1512
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1513
|
+
};
|
1514
|
+
|
1515
|
+
|
1516
|
+
/**
|
1517
|
+
* @param {string} value
|
1518
|
+
* @return {!proto.user.SegmentSearchParams} returns this
|
1519
|
+
*/
|
1520
|
+
proto.user.SegmentSearchParams.prototype.setGeo = function(value) {
|
1521
|
+
return jspb.Message.setField(this, 2, value);
|
1522
|
+
};
|
1523
|
+
|
1524
|
+
|
1525
|
+
/**
|
1526
|
+
* Clears the field making it undefined.
|
1527
|
+
* @return {!proto.user.SegmentSearchParams} returns this
|
1528
|
+
*/
|
1529
|
+
proto.user.SegmentSearchParams.prototype.clearGeo = function() {
|
1530
|
+
return jspb.Message.setField(this, 2, undefined);
|
1531
|
+
};
|
1532
|
+
|
1533
|
+
|
1534
|
+
/**
|
1535
|
+
* Returns whether this field is set.
|
1536
|
+
* @return {boolean}
|
1537
|
+
*/
|
1538
|
+
proto.user.SegmentSearchParams.prototype.hasGeo = function() {
|
1539
|
+
return jspb.Message.getField(this, 2) != null;
|
1474
1540
|
};
|
1475
1541
|
|
1476
1542
|
|
@@ -7478,7 +7544,8 @@ proto.user.GetSegmentRequest.toObject = function(includeInstance, msg) {
|
|
7478
7544
|
var f, obj = {
|
7479
7545
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
7480
7546
|
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
7481
|
-
segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
7547
|
+
segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
7548
|
+
geo: jspb.Message.getFieldWithDefault(msg, 4, "")
|
7482
7549
|
};
|
7483
7550
|
|
7484
7551
|
if (includeInstance) {
|
@@ -7531,6 +7598,10 @@ proto.user.GetSegmentRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
7531
7598
|
msg.addSegmentsIds(values[i]);
|
7532
7599
|
}
|
7533
7600
|
break;
|
7601
|
+
case 4:
|
7602
|
+
var value = /** @type {string} */ (reader.readString());
|
7603
|
+
msg.setGeo(value);
|
7604
|
+
break;
|
7534
7605
|
default:
|
7535
7606
|
reader.skipField();
|
7536
7607
|
break;
|
@@ -7581,6 +7652,13 @@ proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer)
|
|
7581
7652
|
f
|
7582
7653
|
);
|
7583
7654
|
}
|
7655
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
7656
|
+
if (f != null) {
|
7657
|
+
writer.writeString(
|
7658
|
+
4,
|
7659
|
+
f
|
7660
|
+
);
|
7661
|
+
}
|
7584
7662
|
};
|
7585
7663
|
|
7586
7664
|
|
@@ -7694,6 +7772,42 @@ proto.user.GetSegmentRequest.prototype.clearSegmentsIdsList = function() {
|
|
7694
7772
|
};
|
7695
7773
|
|
7696
7774
|
|
7775
|
+
/**
|
7776
|
+
* optional string geo = 4;
|
7777
|
+
* @return {string}
|
7778
|
+
*/
|
7779
|
+
proto.user.GetSegmentRequest.prototype.getGeo = function() {
|
7780
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
7781
|
+
};
|
7782
|
+
|
7783
|
+
|
7784
|
+
/**
|
7785
|
+
* @param {string} value
|
7786
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
7787
|
+
*/
|
7788
|
+
proto.user.GetSegmentRequest.prototype.setGeo = function(value) {
|
7789
|
+
return jspb.Message.setField(this, 4, value);
|
7790
|
+
};
|
7791
|
+
|
7792
|
+
|
7793
|
+
/**
|
7794
|
+
* Clears the field making it undefined.
|
7795
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
7796
|
+
*/
|
7797
|
+
proto.user.GetSegmentRequest.prototype.clearGeo = function() {
|
7798
|
+
return jspb.Message.setField(this, 4, undefined);
|
7799
|
+
};
|
7800
|
+
|
7801
|
+
|
7802
|
+
/**
|
7803
|
+
* Returns whether this field is set.
|
7804
|
+
* @return {boolean}
|
7805
|
+
*/
|
7806
|
+
proto.user.GetSegmentRequest.prototype.hasGeo = function() {
|
7807
|
+
return jspb.Message.getField(this, 4) != null;
|
7808
|
+
};
|
7809
|
+
|
7810
|
+
|
7697
7811
|
|
7698
7812
|
|
7699
7813
|
|