protobuf-platform 1.0.182 → 1.0.184

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.
@@ -23,12 +23,17 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.notification.File', null, global);
25
25
  goog.exportSymbol('proto.notification.GetFileRequest', null, global);
26
+ goog.exportSymbol('proto.notification.NotificationItem', null, global);
27
+ goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
26
28
  goog.exportSymbol('proto.notification.NotificationSearchRequest', null, global);
27
29
  goog.exportSymbol('proto.notification.NotificationStatusResponse', null, global);
28
30
  goog.exportSymbol('proto.notification.PaginationRequest', null, global);
29
31
  goog.exportSymbol('proto.notification.PingRequest', null, global);
30
32
  goog.exportSymbol('proto.notification.PongResponse', null, global);
31
33
  goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
34
+ goog.exportSymbol('proto.notification.UserNotificationItem', null, global);
35
+ goog.exportSymbol('proto.notification.UserNotificationItemsResponse', null, global);
36
+ goog.exportSymbol('proto.notification.UserSearchRequest', null, global);
32
37
  /**
33
38
  * Generated by JsPbCodeGenerator.
34
39
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -113,6 +118,27 @@ if (goog.DEBUG && !COMPILED) {
113
118
  */
114
119
  proto.notification.NotificationSearchRequest.displayName = 'proto.notification.NotificationSearchRequest';
115
120
  }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.notification.UserSearchRequest = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.notification.UserSearchRequest, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.notification.UserSearchRequest.displayName = 'proto.notification.UserSearchRequest';
141
+ }
116
142
  /**
117
143
  * Generated by JsPbCodeGenerator.
118
144
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -197,6 +223,90 @@ if (goog.DEBUG && !COMPILED) {
197
223
  */
198
224
  proto.notification.NotificationStatusResponse.displayName = 'proto.notification.NotificationStatusResponse';
199
225
  }
226
+ /**
227
+ * Generated by JsPbCodeGenerator.
228
+ * @param {Array=} opt_data Optional initial data array, typically from a
229
+ * server response, or constructed directly in Javascript. The array is used
230
+ * in place and becomes part of the constructed object. It is not cloned.
231
+ * If no data is provided, the constructed object will be empty, but still
232
+ * valid.
233
+ * @extends {jspb.Message}
234
+ * @constructor
235
+ */
236
+ proto.notification.UserNotificationItem = function(opt_data) {
237
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
238
+ };
239
+ goog.inherits(proto.notification.UserNotificationItem, jspb.Message);
240
+ if (goog.DEBUG && !COMPILED) {
241
+ /**
242
+ * @public
243
+ * @override
244
+ */
245
+ proto.notification.UserNotificationItem.displayName = 'proto.notification.UserNotificationItem';
246
+ }
247
+ /**
248
+ * Generated by JsPbCodeGenerator.
249
+ * @param {Array=} opt_data Optional initial data array, typically from a
250
+ * server response, or constructed directly in Javascript. The array is used
251
+ * in place and becomes part of the constructed object. It is not cloned.
252
+ * If no data is provided, the constructed object will be empty, but still
253
+ * valid.
254
+ * @extends {jspb.Message}
255
+ * @constructor
256
+ */
257
+ proto.notification.UserNotificationItemsResponse = function(opt_data) {
258
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.UserNotificationItemsResponse.repeatedFields_, null);
259
+ };
260
+ goog.inherits(proto.notification.UserNotificationItemsResponse, jspb.Message);
261
+ if (goog.DEBUG && !COMPILED) {
262
+ /**
263
+ * @public
264
+ * @override
265
+ */
266
+ proto.notification.UserNotificationItemsResponse.displayName = 'proto.notification.UserNotificationItemsResponse';
267
+ }
268
+ /**
269
+ * Generated by JsPbCodeGenerator.
270
+ * @param {Array=} opt_data Optional initial data array, typically from a
271
+ * server response, or constructed directly in Javascript. The array is used
272
+ * in place and becomes part of the constructed object. It is not cloned.
273
+ * If no data is provided, the constructed object will be empty, but still
274
+ * valid.
275
+ * @extends {jspb.Message}
276
+ * @constructor
277
+ */
278
+ proto.notification.NotificationItem = function(opt_data) {
279
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
280
+ };
281
+ goog.inherits(proto.notification.NotificationItem, jspb.Message);
282
+ if (goog.DEBUG && !COMPILED) {
283
+ /**
284
+ * @public
285
+ * @override
286
+ */
287
+ proto.notification.NotificationItem.displayName = 'proto.notification.NotificationItem';
288
+ }
289
+ /**
290
+ * Generated by JsPbCodeGenerator.
291
+ * @param {Array=} opt_data Optional initial data array, typically from a
292
+ * server response, or constructed directly in Javascript. The array is used
293
+ * in place and becomes part of the constructed object. It is not cloned.
294
+ * If no data is provided, the constructed object will be empty, but still
295
+ * valid.
296
+ * @extends {jspb.Message}
297
+ * @constructor
298
+ */
299
+ proto.notification.NotificationItemsResponse = function(opt_data) {
300
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.NotificationItemsResponse.repeatedFields_, null);
301
+ };
302
+ goog.inherits(proto.notification.NotificationItemsResponse, jspb.Message);
303
+ if (goog.DEBUG && !COMPILED) {
304
+ /**
305
+ * @public
306
+ * @override
307
+ */
308
+ proto.notification.NotificationItemsResponse.displayName = 'proto.notification.NotificationItemsResponse';
309
+ }
200
310
 
201
311
 
202
312
 
@@ -491,7 +601,8 @@ proto.notification.PaginationRequest.toObject = function(includeInstance, msg) {
491
601
  var f, obj = {
492
602
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
493
603
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
494
- notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f)
604
+ notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f),
605
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.notification.UserSearchRequest.toObject(includeInstance, f)
495
606
  };
496
607
 
497
608
  if (includeInstance) {
@@ -541,6 +652,11 @@ proto.notification.PaginationRequest.deserializeBinaryFromReader = function(msg,
541
652
  reader.readMessage(value,proto.notification.NotificationSearchRequest.deserializeBinaryFromReader);
542
653
  msg.setNotificationSearchParams(value);
543
654
  break;
655
+ case 4:
656
+ var value = new proto.notification.UserSearchRequest;
657
+ reader.readMessage(value,proto.notification.UserSearchRequest.deserializeBinaryFromReader);
658
+ msg.setUserSearchParams(value);
659
+ break;
544
660
  default:
545
661
  reader.skipField();
546
662
  break;
@@ -592,6 +708,14 @@ proto.notification.PaginationRequest.serializeBinaryToWriter = function(message,
592
708
  proto.notification.NotificationSearchRequest.serializeBinaryToWriter
593
709
  );
594
710
  }
711
+ f = message.getUserSearchParams();
712
+ if (f != null) {
713
+ writer.writeMessage(
714
+ 4,
715
+ f,
716
+ proto.notification.UserSearchRequest.serializeBinaryToWriter
717
+ );
718
+ }
595
719
  };
596
720
 
597
721
 
@@ -668,6 +792,43 @@ proto.notification.PaginationRequest.prototype.hasNotificationSearchParams = fun
668
792
  };
669
793
 
670
794
 
795
+ /**
796
+ * optional UserSearchRequest user_search_params = 4;
797
+ * @return {?proto.notification.UserSearchRequest}
798
+ */
799
+ proto.notification.PaginationRequest.prototype.getUserSearchParams = function() {
800
+ return /** @type{?proto.notification.UserSearchRequest} */ (
801
+ jspb.Message.getWrapperField(this, proto.notification.UserSearchRequest, 4));
802
+ };
803
+
804
+
805
+ /**
806
+ * @param {?proto.notification.UserSearchRequest|undefined} value
807
+ * @return {!proto.notification.PaginationRequest} returns this
808
+ */
809
+ proto.notification.PaginationRequest.prototype.setUserSearchParams = function(value) {
810
+ return jspb.Message.setWrapperField(this, 4, value);
811
+ };
812
+
813
+
814
+ /**
815
+ * Clears the message field making it undefined.
816
+ * @return {!proto.notification.PaginationRequest} returns this
817
+ */
818
+ proto.notification.PaginationRequest.prototype.clearUserSearchParams = function() {
819
+ return this.setUserSearchParams(undefined);
820
+ };
821
+
822
+
823
+ /**
824
+ * Returns whether this field is set.
825
+ * @return {boolean}
826
+ */
827
+ proto.notification.PaginationRequest.prototype.hasUserSearchParams = function() {
828
+ return jspb.Message.getField(this, 4) != null;
829
+ };
830
+
831
+
671
832
 
672
833
 
673
834
 
@@ -928,8 +1089,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
928
1089
  * http://goto/soy-param-migration
929
1090
  * @return {!Object}
930
1091
  */
931
- proto.notification.File.prototype.toObject = function(opt_includeInstance) {
932
- return proto.notification.File.toObject(opt_includeInstance, this);
1092
+ proto.notification.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
1093
+ return proto.notification.UserSearchRequest.toObject(opt_includeInstance, this);
933
1094
  };
934
1095
 
935
1096
 
@@ -938,13 +1099,16 @@ proto.notification.File.prototype.toObject = function(opt_includeInstance) {
938
1099
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
939
1100
  * the JSPB instance for transitional soy proto support:
940
1101
  * http://goto/soy-param-migration
941
- * @param {!proto.notification.File} msg The msg instance to transform.
1102
+ * @param {!proto.notification.UserSearchRequest} msg The msg instance to transform.
942
1103
  * @return {!Object}
943
1104
  * @suppress {unusedLocalVariables} f is only used for nested messages
944
1105
  */
945
- proto.notification.File.toObject = function(includeInstance, msg) {
1106
+ proto.notification.UserSearchRequest.toObject = function(includeInstance, msg) {
946
1107
  var f, obj = {
947
- media: msg.getMedia_asB64()
1108
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1109
+ isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1110
+ limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
1111
+ offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
948
1112
  };
949
1113
 
950
1114
  if (includeInstance) {
@@ -958,23 +1122,23 @@ proto.notification.File.toObject = function(includeInstance, msg) {
958
1122
  /**
959
1123
  * Deserializes binary data (in protobuf wire format).
960
1124
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
961
- * @return {!proto.notification.File}
1125
+ * @return {!proto.notification.UserSearchRequest}
962
1126
  */
963
- proto.notification.File.deserializeBinary = function(bytes) {
1127
+ proto.notification.UserSearchRequest.deserializeBinary = function(bytes) {
964
1128
  var reader = new jspb.BinaryReader(bytes);
965
- var msg = new proto.notification.File;
966
- return proto.notification.File.deserializeBinaryFromReader(msg, reader);
1129
+ var msg = new proto.notification.UserSearchRequest;
1130
+ return proto.notification.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
967
1131
  };
968
1132
 
969
1133
 
970
1134
  /**
971
1135
  * Deserializes binary data (in protobuf wire format) from the
972
1136
  * given reader into the given message object.
973
- * @param {!proto.notification.File} msg The message object to deserialize into.
1137
+ * @param {!proto.notification.UserSearchRequest} msg The message object to deserialize into.
974
1138
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
975
- * @return {!proto.notification.File}
1139
+ * @return {!proto.notification.UserSearchRequest}
976
1140
  */
977
- proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
1141
+ proto.notification.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
978
1142
  while (reader.nextField()) {
979
1143
  if (reader.isEndGroup()) {
980
1144
  break;
@@ -982,8 +1146,20 @@ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
982
1146
  var field = reader.getFieldNumber();
983
1147
  switch (field) {
984
1148
  case 1:
985
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
986
- msg.setMedia(value);
1149
+ var value = /** @type {number} */ (reader.readInt32());
1150
+ msg.setUserId(value);
1151
+ break;
1152
+ case 2:
1153
+ var value = /** @type {boolean} */ (reader.readBool());
1154
+ msg.setIsChecked(value);
1155
+ break;
1156
+ case 3:
1157
+ var value = /** @type {number} */ (reader.readInt32());
1158
+ msg.setLimit(value);
1159
+ break;
1160
+ case 4:
1161
+ var value = /** @type {number} */ (reader.readInt32());
1162
+ msg.setOffset(value);
987
1163
  break;
988
1164
  default:
989
1165
  reader.skipField();
@@ -998,9 +1174,9 @@ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
998
1174
  * Serializes the message to binary data (in protobuf wire format).
999
1175
  * @return {!Uint8Array}
1000
1176
  */
1001
- proto.notification.File.prototype.serializeBinary = function() {
1177
+ proto.notification.UserSearchRequest.prototype.serializeBinary = function() {
1002
1178
  var writer = new jspb.BinaryWriter();
1003
- proto.notification.File.serializeBinaryToWriter(this, writer);
1179
+ proto.notification.UserSearchRequest.serializeBinaryToWriter(this, writer);
1004
1180
  return writer.getResultBuffer();
1005
1181
  };
1006
1182
 
@@ -1008,232 +1184,170 @@ proto.notification.File.prototype.serializeBinary = function() {
1008
1184
  /**
1009
1185
  * Serializes the given message to binary data (in protobuf wire
1010
1186
  * format), writing to the given BinaryWriter.
1011
- * @param {!proto.notification.File} message
1187
+ * @param {!proto.notification.UserSearchRequest} message
1012
1188
  * @param {!jspb.BinaryWriter} writer
1013
1189
  * @suppress {unusedLocalVariables} f is only used for nested messages
1014
1190
  */
1015
- proto.notification.File.serializeBinaryToWriter = function(message, writer) {
1191
+ proto.notification.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
1016
1192
  var f = undefined;
1017
- f = message.getMedia_asU8();
1018
- if (f.length > 0) {
1019
- writer.writeBytes(
1193
+ f = message.getUserId();
1194
+ if (f !== 0) {
1195
+ writer.writeInt32(
1020
1196
  1,
1021
1197
  f
1022
1198
  );
1023
1199
  }
1200
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
1201
+ if (f != null) {
1202
+ writer.writeBool(
1203
+ 2,
1204
+ f
1205
+ );
1206
+ }
1207
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
1208
+ if (f != null) {
1209
+ writer.writeInt32(
1210
+ 3,
1211
+ f
1212
+ );
1213
+ }
1214
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
1215
+ if (f != null) {
1216
+ writer.writeInt32(
1217
+ 4,
1218
+ f
1219
+ );
1220
+ }
1024
1221
  };
1025
1222
 
1026
1223
 
1027
1224
  /**
1028
- * optional bytes media = 1;
1029
- * @return {!(string|Uint8Array)}
1225
+ * optional int32 user_id = 1;
1226
+ * @return {number}
1030
1227
  */
1031
- proto.notification.File.prototype.getMedia = function() {
1032
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1228
+ proto.notification.UserSearchRequest.prototype.getUserId = function() {
1229
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1033
1230
  };
1034
1231
 
1035
1232
 
1036
1233
  /**
1037
- * optional bytes media = 1;
1038
- * This is a type-conversion wrapper around `getMedia()`
1039
- * @return {string}
1234
+ * @param {number} value
1235
+ * @return {!proto.notification.UserSearchRequest} returns this
1040
1236
  */
1041
- proto.notification.File.prototype.getMedia_asB64 = function() {
1042
- return /** @type {string} */ (jspb.Message.bytesAsB64(
1043
- this.getMedia()));
1237
+ proto.notification.UserSearchRequest.prototype.setUserId = function(value) {
1238
+ return jspb.Message.setProto3IntField(this, 1, value);
1044
1239
  };
1045
1240
 
1046
1241
 
1047
1242
  /**
1048
- * optional bytes media = 1;
1049
- * Note that Uint8Array is not supported on all browsers.
1050
- * @see http://caniuse.com/Uint8Array
1051
- * This is a type-conversion wrapper around `getMedia()`
1052
- * @return {!Uint8Array}
1243
+ * optional bool is_checked = 2;
1244
+ * @return {boolean}
1053
1245
  */
1054
- proto.notification.File.prototype.getMedia_asU8 = function() {
1055
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1056
- this.getMedia()));
1246
+ proto.notification.UserSearchRequest.prototype.getIsChecked = function() {
1247
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1057
1248
  };
1058
1249
 
1059
1250
 
1060
1251
  /**
1061
- * @param {!(string|Uint8Array)} value
1062
- * @return {!proto.notification.File} returns this
1252
+ * @param {boolean} value
1253
+ * @return {!proto.notification.UserSearchRequest} returns this
1063
1254
  */
1064
- proto.notification.File.prototype.setMedia = function(value) {
1065
- return jspb.Message.setProto3BytesField(this, 1, value);
1255
+ proto.notification.UserSearchRequest.prototype.setIsChecked = function(value) {
1256
+ return jspb.Message.setField(this, 2, value);
1066
1257
  };
1067
1258
 
1068
1259
 
1260
+ /**
1261
+ * Clears the field making it undefined.
1262
+ * @return {!proto.notification.UserSearchRequest} returns this
1263
+ */
1264
+ proto.notification.UserSearchRequest.prototype.clearIsChecked = function() {
1265
+ return jspb.Message.setField(this, 2, undefined);
1266
+ };
1069
1267
 
1070
1268
 
1071
-
1072
- if (jspb.Message.GENERATE_TO_OBJECT) {
1073
1269
  /**
1074
- * Creates an object representation of this proto.
1075
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1076
- * Optional fields that are not set will be set to undefined.
1077
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1078
- * For the list of reserved names please see:
1079
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1080
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1081
- * JSPB instance for transitional soy proto support:
1082
- * http://goto/soy-param-migration
1083
- * @return {!Object}
1270
+ * Returns whether this field is set.
1271
+ * @return {boolean}
1084
1272
  */
1085
- proto.notification.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
1086
- return proto.notification.GetFileRequest.toObject(opt_includeInstance, this);
1273
+ proto.notification.UserSearchRequest.prototype.hasIsChecked = function() {
1274
+ return jspb.Message.getField(this, 2) != null;
1087
1275
  };
1088
1276
 
1089
1277
 
1090
1278
  /**
1091
- * Static version of the {@see toObject} method.
1092
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1093
- * the JSPB instance for transitional soy proto support:
1094
- * http://goto/soy-param-migration
1095
- * @param {!proto.notification.GetFileRequest} msg The msg instance to transform.
1096
- * @return {!Object}
1097
- * @suppress {unusedLocalVariables} f is only used for nested messages
1279
+ * optional int32 limit = 3;
1280
+ * @return {number}
1098
1281
  */
1099
- proto.notification.GetFileRequest.toObject = function(includeInstance, msg) {
1100
- var f, obj = {
1101
- fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1102
- instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
1103
- };
1104
-
1105
- if (includeInstance) {
1106
- obj.$jspbMessageInstance = msg;
1107
- }
1108
- return obj;
1282
+ proto.notification.UserSearchRequest.prototype.getLimit = function() {
1283
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1109
1284
  };
1110
- }
1111
1285
 
1112
1286
 
1113
1287
  /**
1114
- * Deserializes binary data (in protobuf wire format).
1115
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1116
- * @return {!proto.notification.GetFileRequest}
1288
+ * @param {number} value
1289
+ * @return {!proto.notification.UserSearchRequest} returns this
1117
1290
  */
1118
- proto.notification.GetFileRequest.deserializeBinary = function(bytes) {
1119
- var reader = new jspb.BinaryReader(bytes);
1120
- var msg = new proto.notification.GetFileRequest;
1121
- return proto.notification.GetFileRequest.deserializeBinaryFromReader(msg, reader);
1291
+ proto.notification.UserSearchRequest.prototype.setLimit = function(value) {
1292
+ return jspb.Message.setField(this, 3, value);
1122
1293
  };
1123
1294
 
1124
1295
 
1125
1296
  /**
1126
- * Deserializes binary data (in protobuf wire format) from the
1127
- * given reader into the given message object.
1128
- * @param {!proto.notification.GetFileRequest} msg The message object to deserialize into.
1129
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1130
- * @return {!proto.notification.GetFileRequest}
1297
+ * Clears the field making it undefined.
1298
+ * @return {!proto.notification.UserSearchRequest} returns this
1131
1299
  */
1132
- proto.notification.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
1133
- while (reader.nextField()) {
1134
- if (reader.isEndGroup()) {
1135
- break;
1136
- }
1137
- var field = reader.getFieldNumber();
1138
- switch (field) {
1139
- case 1:
1140
- var value = /** @type {string} */ (reader.readString());
1141
- msg.setFileName(value);
1142
- break;
1143
- case 2:
1144
- var value = /** @type {string} */ (reader.readString());
1145
- msg.setInstanceType(value);
1146
- break;
1147
- default:
1148
- reader.skipField();
1149
- break;
1150
- }
1151
- }
1152
- return msg;
1153
- };
1154
-
1155
-
1156
- /**
1157
- * Serializes the message to binary data (in protobuf wire format).
1158
- * @return {!Uint8Array}
1159
- */
1160
- proto.notification.GetFileRequest.prototype.serializeBinary = function() {
1161
- var writer = new jspb.BinaryWriter();
1162
- proto.notification.GetFileRequest.serializeBinaryToWriter(this, writer);
1163
- return writer.getResultBuffer();
1300
+ proto.notification.UserSearchRequest.prototype.clearLimit = function() {
1301
+ return jspb.Message.setField(this, 3, undefined);
1164
1302
  };
1165
1303
 
1166
1304
 
1167
1305
  /**
1168
- * Serializes the given message to binary data (in protobuf wire
1169
- * format), writing to the given BinaryWriter.
1170
- * @param {!proto.notification.GetFileRequest} message
1171
- * @param {!jspb.BinaryWriter} writer
1172
- * @suppress {unusedLocalVariables} f is only used for nested messages
1306
+ * Returns whether this field is set.
1307
+ * @return {boolean}
1173
1308
  */
1174
- proto.notification.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
1175
- var f = undefined;
1176
- f = message.getFileName();
1177
- if (f.length > 0) {
1178
- writer.writeString(
1179
- 1,
1180
- f
1181
- );
1182
- }
1183
- f = message.getInstanceType();
1184
- if (f.length > 0) {
1185
- writer.writeString(
1186
- 2,
1187
- f
1188
- );
1189
- }
1309
+ proto.notification.UserSearchRequest.prototype.hasLimit = function() {
1310
+ return jspb.Message.getField(this, 3) != null;
1190
1311
  };
1191
1312
 
1192
1313
 
1193
1314
  /**
1194
- * optional string file_name = 1;
1195
- * @return {string}
1315
+ * optional int32 offset = 4;
1316
+ * @return {number}
1196
1317
  */
1197
- proto.notification.GetFileRequest.prototype.getFileName = function() {
1198
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1318
+ proto.notification.UserSearchRequest.prototype.getOffset = function() {
1319
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1199
1320
  };
1200
1321
 
1201
1322
 
1202
1323
  /**
1203
- * @param {string} value
1204
- * @return {!proto.notification.GetFileRequest} returns this
1324
+ * @param {number} value
1325
+ * @return {!proto.notification.UserSearchRequest} returns this
1205
1326
  */
1206
- proto.notification.GetFileRequest.prototype.setFileName = function(value) {
1207
- return jspb.Message.setProto3StringField(this, 1, value);
1327
+ proto.notification.UserSearchRequest.prototype.setOffset = function(value) {
1328
+ return jspb.Message.setField(this, 4, value);
1208
1329
  };
1209
1330
 
1210
1331
 
1211
1332
  /**
1212
- * optional string instance_type = 2;
1213
- * @return {string}
1333
+ * Clears the field making it undefined.
1334
+ * @return {!proto.notification.UserSearchRequest} returns this
1214
1335
  */
1215
- proto.notification.GetFileRequest.prototype.getInstanceType = function() {
1216
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1336
+ proto.notification.UserSearchRequest.prototype.clearOffset = function() {
1337
+ return jspb.Message.setField(this, 4, undefined);
1217
1338
  };
1218
1339
 
1219
1340
 
1220
1341
  /**
1221
- * @param {string} value
1222
- * @return {!proto.notification.GetFileRequest} returns this
1342
+ * Returns whether this field is set.
1343
+ * @return {boolean}
1223
1344
  */
1224
- proto.notification.GetFileRequest.prototype.setInstanceType = function(value) {
1225
- return jspb.Message.setProto3StringField(this, 2, value);
1345
+ proto.notification.UserSearchRequest.prototype.hasOffset = function() {
1346
+ return jspb.Message.getField(this, 4) != null;
1226
1347
  };
1227
1348
 
1228
1349
 
1229
1350
 
1230
- /**
1231
- * List of repeated fields within this message type.
1232
- * @private {!Array<number>}
1233
- * @const
1234
- */
1235
- proto.notification.SendNotificationRequest.repeatedFields_ = [2];
1236
-
1237
1351
 
1238
1352
 
1239
1353
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1249,8 +1363,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1249
1363
  * http://goto/soy-param-migration
1250
1364
  * @return {!Object}
1251
1365
  */
1252
- proto.notification.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) {
1253
- return proto.notification.SendNotificationRequest.toObject(opt_includeInstance, this);
1366
+ proto.notification.File.prototype.toObject = function(opt_includeInstance) {
1367
+ return proto.notification.File.toObject(opt_includeInstance, this);
1254
1368
  };
1255
1369
 
1256
1370
 
@@ -1259,14 +1373,13 @@ proto.notification.SendNotificationRequest.prototype.toObject = function(opt_inc
1259
1373
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1260
1374
  * the JSPB instance for transitional soy proto support:
1261
1375
  * http://goto/soy-param-migration
1262
- * @param {!proto.notification.SendNotificationRequest} msg The msg instance to transform.
1376
+ * @param {!proto.notification.File} msg The msg instance to transform.
1263
1377
  * @return {!Object}
1264
1378
  * @suppress {unusedLocalVariables} f is only used for nested messages
1265
1379
  */
1266
- proto.notification.SendNotificationRequest.toObject = function(includeInstance, msg) {
1380
+ proto.notification.File.toObject = function(includeInstance, msg) {
1267
1381
  var f, obj = {
1268
- notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1269
- userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1382
+ media: msg.getMedia_asB64()
1270
1383
  };
1271
1384
 
1272
1385
  if (includeInstance) {
@@ -1280,23 +1393,23 @@ proto.notification.SendNotificationRequest.toObject = function(includeInstance,
1280
1393
  /**
1281
1394
  * Deserializes binary data (in protobuf wire format).
1282
1395
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1283
- * @return {!proto.notification.SendNotificationRequest}
1396
+ * @return {!proto.notification.File}
1284
1397
  */
1285
- proto.notification.SendNotificationRequest.deserializeBinary = function(bytes) {
1398
+ proto.notification.File.deserializeBinary = function(bytes) {
1286
1399
  var reader = new jspb.BinaryReader(bytes);
1287
- var msg = new proto.notification.SendNotificationRequest;
1288
- return proto.notification.SendNotificationRequest.deserializeBinaryFromReader(msg, reader);
1400
+ var msg = new proto.notification.File;
1401
+ return proto.notification.File.deserializeBinaryFromReader(msg, reader);
1289
1402
  };
1290
1403
 
1291
1404
 
1292
1405
  /**
1293
1406
  * Deserializes binary data (in protobuf wire format) from the
1294
1407
  * given reader into the given message object.
1295
- * @param {!proto.notification.SendNotificationRequest} msg The message object to deserialize into.
1408
+ * @param {!proto.notification.File} msg The message object to deserialize into.
1296
1409
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1297
- * @return {!proto.notification.SendNotificationRequest}
1410
+ * @return {!proto.notification.File}
1298
1411
  */
1299
- proto.notification.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
1412
+ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
1300
1413
  while (reader.nextField()) {
1301
1414
  if (reader.isEndGroup()) {
1302
1415
  break;
@@ -1304,14 +1417,8 @@ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = functio
1304
1417
  var field = reader.getFieldNumber();
1305
1418
  switch (field) {
1306
1419
  case 1:
1307
- var value = /** @type {number} */ (reader.readInt32());
1308
- msg.setNotificationId(value);
1309
- break;
1310
- case 2:
1311
- var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1312
- for (var i = 0; i < values.length; i++) {
1313
- msg.addUserIds(values[i]);
1314
- }
1420
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1421
+ msg.setMedia(value);
1315
1422
  break;
1316
1423
  default:
1317
1424
  reader.skipField();
@@ -1326,9 +1433,9 @@ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = functio
1326
1433
  * Serializes the message to binary data (in protobuf wire format).
1327
1434
  * @return {!Uint8Array}
1328
1435
  */
1329
- proto.notification.SendNotificationRequest.prototype.serializeBinary = function() {
1436
+ proto.notification.File.prototype.serializeBinary = function() {
1330
1437
  var writer = new jspb.BinaryWriter();
1331
- proto.notification.SendNotificationRequest.serializeBinaryToWriter(this, writer);
1438
+ proto.notification.File.serializeBinaryToWriter(this, writer);
1332
1439
  return writer.getResultBuffer();
1333
1440
  };
1334
1441
 
@@ -1336,23 +1443,16 @@ proto.notification.SendNotificationRequest.prototype.serializeBinary = function(
1336
1443
  /**
1337
1444
  * Serializes the given message to binary data (in protobuf wire
1338
1445
  * format), writing to the given BinaryWriter.
1339
- * @param {!proto.notification.SendNotificationRequest} message
1446
+ * @param {!proto.notification.File} message
1340
1447
  * @param {!jspb.BinaryWriter} writer
1341
1448
  * @suppress {unusedLocalVariables} f is only used for nested messages
1342
1449
  */
1343
- proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) {
1450
+ proto.notification.File.serializeBinaryToWriter = function(message, writer) {
1344
1451
  var f = undefined;
1345
- f = message.getNotificationId();
1346
- if (f !== 0) {
1347
- writer.writeInt32(
1348
- 1,
1349
- f
1350
- );
1351
- }
1352
- f = message.getUserIdsList();
1452
+ f = message.getMedia_asU8();
1353
1453
  if (f.length > 0) {
1354
- writer.writePackedInt32(
1355
- 2,
1454
+ writer.writeBytes(
1455
+ 1,
1356
1456
  f
1357
1457
  );
1358
1458
  }
@@ -1360,57 +1460,44 @@ proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(me
1360
1460
 
1361
1461
 
1362
1462
  /**
1363
- * optional int32 notification_id = 1;
1364
- * @return {number}
1365
- */
1366
- proto.notification.SendNotificationRequest.prototype.getNotificationId = function() {
1367
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1368
- };
1369
-
1370
-
1371
- /**
1372
- * @param {number} value
1373
- * @return {!proto.notification.SendNotificationRequest} returns this
1374
- */
1375
- proto.notification.SendNotificationRequest.prototype.setNotificationId = function(value) {
1376
- return jspb.Message.setProto3IntField(this, 1, value);
1377
- };
1378
-
1379
-
1380
- /**
1381
- * repeated int32 user_ids = 2;
1382
- * @return {!Array<number>}
1463
+ * optional bytes media = 1;
1464
+ * @return {!(string|Uint8Array)}
1383
1465
  */
1384
- proto.notification.SendNotificationRequest.prototype.getUserIdsList = function() {
1385
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
1466
+ proto.notification.File.prototype.getMedia = function() {
1467
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1386
1468
  };
1387
1469
 
1388
1470
 
1389
1471
  /**
1390
- * @param {!Array<number>} value
1391
- * @return {!proto.notification.SendNotificationRequest} returns this
1472
+ * optional bytes media = 1;
1473
+ * This is a type-conversion wrapper around `getMedia()`
1474
+ * @return {string}
1392
1475
  */
1393
- proto.notification.SendNotificationRequest.prototype.setUserIdsList = function(value) {
1394
- return jspb.Message.setField(this, 2, value || []);
1476
+ proto.notification.File.prototype.getMedia_asB64 = function() {
1477
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1478
+ this.getMedia()));
1395
1479
  };
1396
1480
 
1397
1481
 
1398
1482
  /**
1399
- * @param {number} value
1400
- * @param {number=} opt_index
1401
- * @return {!proto.notification.SendNotificationRequest} returns this
1483
+ * optional bytes media = 1;
1484
+ * Note that Uint8Array is not supported on all browsers.
1485
+ * @see http://caniuse.com/Uint8Array
1486
+ * This is a type-conversion wrapper around `getMedia()`
1487
+ * @return {!Uint8Array}
1402
1488
  */
1403
- proto.notification.SendNotificationRequest.prototype.addUserIds = function(value, opt_index) {
1404
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1489
+ proto.notification.File.prototype.getMedia_asU8 = function() {
1490
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1491
+ this.getMedia()));
1405
1492
  };
1406
1493
 
1407
1494
 
1408
1495
  /**
1409
- * Clears the list making it empty but non-null.
1410
- * @return {!proto.notification.SendNotificationRequest} returns this
1496
+ * @param {!(string|Uint8Array)} value
1497
+ * @return {!proto.notification.File} returns this
1411
1498
  */
1412
- proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function() {
1413
- return this.setUserIdsList([]);
1499
+ proto.notification.File.prototype.setMedia = function(value) {
1500
+ return jspb.Message.setProto3BytesField(this, 1, value);
1414
1501
  };
1415
1502
 
1416
1503
 
@@ -1430,8 +1517,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1430
1517
  * http://goto/soy-param-migration
1431
1518
  * @return {!Object}
1432
1519
  */
1433
- proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_includeInstance) {
1434
- return proto.notification.NotificationStatusResponse.toObject(opt_includeInstance, this);
1520
+ proto.notification.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
1521
+ return proto.notification.GetFileRequest.toObject(opt_includeInstance, this);
1435
1522
  };
1436
1523
 
1437
1524
 
@@ -1440,13 +1527,14 @@ proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_
1440
1527
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1441
1528
  * the JSPB instance for transitional soy proto support:
1442
1529
  * http://goto/soy-param-migration
1443
- * @param {!proto.notification.NotificationStatusResponse} msg The msg instance to transform.
1530
+ * @param {!proto.notification.GetFileRequest} msg The msg instance to transform.
1444
1531
  * @return {!Object}
1445
1532
  * @suppress {unusedLocalVariables} f is only used for nested messages
1446
1533
  */
1447
- proto.notification.NotificationStatusResponse.toObject = function(includeInstance, msg) {
1534
+ proto.notification.GetFileRequest.toObject = function(includeInstance, msg) {
1448
1535
  var f, obj = {
1449
- status: jspb.Message.getFieldWithDefault(msg, 1, "")
1536
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1537
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
1450
1538
  };
1451
1539
 
1452
1540
  if (includeInstance) {
@@ -1460,23 +1548,23 @@ proto.notification.NotificationStatusResponse.toObject = function(includeInstanc
1460
1548
  /**
1461
1549
  * Deserializes binary data (in protobuf wire format).
1462
1550
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1463
- * @return {!proto.notification.NotificationStatusResponse}
1551
+ * @return {!proto.notification.GetFileRequest}
1464
1552
  */
1465
- proto.notification.NotificationStatusResponse.deserializeBinary = function(bytes) {
1553
+ proto.notification.GetFileRequest.deserializeBinary = function(bytes) {
1466
1554
  var reader = new jspb.BinaryReader(bytes);
1467
- var msg = new proto.notification.NotificationStatusResponse;
1468
- return proto.notification.NotificationStatusResponse.deserializeBinaryFromReader(msg, reader);
1555
+ var msg = new proto.notification.GetFileRequest;
1556
+ return proto.notification.GetFileRequest.deserializeBinaryFromReader(msg, reader);
1469
1557
  };
1470
1558
 
1471
1559
 
1472
1560
  /**
1473
1561
  * Deserializes binary data (in protobuf wire format) from the
1474
1562
  * given reader into the given message object.
1475
- * @param {!proto.notification.NotificationStatusResponse} msg The message object to deserialize into.
1563
+ * @param {!proto.notification.GetFileRequest} msg The message object to deserialize into.
1476
1564
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1477
- * @return {!proto.notification.NotificationStatusResponse}
1565
+ * @return {!proto.notification.GetFileRequest}
1478
1566
  */
1479
- proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
1567
+ proto.notification.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
1480
1568
  while (reader.nextField()) {
1481
1569
  if (reader.isEndGroup()) {
1482
1570
  break;
@@ -1485,7 +1573,11 @@ proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = func
1485
1573
  switch (field) {
1486
1574
  case 1:
1487
1575
  var value = /** @type {string} */ (reader.readString());
1488
- msg.setStatus(value);
1576
+ msg.setFileName(value);
1577
+ break;
1578
+ case 2:
1579
+ var value = /** @type {string} */ (reader.readString());
1580
+ msg.setInstanceType(value);
1489
1581
  break;
1490
1582
  default:
1491
1583
  reader.skipField();
@@ -1500,9 +1592,9 @@ proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = func
1500
1592
  * Serializes the message to binary data (in protobuf wire format).
1501
1593
  * @return {!Uint8Array}
1502
1594
  */
1503
- proto.notification.NotificationStatusResponse.prototype.serializeBinary = function() {
1595
+ proto.notification.GetFileRequest.prototype.serializeBinary = function() {
1504
1596
  var writer = new jspb.BinaryWriter();
1505
- proto.notification.NotificationStatusResponse.serializeBinaryToWriter(this, writer);
1597
+ proto.notification.GetFileRequest.serializeBinaryToWriter(this, writer);
1506
1598
  return writer.getResultBuffer();
1507
1599
  };
1508
1600
 
@@ -1510,38 +1602,1429 @@ proto.notification.NotificationStatusResponse.prototype.serializeBinary = functi
1510
1602
  /**
1511
1603
  * Serializes the given message to binary data (in protobuf wire
1512
1604
  * format), writing to the given BinaryWriter.
1513
- * @param {!proto.notification.NotificationStatusResponse} message
1605
+ * @param {!proto.notification.GetFileRequest} message
1514
1606
  * @param {!jspb.BinaryWriter} writer
1515
1607
  * @suppress {unusedLocalVariables} f is only used for nested messages
1516
1608
  */
1517
- proto.notification.NotificationStatusResponse.serializeBinaryToWriter = function(message, writer) {
1609
+ proto.notification.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
1518
1610
  var f = undefined;
1519
- f = message.getStatus();
1611
+ f = message.getFileName();
1520
1612
  if (f.length > 0) {
1521
1613
  writer.writeString(
1522
1614
  1,
1523
1615
  f
1524
1616
  );
1525
1617
  }
1618
+ f = message.getInstanceType();
1619
+ if (f.length > 0) {
1620
+ writer.writeString(
1621
+ 2,
1622
+ f
1623
+ );
1624
+ }
1526
1625
  };
1527
1626
 
1528
1627
 
1529
1628
  /**
1530
- * optional string status = 1;
1629
+ * optional string file_name = 1;
1531
1630
  * @return {string}
1532
1631
  */
1533
- proto.notification.NotificationStatusResponse.prototype.getStatus = function() {
1632
+ proto.notification.GetFileRequest.prototype.getFileName = function() {
1534
1633
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1535
1634
  };
1536
1635
 
1537
1636
 
1538
1637
  /**
1539
1638
  * @param {string} value
1540
- * @return {!proto.notification.NotificationStatusResponse} returns this
1639
+ * @return {!proto.notification.GetFileRequest} returns this
1541
1640
  */
1542
- proto.notification.NotificationStatusResponse.prototype.setStatus = function(value) {
1641
+ proto.notification.GetFileRequest.prototype.setFileName = function(value) {
1543
1642
  return jspb.Message.setProto3StringField(this, 1, value);
1544
1643
  };
1545
1644
 
1546
1645
 
1646
+ /**
1647
+ * optional string instance_type = 2;
1648
+ * @return {string}
1649
+ */
1650
+ proto.notification.GetFileRequest.prototype.getInstanceType = function() {
1651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1652
+ };
1653
+
1654
+
1655
+ /**
1656
+ * @param {string} value
1657
+ * @return {!proto.notification.GetFileRequest} returns this
1658
+ */
1659
+ proto.notification.GetFileRequest.prototype.setInstanceType = function(value) {
1660
+ return jspb.Message.setProto3StringField(this, 2, value);
1661
+ };
1662
+
1663
+
1664
+
1665
+ /**
1666
+ * List of repeated fields within this message type.
1667
+ * @private {!Array<number>}
1668
+ * @const
1669
+ */
1670
+ proto.notification.SendNotificationRequest.repeatedFields_ = [2];
1671
+
1672
+
1673
+
1674
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1675
+ /**
1676
+ * Creates an object representation of this proto.
1677
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1678
+ * Optional fields that are not set will be set to undefined.
1679
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1680
+ * For the list of reserved names please see:
1681
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1682
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1683
+ * JSPB instance for transitional soy proto support:
1684
+ * http://goto/soy-param-migration
1685
+ * @return {!Object}
1686
+ */
1687
+ proto.notification.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) {
1688
+ return proto.notification.SendNotificationRequest.toObject(opt_includeInstance, this);
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * Static version of the {@see toObject} method.
1694
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1695
+ * the JSPB instance for transitional soy proto support:
1696
+ * http://goto/soy-param-migration
1697
+ * @param {!proto.notification.SendNotificationRequest} msg The msg instance to transform.
1698
+ * @return {!Object}
1699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1700
+ */
1701
+ proto.notification.SendNotificationRequest.toObject = function(includeInstance, msg) {
1702
+ var f, obj = {
1703
+ notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1704
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1705
+ };
1706
+
1707
+ if (includeInstance) {
1708
+ obj.$jspbMessageInstance = msg;
1709
+ }
1710
+ return obj;
1711
+ };
1712
+ }
1713
+
1714
+
1715
+ /**
1716
+ * Deserializes binary data (in protobuf wire format).
1717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1718
+ * @return {!proto.notification.SendNotificationRequest}
1719
+ */
1720
+ proto.notification.SendNotificationRequest.deserializeBinary = function(bytes) {
1721
+ var reader = new jspb.BinaryReader(bytes);
1722
+ var msg = new proto.notification.SendNotificationRequest;
1723
+ return proto.notification.SendNotificationRequest.deserializeBinaryFromReader(msg, reader);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Deserializes binary data (in protobuf wire format) from the
1729
+ * given reader into the given message object.
1730
+ * @param {!proto.notification.SendNotificationRequest} msg The message object to deserialize into.
1731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1732
+ * @return {!proto.notification.SendNotificationRequest}
1733
+ */
1734
+ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
1735
+ while (reader.nextField()) {
1736
+ if (reader.isEndGroup()) {
1737
+ break;
1738
+ }
1739
+ var field = reader.getFieldNumber();
1740
+ switch (field) {
1741
+ case 1:
1742
+ var value = /** @type {number} */ (reader.readInt32());
1743
+ msg.setNotificationId(value);
1744
+ break;
1745
+ case 2:
1746
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1747
+ for (var i = 0; i < values.length; i++) {
1748
+ msg.addUserIds(values[i]);
1749
+ }
1750
+ break;
1751
+ default:
1752
+ reader.skipField();
1753
+ break;
1754
+ }
1755
+ }
1756
+ return msg;
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Serializes the message to binary data (in protobuf wire format).
1762
+ * @return {!Uint8Array}
1763
+ */
1764
+ proto.notification.SendNotificationRequest.prototype.serializeBinary = function() {
1765
+ var writer = new jspb.BinaryWriter();
1766
+ proto.notification.SendNotificationRequest.serializeBinaryToWriter(this, writer);
1767
+ return writer.getResultBuffer();
1768
+ };
1769
+
1770
+
1771
+ /**
1772
+ * Serializes the given message to binary data (in protobuf wire
1773
+ * format), writing to the given BinaryWriter.
1774
+ * @param {!proto.notification.SendNotificationRequest} message
1775
+ * @param {!jspb.BinaryWriter} writer
1776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1777
+ */
1778
+ proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) {
1779
+ var f = undefined;
1780
+ f = message.getNotificationId();
1781
+ if (f !== 0) {
1782
+ writer.writeInt32(
1783
+ 1,
1784
+ f
1785
+ );
1786
+ }
1787
+ f = message.getUserIdsList();
1788
+ if (f.length > 0) {
1789
+ writer.writePackedInt32(
1790
+ 2,
1791
+ f
1792
+ );
1793
+ }
1794
+ };
1795
+
1796
+
1797
+ /**
1798
+ * optional int32 notification_id = 1;
1799
+ * @return {number}
1800
+ */
1801
+ proto.notification.SendNotificationRequest.prototype.getNotificationId = function() {
1802
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1803
+ };
1804
+
1805
+
1806
+ /**
1807
+ * @param {number} value
1808
+ * @return {!proto.notification.SendNotificationRequest} returns this
1809
+ */
1810
+ proto.notification.SendNotificationRequest.prototype.setNotificationId = function(value) {
1811
+ return jspb.Message.setProto3IntField(this, 1, value);
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * repeated int32 user_ids = 2;
1817
+ * @return {!Array<number>}
1818
+ */
1819
+ proto.notification.SendNotificationRequest.prototype.getUserIdsList = function() {
1820
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * @param {!Array<number>} value
1826
+ * @return {!proto.notification.SendNotificationRequest} returns this
1827
+ */
1828
+ proto.notification.SendNotificationRequest.prototype.setUserIdsList = function(value) {
1829
+ return jspb.Message.setField(this, 2, value || []);
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * @param {number} value
1835
+ * @param {number=} opt_index
1836
+ * @return {!proto.notification.SendNotificationRequest} returns this
1837
+ */
1838
+ proto.notification.SendNotificationRequest.prototype.addUserIds = function(value, opt_index) {
1839
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1840
+ };
1841
+
1842
+
1843
+ /**
1844
+ * Clears the list making it empty but non-null.
1845
+ * @return {!proto.notification.SendNotificationRequest} returns this
1846
+ */
1847
+ proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function() {
1848
+ return this.setUserIdsList([]);
1849
+ };
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1856
+ /**
1857
+ * Creates an object representation of this proto.
1858
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1859
+ * Optional fields that are not set will be set to undefined.
1860
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1861
+ * For the list of reserved names please see:
1862
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1863
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1864
+ * JSPB instance for transitional soy proto support:
1865
+ * http://goto/soy-param-migration
1866
+ * @return {!Object}
1867
+ */
1868
+ proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_includeInstance) {
1869
+ return proto.notification.NotificationStatusResponse.toObject(opt_includeInstance, this);
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * Static version of the {@see toObject} method.
1875
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1876
+ * the JSPB instance for transitional soy proto support:
1877
+ * http://goto/soy-param-migration
1878
+ * @param {!proto.notification.NotificationStatusResponse} msg The msg instance to transform.
1879
+ * @return {!Object}
1880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1881
+ */
1882
+ proto.notification.NotificationStatusResponse.toObject = function(includeInstance, msg) {
1883
+ var f, obj = {
1884
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
1885
+ };
1886
+
1887
+ if (includeInstance) {
1888
+ obj.$jspbMessageInstance = msg;
1889
+ }
1890
+ return obj;
1891
+ };
1892
+ }
1893
+
1894
+
1895
+ /**
1896
+ * Deserializes binary data (in protobuf wire format).
1897
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1898
+ * @return {!proto.notification.NotificationStatusResponse}
1899
+ */
1900
+ proto.notification.NotificationStatusResponse.deserializeBinary = function(bytes) {
1901
+ var reader = new jspb.BinaryReader(bytes);
1902
+ var msg = new proto.notification.NotificationStatusResponse;
1903
+ return proto.notification.NotificationStatusResponse.deserializeBinaryFromReader(msg, reader);
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Deserializes binary data (in protobuf wire format) from the
1909
+ * given reader into the given message object.
1910
+ * @param {!proto.notification.NotificationStatusResponse} msg The message object to deserialize into.
1911
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1912
+ * @return {!proto.notification.NotificationStatusResponse}
1913
+ */
1914
+ proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
1915
+ while (reader.nextField()) {
1916
+ if (reader.isEndGroup()) {
1917
+ break;
1918
+ }
1919
+ var field = reader.getFieldNumber();
1920
+ switch (field) {
1921
+ case 1:
1922
+ var value = /** @type {string} */ (reader.readString());
1923
+ msg.setStatus(value);
1924
+ break;
1925
+ default:
1926
+ reader.skipField();
1927
+ break;
1928
+ }
1929
+ }
1930
+ return msg;
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * Serializes the message to binary data (in protobuf wire format).
1936
+ * @return {!Uint8Array}
1937
+ */
1938
+ proto.notification.NotificationStatusResponse.prototype.serializeBinary = function() {
1939
+ var writer = new jspb.BinaryWriter();
1940
+ proto.notification.NotificationStatusResponse.serializeBinaryToWriter(this, writer);
1941
+ return writer.getResultBuffer();
1942
+ };
1943
+
1944
+
1945
+ /**
1946
+ * Serializes the given message to binary data (in protobuf wire
1947
+ * format), writing to the given BinaryWriter.
1948
+ * @param {!proto.notification.NotificationStatusResponse} message
1949
+ * @param {!jspb.BinaryWriter} writer
1950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1951
+ */
1952
+ proto.notification.NotificationStatusResponse.serializeBinaryToWriter = function(message, writer) {
1953
+ var f = undefined;
1954
+ f = message.getStatus();
1955
+ if (f.length > 0) {
1956
+ writer.writeString(
1957
+ 1,
1958
+ f
1959
+ );
1960
+ }
1961
+ };
1962
+
1963
+
1964
+ /**
1965
+ * optional string status = 1;
1966
+ * @return {string}
1967
+ */
1968
+ proto.notification.NotificationStatusResponse.prototype.getStatus = function() {
1969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1970
+ };
1971
+
1972
+
1973
+ /**
1974
+ * @param {string} value
1975
+ * @return {!proto.notification.NotificationStatusResponse} returns this
1976
+ */
1977
+ proto.notification.NotificationStatusResponse.prototype.setStatus = function(value) {
1978
+ return jspb.Message.setProto3StringField(this, 1, value);
1979
+ };
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1986
+ /**
1987
+ * Creates an object representation of this proto.
1988
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1989
+ * Optional fields that are not set will be set to undefined.
1990
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1991
+ * For the list of reserved names please see:
1992
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1993
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1994
+ * JSPB instance for transitional soy proto support:
1995
+ * http://goto/soy-param-migration
1996
+ * @return {!Object}
1997
+ */
1998
+ proto.notification.UserNotificationItem.prototype.toObject = function(opt_includeInstance) {
1999
+ return proto.notification.UserNotificationItem.toObject(opt_includeInstance, this);
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * Static version of the {@see toObject} method.
2005
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2006
+ * the JSPB instance for transitional soy proto support:
2007
+ * http://goto/soy-param-migration
2008
+ * @param {!proto.notification.UserNotificationItem} msg The msg instance to transform.
2009
+ * @return {!Object}
2010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2011
+ */
2012
+ proto.notification.UserNotificationItem.toObject = function(includeInstance, msg) {
2013
+ var f, obj = {
2014
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
2015
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
2016
+ isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2017
+ created: jspb.Message.getFieldWithDefault(msg, 4, "")
2018
+ };
2019
+
2020
+ if (includeInstance) {
2021
+ obj.$jspbMessageInstance = msg;
2022
+ }
2023
+ return obj;
2024
+ };
2025
+ }
2026
+
2027
+
2028
+ /**
2029
+ * Deserializes binary data (in protobuf wire format).
2030
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2031
+ * @return {!proto.notification.UserNotificationItem}
2032
+ */
2033
+ proto.notification.UserNotificationItem.deserializeBinary = function(bytes) {
2034
+ var reader = new jspb.BinaryReader(bytes);
2035
+ var msg = new proto.notification.UserNotificationItem;
2036
+ return proto.notification.UserNotificationItem.deserializeBinaryFromReader(msg, reader);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * Deserializes binary data (in protobuf wire format) from the
2042
+ * given reader into the given message object.
2043
+ * @param {!proto.notification.UserNotificationItem} msg The message object to deserialize into.
2044
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2045
+ * @return {!proto.notification.UserNotificationItem}
2046
+ */
2047
+ proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(msg, reader) {
2048
+ while (reader.nextField()) {
2049
+ if (reader.isEndGroup()) {
2050
+ break;
2051
+ }
2052
+ var field = reader.getFieldNumber();
2053
+ switch (field) {
2054
+ case 1:
2055
+ var value = /** @type {string} */ (reader.readString());
2056
+ msg.setTitle(value);
2057
+ break;
2058
+ case 2:
2059
+ var value = /** @type {string} */ (reader.readString());
2060
+ msg.setContent(value);
2061
+ break;
2062
+ case 3:
2063
+ var value = /** @type {boolean} */ (reader.readBool());
2064
+ msg.setIsChecked(value);
2065
+ break;
2066
+ case 4:
2067
+ var value = /** @type {string} */ (reader.readString());
2068
+ msg.setCreated(value);
2069
+ break;
2070
+ default:
2071
+ reader.skipField();
2072
+ break;
2073
+ }
2074
+ }
2075
+ return msg;
2076
+ };
2077
+
2078
+
2079
+ /**
2080
+ * Serializes the message to binary data (in protobuf wire format).
2081
+ * @return {!Uint8Array}
2082
+ */
2083
+ proto.notification.UserNotificationItem.prototype.serializeBinary = function() {
2084
+ var writer = new jspb.BinaryWriter();
2085
+ proto.notification.UserNotificationItem.serializeBinaryToWriter(this, writer);
2086
+ return writer.getResultBuffer();
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Serializes the given message to binary data (in protobuf wire
2092
+ * format), writing to the given BinaryWriter.
2093
+ * @param {!proto.notification.UserNotificationItem} message
2094
+ * @param {!jspb.BinaryWriter} writer
2095
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2096
+ */
2097
+ proto.notification.UserNotificationItem.serializeBinaryToWriter = function(message, writer) {
2098
+ var f = undefined;
2099
+ f = message.getTitle();
2100
+ if (f.length > 0) {
2101
+ writer.writeString(
2102
+ 1,
2103
+ f
2104
+ );
2105
+ }
2106
+ f = message.getContent();
2107
+ if (f.length > 0) {
2108
+ writer.writeString(
2109
+ 2,
2110
+ f
2111
+ );
2112
+ }
2113
+ f = message.getIsChecked();
2114
+ if (f) {
2115
+ writer.writeBool(
2116
+ 3,
2117
+ f
2118
+ );
2119
+ }
2120
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2121
+ if (f != null) {
2122
+ writer.writeString(
2123
+ 4,
2124
+ f
2125
+ );
2126
+ }
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * optional string title = 1;
2132
+ * @return {string}
2133
+ */
2134
+ proto.notification.UserNotificationItem.prototype.getTitle = function() {
2135
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * @param {string} value
2141
+ * @return {!proto.notification.UserNotificationItem} returns this
2142
+ */
2143
+ proto.notification.UserNotificationItem.prototype.setTitle = function(value) {
2144
+ return jspb.Message.setProto3StringField(this, 1, value);
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * optional string content = 2;
2150
+ * @return {string}
2151
+ */
2152
+ proto.notification.UserNotificationItem.prototype.getContent = function() {
2153
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2154
+ };
2155
+
2156
+
2157
+ /**
2158
+ * @param {string} value
2159
+ * @return {!proto.notification.UserNotificationItem} returns this
2160
+ */
2161
+ proto.notification.UserNotificationItem.prototype.setContent = function(value) {
2162
+ return jspb.Message.setProto3StringField(this, 2, value);
2163
+ };
2164
+
2165
+
2166
+ /**
2167
+ * optional bool is_checked = 3;
2168
+ * @return {boolean}
2169
+ */
2170
+ proto.notification.UserNotificationItem.prototype.getIsChecked = function() {
2171
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2172
+ };
2173
+
2174
+
2175
+ /**
2176
+ * @param {boolean} value
2177
+ * @return {!proto.notification.UserNotificationItem} returns this
2178
+ */
2179
+ proto.notification.UserNotificationItem.prototype.setIsChecked = function(value) {
2180
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * optional string created = 4;
2186
+ * @return {string}
2187
+ */
2188
+ proto.notification.UserNotificationItem.prototype.getCreated = function() {
2189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * @param {string} value
2195
+ * @return {!proto.notification.UserNotificationItem} returns this
2196
+ */
2197
+ proto.notification.UserNotificationItem.prototype.setCreated = function(value) {
2198
+ return jspb.Message.setField(this, 4, value);
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * Clears the field making it undefined.
2204
+ * @return {!proto.notification.UserNotificationItem} returns this
2205
+ */
2206
+ proto.notification.UserNotificationItem.prototype.clearCreated = function() {
2207
+ return jspb.Message.setField(this, 4, undefined);
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * Returns whether this field is set.
2213
+ * @return {boolean}
2214
+ */
2215
+ proto.notification.UserNotificationItem.prototype.hasCreated = function() {
2216
+ return jspb.Message.getField(this, 4) != null;
2217
+ };
2218
+
2219
+
2220
+
2221
+ /**
2222
+ * List of repeated fields within this message type.
2223
+ * @private {!Array<number>}
2224
+ * @const
2225
+ */
2226
+ proto.notification.UserNotificationItemsResponse.repeatedFields_ = [1];
2227
+
2228
+
2229
+
2230
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2231
+ /**
2232
+ * Creates an object representation of this proto.
2233
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2234
+ * Optional fields that are not set will be set to undefined.
2235
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2236
+ * For the list of reserved names please see:
2237
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2238
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2239
+ * JSPB instance for transitional soy proto support:
2240
+ * http://goto/soy-param-migration
2241
+ * @return {!Object}
2242
+ */
2243
+ proto.notification.UserNotificationItemsResponse.prototype.toObject = function(opt_includeInstance) {
2244
+ return proto.notification.UserNotificationItemsResponse.toObject(opt_includeInstance, this);
2245
+ };
2246
+
2247
+
2248
+ /**
2249
+ * Static version of the {@see toObject} method.
2250
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2251
+ * the JSPB instance for transitional soy proto support:
2252
+ * http://goto/soy-param-migration
2253
+ * @param {!proto.notification.UserNotificationItemsResponse} msg The msg instance to transform.
2254
+ * @return {!Object}
2255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2256
+ */
2257
+ proto.notification.UserNotificationItemsResponse.toObject = function(includeInstance, msg) {
2258
+ var f, obj = {
2259
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2260
+ proto.notification.UserNotificationItem.toObject, includeInstance),
2261
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
2262
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
2263
+ };
2264
+
2265
+ if (includeInstance) {
2266
+ obj.$jspbMessageInstance = msg;
2267
+ }
2268
+ return obj;
2269
+ };
2270
+ }
2271
+
2272
+
2273
+ /**
2274
+ * Deserializes binary data (in protobuf wire format).
2275
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2276
+ * @return {!proto.notification.UserNotificationItemsResponse}
2277
+ */
2278
+ proto.notification.UserNotificationItemsResponse.deserializeBinary = function(bytes) {
2279
+ var reader = new jspb.BinaryReader(bytes);
2280
+ var msg = new proto.notification.UserNotificationItemsResponse;
2281
+ return proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader(msg, reader);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * Deserializes binary data (in protobuf wire format) from the
2287
+ * given reader into the given message object.
2288
+ * @param {!proto.notification.UserNotificationItemsResponse} msg The message object to deserialize into.
2289
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2290
+ * @return {!proto.notification.UserNotificationItemsResponse}
2291
+ */
2292
+ proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
2293
+ while (reader.nextField()) {
2294
+ if (reader.isEndGroup()) {
2295
+ break;
2296
+ }
2297
+ var field = reader.getFieldNumber();
2298
+ switch (field) {
2299
+ case 1:
2300
+ var value = new proto.notification.UserNotificationItem;
2301
+ reader.readMessage(value,proto.notification.UserNotificationItem.deserializeBinaryFromReader);
2302
+ msg.addItems(value);
2303
+ break;
2304
+ case 2:
2305
+ var value = /** @type {number} */ (reader.readInt32());
2306
+ msg.setTotalPages(value);
2307
+ break;
2308
+ case 3:
2309
+ var value = /** @type {number} */ (reader.readInt32());
2310
+ msg.setTotalItems(value);
2311
+ break;
2312
+ default:
2313
+ reader.skipField();
2314
+ break;
2315
+ }
2316
+ }
2317
+ return msg;
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * Serializes the message to binary data (in protobuf wire format).
2323
+ * @return {!Uint8Array}
2324
+ */
2325
+ proto.notification.UserNotificationItemsResponse.prototype.serializeBinary = function() {
2326
+ var writer = new jspb.BinaryWriter();
2327
+ proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter(this, writer);
2328
+ return writer.getResultBuffer();
2329
+ };
2330
+
2331
+
2332
+ /**
2333
+ * Serializes the given message to binary data (in protobuf wire
2334
+ * format), writing to the given BinaryWriter.
2335
+ * @param {!proto.notification.UserNotificationItemsResponse} message
2336
+ * @param {!jspb.BinaryWriter} writer
2337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2338
+ */
2339
+ proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter = function(message, writer) {
2340
+ var f = undefined;
2341
+ f = message.getItemsList();
2342
+ if (f.length > 0) {
2343
+ writer.writeRepeatedMessage(
2344
+ 1,
2345
+ f,
2346
+ proto.notification.UserNotificationItem.serializeBinaryToWriter
2347
+ );
2348
+ }
2349
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2350
+ if (f != null) {
2351
+ writer.writeInt32(
2352
+ 2,
2353
+ f
2354
+ );
2355
+ }
2356
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
2357
+ if (f != null) {
2358
+ writer.writeInt32(
2359
+ 3,
2360
+ f
2361
+ );
2362
+ }
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * repeated UserNotificationItem items = 1;
2368
+ * @return {!Array<!proto.notification.UserNotificationItem>}
2369
+ */
2370
+ proto.notification.UserNotificationItemsResponse.prototype.getItemsList = function() {
2371
+ return /** @type{!Array<!proto.notification.UserNotificationItem>} */ (
2372
+ jspb.Message.getRepeatedWrapperField(this, proto.notification.UserNotificationItem, 1));
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * @param {!Array<!proto.notification.UserNotificationItem>} value
2378
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2379
+ */
2380
+ proto.notification.UserNotificationItemsResponse.prototype.setItemsList = function(value) {
2381
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * @param {!proto.notification.UserNotificationItem=} opt_value
2387
+ * @param {number=} opt_index
2388
+ * @return {!proto.notification.UserNotificationItem}
2389
+ */
2390
+ proto.notification.UserNotificationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
2391
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.UserNotificationItem, opt_index);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Clears the list making it empty but non-null.
2397
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2398
+ */
2399
+ proto.notification.UserNotificationItemsResponse.prototype.clearItemsList = function() {
2400
+ return this.setItemsList([]);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * optional int32 total_pages = 2;
2406
+ * @return {number}
2407
+ */
2408
+ proto.notification.UserNotificationItemsResponse.prototype.getTotalPages = function() {
2409
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2410
+ };
2411
+
2412
+
2413
+ /**
2414
+ * @param {number} value
2415
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2416
+ */
2417
+ proto.notification.UserNotificationItemsResponse.prototype.setTotalPages = function(value) {
2418
+ return jspb.Message.setField(this, 2, value);
2419
+ };
2420
+
2421
+
2422
+ /**
2423
+ * Clears the field making it undefined.
2424
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2425
+ */
2426
+ proto.notification.UserNotificationItemsResponse.prototype.clearTotalPages = function() {
2427
+ return jspb.Message.setField(this, 2, undefined);
2428
+ };
2429
+
2430
+
2431
+ /**
2432
+ * Returns whether this field is set.
2433
+ * @return {boolean}
2434
+ */
2435
+ proto.notification.UserNotificationItemsResponse.prototype.hasTotalPages = function() {
2436
+ return jspb.Message.getField(this, 2) != null;
2437
+ };
2438
+
2439
+
2440
+ /**
2441
+ * optional int32 total_items = 3;
2442
+ * @return {number}
2443
+ */
2444
+ proto.notification.UserNotificationItemsResponse.prototype.getTotalItems = function() {
2445
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2446
+ };
2447
+
2448
+
2449
+ /**
2450
+ * @param {number} value
2451
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2452
+ */
2453
+ proto.notification.UserNotificationItemsResponse.prototype.setTotalItems = function(value) {
2454
+ return jspb.Message.setField(this, 3, value);
2455
+ };
2456
+
2457
+
2458
+ /**
2459
+ * Clears the field making it undefined.
2460
+ * @return {!proto.notification.UserNotificationItemsResponse} returns this
2461
+ */
2462
+ proto.notification.UserNotificationItemsResponse.prototype.clearTotalItems = function() {
2463
+ return jspb.Message.setField(this, 3, undefined);
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * Returns whether this field is set.
2469
+ * @return {boolean}
2470
+ */
2471
+ proto.notification.UserNotificationItemsResponse.prototype.hasTotalItems = function() {
2472
+ return jspb.Message.getField(this, 3) != null;
2473
+ };
2474
+
2475
+
2476
+
2477
+
2478
+
2479
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2480
+ /**
2481
+ * Creates an object representation of this proto.
2482
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2483
+ * Optional fields that are not set will be set to undefined.
2484
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2485
+ * For the list of reserved names please see:
2486
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2487
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2488
+ * JSPB instance for transitional soy proto support:
2489
+ * http://goto/soy-param-migration
2490
+ * @return {!Object}
2491
+ */
2492
+ proto.notification.NotificationItem.prototype.toObject = function(opt_includeInstance) {
2493
+ return proto.notification.NotificationItem.toObject(opt_includeInstance, this);
2494
+ };
2495
+
2496
+
2497
+ /**
2498
+ * Static version of the {@see toObject} method.
2499
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2500
+ * the JSPB instance for transitional soy proto support:
2501
+ * http://goto/soy-param-migration
2502
+ * @param {!proto.notification.NotificationItem} msg The msg instance to transform.
2503
+ * @return {!Object}
2504
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2505
+ */
2506
+ proto.notification.NotificationItem.toObject = function(includeInstance, msg) {
2507
+ var f, obj = {
2508
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2509
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
2510
+ content: jspb.Message.getFieldWithDefault(msg, 3, ""),
2511
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
2512
+ type: jspb.Message.getFieldWithDefault(msg, 5, ""),
2513
+ created: jspb.Message.getFieldWithDefault(msg, 6, "")
2514
+ };
2515
+
2516
+ if (includeInstance) {
2517
+ obj.$jspbMessageInstance = msg;
2518
+ }
2519
+ return obj;
2520
+ };
2521
+ }
2522
+
2523
+
2524
+ /**
2525
+ * Deserializes binary data (in protobuf wire format).
2526
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2527
+ * @return {!proto.notification.NotificationItem}
2528
+ */
2529
+ proto.notification.NotificationItem.deserializeBinary = function(bytes) {
2530
+ var reader = new jspb.BinaryReader(bytes);
2531
+ var msg = new proto.notification.NotificationItem;
2532
+ return proto.notification.NotificationItem.deserializeBinaryFromReader(msg, reader);
2533
+ };
2534
+
2535
+
2536
+ /**
2537
+ * Deserializes binary data (in protobuf wire format) from the
2538
+ * given reader into the given message object.
2539
+ * @param {!proto.notification.NotificationItem} msg The message object to deserialize into.
2540
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2541
+ * @return {!proto.notification.NotificationItem}
2542
+ */
2543
+ proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg, reader) {
2544
+ while (reader.nextField()) {
2545
+ if (reader.isEndGroup()) {
2546
+ break;
2547
+ }
2548
+ var field = reader.getFieldNumber();
2549
+ switch (field) {
2550
+ case 1:
2551
+ var value = /** @type {number} */ (reader.readInt32());
2552
+ msg.setId(value);
2553
+ break;
2554
+ case 2:
2555
+ var value = /** @type {string} */ (reader.readString());
2556
+ msg.setTitle(value);
2557
+ break;
2558
+ case 3:
2559
+ var value = /** @type {string} */ (reader.readString());
2560
+ msg.setContent(value);
2561
+ break;
2562
+ case 4:
2563
+ var value = /** @type {boolean} */ (reader.readBool());
2564
+ msg.setIsActive(value);
2565
+ break;
2566
+ case 5:
2567
+ var value = /** @type {string} */ (reader.readString());
2568
+ msg.setType(value);
2569
+ break;
2570
+ case 6:
2571
+ var value = /** @type {string} */ (reader.readString());
2572
+ msg.setCreated(value);
2573
+ break;
2574
+ default:
2575
+ reader.skipField();
2576
+ break;
2577
+ }
2578
+ }
2579
+ return msg;
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Serializes the message to binary data (in protobuf wire format).
2585
+ * @return {!Uint8Array}
2586
+ */
2587
+ proto.notification.NotificationItem.prototype.serializeBinary = function() {
2588
+ var writer = new jspb.BinaryWriter();
2589
+ proto.notification.NotificationItem.serializeBinaryToWriter(this, writer);
2590
+ return writer.getResultBuffer();
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * Serializes the given message to binary data (in protobuf wire
2596
+ * format), writing to the given BinaryWriter.
2597
+ * @param {!proto.notification.NotificationItem} message
2598
+ * @param {!jspb.BinaryWriter} writer
2599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2600
+ */
2601
+ proto.notification.NotificationItem.serializeBinaryToWriter = function(message, writer) {
2602
+ var f = undefined;
2603
+ f = message.getId();
2604
+ if (f !== 0) {
2605
+ writer.writeInt32(
2606
+ 1,
2607
+ f
2608
+ );
2609
+ }
2610
+ f = message.getTitle();
2611
+ if (f.length > 0) {
2612
+ writer.writeString(
2613
+ 2,
2614
+ f
2615
+ );
2616
+ }
2617
+ f = message.getContent();
2618
+ if (f.length > 0) {
2619
+ writer.writeString(
2620
+ 3,
2621
+ f
2622
+ );
2623
+ }
2624
+ f = message.getIsActive();
2625
+ if (f) {
2626
+ writer.writeBool(
2627
+ 4,
2628
+ f
2629
+ );
2630
+ }
2631
+ f = message.getType();
2632
+ if (f.length > 0) {
2633
+ writer.writeString(
2634
+ 5,
2635
+ f
2636
+ );
2637
+ }
2638
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
2639
+ if (f != null) {
2640
+ writer.writeString(
2641
+ 6,
2642
+ f
2643
+ );
2644
+ }
2645
+ };
2646
+
2647
+
2648
+ /**
2649
+ * optional int32 id = 1;
2650
+ * @return {number}
2651
+ */
2652
+ proto.notification.NotificationItem.prototype.getId = function() {
2653
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2654
+ };
2655
+
2656
+
2657
+ /**
2658
+ * @param {number} value
2659
+ * @return {!proto.notification.NotificationItem} returns this
2660
+ */
2661
+ proto.notification.NotificationItem.prototype.setId = function(value) {
2662
+ return jspb.Message.setProto3IntField(this, 1, value);
2663
+ };
2664
+
2665
+
2666
+ /**
2667
+ * optional string title = 2;
2668
+ * @return {string}
2669
+ */
2670
+ proto.notification.NotificationItem.prototype.getTitle = function() {
2671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2672
+ };
2673
+
2674
+
2675
+ /**
2676
+ * @param {string} value
2677
+ * @return {!proto.notification.NotificationItem} returns this
2678
+ */
2679
+ proto.notification.NotificationItem.prototype.setTitle = function(value) {
2680
+ return jspb.Message.setProto3StringField(this, 2, value);
2681
+ };
2682
+
2683
+
2684
+ /**
2685
+ * optional string content = 3;
2686
+ * @return {string}
2687
+ */
2688
+ proto.notification.NotificationItem.prototype.getContent = function() {
2689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * @param {string} value
2695
+ * @return {!proto.notification.NotificationItem} returns this
2696
+ */
2697
+ proto.notification.NotificationItem.prototype.setContent = function(value) {
2698
+ return jspb.Message.setProto3StringField(this, 3, value);
2699
+ };
2700
+
2701
+
2702
+ /**
2703
+ * optional bool is_active = 4;
2704
+ * @return {boolean}
2705
+ */
2706
+ proto.notification.NotificationItem.prototype.getIsActive = function() {
2707
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * @param {boolean} value
2713
+ * @return {!proto.notification.NotificationItem} returns this
2714
+ */
2715
+ proto.notification.NotificationItem.prototype.setIsActive = function(value) {
2716
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2717
+ };
2718
+
2719
+
2720
+ /**
2721
+ * optional string type = 5;
2722
+ * @return {string}
2723
+ */
2724
+ proto.notification.NotificationItem.prototype.getType = function() {
2725
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2726
+ };
2727
+
2728
+
2729
+ /**
2730
+ * @param {string} value
2731
+ * @return {!proto.notification.NotificationItem} returns this
2732
+ */
2733
+ proto.notification.NotificationItem.prototype.setType = function(value) {
2734
+ return jspb.Message.setProto3StringField(this, 5, value);
2735
+ };
2736
+
2737
+
2738
+ /**
2739
+ * optional string created = 6;
2740
+ * @return {string}
2741
+ */
2742
+ proto.notification.NotificationItem.prototype.getCreated = function() {
2743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2744
+ };
2745
+
2746
+
2747
+ /**
2748
+ * @param {string} value
2749
+ * @return {!proto.notification.NotificationItem} returns this
2750
+ */
2751
+ proto.notification.NotificationItem.prototype.setCreated = function(value) {
2752
+ return jspb.Message.setField(this, 6, value);
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * Clears the field making it undefined.
2758
+ * @return {!proto.notification.NotificationItem} returns this
2759
+ */
2760
+ proto.notification.NotificationItem.prototype.clearCreated = function() {
2761
+ return jspb.Message.setField(this, 6, undefined);
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * Returns whether this field is set.
2767
+ * @return {boolean}
2768
+ */
2769
+ proto.notification.NotificationItem.prototype.hasCreated = function() {
2770
+ return jspb.Message.getField(this, 6) != null;
2771
+ };
2772
+
2773
+
2774
+
2775
+ /**
2776
+ * List of repeated fields within this message type.
2777
+ * @private {!Array<number>}
2778
+ * @const
2779
+ */
2780
+ proto.notification.NotificationItemsResponse.repeatedFields_ = [1];
2781
+
2782
+
2783
+
2784
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2785
+ /**
2786
+ * Creates an object representation of this proto.
2787
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2788
+ * Optional fields that are not set will be set to undefined.
2789
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2790
+ * For the list of reserved names please see:
2791
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2792
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2793
+ * JSPB instance for transitional soy proto support:
2794
+ * http://goto/soy-param-migration
2795
+ * @return {!Object}
2796
+ */
2797
+ proto.notification.NotificationItemsResponse.prototype.toObject = function(opt_includeInstance) {
2798
+ return proto.notification.NotificationItemsResponse.toObject(opt_includeInstance, this);
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Static version of the {@see toObject} method.
2804
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2805
+ * the JSPB instance for transitional soy proto support:
2806
+ * http://goto/soy-param-migration
2807
+ * @param {!proto.notification.NotificationItemsResponse} msg The msg instance to transform.
2808
+ * @return {!Object}
2809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2810
+ */
2811
+ proto.notification.NotificationItemsResponse.toObject = function(includeInstance, msg) {
2812
+ var f, obj = {
2813
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2814
+ proto.notification.NotificationItem.toObject, includeInstance),
2815
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
2816
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
2817
+ };
2818
+
2819
+ if (includeInstance) {
2820
+ obj.$jspbMessageInstance = msg;
2821
+ }
2822
+ return obj;
2823
+ };
2824
+ }
2825
+
2826
+
2827
+ /**
2828
+ * Deserializes binary data (in protobuf wire format).
2829
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2830
+ * @return {!proto.notification.NotificationItemsResponse}
2831
+ */
2832
+ proto.notification.NotificationItemsResponse.deserializeBinary = function(bytes) {
2833
+ var reader = new jspb.BinaryReader(bytes);
2834
+ var msg = new proto.notification.NotificationItemsResponse;
2835
+ return proto.notification.NotificationItemsResponse.deserializeBinaryFromReader(msg, reader);
2836
+ };
2837
+
2838
+
2839
+ /**
2840
+ * Deserializes binary data (in protobuf wire format) from the
2841
+ * given reader into the given message object.
2842
+ * @param {!proto.notification.NotificationItemsResponse} msg The message object to deserialize into.
2843
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2844
+ * @return {!proto.notification.NotificationItemsResponse}
2845
+ */
2846
+ proto.notification.NotificationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
2847
+ while (reader.nextField()) {
2848
+ if (reader.isEndGroup()) {
2849
+ break;
2850
+ }
2851
+ var field = reader.getFieldNumber();
2852
+ switch (field) {
2853
+ case 1:
2854
+ var value = new proto.notification.NotificationItem;
2855
+ reader.readMessage(value,proto.notification.NotificationItem.deserializeBinaryFromReader);
2856
+ msg.addItems(value);
2857
+ break;
2858
+ case 2:
2859
+ var value = /** @type {number} */ (reader.readInt32());
2860
+ msg.setTotalPages(value);
2861
+ break;
2862
+ case 3:
2863
+ var value = /** @type {number} */ (reader.readInt32());
2864
+ msg.setTotalItems(value);
2865
+ break;
2866
+ default:
2867
+ reader.skipField();
2868
+ break;
2869
+ }
2870
+ }
2871
+ return msg;
2872
+ };
2873
+
2874
+
2875
+ /**
2876
+ * Serializes the message to binary data (in protobuf wire format).
2877
+ * @return {!Uint8Array}
2878
+ */
2879
+ proto.notification.NotificationItemsResponse.prototype.serializeBinary = function() {
2880
+ var writer = new jspb.BinaryWriter();
2881
+ proto.notification.NotificationItemsResponse.serializeBinaryToWriter(this, writer);
2882
+ return writer.getResultBuffer();
2883
+ };
2884
+
2885
+
2886
+ /**
2887
+ * Serializes the given message to binary data (in protobuf wire
2888
+ * format), writing to the given BinaryWriter.
2889
+ * @param {!proto.notification.NotificationItemsResponse} message
2890
+ * @param {!jspb.BinaryWriter} writer
2891
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2892
+ */
2893
+ proto.notification.NotificationItemsResponse.serializeBinaryToWriter = function(message, writer) {
2894
+ var f = undefined;
2895
+ f = message.getItemsList();
2896
+ if (f.length > 0) {
2897
+ writer.writeRepeatedMessage(
2898
+ 1,
2899
+ f,
2900
+ proto.notification.NotificationItem.serializeBinaryToWriter
2901
+ );
2902
+ }
2903
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2904
+ if (f != null) {
2905
+ writer.writeInt32(
2906
+ 2,
2907
+ f
2908
+ );
2909
+ }
2910
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
2911
+ if (f != null) {
2912
+ writer.writeInt32(
2913
+ 3,
2914
+ f
2915
+ );
2916
+ }
2917
+ };
2918
+
2919
+
2920
+ /**
2921
+ * repeated NotificationItem items = 1;
2922
+ * @return {!Array<!proto.notification.NotificationItem>}
2923
+ */
2924
+ proto.notification.NotificationItemsResponse.prototype.getItemsList = function() {
2925
+ return /** @type{!Array<!proto.notification.NotificationItem>} */ (
2926
+ jspb.Message.getRepeatedWrapperField(this, proto.notification.NotificationItem, 1));
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * @param {!Array<!proto.notification.NotificationItem>} value
2932
+ * @return {!proto.notification.NotificationItemsResponse} returns this
2933
+ */
2934
+ proto.notification.NotificationItemsResponse.prototype.setItemsList = function(value) {
2935
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * @param {!proto.notification.NotificationItem=} opt_value
2941
+ * @param {number=} opt_index
2942
+ * @return {!proto.notification.NotificationItem}
2943
+ */
2944
+ proto.notification.NotificationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
2945
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.NotificationItem, opt_index);
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Clears the list making it empty but non-null.
2951
+ * @return {!proto.notification.NotificationItemsResponse} returns this
2952
+ */
2953
+ proto.notification.NotificationItemsResponse.prototype.clearItemsList = function() {
2954
+ return this.setItemsList([]);
2955
+ };
2956
+
2957
+
2958
+ /**
2959
+ * optional int32 total_pages = 2;
2960
+ * @return {number}
2961
+ */
2962
+ proto.notification.NotificationItemsResponse.prototype.getTotalPages = function() {
2963
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * @param {number} value
2969
+ * @return {!proto.notification.NotificationItemsResponse} returns this
2970
+ */
2971
+ proto.notification.NotificationItemsResponse.prototype.setTotalPages = function(value) {
2972
+ return jspb.Message.setField(this, 2, value);
2973
+ };
2974
+
2975
+
2976
+ /**
2977
+ * Clears the field making it undefined.
2978
+ * @return {!proto.notification.NotificationItemsResponse} returns this
2979
+ */
2980
+ proto.notification.NotificationItemsResponse.prototype.clearTotalPages = function() {
2981
+ return jspb.Message.setField(this, 2, undefined);
2982
+ };
2983
+
2984
+
2985
+ /**
2986
+ * Returns whether this field is set.
2987
+ * @return {boolean}
2988
+ */
2989
+ proto.notification.NotificationItemsResponse.prototype.hasTotalPages = function() {
2990
+ return jspb.Message.getField(this, 2) != null;
2991
+ };
2992
+
2993
+
2994
+ /**
2995
+ * optional int32 total_items = 3;
2996
+ * @return {number}
2997
+ */
2998
+ proto.notification.NotificationItemsResponse.prototype.getTotalItems = function() {
2999
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3000
+ };
3001
+
3002
+
3003
+ /**
3004
+ * @param {number} value
3005
+ * @return {!proto.notification.NotificationItemsResponse} returns this
3006
+ */
3007
+ proto.notification.NotificationItemsResponse.prototype.setTotalItems = function(value) {
3008
+ return jspb.Message.setField(this, 3, value);
3009
+ };
3010
+
3011
+
3012
+ /**
3013
+ * Clears the field making it undefined.
3014
+ * @return {!proto.notification.NotificationItemsResponse} returns this
3015
+ */
3016
+ proto.notification.NotificationItemsResponse.prototype.clearTotalItems = function() {
3017
+ return jspb.Message.setField(this, 3, undefined);
3018
+ };
3019
+
3020
+
3021
+ /**
3022
+ * Returns whether this field is set.
3023
+ * @return {boolean}
3024
+ */
3025
+ proto.notification.NotificationItemsResponse.prototype.hasTotalItems = function() {
3026
+ return jspb.Message.getField(this, 3) != null;
3027
+ };
3028
+
3029
+
1547
3030
  goog.object.extend(exports, proto.notification);