protobuf-platform 1.0.279 → 1.0.280
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/log/log.proto +16 -0
- package/log/log_grpc_pb.js +23 -0
- package/log/log_pb.js +550 -0
- package/package.json +1 -1
package/log/log.proto
CHANGED
@@ -6,6 +6,8 @@ service Log {
|
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
7
|
//Issues
|
8
8
|
rpc readListIssues(PaginationRequest) returns (IssueItemsResponse);
|
9
|
+
//User Activities
|
10
|
+
rpc readListUserActivities(PaginationRequest) returns (UserActivitiesItemsResponse);
|
9
11
|
}
|
10
12
|
|
11
13
|
message PingRequest { string ping = 1; }
|
@@ -15,6 +17,7 @@ message LogSearchRequest {
|
|
15
17
|
repeated string service = 1;
|
16
18
|
repeated string type = 2;
|
17
19
|
}
|
20
|
+
//Issues
|
18
21
|
message IssueItem {
|
19
22
|
string hash = 1;
|
20
23
|
string type = 2;
|
@@ -26,4 +29,17 @@ message IssueItemsResponse {
|
|
26
29
|
repeated IssueItem items = 1;
|
27
30
|
optional int32 total_pages = 2;
|
28
31
|
optional int32 total_items = 3;
|
32
|
+
}
|
33
|
+
//User Activities
|
34
|
+
message UserActivityItem {
|
35
|
+
string hash = 1;
|
36
|
+
string type = 2;
|
37
|
+
string action = 3;
|
38
|
+
string message = 4;
|
39
|
+
string created = 5;
|
40
|
+
}
|
41
|
+
message UserActivitiesItemsResponse {
|
42
|
+
repeated UserActivityItem items = 1;
|
43
|
+
optional int32 total_pages = 2;
|
44
|
+
optional int32 total_items = 3;
|
29
45
|
}
|
package/log/log_grpc_pb.js
CHANGED
@@ -48,6 +48,17 @@ function deserialize_log_PongResponse(buffer_arg) {
|
|
48
48
|
return log_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
49
49
|
}
|
50
50
|
|
51
|
+
function serialize_log_UserActivitiesItemsResponse(arg) {
|
52
|
+
if (!(arg instanceof log_pb.UserActivitiesItemsResponse)) {
|
53
|
+
throw new Error('Expected argument of type log.UserActivitiesItemsResponse');
|
54
|
+
}
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
56
|
+
}
|
57
|
+
|
58
|
+
function deserialize_log_UserActivitiesItemsResponse(buffer_arg) {
|
59
|
+
return log_pb.UserActivitiesItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
60
|
+
}
|
61
|
+
|
51
62
|
|
52
63
|
var LogService = exports.LogService = {
|
53
64
|
checkConnection: {
|
@@ -73,6 +84,18 @@ readListIssues: {
|
|
73
84
|
responseSerialize: serialize_log_IssueItemsResponse,
|
74
85
|
responseDeserialize: deserialize_log_IssueItemsResponse,
|
75
86
|
},
|
87
|
+
// User Activities
|
88
|
+
readListUserActivities: {
|
89
|
+
path: '/log.Log/readListUserActivities',
|
90
|
+
requestStream: false,
|
91
|
+
responseStream: false,
|
92
|
+
requestType: log_pb.PaginationRequest,
|
93
|
+
responseType: log_pb.UserActivitiesItemsResponse,
|
94
|
+
requestSerialize: serialize_log_PaginationRequest,
|
95
|
+
requestDeserialize: deserialize_log_PaginationRequest,
|
96
|
+
responseSerialize: serialize_log_UserActivitiesItemsResponse,
|
97
|
+
responseDeserialize: deserialize_log_UserActivitiesItemsResponse,
|
98
|
+
},
|
76
99
|
};
|
77
100
|
|
78
101
|
exports.LogClient = grpc.makeGenericClientConstructor(LogService);
|
package/log/log_pb.js
CHANGED
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.log.LogSearchRequest', null, global);
|
|
27
27
|
goog.exportSymbol('proto.log.PaginationRequest', null, global);
|
28
28
|
goog.exportSymbol('proto.log.PingRequest', null, global);
|
29
29
|
goog.exportSymbol('proto.log.PongResponse', null, global);
|
30
|
+
goog.exportSymbol('proto.log.UserActivitiesItemsResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.log.UserActivityItem', null, global);
|
30
32
|
/**
|
31
33
|
* Generated by JsPbCodeGenerator.
|
32
34
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -153,6 +155,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
155
|
*/
|
154
156
|
proto.log.IssueItemsResponse.displayName = 'proto.log.IssueItemsResponse';
|
155
157
|
}
|
158
|
+
/**
|
159
|
+
* Generated by JsPbCodeGenerator.
|
160
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
161
|
+
* server response, or constructed directly in Javascript. The array is used
|
162
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
163
|
+
* If no data is provided, the constructed object will be empty, but still
|
164
|
+
* valid.
|
165
|
+
* @extends {jspb.Message}
|
166
|
+
* @constructor
|
167
|
+
*/
|
168
|
+
proto.log.UserActivityItem = function(opt_data) {
|
169
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
170
|
+
};
|
171
|
+
goog.inherits(proto.log.UserActivityItem, jspb.Message);
|
172
|
+
if (goog.DEBUG && !COMPILED) {
|
173
|
+
/**
|
174
|
+
* @public
|
175
|
+
* @override
|
176
|
+
*/
|
177
|
+
proto.log.UserActivityItem.displayName = 'proto.log.UserActivityItem';
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Generated by JsPbCodeGenerator.
|
181
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
182
|
+
* server response, or constructed directly in Javascript. The array is used
|
183
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
184
|
+
* If no data is provided, the constructed object will be empty, but still
|
185
|
+
* valid.
|
186
|
+
* @extends {jspb.Message}
|
187
|
+
* @constructor
|
188
|
+
*/
|
189
|
+
proto.log.UserActivitiesItemsResponse = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.log.UserActivitiesItemsResponse.repeatedFields_, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.log.UserActivitiesItemsResponse, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.log.UserActivitiesItemsResponse.displayName = 'proto.log.UserActivitiesItemsResponse';
|
199
|
+
}
|
156
200
|
|
157
201
|
|
158
202
|
|
@@ -1335,4 +1379,510 @@ proto.log.IssueItemsResponse.prototype.hasTotalItems = function() {
|
|
1335
1379
|
};
|
1336
1380
|
|
1337
1381
|
|
1382
|
+
|
1383
|
+
|
1384
|
+
|
1385
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1386
|
+
/**
|
1387
|
+
* Creates an object representation of this proto.
|
1388
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1389
|
+
* Optional fields that are not set will be set to undefined.
|
1390
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1391
|
+
* For the list of reserved names please see:
|
1392
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1393
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1394
|
+
* JSPB instance for transitional soy proto support:
|
1395
|
+
* http://goto/soy-param-migration
|
1396
|
+
* @return {!Object}
|
1397
|
+
*/
|
1398
|
+
proto.log.UserActivityItem.prototype.toObject = function(opt_includeInstance) {
|
1399
|
+
return proto.log.UserActivityItem.toObject(opt_includeInstance, this);
|
1400
|
+
};
|
1401
|
+
|
1402
|
+
|
1403
|
+
/**
|
1404
|
+
* Static version of the {@see toObject} method.
|
1405
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1406
|
+
* the JSPB instance for transitional soy proto support:
|
1407
|
+
* http://goto/soy-param-migration
|
1408
|
+
* @param {!proto.log.UserActivityItem} msg The msg instance to transform.
|
1409
|
+
* @return {!Object}
|
1410
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1411
|
+
*/
|
1412
|
+
proto.log.UserActivityItem.toObject = function(includeInstance, msg) {
|
1413
|
+
var f, obj = {
|
1414
|
+
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1415
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1416
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1417
|
+
message: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1418
|
+
created: jspb.Message.getFieldWithDefault(msg, 5, "")
|
1419
|
+
};
|
1420
|
+
|
1421
|
+
if (includeInstance) {
|
1422
|
+
obj.$jspbMessageInstance = msg;
|
1423
|
+
}
|
1424
|
+
return obj;
|
1425
|
+
};
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
|
1429
|
+
/**
|
1430
|
+
* Deserializes binary data (in protobuf wire format).
|
1431
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1432
|
+
* @return {!proto.log.UserActivityItem}
|
1433
|
+
*/
|
1434
|
+
proto.log.UserActivityItem.deserializeBinary = function(bytes) {
|
1435
|
+
var reader = new jspb.BinaryReader(bytes);
|
1436
|
+
var msg = new proto.log.UserActivityItem;
|
1437
|
+
return proto.log.UserActivityItem.deserializeBinaryFromReader(msg, reader);
|
1438
|
+
};
|
1439
|
+
|
1440
|
+
|
1441
|
+
/**
|
1442
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1443
|
+
* given reader into the given message object.
|
1444
|
+
* @param {!proto.log.UserActivityItem} msg The message object to deserialize into.
|
1445
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1446
|
+
* @return {!proto.log.UserActivityItem}
|
1447
|
+
*/
|
1448
|
+
proto.log.UserActivityItem.deserializeBinaryFromReader = function(msg, reader) {
|
1449
|
+
while (reader.nextField()) {
|
1450
|
+
if (reader.isEndGroup()) {
|
1451
|
+
break;
|
1452
|
+
}
|
1453
|
+
var field = reader.getFieldNumber();
|
1454
|
+
switch (field) {
|
1455
|
+
case 1:
|
1456
|
+
var value = /** @type {string} */ (reader.readString());
|
1457
|
+
msg.setHash(value);
|
1458
|
+
break;
|
1459
|
+
case 2:
|
1460
|
+
var value = /** @type {string} */ (reader.readString());
|
1461
|
+
msg.setType(value);
|
1462
|
+
break;
|
1463
|
+
case 3:
|
1464
|
+
var value = /** @type {string} */ (reader.readString());
|
1465
|
+
msg.setAction(value);
|
1466
|
+
break;
|
1467
|
+
case 4:
|
1468
|
+
var value = /** @type {string} */ (reader.readString());
|
1469
|
+
msg.setMessage(value);
|
1470
|
+
break;
|
1471
|
+
case 5:
|
1472
|
+
var value = /** @type {string} */ (reader.readString());
|
1473
|
+
msg.setCreated(value);
|
1474
|
+
break;
|
1475
|
+
default:
|
1476
|
+
reader.skipField();
|
1477
|
+
break;
|
1478
|
+
}
|
1479
|
+
}
|
1480
|
+
return msg;
|
1481
|
+
};
|
1482
|
+
|
1483
|
+
|
1484
|
+
/**
|
1485
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1486
|
+
* @return {!Uint8Array}
|
1487
|
+
*/
|
1488
|
+
proto.log.UserActivityItem.prototype.serializeBinary = function() {
|
1489
|
+
var writer = new jspb.BinaryWriter();
|
1490
|
+
proto.log.UserActivityItem.serializeBinaryToWriter(this, writer);
|
1491
|
+
return writer.getResultBuffer();
|
1492
|
+
};
|
1493
|
+
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* Serializes the given message to binary data (in protobuf wire
|
1497
|
+
* format), writing to the given BinaryWriter.
|
1498
|
+
* @param {!proto.log.UserActivityItem} message
|
1499
|
+
* @param {!jspb.BinaryWriter} writer
|
1500
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1501
|
+
*/
|
1502
|
+
proto.log.UserActivityItem.serializeBinaryToWriter = function(message, writer) {
|
1503
|
+
var f = undefined;
|
1504
|
+
f = message.getHash();
|
1505
|
+
if (f.length > 0) {
|
1506
|
+
writer.writeString(
|
1507
|
+
1,
|
1508
|
+
f
|
1509
|
+
);
|
1510
|
+
}
|
1511
|
+
f = message.getType();
|
1512
|
+
if (f.length > 0) {
|
1513
|
+
writer.writeString(
|
1514
|
+
2,
|
1515
|
+
f
|
1516
|
+
);
|
1517
|
+
}
|
1518
|
+
f = message.getAction();
|
1519
|
+
if (f.length > 0) {
|
1520
|
+
writer.writeString(
|
1521
|
+
3,
|
1522
|
+
f
|
1523
|
+
);
|
1524
|
+
}
|
1525
|
+
f = message.getMessage();
|
1526
|
+
if (f.length > 0) {
|
1527
|
+
writer.writeString(
|
1528
|
+
4,
|
1529
|
+
f
|
1530
|
+
);
|
1531
|
+
}
|
1532
|
+
f = message.getCreated();
|
1533
|
+
if (f.length > 0) {
|
1534
|
+
writer.writeString(
|
1535
|
+
5,
|
1536
|
+
f
|
1537
|
+
);
|
1538
|
+
}
|
1539
|
+
};
|
1540
|
+
|
1541
|
+
|
1542
|
+
/**
|
1543
|
+
* optional string hash = 1;
|
1544
|
+
* @return {string}
|
1545
|
+
*/
|
1546
|
+
proto.log.UserActivityItem.prototype.getHash = function() {
|
1547
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1548
|
+
};
|
1549
|
+
|
1550
|
+
|
1551
|
+
/**
|
1552
|
+
* @param {string} value
|
1553
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1554
|
+
*/
|
1555
|
+
proto.log.UserActivityItem.prototype.setHash = function(value) {
|
1556
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1557
|
+
};
|
1558
|
+
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* optional string type = 2;
|
1562
|
+
* @return {string}
|
1563
|
+
*/
|
1564
|
+
proto.log.UserActivityItem.prototype.getType = function() {
|
1565
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1566
|
+
};
|
1567
|
+
|
1568
|
+
|
1569
|
+
/**
|
1570
|
+
* @param {string} value
|
1571
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1572
|
+
*/
|
1573
|
+
proto.log.UserActivityItem.prototype.setType = function(value) {
|
1574
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
1575
|
+
};
|
1576
|
+
|
1577
|
+
|
1578
|
+
/**
|
1579
|
+
* optional string action = 3;
|
1580
|
+
* @return {string}
|
1581
|
+
*/
|
1582
|
+
proto.log.UserActivityItem.prototype.getAction = function() {
|
1583
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1584
|
+
};
|
1585
|
+
|
1586
|
+
|
1587
|
+
/**
|
1588
|
+
* @param {string} value
|
1589
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1590
|
+
*/
|
1591
|
+
proto.log.UserActivityItem.prototype.setAction = function(value) {
|
1592
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
1593
|
+
};
|
1594
|
+
|
1595
|
+
|
1596
|
+
/**
|
1597
|
+
* optional string message = 4;
|
1598
|
+
* @return {string}
|
1599
|
+
*/
|
1600
|
+
proto.log.UserActivityItem.prototype.getMessage = function() {
|
1601
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1602
|
+
};
|
1603
|
+
|
1604
|
+
|
1605
|
+
/**
|
1606
|
+
* @param {string} value
|
1607
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1608
|
+
*/
|
1609
|
+
proto.log.UserActivityItem.prototype.setMessage = function(value) {
|
1610
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
1611
|
+
};
|
1612
|
+
|
1613
|
+
|
1614
|
+
/**
|
1615
|
+
* optional string created = 5;
|
1616
|
+
* @return {string}
|
1617
|
+
*/
|
1618
|
+
proto.log.UserActivityItem.prototype.getCreated = function() {
|
1619
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1620
|
+
};
|
1621
|
+
|
1622
|
+
|
1623
|
+
/**
|
1624
|
+
* @param {string} value
|
1625
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1626
|
+
*/
|
1627
|
+
proto.log.UserActivityItem.prototype.setCreated = function(value) {
|
1628
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
1629
|
+
};
|
1630
|
+
|
1631
|
+
|
1632
|
+
|
1633
|
+
/**
|
1634
|
+
* List of repeated fields within this message type.
|
1635
|
+
* @private {!Array<number>}
|
1636
|
+
* @const
|
1637
|
+
*/
|
1638
|
+
proto.log.UserActivitiesItemsResponse.repeatedFields_ = [1];
|
1639
|
+
|
1640
|
+
|
1641
|
+
|
1642
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1643
|
+
/**
|
1644
|
+
* Creates an object representation of this proto.
|
1645
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1646
|
+
* Optional fields that are not set will be set to undefined.
|
1647
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1648
|
+
* For the list of reserved names please see:
|
1649
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1650
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1651
|
+
* JSPB instance for transitional soy proto support:
|
1652
|
+
* http://goto/soy-param-migration
|
1653
|
+
* @return {!Object}
|
1654
|
+
*/
|
1655
|
+
proto.log.UserActivitiesItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
1656
|
+
return proto.log.UserActivitiesItemsResponse.toObject(opt_includeInstance, this);
|
1657
|
+
};
|
1658
|
+
|
1659
|
+
|
1660
|
+
/**
|
1661
|
+
* Static version of the {@see toObject} method.
|
1662
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1663
|
+
* the JSPB instance for transitional soy proto support:
|
1664
|
+
* http://goto/soy-param-migration
|
1665
|
+
* @param {!proto.log.UserActivitiesItemsResponse} msg The msg instance to transform.
|
1666
|
+
* @return {!Object}
|
1667
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1668
|
+
*/
|
1669
|
+
proto.log.UserActivitiesItemsResponse.toObject = function(includeInstance, msg) {
|
1670
|
+
var f, obj = {
|
1671
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
1672
|
+
proto.log.UserActivityItem.toObject, includeInstance),
|
1673
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1674
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1675
|
+
};
|
1676
|
+
|
1677
|
+
if (includeInstance) {
|
1678
|
+
obj.$jspbMessageInstance = msg;
|
1679
|
+
}
|
1680
|
+
return obj;
|
1681
|
+
};
|
1682
|
+
}
|
1683
|
+
|
1684
|
+
|
1685
|
+
/**
|
1686
|
+
* Deserializes binary data (in protobuf wire format).
|
1687
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1688
|
+
* @return {!proto.log.UserActivitiesItemsResponse}
|
1689
|
+
*/
|
1690
|
+
proto.log.UserActivitiesItemsResponse.deserializeBinary = function(bytes) {
|
1691
|
+
var reader = new jspb.BinaryReader(bytes);
|
1692
|
+
var msg = new proto.log.UserActivitiesItemsResponse;
|
1693
|
+
return proto.log.UserActivitiesItemsResponse.deserializeBinaryFromReader(msg, reader);
|
1694
|
+
};
|
1695
|
+
|
1696
|
+
|
1697
|
+
/**
|
1698
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1699
|
+
* given reader into the given message object.
|
1700
|
+
* @param {!proto.log.UserActivitiesItemsResponse} msg The message object to deserialize into.
|
1701
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1702
|
+
* @return {!proto.log.UserActivitiesItemsResponse}
|
1703
|
+
*/
|
1704
|
+
proto.log.UserActivitiesItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1705
|
+
while (reader.nextField()) {
|
1706
|
+
if (reader.isEndGroup()) {
|
1707
|
+
break;
|
1708
|
+
}
|
1709
|
+
var field = reader.getFieldNumber();
|
1710
|
+
switch (field) {
|
1711
|
+
case 1:
|
1712
|
+
var value = new proto.log.UserActivityItem;
|
1713
|
+
reader.readMessage(value,proto.log.UserActivityItem.deserializeBinaryFromReader);
|
1714
|
+
msg.addItems(value);
|
1715
|
+
break;
|
1716
|
+
case 2:
|
1717
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1718
|
+
msg.setTotalPages(value);
|
1719
|
+
break;
|
1720
|
+
case 3:
|
1721
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1722
|
+
msg.setTotalItems(value);
|
1723
|
+
break;
|
1724
|
+
default:
|
1725
|
+
reader.skipField();
|
1726
|
+
break;
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
return msg;
|
1730
|
+
};
|
1731
|
+
|
1732
|
+
|
1733
|
+
/**
|
1734
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1735
|
+
* @return {!Uint8Array}
|
1736
|
+
*/
|
1737
|
+
proto.log.UserActivitiesItemsResponse.prototype.serializeBinary = function() {
|
1738
|
+
var writer = new jspb.BinaryWriter();
|
1739
|
+
proto.log.UserActivitiesItemsResponse.serializeBinaryToWriter(this, writer);
|
1740
|
+
return writer.getResultBuffer();
|
1741
|
+
};
|
1742
|
+
|
1743
|
+
|
1744
|
+
/**
|
1745
|
+
* Serializes the given message to binary data (in protobuf wire
|
1746
|
+
* format), writing to the given BinaryWriter.
|
1747
|
+
* @param {!proto.log.UserActivitiesItemsResponse} message
|
1748
|
+
* @param {!jspb.BinaryWriter} writer
|
1749
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1750
|
+
*/
|
1751
|
+
proto.log.UserActivitiesItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
1752
|
+
var f = undefined;
|
1753
|
+
f = message.getItemsList();
|
1754
|
+
if (f.length > 0) {
|
1755
|
+
writer.writeRepeatedMessage(
|
1756
|
+
1,
|
1757
|
+
f,
|
1758
|
+
proto.log.UserActivityItem.serializeBinaryToWriter
|
1759
|
+
);
|
1760
|
+
}
|
1761
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1762
|
+
if (f != null) {
|
1763
|
+
writer.writeInt32(
|
1764
|
+
2,
|
1765
|
+
f
|
1766
|
+
);
|
1767
|
+
}
|
1768
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1769
|
+
if (f != null) {
|
1770
|
+
writer.writeInt32(
|
1771
|
+
3,
|
1772
|
+
f
|
1773
|
+
);
|
1774
|
+
}
|
1775
|
+
};
|
1776
|
+
|
1777
|
+
|
1778
|
+
/**
|
1779
|
+
* repeated UserActivityItem items = 1;
|
1780
|
+
* @return {!Array<!proto.log.UserActivityItem>}
|
1781
|
+
*/
|
1782
|
+
proto.log.UserActivitiesItemsResponse.prototype.getItemsList = function() {
|
1783
|
+
return /** @type{!Array<!proto.log.UserActivityItem>} */ (
|
1784
|
+
jspb.Message.getRepeatedWrapperField(this, proto.log.UserActivityItem, 1));
|
1785
|
+
};
|
1786
|
+
|
1787
|
+
|
1788
|
+
/**
|
1789
|
+
* @param {!Array<!proto.log.UserActivityItem>} value
|
1790
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1791
|
+
*/
|
1792
|
+
proto.log.UserActivitiesItemsResponse.prototype.setItemsList = function(value) {
|
1793
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
1794
|
+
};
|
1795
|
+
|
1796
|
+
|
1797
|
+
/**
|
1798
|
+
* @param {!proto.log.UserActivityItem=} opt_value
|
1799
|
+
* @param {number=} opt_index
|
1800
|
+
* @return {!proto.log.UserActivityItem}
|
1801
|
+
*/
|
1802
|
+
proto.log.UserActivitiesItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
1803
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.UserActivityItem, opt_index);
|
1804
|
+
};
|
1805
|
+
|
1806
|
+
|
1807
|
+
/**
|
1808
|
+
* Clears the list making it empty but non-null.
|
1809
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1810
|
+
*/
|
1811
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearItemsList = function() {
|
1812
|
+
return this.setItemsList([]);
|
1813
|
+
};
|
1814
|
+
|
1815
|
+
|
1816
|
+
/**
|
1817
|
+
* optional int32 total_pages = 2;
|
1818
|
+
* @return {number}
|
1819
|
+
*/
|
1820
|
+
proto.log.UserActivitiesItemsResponse.prototype.getTotalPages = function() {
|
1821
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1822
|
+
};
|
1823
|
+
|
1824
|
+
|
1825
|
+
/**
|
1826
|
+
* @param {number} value
|
1827
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1828
|
+
*/
|
1829
|
+
proto.log.UserActivitiesItemsResponse.prototype.setTotalPages = function(value) {
|
1830
|
+
return jspb.Message.setField(this, 2, value);
|
1831
|
+
};
|
1832
|
+
|
1833
|
+
|
1834
|
+
/**
|
1835
|
+
* Clears the field making it undefined.
|
1836
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1837
|
+
*/
|
1838
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearTotalPages = function() {
|
1839
|
+
return jspb.Message.setField(this, 2, undefined);
|
1840
|
+
};
|
1841
|
+
|
1842
|
+
|
1843
|
+
/**
|
1844
|
+
* Returns whether this field is set.
|
1845
|
+
* @return {boolean}
|
1846
|
+
*/
|
1847
|
+
proto.log.UserActivitiesItemsResponse.prototype.hasTotalPages = function() {
|
1848
|
+
return jspb.Message.getField(this, 2) != null;
|
1849
|
+
};
|
1850
|
+
|
1851
|
+
|
1852
|
+
/**
|
1853
|
+
* optional int32 total_items = 3;
|
1854
|
+
* @return {number}
|
1855
|
+
*/
|
1856
|
+
proto.log.UserActivitiesItemsResponse.prototype.getTotalItems = function() {
|
1857
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1858
|
+
};
|
1859
|
+
|
1860
|
+
|
1861
|
+
/**
|
1862
|
+
* @param {number} value
|
1863
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1864
|
+
*/
|
1865
|
+
proto.log.UserActivitiesItemsResponse.prototype.setTotalItems = function(value) {
|
1866
|
+
return jspb.Message.setField(this, 3, value);
|
1867
|
+
};
|
1868
|
+
|
1869
|
+
|
1870
|
+
/**
|
1871
|
+
* Clears the field making it undefined.
|
1872
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1873
|
+
*/
|
1874
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearTotalItems = function() {
|
1875
|
+
return jspb.Message.setField(this, 3, undefined);
|
1876
|
+
};
|
1877
|
+
|
1878
|
+
|
1879
|
+
/**
|
1880
|
+
* Returns whether this field is set.
|
1881
|
+
* @return {boolean}
|
1882
|
+
*/
|
1883
|
+
proto.log.UserActivitiesItemsResponse.prototype.hasTotalItems = function() {
|
1884
|
+
return jspb.Message.getField(this, 3) != null;
|
1885
|
+
};
|
1886
|
+
|
1887
|
+
|
1338
1888
|
goog.object.extend(exports, proto.log);
|