protobuf-platform 1.0.279 → 1.0.281
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 +25 -1
- package/log/log_grpc_pb.js +23 -0
- package/log/log_pb.js +754 -1
- package/package.json +1 -1
package/log/log.proto
CHANGED
@@ -6,15 +6,26 @@ 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; }
|
12
14
|
message PongResponse { string pong = 1; }
|
13
|
-
message PaginationRequest {
|
15
|
+
message PaginationRequest {
|
16
|
+
int32 limit = 1;
|
17
|
+
int32 offset = 2;
|
18
|
+
optional LogSearchRequest log_search_params = 3;
|
19
|
+
optional UserSearchRequest user_search_params = 4;
|
20
|
+
}
|
14
21
|
message LogSearchRequest {
|
15
22
|
repeated string service = 1;
|
16
23
|
repeated string type = 2;
|
17
24
|
}
|
25
|
+
message UserSearchRequest {
|
26
|
+
int32 user_id = 1;
|
27
|
+
}
|
28
|
+
//Issues
|
18
29
|
message IssueItem {
|
19
30
|
string hash = 1;
|
20
31
|
string type = 2;
|
@@ -26,4 +37,17 @@ message IssueItemsResponse {
|
|
26
37
|
repeated IssueItem items = 1;
|
27
38
|
optional int32 total_pages = 2;
|
28
39
|
optional int32 total_items = 3;
|
40
|
+
}
|
41
|
+
//User Activities
|
42
|
+
message UserActivityItem {
|
43
|
+
string hash = 1;
|
44
|
+
string type = 2;
|
45
|
+
string action = 3;
|
46
|
+
string message = 4;
|
47
|
+
string created = 5;
|
48
|
+
}
|
49
|
+
message UserActivitiesItemsResponse {
|
50
|
+
repeated UserActivityItem items = 1;
|
51
|
+
optional int32 total_pages = 2;
|
52
|
+
optional int32 total_items = 3;
|
29
53
|
}
|
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,9 @@ 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);
|
32
|
+
goog.exportSymbol('proto.log.UserSearchRequest', null, global);
|
30
33
|
/**
|
31
34
|
* Generated by JsPbCodeGenerator.
|
32
35
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -111,6 +114,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
111
114
|
*/
|
112
115
|
proto.log.LogSearchRequest.displayName = 'proto.log.LogSearchRequest';
|
113
116
|
}
|
117
|
+
/**
|
118
|
+
* Generated by JsPbCodeGenerator.
|
119
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
120
|
+
* server response, or constructed directly in Javascript. The array is used
|
121
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
122
|
+
* If no data is provided, the constructed object will be empty, but still
|
123
|
+
* valid.
|
124
|
+
* @extends {jspb.Message}
|
125
|
+
* @constructor
|
126
|
+
*/
|
127
|
+
proto.log.UserSearchRequest = function(opt_data) {
|
128
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
129
|
+
};
|
130
|
+
goog.inherits(proto.log.UserSearchRequest, jspb.Message);
|
131
|
+
if (goog.DEBUG && !COMPILED) {
|
132
|
+
/**
|
133
|
+
* @public
|
134
|
+
* @override
|
135
|
+
*/
|
136
|
+
proto.log.UserSearchRequest.displayName = 'proto.log.UserSearchRequest';
|
137
|
+
}
|
114
138
|
/**
|
115
139
|
* Generated by JsPbCodeGenerator.
|
116
140
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -153,6 +177,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
177
|
*/
|
154
178
|
proto.log.IssueItemsResponse.displayName = 'proto.log.IssueItemsResponse';
|
155
179
|
}
|
180
|
+
/**
|
181
|
+
* Generated by JsPbCodeGenerator.
|
182
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
183
|
+
* server response, or constructed directly in Javascript. The array is used
|
184
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
185
|
+
* If no data is provided, the constructed object will be empty, but still
|
186
|
+
* valid.
|
187
|
+
* @extends {jspb.Message}
|
188
|
+
* @constructor
|
189
|
+
*/
|
190
|
+
proto.log.UserActivityItem = function(opt_data) {
|
191
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
192
|
+
};
|
193
|
+
goog.inherits(proto.log.UserActivityItem, jspb.Message);
|
194
|
+
if (goog.DEBUG && !COMPILED) {
|
195
|
+
/**
|
196
|
+
* @public
|
197
|
+
* @override
|
198
|
+
*/
|
199
|
+
proto.log.UserActivityItem.displayName = 'proto.log.UserActivityItem';
|
200
|
+
}
|
201
|
+
/**
|
202
|
+
* Generated by JsPbCodeGenerator.
|
203
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
204
|
+
* server response, or constructed directly in Javascript. The array is used
|
205
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
206
|
+
* If no data is provided, the constructed object will be empty, but still
|
207
|
+
* valid.
|
208
|
+
* @extends {jspb.Message}
|
209
|
+
* @constructor
|
210
|
+
*/
|
211
|
+
proto.log.UserActivitiesItemsResponse = function(opt_data) {
|
212
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.log.UserActivitiesItemsResponse.repeatedFields_, null);
|
213
|
+
};
|
214
|
+
goog.inherits(proto.log.UserActivitiesItemsResponse, jspb.Message);
|
215
|
+
if (goog.DEBUG && !COMPILED) {
|
216
|
+
/**
|
217
|
+
* @public
|
218
|
+
* @override
|
219
|
+
*/
|
220
|
+
proto.log.UserActivitiesItemsResponse.displayName = 'proto.log.UserActivitiesItemsResponse';
|
221
|
+
}
|
156
222
|
|
157
223
|
|
158
224
|
|
@@ -447,7 +513,8 @@ proto.log.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
447
513
|
var f, obj = {
|
448
514
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
449
515
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
450
|
-
logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f)
|
516
|
+
logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f),
|
517
|
+
userSearchParams: (f = msg.getUserSearchParams()) && proto.log.UserSearchRequest.toObject(includeInstance, f)
|
451
518
|
};
|
452
519
|
|
453
520
|
if (includeInstance) {
|
@@ -497,6 +564,11 @@ proto.log.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
497
564
|
reader.readMessage(value,proto.log.LogSearchRequest.deserializeBinaryFromReader);
|
498
565
|
msg.setLogSearchParams(value);
|
499
566
|
break;
|
567
|
+
case 4:
|
568
|
+
var value = new proto.log.UserSearchRequest;
|
569
|
+
reader.readMessage(value,proto.log.UserSearchRequest.deserializeBinaryFromReader);
|
570
|
+
msg.setUserSearchParams(value);
|
571
|
+
break;
|
500
572
|
default:
|
501
573
|
reader.skipField();
|
502
574
|
break;
|
@@ -548,6 +620,14 @@ proto.log.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
548
620
|
proto.log.LogSearchRequest.serializeBinaryToWriter
|
549
621
|
);
|
550
622
|
}
|
623
|
+
f = message.getUserSearchParams();
|
624
|
+
if (f != null) {
|
625
|
+
writer.writeMessage(
|
626
|
+
4,
|
627
|
+
f,
|
628
|
+
proto.log.UserSearchRequest.serializeBinaryToWriter
|
629
|
+
);
|
630
|
+
}
|
551
631
|
};
|
552
632
|
|
553
633
|
|
@@ -624,6 +704,43 @@ proto.log.PaginationRequest.prototype.hasLogSearchParams = function() {
|
|
624
704
|
};
|
625
705
|
|
626
706
|
|
707
|
+
/**
|
708
|
+
* optional UserSearchRequest user_search_params = 4;
|
709
|
+
* @return {?proto.log.UserSearchRequest}
|
710
|
+
*/
|
711
|
+
proto.log.PaginationRequest.prototype.getUserSearchParams = function() {
|
712
|
+
return /** @type{?proto.log.UserSearchRequest} */ (
|
713
|
+
jspb.Message.getWrapperField(this, proto.log.UserSearchRequest, 4));
|
714
|
+
};
|
715
|
+
|
716
|
+
|
717
|
+
/**
|
718
|
+
* @param {?proto.log.UserSearchRequest|undefined} value
|
719
|
+
* @return {!proto.log.PaginationRequest} returns this
|
720
|
+
*/
|
721
|
+
proto.log.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
722
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
723
|
+
};
|
724
|
+
|
725
|
+
|
726
|
+
/**
|
727
|
+
* Clears the message field making it undefined.
|
728
|
+
* @return {!proto.log.PaginationRequest} returns this
|
729
|
+
*/
|
730
|
+
proto.log.PaginationRequest.prototype.clearUserSearchParams = function() {
|
731
|
+
return this.setUserSearchParams(undefined);
|
732
|
+
};
|
733
|
+
|
734
|
+
|
735
|
+
/**
|
736
|
+
* Returns whether this field is set.
|
737
|
+
* @return {boolean}
|
738
|
+
*/
|
739
|
+
proto.log.PaginationRequest.prototype.hasUserSearchParams = function() {
|
740
|
+
return jspb.Message.getField(this, 4) != null;
|
741
|
+
};
|
742
|
+
|
743
|
+
|
627
744
|
|
628
745
|
/**
|
629
746
|
* List of repeated fields within this message type.
|
@@ -832,6 +949,136 @@ proto.log.LogSearchRequest.prototype.clearTypeList = function() {
|
|
832
949
|
|
833
950
|
|
834
951
|
|
952
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
953
|
+
/**
|
954
|
+
* Creates an object representation of this proto.
|
955
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
956
|
+
* Optional fields that are not set will be set to undefined.
|
957
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
958
|
+
* For the list of reserved names please see:
|
959
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
960
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
961
|
+
* JSPB instance for transitional soy proto support:
|
962
|
+
* http://goto/soy-param-migration
|
963
|
+
* @return {!Object}
|
964
|
+
*/
|
965
|
+
proto.log.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
966
|
+
return proto.log.UserSearchRequest.toObject(opt_includeInstance, this);
|
967
|
+
};
|
968
|
+
|
969
|
+
|
970
|
+
/**
|
971
|
+
* Static version of the {@see toObject} method.
|
972
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
973
|
+
* the JSPB instance for transitional soy proto support:
|
974
|
+
* http://goto/soy-param-migration
|
975
|
+
* @param {!proto.log.UserSearchRequest} msg The msg instance to transform.
|
976
|
+
* @return {!Object}
|
977
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
978
|
+
*/
|
979
|
+
proto.log.UserSearchRequest.toObject = function(includeInstance, msg) {
|
980
|
+
var f, obj = {
|
981
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
982
|
+
};
|
983
|
+
|
984
|
+
if (includeInstance) {
|
985
|
+
obj.$jspbMessageInstance = msg;
|
986
|
+
}
|
987
|
+
return obj;
|
988
|
+
};
|
989
|
+
}
|
990
|
+
|
991
|
+
|
992
|
+
/**
|
993
|
+
* Deserializes binary data (in protobuf wire format).
|
994
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
995
|
+
* @return {!proto.log.UserSearchRequest}
|
996
|
+
*/
|
997
|
+
proto.log.UserSearchRequest.deserializeBinary = function(bytes) {
|
998
|
+
var reader = new jspb.BinaryReader(bytes);
|
999
|
+
var msg = new proto.log.UserSearchRequest;
|
1000
|
+
return proto.log.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
|
1001
|
+
};
|
1002
|
+
|
1003
|
+
|
1004
|
+
/**
|
1005
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1006
|
+
* given reader into the given message object.
|
1007
|
+
* @param {!proto.log.UserSearchRequest} msg The message object to deserialize into.
|
1008
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1009
|
+
* @return {!proto.log.UserSearchRequest}
|
1010
|
+
*/
|
1011
|
+
proto.log.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1012
|
+
while (reader.nextField()) {
|
1013
|
+
if (reader.isEndGroup()) {
|
1014
|
+
break;
|
1015
|
+
}
|
1016
|
+
var field = reader.getFieldNumber();
|
1017
|
+
switch (field) {
|
1018
|
+
case 1:
|
1019
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1020
|
+
msg.setUserId(value);
|
1021
|
+
break;
|
1022
|
+
default:
|
1023
|
+
reader.skipField();
|
1024
|
+
break;
|
1025
|
+
}
|
1026
|
+
}
|
1027
|
+
return msg;
|
1028
|
+
};
|
1029
|
+
|
1030
|
+
|
1031
|
+
/**
|
1032
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1033
|
+
* @return {!Uint8Array}
|
1034
|
+
*/
|
1035
|
+
proto.log.UserSearchRequest.prototype.serializeBinary = function() {
|
1036
|
+
var writer = new jspb.BinaryWriter();
|
1037
|
+
proto.log.UserSearchRequest.serializeBinaryToWriter(this, writer);
|
1038
|
+
return writer.getResultBuffer();
|
1039
|
+
};
|
1040
|
+
|
1041
|
+
|
1042
|
+
/**
|
1043
|
+
* Serializes the given message to binary data (in protobuf wire
|
1044
|
+
* format), writing to the given BinaryWriter.
|
1045
|
+
* @param {!proto.log.UserSearchRequest} message
|
1046
|
+
* @param {!jspb.BinaryWriter} writer
|
1047
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1048
|
+
*/
|
1049
|
+
proto.log.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1050
|
+
var f = undefined;
|
1051
|
+
f = message.getUserId();
|
1052
|
+
if (f !== 0) {
|
1053
|
+
writer.writeInt32(
|
1054
|
+
1,
|
1055
|
+
f
|
1056
|
+
);
|
1057
|
+
}
|
1058
|
+
};
|
1059
|
+
|
1060
|
+
|
1061
|
+
/**
|
1062
|
+
* optional int32 user_id = 1;
|
1063
|
+
* @return {number}
|
1064
|
+
*/
|
1065
|
+
proto.log.UserSearchRequest.prototype.getUserId = function() {
|
1066
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1067
|
+
};
|
1068
|
+
|
1069
|
+
|
1070
|
+
/**
|
1071
|
+
* @param {number} value
|
1072
|
+
* @return {!proto.log.UserSearchRequest} returns this
|
1073
|
+
*/
|
1074
|
+
proto.log.UserSearchRequest.prototype.setUserId = function(value) {
|
1075
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1076
|
+
};
|
1077
|
+
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
|
835
1082
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
836
1083
|
/**
|
837
1084
|
* Creates an object representation of this proto.
|
@@ -1335,4 +1582,510 @@ proto.log.IssueItemsResponse.prototype.hasTotalItems = function() {
|
|
1335
1582
|
};
|
1336
1583
|
|
1337
1584
|
|
1585
|
+
|
1586
|
+
|
1587
|
+
|
1588
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1589
|
+
/**
|
1590
|
+
* Creates an object representation of this proto.
|
1591
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1592
|
+
* Optional fields that are not set will be set to undefined.
|
1593
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1594
|
+
* For the list of reserved names please see:
|
1595
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1596
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1597
|
+
* JSPB instance for transitional soy proto support:
|
1598
|
+
* http://goto/soy-param-migration
|
1599
|
+
* @return {!Object}
|
1600
|
+
*/
|
1601
|
+
proto.log.UserActivityItem.prototype.toObject = function(opt_includeInstance) {
|
1602
|
+
return proto.log.UserActivityItem.toObject(opt_includeInstance, this);
|
1603
|
+
};
|
1604
|
+
|
1605
|
+
|
1606
|
+
/**
|
1607
|
+
* Static version of the {@see toObject} method.
|
1608
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1609
|
+
* the JSPB instance for transitional soy proto support:
|
1610
|
+
* http://goto/soy-param-migration
|
1611
|
+
* @param {!proto.log.UserActivityItem} msg The msg instance to transform.
|
1612
|
+
* @return {!Object}
|
1613
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1614
|
+
*/
|
1615
|
+
proto.log.UserActivityItem.toObject = function(includeInstance, msg) {
|
1616
|
+
var f, obj = {
|
1617
|
+
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1618
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1619
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1620
|
+
message: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1621
|
+
created: jspb.Message.getFieldWithDefault(msg, 5, "")
|
1622
|
+
};
|
1623
|
+
|
1624
|
+
if (includeInstance) {
|
1625
|
+
obj.$jspbMessageInstance = msg;
|
1626
|
+
}
|
1627
|
+
return obj;
|
1628
|
+
};
|
1629
|
+
}
|
1630
|
+
|
1631
|
+
|
1632
|
+
/**
|
1633
|
+
* Deserializes binary data (in protobuf wire format).
|
1634
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1635
|
+
* @return {!proto.log.UserActivityItem}
|
1636
|
+
*/
|
1637
|
+
proto.log.UserActivityItem.deserializeBinary = function(bytes) {
|
1638
|
+
var reader = new jspb.BinaryReader(bytes);
|
1639
|
+
var msg = new proto.log.UserActivityItem;
|
1640
|
+
return proto.log.UserActivityItem.deserializeBinaryFromReader(msg, reader);
|
1641
|
+
};
|
1642
|
+
|
1643
|
+
|
1644
|
+
/**
|
1645
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1646
|
+
* given reader into the given message object.
|
1647
|
+
* @param {!proto.log.UserActivityItem} msg The message object to deserialize into.
|
1648
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1649
|
+
* @return {!proto.log.UserActivityItem}
|
1650
|
+
*/
|
1651
|
+
proto.log.UserActivityItem.deserializeBinaryFromReader = function(msg, reader) {
|
1652
|
+
while (reader.nextField()) {
|
1653
|
+
if (reader.isEndGroup()) {
|
1654
|
+
break;
|
1655
|
+
}
|
1656
|
+
var field = reader.getFieldNumber();
|
1657
|
+
switch (field) {
|
1658
|
+
case 1:
|
1659
|
+
var value = /** @type {string} */ (reader.readString());
|
1660
|
+
msg.setHash(value);
|
1661
|
+
break;
|
1662
|
+
case 2:
|
1663
|
+
var value = /** @type {string} */ (reader.readString());
|
1664
|
+
msg.setType(value);
|
1665
|
+
break;
|
1666
|
+
case 3:
|
1667
|
+
var value = /** @type {string} */ (reader.readString());
|
1668
|
+
msg.setAction(value);
|
1669
|
+
break;
|
1670
|
+
case 4:
|
1671
|
+
var value = /** @type {string} */ (reader.readString());
|
1672
|
+
msg.setMessage(value);
|
1673
|
+
break;
|
1674
|
+
case 5:
|
1675
|
+
var value = /** @type {string} */ (reader.readString());
|
1676
|
+
msg.setCreated(value);
|
1677
|
+
break;
|
1678
|
+
default:
|
1679
|
+
reader.skipField();
|
1680
|
+
break;
|
1681
|
+
}
|
1682
|
+
}
|
1683
|
+
return msg;
|
1684
|
+
};
|
1685
|
+
|
1686
|
+
|
1687
|
+
/**
|
1688
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1689
|
+
* @return {!Uint8Array}
|
1690
|
+
*/
|
1691
|
+
proto.log.UserActivityItem.prototype.serializeBinary = function() {
|
1692
|
+
var writer = new jspb.BinaryWriter();
|
1693
|
+
proto.log.UserActivityItem.serializeBinaryToWriter(this, writer);
|
1694
|
+
return writer.getResultBuffer();
|
1695
|
+
};
|
1696
|
+
|
1697
|
+
|
1698
|
+
/**
|
1699
|
+
* Serializes the given message to binary data (in protobuf wire
|
1700
|
+
* format), writing to the given BinaryWriter.
|
1701
|
+
* @param {!proto.log.UserActivityItem} message
|
1702
|
+
* @param {!jspb.BinaryWriter} writer
|
1703
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1704
|
+
*/
|
1705
|
+
proto.log.UserActivityItem.serializeBinaryToWriter = function(message, writer) {
|
1706
|
+
var f = undefined;
|
1707
|
+
f = message.getHash();
|
1708
|
+
if (f.length > 0) {
|
1709
|
+
writer.writeString(
|
1710
|
+
1,
|
1711
|
+
f
|
1712
|
+
);
|
1713
|
+
}
|
1714
|
+
f = message.getType();
|
1715
|
+
if (f.length > 0) {
|
1716
|
+
writer.writeString(
|
1717
|
+
2,
|
1718
|
+
f
|
1719
|
+
);
|
1720
|
+
}
|
1721
|
+
f = message.getAction();
|
1722
|
+
if (f.length > 0) {
|
1723
|
+
writer.writeString(
|
1724
|
+
3,
|
1725
|
+
f
|
1726
|
+
);
|
1727
|
+
}
|
1728
|
+
f = message.getMessage();
|
1729
|
+
if (f.length > 0) {
|
1730
|
+
writer.writeString(
|
1731
|
+
4,
|
1732
|
+
f
|
1733
|
+
);
|
1734
|
+
}
|
1735
|
+
f = message.getCreated();
|
1736
|
+
if (f.length > 0) {
|
1737
|
+
writer.writeString(
|
1738
|
+
5,
|
1739
|
+
f
|
1740
|
+
);
|
1741
|
+
}
|
1742
|
+
};
|
1743
|
+
|
1744
|
+
|
1745
|
+
/**
|
1746
|
+
* optional string hash = 1;
|
1747
|
+
* @return {string}
|
1748
|
+
*/
|
1749
|
+
proto.log.UserActivityItem.prototype.getHash = function() {
|
1750
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1751
|
+
};
|
1752
|
+
|
1753
|
+
|
1754
|
+
/**
|
1755
|
+
* @param {string} value
|
1756
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1757
|
+
*/
|
1758
|
+
proto.log.UserActivityItem.prototype.setHash = function(value) {
|
1759
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1760
|
+
};
|
1761
|
+
|
1762
|
+
|
1763
|
+
/**
|
1764
|
+
* optional string type = 2;
|
1765
|
+
* @return {string}
|
1766
|
+
*/
|
1767
|
+
proto.log.UserActivityItem.prototype.getType = function() {
|
1768
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1769
|
+
};
|
1770
|
+
|
1771
|
+
|
1772
|
+
/**
|
1773
|
+
* @param {string} value
|
1774
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1775
|
+
*/
|
1776
|
+
proto.log.UserActivityItem.prototype.setType = function(value) {
|
1777
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
1778
|
+
};
|
1779
|
+
|
1780
|
+
|
1781
|
+
/**
|
1782
|
+
* optional string action = 3;
|
1783
|
+
* @return {string}
|
1784
|
+
*/
|
1785
|
+
proto.log.UserActivityItem.prototype.getAction = function() {
|
1786
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1787
|
+
};
|
1788
|
+
|
1789
|
+
|
1790
|
+
/**
|
1791
|
+
* @param {string} value
|
1792
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1793
|
+
*/
|
1794
|
+
proto.log.UserActivityItem.prototype.setAction = function(value) {
|
1795
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
1796
|
+
};
|
1797
|
+
|
1798
|
+
|
1799
|
+
/**
|
1800
|
+
* optional string message = 4;
|
1801
|
+
* @return {string}
|
1802
|
+
*/
|
1803
|
+
proto.log.UserActivityItem.prototype.getMessage = function() {
|
1804
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1805
|
+
};
|
1806
|
+
|
1807
|
+
|
1808
|
+
/**
|
1809
|
+
* @param {string} value
|
1810
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1811
|
+
*/
|
1812
|
+
proto.log.UserActivityItem.prototype.setMessage = function(value) {
|
1813
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
1814
|
+
};
|
1815
|
+
|
1816
|
+
|
1817
|
+
/**
|
1818
|
+
* optional string created = 5;
|
1819
|
+
* @return {string}
|
1820
|
+
*/
|
1821
|
+
proto.log.UserActivityItem.prototype.getCreated = function() {
|
1822
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1823
|
+
};
|
1824
|
+
|
1825
|
+
|
1826
|
+
/**
|
1827
|
+
* @param {string} value
|
1828
|
+
* @return {!proto.log.UserActivityItem} returns this
|
1829
|
+
*/
|
1830
|
+
proto.log.UserActivityItem.prototype.setCreated = function(value) {
|
1831
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
1832
|
+
};
|
1833
|
+
|
1834
|
+
|
1835
|
+
|
1836
|
+
/**
|
1837
|
+
* List of repeated fields within this message type.
|
1838
|
+
* @private {!Array<number>}
|
1839
|
+
* @const
|
1840
|
+
*/
|
1841
|
+
proto.log.UserActivitiesItemsResponse.repeatedFields_ = [1];
|
1842
|
+
|
1843
|
+
|
1844
|
+
|
1845
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1846
|
+
/**
|
1847
|
+
* Creates an object representation of this proto.
|
1848
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1849
|
+
* Optional fields that are not set will be set to undefined.
|
1850
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1851
|
+
* For the list of reserved names please see:
|
1852
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1853
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1854
|
+
* JSPB instance for transitional soy proto support:
|
1855
|
+
* http://goto/soy-param-migration
|
1856
|
+
* @return {!Object}
|
1857
|
+
*/
|
1858
|
+
proto.log.UserActivitiesItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
1859
|
+
return proto.log.UserActivitiesItemsResponse.toObject(opt_includeInstance, this);
|
1860
|
+
};
|
1861
|
+
|
1862
|
+
|
1863
|
+
/**
|
1864
|
+
* Static version of the {@see toObject} method.
|
1865
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1866
|
+
* the JSPB instance for transitional soy proto support:
|
1867
|
+
* http://goto/soy-param-migration
|
1868
|
+
* @param {!proto.log.UserActivitiesItemsResponse} msg The msg instance to transform.
|
1869
|
+
* @return {!Object}
|
1870
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1871
|
+
*/
|
1872
|
+
proto.log.UserActivitiesItemsResponse.toObject = function(includeInstance, msg) {
|
1873
|
+
var f, obj = {
|
1874
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
1875
|
+
proto.log.UserActivityItem.toObject, includeInstance),
|
1876
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1877
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1878
|
+
};
|
1879
|
+
|
1880
|
+
if (includeInstance) {
|
1881
|
+
obj.$jspbMessageInstance = msg;
|
1882
|
+
}
|
1883
|
+
return obj;
|
1884
|
+
};
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
|
1888
|
+
/**
|
1889
|
+
* Deserializes binary data (in protobuf wire format).
|
1890
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1891
|
+
* @return {!proto.log.UserActivitiesItemsResponse}
|
1892
|
+
*/
|
1893
|
+
proto.log.UserActivitiesItemsResponse.deserializeBinary = function(bytes) {
|
1894
|
+
var reader = new jspb.BinaryReader(bytes);
|
1895
|
+
var msg = new proto.log.UserActivitiesItemsResponse;
|
1896
|
+
return proto.log.UserActivitiesItemsResponse.deserializeBinaryFromReader(msg, reader);
|
1897
|
+
};
|
1898
|
+
|
1899
|
+
|
1900
|
+
/**
|
1901
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1902
|
+
* given reader into the given message object.
|
1903
|
+
* @param {!proto.log.UserActivitiesItemsResponse} msg The message object to deserialize into.
|
1904
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1905
|
+
* @return {!proto.log.UserActivitiesItemsResponse}
|
1906
|
+
*/
|
1907
|
+
proto.log.UserActivitiesItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1908
|
+
while (reader.nextField()) {
|
1909
|
+
if (reader.isEndGroup()) {
|
1910
|
+
break;
|
1911
|
+
}
|
1912
|
+
var field = reader.getFieldNumber();
|
1913
|
+
switch (field) {
|
1914
|
+
case 1:
|
1915
|
+
var value = new proto.log.UserActivityItem;
|
1916
|
+
reader.readMessage(value,proto.log.UserActivityItem.deserializeBinaryFromReader);
|
1917
|
+
msg.addItems(value);
|
1918
|
+
break;
|
1919
|
+
case 2:
|
1920
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1921
|
+
msg.setTotalPages(value);
|
1922
|
+
break;
|
1923
|
+
case 3:
|
1924
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1925
|
+
msg.setTotalItems(value);
|
1926
|
+
break;
|
1927
|
+
default:
|
1928
|
+
reader.skipField();
|
1929
|
+
break;
|
1930
|
+
}
|
1931
|
+
}
|
1932
|
+
return msg;
|
1933
|
+
};
|
1934
|
+
|
1935
|
+
|
1936
|
+
/**
|
1937
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1938
|
+
* @return {!Uint8Array}
|
1939
|
+
*/
|
1940
|
+
proto.log.UserActivitiesItemsResponse.prototype.serializeBinary = function() {
|
1941
|
+
var writer = new jspb.BinaryWriter();
|
1942
|
+
proto.log.UserActivitiesItemsResponse.serializeBinaryToWriter(this, writer);
|
1943
|
+
return writer.getResultBuffer();
|
1944
|
+
};
|
1945
|
+
|
1946
|
+
|
1947
|
+
/**
|
1948
|
+
* Serializes the given message to binary data (in protobuf wire
|
1949
|
+
* format), writing to the given BinaryWriter.
|
1950
|
+
* @param {!proto.log.UserActivitiesItemsResponse} message
|
1951
|
+
* @param {!jspb.BinaryWriter} writer
|
1952
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1953
|
+
*/
|
1954
|
+
proto.log.UserActivitiesItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
1955
|
+
var f = undefined;
|
1956
|
+
f = message.getItemsList();
|
1957
|
+
if (f.length > 0) {
|
1958
|
+
writer.writeRepeatedMessage(
|
1959
|
+
1,
|
1960
|
+
f,
|
1961
|
+
proto.log.UserActivityItem.serializeBinaryToWriter
|
1962
|
+
);
|
1963
|
+
}
|
1964
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1965
|
+
if (f != null) {
|
1966
|
+
writer.writeInt32(
|
1967
|
+
2,
|
1968
|
+
f
|
1969
|
+
);
|
1970
|
+
}
|
1971
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1972
|
+
if (f != null) {
|
1973
|
+
writer.writeInt32(
|
1974
|
+
3,
|
1975
|
+
f
|
1976
|
+
);
|
1977
|
+
}
|
1978
|
+
};
|
1979
|
+
|
1980
|
+
|
1981
|
+
/**
|
1982
|
+
* repeated UserActivityItem items = 1;
|
1983
|
+
* @return {!Array<!proto.log.UserActivityItem>}
|
1984
|
+
*/
|
1985
|
+
proto.log.UserActivitiesItemsResponse.prototype.getItemsList = function() {
|
1986
|
+
return /** @type{!Array<!proto.log.UserActivityItem>} */ (
|
1987
|
+
jspb.Message.getRepeatedWrapperField(this, proto.log.UserActivityItem, 1));
|
1988
|
+
};
|
1989
|
+
|
1990
|
+
|
1991
|
+
/**
|
1992
|
+
* @param {!Array<!proto.log.UserActivityItem>} value
|
1993
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
1994
|
+
*/
|
1995
|
+
proto.log.UserActivitiesItemsResponse.prototype.setItemsList = function(value) {
|
1996
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
1997
|
+
};
|
1998
|
+
|
1999
|
+
|
2000
|
+
/**
|
2001
|
+
* @param {!proto.log.UserActivityItem=} opt_value
|
2002
|
+
* @param {number=} opt_index
|
2003
|
+
* @return {!proto.log.UserActivityItem}
|
2004
|
+
*/
|
2005
|
+
proto.log.UserActivitiesItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
2006
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.UserActivityItem, opt_index);
|
2007
|
+
};
|
2008
|
+
|
2009
|
+
|
2010
|
+
/**
|
2011
|
+
* Clears the list making it empty but non-null.
|
2012
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
2013
|
+
*/
|
2014
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearItemsList = function() {
|
2015
|
+
return this.setItemsList([]);
|
2016
|
+
};
|
2017
|
+
|
2018
|
+
|
2019
|
+
/**
|
2020
|
+
* optional int32 total_pages = 2;
|
2021
|
+
* @return {number}
|
2022
|
+
*/
|
2023
|
+
proto.log.UserActivitiesItemsResponse.prototype.getTotalPages = function() {
|
2024
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2025
|
+
};
|
2026
|
+
|
2027
|
+
|
2028
|
+
/**
|
2029
|
+
* @param {number} value
|
2030
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
2031
|
+
*/
|
2032
|
+
proto.log.UserActivitiesItemsResponse.prototype.setTotalPages = function(value) {
|
2033
|
+
return jspb.Message.setField(this, 2, value);
|
2034
|
+
};
|
2035
|
+
|
2036
|
+
|
2037
|
+
/**
|
2038
|
+
* Clears the field making it undefined.
|
2039
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
2040
|
+
*/
|
2041
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearTotalPages = function() {
|
2042
|
+
return jspb.Message.setField(this, 2, undefined);
|
2043
|
+
};
|
2044
|
+
|
2045
|
+
|
2046
|
+
/**
|
2047
|
+
* Returns whether this field is set.
|
2048
|
+
* @return {boolean}
|
2049
|
+
*/
|
2050
|
+
proto.log.UserActivitiesItemsResponse.prototype.hasTotalPages = function() {
|
2051
|
+
return jspb.Message.getField(this, 2) != null;
|
2052
|
+
};
|
2053
|
+
|
2054
|
+
|
2055
|
+
/**
|
2056
|
+
* optional int32 total_items = 3;
|
2057
|
+
* @return {number}
|
2058
|
+
*/
|
2059
|
+
proto.log.UserActivitiesItemsResponse.prototype.getTotalItems = function() {
|
2060
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2061
|
+
};
|
2062
|
+
|
2063
|
+
|
2064
|
+
/**
|
2065
|
+
* @param {number} value
|
2066
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
2067
|
+
*/
|
2068
|
+
proto.log.UserActivitiesItemsResponse.prototype.setTotalItems = function(value) {
|
2069
|
+
return jspb.Message.setField(this, 3, value);
|
2070
|
+
};
|
2071
|
+
|
2072
|
+
|
2073
|
+
/**
|
2074
|
+
* Clears the field making it undefined.
|
2075
|
+
* @return {!proto.log.UserActivitiesItemsResponse} returns this
|
2076
|
+
*/
|
2077
|
+
proto.log.UserActivitiesItemsResponse.prototype.clearTotalItems = function() {
|
2078
|
+
return jspb.Message.setField(this, 3, undefined);
|
2079
|
+
};
|
2080
|
+
|
2081
|
+
|
2082
|
+
/**
|
2083
|
+
* Returns whether this field is set.
|
2084
|
+
* @return {boolean}
|
2085
|
+
*/
|
2086
|
+
proto.log.UserActivitiesItemsResponse.prototype.hasTotalItems = function() {
|
2087
|
+
return jspb.Message.getField(this, 3) != null;
|
2088
|
+
};
|
2089
|
+
|
2090
|
+
|
1338
2091
|
goog.object.extend(exports, proto.log);
|