protobuf-platform 1.0.182 → 1.0.183
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.
@@ -12,16 +12,28 @@ service Notification {
|
|
12
12
|
//rpc deleteSingleLevel(GetLevelRequest) returns (LevelStatusResponse);
|
13
13
|
//rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
|
14
14
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
15
|
+
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
15
16
|
}
|
16
17
|
|
17
18
|
message PingRequest { string ping = 1; }
|
18
19
|
message PongResponse { string pong = 1; }
|
19
|
-
message PaginationRequest {
|
20
|
+
message PaginationRequest {
|
21
|
+
int32 limit = 1;
|
22
|
+
int32 offset = 2;
|
23
|
+
optional NotificationSearchRequest notification_search_params = 3;
|
24
|
+
optional UserSearchRequest user_search_params = 4;
|
25
|
+
}
|
20
26
|
message NotificationSearchRequest {
|
21
27
|
optional int32 notification_id = 1;
|
22
28
|
optional int32 user_id = 2;
|
23
29
|
optional string notification_title = 3;
|
24
30
|
}
|
31
|
+
message UserSearchRequest {
|
32
|
+
int32 user_id = 1;
|
33
|
+
optional bool is_checked = 2;
|
34
|
+
optional int32 limit = 3;
|
35
|
+
optional int32 offset = 4;
|
36
|
+
}
|
25
37
|
//Media
|
26
38
|
message File { bytes media = 1; }
|
27
39
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
@@ -33,4 +45,15 @@ message SendNotificationRequest {
|
|
33
45
|
}
|
34
46
|
message NotificationStatusResponse {
|
35
47
|
string status = 1;
|
48
|
+
}
|
49
|
+
message UserNotificationItem {
|
50
|
+
string title = 1;
|
51
|
+
string content = 2;
|
52
|
+
bool is_checked = 3;
|
53
|
+
optional string created = 4;
|
54
|
+
}
|
55
|
+
message UserNotificationItemsResponse {
|
56
|
+
repeated UserNotificationItem items = 1;
|
57
|
+
optional int32 total_pages = 2;
|
58
|
+
optional int32 total_items = 3;
|
36
59
|
}
|
@@ -37,6 +37,17 @@ function deserialize_notification_NotificationStatusResponse(buffer_arg) {
|
|
37
37
|
return notification_pb.NotificationStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
38
|
}
|
39
39
|
|
40
|
+
function serialize_notification_PaginationRequest(arg) {
|
41
|
+
if (!(arg instanceof notification_pb.PaginationRequest)) {
|
42
|
+
throw new Error('Expected argument of type notification.PaginationRequest');
|
43
|
+
}
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
45
|
+
}
|
46
|
+
|
47
|
+
function deserialize_notification_PaginationRequest(buffer_arg) {
|
48
|
+
return notification_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
49
|
+
}
|
50
|
+
|
40
51
|
function serialize_notification_PingRequest(arg) {
|
41
52
|
if (!(arg instanceof notification_pb.PingRequest)) {
|
42
53
|
throw new Error('Expected argument of type notification.PingRequest');
|
@@ -70,6 +81,17 @@ function deserialize_notification_SendNotificationRequest(buffer_arg) {
|
|
70
81
|
return notification_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
82
|
}
|
72
83
|
|
84
|
+
function serialize_notification_UserNotificationItemsResponse(arg) {
|
85
|
+
if (!(arg instanceof notification_pb.UserNotificationItemsResponse)) {
|
86
|
+
throw new Error('Expected argument of type notification.UserNotificationItemsResponse');
|
87
|
+
}
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
89
|
+
}
|
90
|
+
|
91
|
+
function deserialize_notification_UserNotificationItemsResponse(buffer_arg) {
|
92
|
+
return notification_pb.UserNotificationItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
93
|
+
}
|
94
|
+
|
73
95
|
|
74
96
|
var NotificationService = exports.NotificationService = {
|
75
97
|
checkConnection: {
|
@@ -111,6 +133,17 @@ sendNotificationToUsers: {
|
|
111
133
|
responseSerialize: serialize_notification_NotificationStatusResponse,
|
112
134
|
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
113
135
|
},
|
136
|
+
getNotificationForParticularUser: {
|
137
|
+
path: '/notification.Notification/getNotificationForParticularUser',
|
138
|
+
requestStream: false,
|
139
|
+
responseStream: false,
|
140
|
+
requestType: notification_pb.PaginationRequest,
|
141
|
+
responseType: notification_pb.UserNotificationItemsResponse,
|
142
|
+
requestSerialize: serialize_notification_PaginationRequest,
|
143
|
+
requestDeserialize: deserialize_notification_PaginationRequest,
|
144
|
+
responseSerialize: serialize_notification_UserNotificationItemsResponse,
|
145
|
+
responseDeserialize: deserialize_notification_UserNotificationItemsResponse,
|
146
|
+
},
|
114
147
|
};
|
115
148
|
|
116
149
|
exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService);
|
@@ -29,6 +29,9 @@ goog.exportSymbol('proto.notification.PaginationRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.notification.PingRequest', null, global);
|
30
30
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
31
31
|
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.notification.UserNotificationItem', null, global);
|
33
|
+
goog.exportSymbol('proto.notification.UserNotificationItemsResponse', null, global);
|
34
|
+
goog.exportSymbol('proto.notification.UserSearchRequest', null, global);
|
32
35
|
/**
|
33
36
|
* Generated by JsPbCodeGenerator.
|
34
37
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -113,6 +116,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
113
116
|
*/
|
114
117
|
proto.notification.NotificationSearchRequest.displayName = 'proto.notification.NotificationSearchRequest';
|
115
118
|
}
|
119
|
+
/**
|
120
|
+
* Generated by JsPbCodeGenerator.
|
121
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
122
|
+
* server response, or constructed directly in Javascript. The array is used
|
123
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
124
|
+
* If no data is provided, the constructed object will be empty, but still
|
125
|
+
* valid.
|
126
|
+
* @extends {jspb.Message}
|
127
|
+
* @constructor
|
128
|
+
*/
|
129
|
+
proto.notification.UserSearchRequest = function(opt_data) {
|
130
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
131
|
+
};
|
132
|
+
goog.inherits(proto.notification.UserSearchRequest, jspb.Message);
|
133
|
+
if (goog.DEBUG && !COMPILED) {
|
134
|
+
/**
|
135
|
+
* @public
|
136
|
+
* @override
|
137
|
+
*/
|
138
|
+
proto.notification.UserSearchRequest.displayName = 'proto.notification.UserSearchRequest';
|
139
|
+
}
|
116
140
|
/**
|
117
141
|
* Generated by JsPbCodeGenerator.
|
118
142
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -197,6 +221,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
197
221
|
*/
|
198
222
|
proto.notification.NotificationStatusResponse.displayName = 'proto.notification.NotificationStatusResponse';
|
199
223
|
}
|
224
|
+
/**
|
225
|
+
* Generated by JsPbCodeGenerator.
|
226
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
227
|
+
* server response, or constructed directly in Javascript. The array is used
|
228
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
229
|
+
* If no data is provided, the constructed object will be empty, but still
|
230
|
+
* valid.
|
231
|
+
* @extends {jspb.Message}
|
232
|
+
* @constructor
|
233
|
+
*/
|
234
|
+
proto.notification.UserNotificationItem = function(opt_data) {
|
235
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
236
|
+
};
|
237
|
+
goog.inherits(proto.notification.UserNotificationItem, jspb.Message);
|
238
|
+
if (goog.DEBUG && !COMPILED) {
|
239
|
+
/**
|
240
|
+
* @public
|
241
|
+
* @override
|
242
|
+
*/
|
243
|
+
proto.notification.UserNotificationItem.displayName = 'proto.notification.UserNotificationItem';
|
244
|
+
}
|
245
|
+
/**
|
246
|
+
* Generated by JsPbCodeGenerator.
|
247
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
248
|
+
* server response, or constructed directly in Javascript. The array is used
|
249
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
250
|
+
* If no data is provided, the constructed object will be empty, but still
|
251
|
+
* valid.
|
252
|
+
* @extends {jspb.Message}
|
253
|
+
* @constructor
|
254
|
+
*/
|
255
|
+
proto.notification.UserNotificationItemsResponse = function(opt_data) {
|
256
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.UserNotificationItemsResponse.repeatedFields_, null);
|
257
|
+
};
|
258
|
+
goog.inherits(proto.notification.UserNotificationItemsResponse, jspb.Message);
|
259
|
+
if (goog.DEBUG && !COMPILED) {
|
260
|
+
/**
|
261
|
+
* @public
|
262
|
+
* @override
|
263
|
+
*/
|
264
|
+
proto.notification.UserNotificationItemsResponse.displayName = 'proto.notification.UserNotificationItemsResponse';
|
265
|
+
}
|
200
266
|
|
201
267
|
|
202
268
|
|
@@ -491,7 +557,8 @@ proto.notification.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
491
557
|
var f, obj = {
|
492
558
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
493
559
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
494
|
-
notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f)
|
560
|
+
notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f),
|
561
|
+
userSearchParams: (f = msg.getUserSearchParams()) && proto.notification.UserSearchRequest.toObject(includeInstance, f)
|
495
562
|
};
|
496
563
|
|
497
564
|
if (includeInstance) {
|
@@ -541,6 +608,11 @@ proto.notification.PaginationRequest.deserializeBinaryFromReader = function(msg,
|
|
541
608
|
reader.readMessage(value,proto.notification.NotificationSearchRequest.deserializeBinaryFromReader);
|
542
609
|
msg.setNotificationSearchParams(value);
|
543
610
|
break;
|
611
|
+
case 4:
|
612
|
+
var value = new proto.notification.UserSearchRequest;
|
613
|
+
reader.readMessage(value,proto.notification.UserSearchRequest.deserializeBinaryFromReader);
|
614
|
+
msg.setUserSearchParams(value);
|
615
|
+
break;
|
544
616
|
default:
|
545
617
|
reader.skipField();
|
546
618
|
break;
|
@@ -592,6 +664,14 @@ proto.notification.PaginationRequest.serializeBinaryToWriter = function(message,
|
|
592
664
|
proto.notification.NotificationSearchRequest.serializeBinaryToWriter
|
593
665
|
);
|
594
666
|
}
|
667
|
+
f = message.getUserSearchParams();
|
668
|
+
if (f != null) {
|
669
|
+
writer.writeMessage(
|
670
|
+
4,
|
671
|
+
f,
|
672
|
+
proto.notification.UserSearchRequest.serializeBinaryToWriter
|
673
|
+
);
|
674
|
+
}
|
595
675
|
};
|
596
676
|
|
597
677
|
|
@@ -668,6 +748,43 @@ proto.notification.PaginationRequest.prototype.hasNotificationSearchParams = fun
|
|
668
748
|
};
|
669
749
|
|
670
750
|
|
751
|
+
/**
|
752
|
+
* optional UserSearchRequest user_search_params = 4;
|
753
|
+
* @return {?proto.notification.UserSearchRequest}
|
754
|
+
*/
|
755
|
+
proto.notification.PaginationRequest.prototype.getUserSearchParams = function() {
|
756
|
+
return /** @type{?proto.notification.UserSearchRequest} */ (
|
757
|
+
jspb.Message.getWrapperField(this, proto.notification.UserSearchRequest, 4));
|
758
|
+
};
|
759
|
+
|
760
|
+
|
761
|
+
/**
|
762
|
+
* @param {?proto.notification.UserSearchRequest|undefined} value
|
763
|
+
* @return {!proto.notification.PaginationRequest} returns this
|
764
|
+
*/
|
765
|
+
proto.notification.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
766
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
767
|
+
};
|
768
|
+
|
769
|
+
|
770
|
+
/**
|
771
|
+
* Clears the message field making it undefined.
|
772
|
+
* @return {!proto.notification.PaginationRequest} returns this
|
773
|
+
*/
|
774
|
+
proto.notification.PaginationRequest.prototype.clearUserSearchParams = function() {
|
775
|
+
return this.setUserSearchParams(undefined);
|
776
|
+
};
|
777
|
+
|
778
|
+
|
779
|
+
/**
|
780
|
+
* Returns whether this field is set.
|
781
|
+
* @return {boolean}
|
782
|
+
*/
|
783
|
+
proto.notification.PaginationRequest.prototype.hasUserSearchParams = function() {
|
784
|
+
return jspb.Message.getField(this, 4) != null;
|
785
|
+
};
|
786
|
+
|
787
|
+
|
671
788
|
|
672
789
|
|
673
790
|
|
@@ -928,8 +1045,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
928
1045
|
* http://goto/soy-param-migration
|
929
1046
|
* @return {!Object}
|
930
1047
|
*/
|
931
|
-
proto.notification.
|
932
|
-
return proto.notification.
|
1048
|
+
proto.notification.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
1049
|
+
return proto.notification.UserSearchRequest.toObject(opt_includeInstance, this);
|
933
1050
|
};
|
934
1051
|
|
935
1052
|
|
@@ -938,13 +1055,16 @@ proto.notification.File.prototype.toObject = function(opt_includeInstance) {
|
|
938
1055
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
939
1056
|
* the JSPB instance for transitional soy proto support:
|
940
1057
|
* http://goto/soy-param-migration
|
941
|
-
* @param {!proto.notification.
|
1058
|
+
* @param {!proto.notification.UserSearchRequest} msg The msg instance to transform.
|
942
1059
|
* @return {!Object}
|
943
1060
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
944
1061
|
*/
|
945
|
-
proto.notification.
|
1062
|
+
proto.notification.UserSearchRequest.toObject = function(includeInstance, msg) {
|
946
1063
|
var f, obj = {
|
947
|
-
|
1064
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1065
|
+
isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
1066
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
1067
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
948
1068
|
};
|
949
1069
|
|
950
1070
|
if (includeInstance) {
|
@@ -958,23 +1078,23 @@ proto.notification.File.toObject = function(includeInstance, msg) {
|
|
958
1078
|
/**
|
959
1079
|
* Deserializes binary data (in protobuf wire format).
|
960
1080
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
961
|
-
* @return {!proto.notification.
|
1081
|
+
* @return {!proto.notification.UserSearchRequest}
|
962
1082
|
*/
|
963
|
-
proto.notification.
|
1083
|
+
proto.notification.UserSearchRequest.deserializeBinary = function(bytes) {
|
964
1084
|
var reader = new jspb.BinaryReader(bytes);
|
965
|
-
var msg = new proto.notification.
|
966
|
-
return proto.notification.
|
1085
|
+
var msg = new proto.notification.UserSearchRequest;
|
1086
|
+
return proto.notification.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
|
967
1087
|
};
|
968
1088
|
|
969
1089
|
|
970
1090
|
/**
|
971
1091
|
* Deserializes binary data (in protobuf wire format) from the
|
972
1092
|
* given reader into the given message object.
|
973
|
-
* @param {!proto.notification.
|
1093
|
+
* @param {!proto.notification.UserSearchRequest} msg The message object to deserialize into.
|
974
1094
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
975
|
-
* @return {!proto.notification.
|
1095
|
+
* @return {!proto.notification.UserSearchRequest}
|
976
1096
|
*/
|
977
|
-
proto.notification.
|
1097
|
+
proto.notification.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
978
1098
|
while (reader.nextField()) {
|
979
1099
|
if (reader.isEndGroup()) {
|
980
1100
|
break;
|
@@ -982,8 +1102,20 @@ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
982
1102
|
var field = reader.getFieldNumber();
|
983
1103
|
switch (field) {
|
984
1104
|
case 1:
|
985
|
-
var value = /** @type {
|
986
|
-
msg.
|
1105
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1106
|
+
msg.setUserId(value);
|
1107
|
+
break;
|
1108
|
+
case 2:
|
1109
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1110
|
+
msg.setIsChecked(value);
|
1111
|
+
break;
|
1112
|
+
case 3:
|
1113
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1114
|
+
msg.setLimit(value);
|
1115
|
+
break;
|
1116
|
+
case 4:
|
1117
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1118
|
+
msg.setOffset(value);
|
987
1119
|
break;
|
988
1120
|
default:
|
989
1121
|
reader.skipField();
|
@@ -998,9 +1130,9 @@ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
998
1130
|
* Serializes the message to binary data (in protobuf wire format).
|
999
1131
|
* @return {!Uint8Array}
|
1000
1132
|
*/
|
1001
|
-
proto.notification.
|
1133
|
+
proto.notification.UserSearchRequest.prototype.serializeBinary = function() {
|
1002
1134
|
var writer = new jspb.BinaryWriter();
|
1003
|
-
proto.notification.
|
1135
|
+
proto.notification.UserSearchRequest.serializeBinaryToWriter(this, writer);
|
1004
1136
|
return writer.getResultBuffer();
|
1005
1137
|
};
|
1006
1138
|
|
@@ -1008,61 +1140,166 @@ proto.notification.File.prototype.serializeBinary = function() {
|
|
1008
1140
|
/**
|
1009
1141
|
* Serializes the given message to binary data (in protobuf wire
|
1010
1142
|
* format), writing to the given BinaryWriter.
|
1011
|
-
* @param {!proto.notification.
|
1143
|
+
* @param {!proto.notification.UserSearchRequest} message
|
1012
1144
|
* @param {!jspb.BinaryWriter} writer
|
1013
1145
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1014
1146
|
*/
|
1015
|
-
proto.notification.
|
1147
|
+
proto.notification.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1016
1148
|
var f = undefined;
|
1017
|
-
f = message.
|
1018
|
-
if (f
|
1019
|
-
writer.
|
1149
|
+
f = message.getUserId();
|
1150
|
+
if (f !== 0) {
|
1151
|
+
writer.writeInt32(
|
1020
1152
|
1,
|
1021
1153
|
f
|
1022
1154
|
);
|
1023
1155
|
}
|
1156
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
1157
|
+
if (f != null) {
|
1158
|
+
writer.writeBool(
|
1159
|
+
2,
|
1160
|
+
f
|
1161
|
+
);
|
1162
|
+
}
|
1163
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1164
|
+
if (f != null) {
|
1165
|
+
writer.writeInt32(
|
1166
|
+
3,
|
1167
|
+
f
|
1168
|
+
);
|
1169
|
+
}
|
1170
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1171
|
+
if (f != null) {
|
1172
|
+
writer.writeInt32(
|
1173
|
+
4,
|
1174
|
+
f
|
1175
|
+
);
|
1176
|
+
}
|
1024
1177
|
};
|
1025
1178
|
|
1026
1179
|
|
1027
1180
|
/**
|
1028
|
-
* optional
|
1029
|
-
* @return {
|
1181
|
+
* optional int32 user_id = 1;
|
1182
|
+
* @return {number}
|
1030
1183
|
*/
|
1031
|
-
proto.notification.
|
1032
|
-
return /** @type {
|
1184
|
+
proto.notification.UserSearchRequest.prototype.getUserId = function() {
|
1185
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1033
1186
|
};
|
1034
1187
|
|
1035
1188
|
|
1036
1189
|
/**
|
1037
|
-
*
|
1038
|
-
*
|
1039
|
-
* @return {string}
|
1190
|
+
* @param {number} value
|
1191
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1040
1192
|
*/
|
1041
|
-
proto.notification.
|
1042
|
-
return
|
1043
|
-
this.getMedia()));
|
1193
|
+
proto.notification.UserSearchRequest.prototype.setUserId = function(value) {
|
1194
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1044
1195
|
};
|
1045
1196
|
|
1046
1197
|
|
1047
1198
|
/**
|
1048
|
-
* optional
|
1049
|
-
*
|
1050
|
-
* @see http://caniuse.com/Uint8Array
|
1051
|
-
* This is a type-conversion wrapper around `getMedia()`
|
1052
|
-
* @return {!Uint8Array}
|
1199
|
+
* optional bool is_checked = 2;
|
1200
|
+
* @return {boolean}
|
1053
1201
|
*/
|
1054
|
-
proto.notification.
|
1055
|
-
return /** @type {
|
1056
|
-
this.getMedia()));
|
1202
|
+
proto.notification.UserSearchRequest.prototype.getIsChecked = function() {
|
1203
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
1057
1204
|
};
|
1058
1205
|
|
1059
1206
|
|
1060
1207
|
/**
|
1061
|
-
* @param {
|
1062
|
-
* @return {!proto.notification.
|
1208
|
+
* @param {boolean} value
|
1209
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1063
1210
|
*/
|
1064
|
-
proto.notification.
|
1065
|
-
return jspb.Message.
|
1211
|
+
proto.notification.UserSearchRequest.prototype.setIsChecked = function(value) {
|
1212
|
+
return jspb.Message.setField(this, 2, value);
|
1213
|
+
};
|
1214
|
+
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* Clears the field making it undefined.
|
1218
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1219
|
+
*/
|
1220
|
+
proto.notification.UserSearchRequest.prototype.clearIsChecked = function() {
|
1221
|
+
return jspb.Message.setField(this, 2, undefined);
|
1222
|
+
};
|
1223
|
+
|
1224
|
+
|
1225
|
+
/**
|
1226
|
+
* Returns whether this field is set.
|
1227
|
+
* @return {boolean}
|
1228
|
+
*/
|
1229
|
+
proto.notification.UserSearchRequest.prototype.hasIsChecked = function() {
|
1230
|
+
return jspb.Message.getField(this, 2) != null;
|
1231
|
+
};
|
1232
|
+
|
1233
|
+
|
1234
|
+
/**
|
1235
|
+
* optional int32 limit = 3;
|
1236
|
+
* @return {number}
|
1237
|
+
*/
|
1238
|
+
proto.notification.UserSearchRequest.prototype.getLimit = function() {
|
1239
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1240
|
+
};
|
1241
|
+
|
1242
|
+
|
1243
|
+
/**
|
1244
|
+
* @param {number} value
|
1245
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1246
|
+
*/
|
1247
|
+
proto.notification.UserSearchRequest.prototype.setLimit = function(value) {
|
1248
|
+
return jspb.Message.setField(this, 3, value);
|
1249
|
+
};
|
1250
|
+
|
1251
|
+
|
1252
|
+
/**
|
1253
|
+
* Clears the field making it undefined.
|
1254
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1255
|
+
*/
|
1256
|
+
proto.notification.UserSearchRequest.prototype.clearLimit = function() {
|
1257
|
+
return jspb.Message.setField(this, 3, undefined);
|
1258
|
+
};
|
1259
|
+
|
1260
|
+
|
1261
|
+
/**
|
1262
|
+
* Returns whether this field is set.
|
1263
|
+
* @return {boolean}
|
1264
|
+
*/
|
1265
|
+
proto.notification.UserSearchRequest.prototype.hasLimit = function() {
|
1266
|
+
return jspb.Message.getField(this, 3) != null;
|
1267
|
+
};
|
1268
|
+
|
1269
|
+
|
1270
|
+
/**
|
1271
|
+
* optional int32 offset = 4;
|
1272
|
+
* @return {number}
|
1273
|
+
*/
|
1274
|
+
proto.notification.UserSearchRequest.prototype.getOffset = function() {
|
1275
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
1276
|
+
};
|
1277
|
+
|
1278
|
+
|
1279
|
+
/**
|
1280
|
+
* @param {number} value
|
1281
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1282
|
+
*/
|
1283
|
+
proto.notification.UserSearchRequest.prototype.setOffset = function(value) {
|
1284
|
+
return jspb.Message.setField(this, 4, value);
|
1285
|
+
};
|
1286
|
+
|
1287
|
+
|
1288
|
+
/**
|
1289
|
+
* Clears the field making it undefined.
|
1290
|
+
* @return {!proto.notification.UserSearchRequest} returns this
|
1291
|
+
*/
|
1292
|
+
proto.notification.UserSearchRequest.prototype.clearOffset = function() {
|
1293
|
+
return jspb.Message.setField(this, 4, undefined);
|
1294
|
+
};
|
1295
|
+
|
1296
|
+
|
1297
|
+
/**
|
1298
|
+
* Returns whether this field is set.
|
1299
|
+
* @return {boolean}
|
1300
|
+
*/
|
1301
|
+
proto.notification.UserSearchRequest.prototype.hasOffset = function() {
|
1302
|
+
return jspb.Message.getField(this, 4) != null;
|
1066
1303
|
};
|
1067
1304
|
|
1068
1305
|
|
@@ -1082,8 +1319,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1082
1319
|
* http://goto/soy-param-migration
|
1083
1320
|
* @return {!Object}
|
1084
1321
|
*/
|
1085
|
-
proto.notification.
|
1086
|
-
return proto.notification.
|
1322
|
+
proto.notification.File.prototype.toObject = function(opt_includeInstance) {
|
1323
|
+
return proto.notification.File.toObject(opt_includeInstance, this);
|
1087
1324
|
};
|
1088
1325
|
|
1089
1326
|
|
@@ -1092,14 +1329,13 @@ proto.notification.GetFileRequest.prototype.toObject = function(opt_includeInsta
|
|
1092
1329
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1093
1330
|
* the JSPB instance for transitional soy proto support:
|
1094
1331
|
* http://goto/soy-param-migration
|
1095
|
-
* @param {!proto.notification.
|
1332
|
+
* @param {!proto.notification.File} msg The msg instance to transform.
|
1096
1333
|
* @return {!Object}
|
1097
1334
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1098
1335
|
*/
|
1099
|
-
proto.notification.
|
1336
|
+
proto.notification.File.toObject = function(includeInstance, msg) {
|
1100
1337
|
var f, obj = {
|
1101
|
-
|
1102
|
-
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1338
|
+
media: msg.getMedia_asB64()
|
1103
1339
|
};
|
1104
1340
|
|
1105
1341
|
if (includeInstance) {
|
@@ -1113,23 +1349,23 @@ proto.notification.GetFileRequest.toObject = function(includeInstance, msg) {
|
|
1113
1349
|
/**
|
1114
1350
|
* Deserializes binary data (in protobuf wire format).
|
1115
1351
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1116
|
-
* @return {!proto.notification.
|
1352
|
+
* @return {!proto.notification.File}
|
1117
1353
|
*/
|
1118
|
-
proto.notification.
|
1354
|
+
proto.notification.File.deserializeBinary = function(bytes) {
|
1119
1355
|
var reader = new jspb.BinaryReader(bytes);
|
1120
|
-
var msg = new proto.notification.
|
1121
|
-
return proto.notification.
|
1356
|
+
var msg = new proto.notification.File;
|
1357
|
+
return proto.notification.File.deserializeBinaryFromReader(msg, reader);
|
1122
1358
|
};
|
1123
1359
|
|
1124
1360
|
|
1125
1361
|
/**
|
1126
1362
|
* Deserializes binary data (in protobuf wire format) from the
|
1127
1363
|
* given reader into the given message object.
|
1128
|
-
* @param {!proto.notification.
|
1364
|
+
* @param {!proto.notification.File} msg The message object to deserialize into.
|
1129
1365
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1130
|
-
* @return {!proto.notification.
|
1366
|
+
* @return {!proto.notification.File}
|
1131
1367
|
*/
|
1132
|
-
proto.notification.
|
1368
|
+
proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
|
1133
1369
|
while (reader.nextField()) {
|
1134
1370
|
if (reader.isEndGroup()) {
|
1135
1371
|
break;
|
@@ -1137,7 +1373,162 @@ proto.notification.GetFileRequest.deserializeBinaryFromReader = function(msg, re
|
|
1137
1373
|
var field = reader.getFieldNumber();
|
1138
1374
|
switch (field) {
|
1139
1375
|
case 1:
|
1140
|
-
var value = /** @type {
|
1376
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1377
|
+
msg.setMedia(value);
|
1378
|
+
break;
|
1379
|
+
default:
|
1380
|
+
reader.skipField();
|
1381
|
+
break;
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
return msg;
|
1385
|
+
};
|
1386
|
+
|
1387
|
+
|
1388
|
+
/**
|
1389
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1390
|
+
* @return {!Uint8Array}
|
1391
|
+
*/
|
1392
|
+
proto.notification.File.prototype.serializeBinary = function() {
|
1393
|
+
var writer = new jspb.BinaryWriter();
|
1394
|
+
proto.notification.File.serializeBinaryToWriter(this, writer);
|
1395
|
+
return writer.getResultBuffer();
|
1396
|
+
};
|
1397
|
+
|
1398
|
+
|
1399
|
+
/**
|
1400
|
+
* Serializes the given message to binary data (in protobuf wire
|
1401
|
+
* format), writing to the given BinaryWriter.
|
1402
|
+
* @param {!proto.notification.File} message
|
1403
|
+
* @param {!jspb.BinaryWriter} writer
|
1404
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1405
|
+
*/
|
1406
|
+
proto.notification.File.serializeBinaryToWriter = function(message, writer) {
|
1407
|
+
var f = undefined;
|
1408
|
+
f = message.getMedia_asU8();
|
1409
|
+
if (f.length > 0) {
|
1410
|
+
writer.writeBytes(
|
1411
|
+
1,
|
1412
|
+
f
|
1413
|
+
);
|
1414
|
+
}
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
|
1418
|
+
/**
|
1419
|
+
* optional bytes media = 1;
|
1420
|
+
* @return {!(string|Uint8Array)}
|
1421
|
+
*/
|
1422
|
+
proto.notification.File.prototype.getMedia = function() {
|
1423
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1424
|
+
};
|
1425
|
+
|
1426
|
+
|
1427
|
+
/**
|
1428
|
+
* optional bytes media = 1;
|
1429
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1430
|
+
* @return {string}
|
1431
|
+
*/
|
1432
|
+
proto.notification.File.prototype.getMedia_asB64 = function() {
|
1433
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
1434
|
+
this.getMedia()));
|
1435
|
+
};
|
1436
|
+
|
1437
|
+
|
1438
|
+
/**
|
1439
|
+
* optional bytes media = 1;
|
1440
|
+
* Note that Uint8Array is not supported on all browsers.
|
1441
|
+
* @see http://caniuse.com/Uint8Array
|
1442
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1443
|
+
* @return {!Uint8Array}
|
1444
|
+
*/
|
1445
|
+
proto.notification.File.prototype.getMedia_asU8 = function() {
|
1446
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
1447
|
+
this.getMedia()));
|
1448
|
+
};
|
1449
|
+
|
1450
|
+
|
1451
|
+
/**
|
1452
|
+
* @param {!(string|Uint8Array)} value
|
1453
|
+
* @return {!proto.notification.File} returns this
|
1454
|
+
*/
|
1455
|
+
proto.notification.File.prototype.setMedia = function(value) {
|
1456
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1457
|
+
};
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
1463
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1464
|
+
/**
|
1465
|
+
* Creates an object representation of this proto.
|
1466
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1467
|
+
* Optional fields that are not set will be set to undefined.
|
1468
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1469
|
+
* For the list of reserved names please see:
|
1470
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1471
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1472
|
+
* JSPB instance for transitional soy proto support:
|
1473
|
+
* http://goto/soy-param-migration
|
1474
|
+
* @return {!Object}
|
1475
|
+
*/
|
1476
|
+
proto.notification.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
|
1477
|
+
return proto.notification.GetFileRequest.toObject(opt_includeInstance, this);
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
|
1481
|
+
/**
|
1482
|
+
* Static version of the {@see toObject} method.
|
1483
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1484
|
+
* the JSPB instance for transitional soy proto support:
|
1485
|
+
* http://goto/soy-param-migration
|
1486
|
+
* @param {!proto.notification.GetFileRequest} msg The msg instance to transform.
|
1487
|
+
* @return {!Object}
|
1488
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1489
|
+
*/
|
1490
|
+
proto.notification.GetFileRequest.toObject = function(includeInstance, msg) {
|
1491
|
+
var f, obj = {
|
1492
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1493
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1494
|
+
};
|
1495
|
+
|
1496
|
+
if (includeInstance) {
|
1497
|
+
obj.$jspbMessageInstance = msg;
|
1498
|
+
}
|
1499
|
+
return obj;
|
1500
|
+
};
|
1501
|
+
}
|
1502
|
+
|
1503
|
+
|
1504
|
+
/**
|
1505
|
+
* Deserializes binary data (in protobuf wire format).
|
1506
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1507
|
+
* @return {!proto.notification.GetFileRequest}
|
1508
|
+
*/
|
1509
|
+
proto.notification.GetFileRequest.deserializeBinary = function(bytes) {
|
1510
|
+
var reader = new jspb.BinaryReader(bytes);
|
1511
|
+
var msg = new proto.notification.GetFileRequest;
|
1512
|
+
return proto.notification.GetFileRequest.deserializeBinaryFromReader(msg, reader);
|
1513
|
+
};
|
1514
|
+
|
1515
|
+
|
1516
|
+
/**
|
1517
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1518
|
+
* given reader into the given message object.
|
1519
|
+
* @param {!proto.notification.GetFileRequest} msg The message object to deserialize into.
|
1520
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1521
|
+
* @return {!proto.notification.GetFileRequest}
|
1522
|
+
*/
|
1523
|
+
proto.notification.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1524
|
+
while (reader.nextField()) {
|
1525
|
+
if (reader.isEndGroup()) {
|
1526
|
+
break;
|
1527
|
+
}
|
1528
|
+
var field = reader.getFieldNumber();
|
1529
|
+
switch (field) {
|
1530
|
+
case 1:
|
1531
|
+
var value = /** @type {string} */ (reader.readString());
|
1141
1532
|
msg.setFileName(value);
|
1142
1533
|
break;
|
1143
1534
|
case 2:
|
@@ -1544,4 +1935,498 @@ proto.notification.NotificationStatusResponse.prototype.setStatus = function(val
|
|
1544
1935
|
};
|
1545
1936
|
|
1546
1937
|
|
1938
|
+
|
1939
|
+
|
1940
|
+
|
1941
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1942
|
+
/**
|
1943
|
+
* Creates an object representation of this proto.
|
1944
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1945
|
+
* Optional fields that are not set will be set to undefined.
|
1946
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1947
|
+
* For the list of reserved names please see:
|
1948
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1949
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1950
|
+
* JSPB instance for transitional soy proto support:
|
1951
|
+
* http://goto/soy-param-migration
|
1952
|
+
* @return {!Object}
|
1953
|
+
*/
|
1954
|
+
proto.notification.UserNotificationItem.prototype.toObject = function(opt_includeInstance) {
|
1955
|
+
return proto.notification.UserNotificationItem.toObject(opt_includeInstance, this);
|
1956
|
+
};
|
1957
|
+
|
1958
|
+
|
1959
|
+
/**
|
1960
|
+
* Static version of the {@see toObject} method.
|
1961
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1962
|
+
* the JSPB instance for transitional soy proto support:
|
1963
|
+
* http://goto/soy-param-migration
|
1964
|
+
* @param {!proto.notification.UserNotificationItem} msg The msg instance to transform.
|
1965
|
+
* @return {!Object}
|
1966
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1967
|
+
*/
|
1968
|
+
proto.notification.UserNotificationItem.toObject = function(includeInstance, msg) {
|
1969
|
+
var f, obj = {
|
1970
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1971
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1972
|
+
isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
1973
|
+
created: jspb.Message.getFieldWithDefault(msg, 4, "")
|
1974
|
+
};
|
1975
|
+
|
1976
|
+
if (includeInstance) {
|
1977
|
+
obj.$jspbMessageInstance = msg;
|
1978
|
+
}
|
1979
|
+
return obj;
|
1980
|
+
};
|
1981
|
+
}
|
1982
|
+
|
1983
|
+
|
1984
|
+
/**
|
1985
|
+
* Deserializes binary data (in protobuf wire format).
|
1986
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1987
|
+
* @return {!proto.notification.UserNotificationItem}
|
1988
|
+
*/
|
1989
|
+
proto.notification.UserNotificationItem.deserializeBinary = function(bytes) {
|
1990
|
+
var reader = new jspb.BinaryReader(bytes);
|
1991
|
+
var msg = new proto.notification.UserNotificationItem;
|
1992
|
+
return proto.notification.UserNotificationItem.deserializeBinaryFromReader(msg, reader);
|
1993
|
+
};
|
1994
|
+
|
1995
|
+
|
1996
|
+
/**
|
1997
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1998
|
+
* given reader into the given message object.
|
1999
|
+
* @param {!proto.notification.UserNotificationItem} msg The message object to deserialize into.
|
2000
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2001
|
+
* @return {!proto.notification.UserNotificationItem}
|
2002
|
+
*/
|
2003
|
+
proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(msg, reader) {
|
2004
|
+
while (reader.nextField()) {
|
2005
|
+
if (reader.isEndGroup()) {
|
2006
|
+
break;
|
2007
|
+
}
|
2008
|
+
var field = reader.getFieldNumber();
|
2009
|
+
switch (field) {
|
2010
|
+
case 1:
|
2011
|
+
var value = /** @type {string} */ (reader.readString());
|
2012
|
+
msg.setTitle(value);
|
2013
|
+
break;
|
2014
|
+
case 2:
|
2015
|
+
var value = /** @type {string} */ (reader.readString());
|
2016
|
+
msg.setContent(value);
|
2017
|
+
break;
|
2018
|
+
case 3:
|
2019
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
2020
|
+
msg.setIsChecked(value);
|
2021
|
+
break;
|
2022
|
+
case 4:
|
2023
|
+
var value = /** @type {string} */ (reader.readString());
|
2024
|
+
msg.setCreated(value);
|
2025
|
+
break;
|
2026
|
+
default:
|
2027
|
+
reader.skipField();
|
2028
|
+
break;
|
2029
|
+
}
|
2030
|
+
}
|
2031
|
+
return msg;
|
2032
|
+
};
|
2033
|
+
|
2034
|
+
|
2035
|
+
/**
|
2036
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2037
|
+
* @return {!Uint8Array}
|
2038
|
+
*/
|
2039
|
+
proto.notification.UserNotificationItem.prototype.serializeBinary = function() {
|
2040
|
+
var writer = new jspb.BinaryWriter();
|
2041
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter(this, writer);
|
2042
|
+
return writer.getResultBuffer();
|
2043
|
+
};
|
2044
|
+
|
2045
|
+
|
2046
|
+
/**
|
2047
|
+
* Serializes the given message to binary data (in protobuf wire
|
2048
|
+
* format), writing to the given BinaryWriter.
|
2049
|
+
* @param {!proto.notification.UserNotificationItem} message
|
2050
|
+
* @param {!jspb.BinaryWriter} writer
|
2051
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2052
|
+
*/
|
2053
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter = function(message, writer) {
|
2054
|
+
var f = undefined;
|
2055
|
+
f = message.getTitle();
|
2056
|
+
if (f.length > 0) {
|
2057
|
+
writer.writeString(
|
2058
|
+
1,
|
2059
|
+
f
|
2060
|
+
);
|
2061
|
+
}
|
2062
|
+
f = message.getContent();
|
2063
|
+
if (f.length > 0) {
|
2064
|
+
writer.writeString(
|
2065
|
+
2,
|
2066
|
+
f
|
2067
|
+
);
|
2068
|
+
}
|
2069
|
+
f = message.getIsChecked();
|
2070
|
+
if (f) {
|
2071
|
+
writer.writeBool(
|
2072
|
+
3,
|
2073
|
+
f
|
2074
|
+
);
|
2075
|
+
}
|
2076
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2077
|
+
if (f != null) {
|
2078
|
+
writer.writeString(
|
2079
|
+
4,
|
2080
|
+
f
|
2081
|
+
);
|
2082
|
+
}
|
2083
|
+
};
|
2084
|
+
|
2085
|
+
|
2086
|
+
/**
|
2087
|
+
* optional string title = 1;
|
2088
|
+
* @return {string}
|
2089
|
+
*/
|
2090
|
+
proto.notification.UserNotificationItem.prototype.getTitle = function() {
|
2091
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2092
|
+
};
|
2093
|
+
|
2094
|
+
|
2095
|
+
/**
|
2096
|
+
* @param {string} value
|
2097
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
2098
|
+
*/
|
2099
|
+
proto.notification.UserNotificationItem.prototype.setTitle = function(value) {
|
2100
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
2101
|
+
};
|
2102
|
+
|
2103
|
+
|
2104
|
+
/**
|
2105
|
+
* optional string content = 2;
|
2106
|
+
* @return {string}
|
2107
|
+
*/
|
2108
|
+
proto.notification.UserNotificationItem.prototype.getContent = function() {
|
2109
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2110
|
+
};
|
2111
|
+
|
2112
|
+
|
2113
|
+
/**
|
2114
|
+
* @param {string} value
|
2115
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
2116
|
+
*/
|
2117
|
+
proto.notification.UserNotificationItem.prototype.setContent = function(value) {
|
2118
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
2119
|
+
};
|
2120
|
+
|
2121
|
+
|
2122
|
+
/**
|
2123
|
+
* optional bool is_checked = 3;
|
2124
|
+
* @return {boolean}
|
2125
|
+
*/
|
2126
|
+
proto.notification.UserNotificationItem.prototype.getIsChecked = function() {
|
2127
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
2128
|
+
};
|
2129
|
+
|
2130
|
+
|
2131
|
+
/**
|
2132
|
+
* @param {boolean} value
|
2133
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
2134
|
+
*/
|
2135
|
+
proto.notification.UserNotificationItem.prototype.setIsChecked = function(value) {
|
2136
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
2137
|
+
};
|
2138
|
+
|
2139
|
+
|
2140
|
+
/**
|
2141
|
+
* optional string created = 4;
|
2142
|
+
* @return {string}
|
2143
|
+
*/
|
2144
|
+
proto.notification.UserNotificationItem.prototype.getCreated = function() {
|
2145
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2146
|
+
};
|
2147
|
+
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* @param {string} value
|
2151
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
2152
|
+
*/
|
2153
|
+
proto.notification.UserNotificationItem.prototype.setCreated = function(value) {
|
2154
|
+
return jspb.Message.setField(this, 4, value);
|
2155
|
+
};
|
2156
|
+
|
2157
|
+
|
2158
|
+
/**
|
2159
|
+
* Clears the field making it undefined.
|
2160
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
2161
|
+
*/
|
2162
|
+
proto.notification.UserNotificationItem.prototype.clearCreated = function() {
|
2163
|
+
return jspb.Message.setField(this, 4, undefined);
|
2164
|
+
};
|
2165
|
+
|
2166
|
+
|
2167
|
+
/**
|
2168
|
+
* Returns whether this field is set.
|
2169
|
+
* @return {boolean}
|
2170
|
+
*/
|
2171
|
+
proto.notification.UserNotificationItem.prototype.hasCreated = function() {
|
2172
|
+
return jspb.Message.getField(this, 4) != null;
|
2173
|
+
};
|
2174
|
+
|
2175
|
+
|
2176
|
+
|
2177
|
+
/**
|
2178
|
+
* List of repeated fields within this message type.
|
2179
|
+
* @private {!Array<number>}
|
2180
|
+
* @const
|
2181
|
+
*/
|
2182
|
+
proto.notification.UserNotificationItemsResponse.repeatedFields_ = [1];
|
2183
|
+
|
2184
|
+
|
2185
|
+
|
2186
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2187
|
+
/**
|
2188
|
+
* Creates an object representation of this proto.
|
2189
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2190
|
+
* Optional fields that are not set will be set to undefined.
|
2191
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2192
|
+
* For the list of reserved names please see:
|
2193
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2194
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2195
|
+
* JSPB instance for transitional soy proto support:
|
2196
|
+
* http://goto/soy-param-migration
|
2197
|
+
* @return {!Object}
|
2198
|
+
*/
|
2199
|
+
proto.notification.UserNotificationItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2200
|
+
return proto.notification.UserNotificationItemsResponse.toObject(opt_includeInstance, this);
|
2201
|
+
};
|
2202
|
+
|
2203
|
+
|
2204
|
+
/**
|
2205
|
+
* Static version of the {@see toObject} method.
|
2206
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2207
|
+
* the JSPB instance for transitional soy proto support:
|
2208
|
+
* http://goto/soy-param-migration
|
2209
|
+
* @param {!proto.notification.UserNotificationItemsResponse} msg The msg instance to transform.
|
2210
|
+
* @return {!Object}
|
2211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2212
|
+
*/
|
2213
|
+
proto.notification.UserNotificationItemsResponse.toObject = function(includeInstance, msg) {
|
2214
|
+
var f, obj = {
|
2215
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2216
|
+
proto.notification.UserNotificationItem.toObject, includeInstance),
|
2217
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2218
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
2219
|
+
};
|
2220
|
+
|
2221
|
+
if (includeInstance) {
|
2222
|
+
obj.$jspbMessageInstance = msg;
|
2223
|
+
}
|
2224
|
+
return obj;
|
2225
|
+
};
|
2226
|
+
}
|
2227
|
+
|
2228
|
+
|
2229
|
+
/**
|
2230
|
+
* Deserializes binary data (in protobuf wire format).
|
2231
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2232
|
+
* @return {!proto.notification.UserNotificationItemsResponse}
|
2233
|
+
*/
|
2234
|
+
proto.notification.UserNotificationItemsResponse.deserializeBinary = function(bytes) {
|
2235
|
+
var reader = new jspb.BinaryReader(bytes);
|
2236
|
+
var msg = new proto.notification.UserNotificationItemsResponse;
|
2237
|
+
return proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader(msg, reader);
|
2238
|
+
};
|
2239
|
+
|
2240
|
+
|
2241
|
+
/**
|
2242
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2243
|
+
* given reader into the given message object.
|
2244
|
+
* @param {!proto.notification.UserNotificationItemsResponse} msg The message object to deserialize into.
|
2245
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2246
|
+
* @return {!proto.notification.UserNotificationItemsResponse}
|
2247
|
+
*/
|
2248
|
+
proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2249
|
+
while (reader.nextField()) {
|
2250
|
+
if (reader.isEndGroup()) {
|
2251
|
+
break;
|
2252
|
+
}
|
2253
|
+
var field = reader.getFieldNumber();
|
2254
|
+
switch (field) {
|
2255
|
+
case 1:
|
2256
|
+
var value = new proto.notification.UserNotificationItem;
|
2257
|
+
reader.readMessage(value,proto.notification.UserNotificationItem.deserializeBinaryFromReader);
|
2258
|
+
msg.addItems(value);
|
2259
|
+
break;
|
2260
|
+
case 2:
|
2261
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2262
|
+
msg.setTotalPages(value);
|
2263
|
+
break;
|
2264
|
+
case 3:
|
2265
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2266
|
+
msg.setTotalItems(value);
|
2267
|
+
break;
|
2268
|
+
default:
|
2269
|
+
reader.skipField();
|
2270
|
+
break;
|
2271
|
+
}
|
2272
|
+
}
|
2273
|
+
return msg;
|
2274
|
+
};
|
2275
|
+
|
2276
|
+
|
2277
|
+
/**
|
2278
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2279
|
+
* @return {!Uint8Array}
|
2280
|
+
*/
|
2281
|
+
proto.notification.UserNotificationItemsResponse.prototype.serializeBinary = function() {
|
2282
|
+
var writer = new jspb.BinaryWriter();
|
2283
|
+
proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter(this, writer);
|
2284
|
+
return writer.getResultBuffer();
|
2285
|
+
};
|
2286
|
+
|
2287
|
+
|
2288
|
+
/**
|
2289
|
+
* Serializes the given message to binary data (in protobuf wire
|
2290
|
+
* format), writing to the given BinaryWriter.
|
2291
|
+
* @param {!proto.notification.UserNotificationItemsResponse} message
|
2292
|
+
* @param {!jspb.BinaryWriter} writer
|
2293
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2294
|
+
*/
|
2295
|
+
proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
2296
|
+
var f = undefined;
|
2297
|
+
f = message.getItemsList();
|
2298
|
+
if (f.length > 0) {
|
2299
|
+
writer.writeRepeatedMessage(
|
2300
|
+
1,
|
2301
|
+
f,
|
2302
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter
|
2303
|
+
);
|
2304
|
+
}
|
2305
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2306
|
+
if (f != null) {
|
2307
|
+
writer.writeInt32(
|
2308
|
+
2,
|
2309
|
+
f
|
2310
|
+
);
|
2311
|
+
}
|
2312
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
2313
|
+
if (f != null) {
|
2314
|
+
writer.writeInt32(
|
2315
|
+
3,
|
2316
|
+
f
|
2317
|
+
);
|
2318
|
+
}
|
2319
|
+
};
|
2320
|
+
|
2321
|
+
|
2322
|
+
/**
|
2323
|
+
* repeated UserNotificationItem items = 1;
|
2324
|
+
* @return {!Array<!proto.notification.UserNotificationItem>}
|
2325
|
+
*/
|
2326
|
+
proto.notification.UserNotificationItemsResponse.prototype.getItemsList = function() {
|
2327
|
+
return /** @type{!Array<!proto.notification.UserNotificationItem>} */ (
|
2328
|
+
jspb.Message.getRepeatedWrapperField(this, proto.notification.UserNotificationItem, 1));
|
2329
|
+
};
|
2330
|
+
|
2331
|
+
|
2332
|
+
/**
|
2333
|
+
* @param {!Array<!proto.notification.UserNotificationItem>} value
|
2334
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2335
|
+
*/
|
2336
|
+
proto.notification.UserNotificationItemsResponse.prototype.setItemsList = function(value) {
|
2337
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2338
|
+
};
|
2339
|
+
|
2340
|
+
|
2341
|
+
/**
|
2342
|
+
* @param {!proto.notification.UserNotificationItem=} opt_value
|
2343
|
+
* @param {number=} opt_index
|
2344
|
+
* @return {!proto.notification.UserNotificationItem}
|
2345
|
+
*/
|
2346
|
+
proto.notification.UserNotificationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
2347
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.UserNotificationItem, opt_index);
|
2348
|
+
};
|
2349
|
+
|
2350
|
+
|
2351
|
+
/**
|
2352
|
+
* Clears the list making it empty but non-null.
|
2353
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2354
|
+
*/
|
2355
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearItemsList = function() {
|
2356
|
+
return this.setItemsList([]);
|
2357
|
+
};
|
2358
|
+
|
2359
|
+
|
2360
|
+
/**
|
2361
|
+
* optional int32 total_pages = 2;
|
2362
|
+
* @return {number}
|
2363
|
+
*/
|
2364
|
+
proto.notification.UserNotificationItemsResponse.prototype.getTotalPages = function() {
|
2365
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2366
|
+
};
|
2367
|
+
|
2368
|
+
|
2369
|
+
/**
|
2370
|
+
* @param {number} value
|
2371
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2372
|
+
*/
|
2373
|
+
proto.notification.UserNotificationItemsResponse.prototype.setTotalPages = function(value) {
|
2374
|
+
return jspb.Message.setField(this, 2, value);
|
2375
|
+
};
|
2376
|
+
|
2377
|
+
|
2378
|
+
/**
|
2379
|
+
* Clears the field making it undefined.
|
2380
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2381
|
+
*/
|
2382
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearTotalPages = function() {
|
2383
|
+
return jspb.Message.setField(this, 2, undefined);
|
2384
|
+
};
|
2385
|
+
|
2386
|
+
|
2387
|
+
/**
|
2388
|
+
* Returns whether this field is set.
|
2389
|
+
* @return {boolean}
|
2390
|
+
*/
|
2391
|
+
proto.notification.UserNotificationItemsResponse.prototype.hasTotalPages = function() {
|
2392
|
+
return jspb.Message.getField(this, 2) != null;
|
2393
|
+
};
|
2394
|
+
|
2395
|
+
|
2396
|
+
/**
|
2397
|
+
* optional int32 total_items = 3;
|
2398
|
+
* @return {number}
|
2399
|
+
*/
|
2400
|
+
proto.notification.UserNotificationItemsResponse.prototype.getTotalItems = function() {
|
2401
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2402
|
+
};
|
2403
|
+
|
2404
|
+
|
2405
|
+
/**
|
2406
|
+
* @param {number} value
|
2407
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2408
|
+
*/
|
2409
|
+
proto.notification.UserNotificationItemsResponse.prototype.setTotalItems = function(value) {
|
2410
|
+
return jspb.Message.setField(this, 3, value);
|
2411
|
+
};
|
2412
|
+
|
2413
|
+
|
2414
|
+
/**
|
2415
|
+
* Clears the field making it undefined.
|
2416
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
2417
|
+
*/
|
2418
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearTotalItems = function() {
|
2419
|
+
return jspb.Message.setField(this, 3, undefined);
|
2420
|
+
};
|
2421
|
+
|
2422
|
+
|
2423
|
+
/**
|
2424
|
+
* Returns whether this field is set.
|
2425
|
+
* @return {boolean}
|
2426
|
+
*/
|
2427
|
+
proto.notification.UserNotificationItemsResponse.prototype.hasTotalItems = function() {
|
2428
|
+
return jspb.Message.getField(this, 3) != null;
|
2429
|
+
};
|
2430
|
+
|
2431
|
+
|
1547
2432
|
goog.object.extend(exports, proto.notification);
|