protobuf-platform 1.2.367 → 1.2.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bonus/bonus.proto +3 -0
- package/bonus/bonus_pb.js +146 -2
- package/notification/notification.proto +50 -5
- package/notification/notification_grpc_pb.js +101 -2
- package/notification/notification_pb.js +2697 -834
- package/package.json +1 -1
- package/payment/payment.proto +9 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +382 -0
|
@@ -28,6 +28,7 @@ goog.exportSymbol('proto.notification.GetFileRequest', null, global);
|
|
|
28
28
|
goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.notification.GetMailTemplateTranslationRequest', null, global);
|
|
30
30
|
goog.exportSymbol('proto.notification.GetNotificationRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.notification.GetNotificationTranslationRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.notification.ItemsBunchRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.notification.MailTemplateChunk', null, global);
|
|
33
34
|
goog.exportSymbol('proto.notification.MailTemplateChunk.DataOrFileCase', null, global);
|
|
@@ -41,11 +42,16 @@ goog.exportSymbol('proto.notification.MailTemplateTranslationRequest', null, glo
|
|
|
41
42
|
goog.exportSymbol('proto.notification.MailTemplateTranslationResponse', null, global);
|
|
42
43
|
goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
|
|
43
44
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
45
|
+
goog.exportSymbol('proto.notification.NotificationItemRequest', null, global);
|
|
44
46
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
45
47
|
goog.exportSymbol('proto.notification.NotificationRequest', null, global);
|
|
48
|
+
goog.exportSymbol('proto.notification.NotificationRequest.RequestCase', null, global);
|
|
46
49
|
goog.exportSymbol('proto.notification.NotificationResponse', null, global);
|
|
47
50
|
goog.exportSymbol('proto.notification.NotificationSearchRequest', null, global);
|
|
48
51
|
goog.exportSymbol('proto.notification.NotificationStatusResponse', null, global);
|
|
52
|
+
goog.exportSymbol('proto.notification.NotificationStringListResponse', null, global);
|
|
53
|
+
goog.exportSymbol('proto.notification.NotificationTranslationRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.notification.NotificationTranslationResponse', null, global);
|
|
49
55
|
goog.exportSymbol('proto.notification.PaginationRequest', null, global);
|
|
50
56
|
goog.exportSymbol('proto.notification.PingRequest', null, global);
|
|
51
57
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
|
@@ -233,9 +239,30 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
233
239
|
* @extends {jspb.Message}
|
|
234
240
|
* @constructor
|
|
235
241
|
*/
|
|
236
|
-
proto.notification.
|
|
242
|
+
proto.notification.NotificationItemRequest = function(opt_data) {
|
|
237
243
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
238
244
|
};
|
|
245
|
+
goog.inherits(proto.notification.NotificationItemRequest, jspb.Message);
|
|
246
|
+
if (goog.DEBUG && !COMPILED) {
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
* @override
|
|
250
|
+
*/
|
|
251
|
+
proto.notification.NotificationItemRequest.displayName = 'proto.notification.NotificationItemRequest';
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Generated by JsPbCodeGenerator.
|
|
255
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
256
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
257
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
258
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
259
|
+
* valid.
|
|
260
|
+
* @extends {jspb.Message}
|
|
261
|
+
* @constructor
|
|
262
|
+
*/
|
|
263
|
+
proto.notification.NotificationRequest = function(opt_data) {
|
|
264
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.notification.NotificationRequest.oneofGroups_);
|
|
265
|
+
};
|
|
239
266
|
goog.inherits(proto.notification.NotificationRequest, jspb.Message);
|
|
240
267
|
if (goog.DEBUG && !COMPILED) {
|
|
241
268
|
/**
|
|
@@ -412,6 +439,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
412
439
|
*/
|
|
413
440
|
proto.notification.NotificationItemsResponse.displayName = 'proto.notification.NotificationItemsResponse';
|
|
414
441
|
}
|
|
442
|
+
/**
|
|
443
|
+
* Generated by JsPbCodeGenerator.
|
|
444
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
445
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
446
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
447
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
448
|
+
* valid.
|
|
449
|
+
* @extends {jspb.Message}
|
|
450
|
+
* @constructor
|
|
451
|
+
*/
|
|
452
|
+
proto.notification.NotificationTranslationRequest = function(opt_data) {
|
|
453
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
454
|
+
};
|
|
455
|
+
goog.inherits(proto.notification.NotificationTranslationRequest, jspb.Message);
|
|
456
|
+
if (goog.DEBUG && !COMPILED) {
|
|
457
|
+
/**
|
|
458
|
+
* @public
|
|
459
|
+
* @override
|
|
460
|
+
*/
|
|
461
|
+
proto.notification.NotificationTranslationRequest.displayName = 'proto.notification.NotificationTranslationRequest';
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Generated by JsPbCodeGenerator.
|
|
465
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
466
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
467
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
468
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
469
|
+
* valid.
|
|
470
|
+
* @extends {jspb.Message}
|
|
471
|
+
* @constructor
|
|
472
|
+
*/
|
|
473
|
+
proto.notification.GetNotificationTranslationRequest = function(opt_data) {
|
|
474
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
475
|
+
};
|
|
476
|
+
goog.inherits(proto.notification.GetNotificationTranslationRequest, jspb.Message);
|
|
477
|
+
if (goog.DEBUG && !COMPILED) {
|
|
478
|
+
/**
|
|
479
|
+
* @public
|
|
480
|
+
* @override
|
|
481
|
+
*/
|
|
482
|
+
proto.notification.GetNotificationTranslationRequest.displayName = 'proto.notification.GetNotificationTranslationRequest';
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Generated by JsPbCodeGenerator.
|
|
486
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
487
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
488
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
489
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
490
|
+
* valid.
|
|
491
|
+
* @extends {jspb.Message}
|
|
492
|
+
* @constructor
|
|
493
|
+
*/
|
|
494
|
+
proto.notification.NotificationTranslationResponse = function(opt_data) {
|
|
495
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
496
|
+
};
|
|
497
|
+
goog.inherits(proto.notification.NotificationTranslationResponse, jspb.Message);
|
|
498
|
+
if (goog.DEBUG && !COMPILED) {
|
|
499
|
+
/**
|
|
500
|
+
* @public
|
|
501
|
+
* @override
|
|
502
|
+
*/
|
|
503
|
+
proto.notification.NotificationTranslationResponse.displayName = 'proto.notification.NotificationTranslationResponse';
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Generated by JsPbCodeGenerator.
|
|
507
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
508
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
509
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
510
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
511
|
+
* valid.
|
|
512
|
+
* @extends {jspb.Message}
|
|
513
|
+
* @constructor
|
|
514
|
+
*/
|
|
515
|
+
proto.notification.NotificationStringListResponse = function(opt_data) {
|
|
516
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.NotificationStringListResponse.repeatedFields_, null);
|
|
517
|
+
};
|
|
518
|
+
goog.inherits(proto.notification.NotificationStringListResponse, jspb.Message);
|
|
519
|
+
if (goog.DEBUG && !COMPILED) {
|
|
520
|
+
/**
|
|
521
|
+
* @public
|
|
522
|
+
* @override
|
|
523
|
+
*/
|
|
524
|
+
proto.notification.NotificationStringListResponse.displayName = 'proto.notification.NotificationStringListResponse';
|
|
525
|
+
}
|
|
415
526
|
/**
|
|
416
527
|
* Generated by JsPbCodeGenerator.
|
|
417
528
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1413,7 +1524,10 @@ proto.notification.NotificationSearchRequest.toObject = function(includeInstance
|
|
|
1413
1524
|
notificationTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1414
1525
|
notificationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
1415
1526
|
type: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1416
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
1527
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
1528
|
+
category: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1529
|
+
trigger: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1530
|
+
search: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
1417
1531
|
};
|
|
1418
1532
|
|
|
1419
1533
|
if (includeInstance) {
|
|
@@ -1476,6 +1590,18 @@ proto.notification.NotificationSearchRequest.deserializeBinaryFromReader = funct
|
|
|
1476
1590
|
var value = /** @type {number} */ (reader.readInt32());
|
|
1477
1591
|
msg.setIsActive(value);
|
|
1478
1592
|
break;
|
|
1593
|
+
case 7:
|
|
1594
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1595
|
+
msg.setCategory(value);
|
|
1596
|
+
break;
|
|
1597
|
+
case 8:
|
|
1598
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1599
|
+
msg.setTrigger(value);
|
|
1600
|
+
break;
|
|
1601
|
+
case 9:
|
|
1602
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1603
|
+
msg.setSearch(value);
|
|
1604
|
+
break;
|
|
1479
1605
|
default:
|
|
1480
1606
|
reader.skipField();
|
|
1481
1607
|
break;
|
|
@@ -1547,6 +1673,27 @@ proto.notification.NotificationSearchRequest.serializeBinaryToWriter = function(
|
|
|
1547
1673
|
f
|
|
1548
1674
|
);
|
|
1549
1675
|
}
|
|
1676
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
1677
|
+
if (f != null) {
|
|
1678
|
+
writer.writeString(
|
|
1679
|
+
7,
|
|
1680
|
+
f
|
|
1681
|
+
);
|
|
1682
|
+
}
|
|
1683
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
1684
|
+
if (f != null) {
|
|
1685
|
+
writer.writeString(
|
|
1686
|
+
8,
|
|
1687
|
+
f
|
|
1688
|
+
);
|
|
1689
|
+
}
|
|
1690
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
1691
|
+
if (f != null) {
|
|
1692
|
+
writer.writeString(
|
|
1693
|
+
9,
|
|
1694
|
+
f
|
|
1695
|
+
);
|
|
1696
|
+
}
|
|
1550
1697
|
};
|
|
1551
1698
|
|
|
1552
1699
|
|
|
@@ -1767,6 +1914,114 @@ proto.notification.NotificationSearchRequest.prototype.hasIsActive = function()
|
|
|
1767
1914
|
};
|
|
1768
1915
|
|
|
1769
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* optional string category = 7;
|
|
1919
|
+
* @return {string}
|
|
1920
|
+
*/
|
|
1921
|
+
proto.notification.NotificationSearchRequest.prototype.getCategory = function() {
|
|
1922
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1923
|
+
};
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* @param {string} value
|
|
1928
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
1929
|
+
*/
|
|
1930
|
+
proto.notification.NotificationSearchRequest.prototype.setCategory = function(value) {
|
|
1931
|
+
return jspb.Message.setField(this, 7, value);
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Clears the field making it undefined.
|
|
1937
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
1938
|
+
*/
|
|
1939
|
+
proto.notification.NotificationSearchRequest.prototype.clearCategory = function() {
|
|
1940
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Returns whether this field is set.
|
|
1946
|
+
* @return {boolean}
|
|
1947
|
+
*/
|
|
1948
|
+
proto.notification.NotificationSearchRequest.prototype.hasCategory = function() {
|
|
1949
|
+
return jspb.Message.getField(this, 7) != null;
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* optional string trigger = 8;
|
|
1955
|
+
* @return {string}
|
|
1956
|
+
*/
|
|
1957
|
+
proto.notification.NotificationSearchRequest.prototype.getTrigger = function() {
|
|
1958
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1959
|
+
};
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* @param {string} value
|
|
1964
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
1965
|
+
*/
|
|
1966
|
+
proto.notification.NotificationSearchRequest.prototype.setTrigger = function(value) {
|
|
1967
|
+
return jspb.Message.setField(this, 8, value);
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Clears the field making it undefined.
|
|
1973
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
1974
|
+
*/
|
|
1975
|
+
proto.notification.NotificationSearchRequest.prototype.clearTrigger = function() {
|
|
1976
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
1977
|
+
};
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* Returns whether this field is set.
|
|
1982
|
+
* @return {boolean}
|
|
1983
|
+
*/
|
|
1984
|
+
proto.notification.NotificationSearchRequest.prototype.hasTrigger = function() {
|
|
1985
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* optional string search = 9;
|
|
1991
|
+
* @return {string}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.notification.NotificationSearchRequest.prototype.getSearch = function() {
|
|
1994
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* @param {string} value
|
|
2000
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
2001
|
+
*/
|
|
2002
|
+
proto.notification.NotificationSearchRequest.prototype.setSearch = function(value) {
|
|
2003
|
+
return jspb.Message.setField(this, 9, value);
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Clears the field making it undefined.
|
|
2009
|
+
* @return {!proto.notification.NotificationSearchRequest} returns this
|
|
2010
|
+
*/
|
|
2011
|
+
proto.notification.NotificationSearchRequest.prototype.clearSearch = function() {
|
|
2012
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* Returns whether this field is set.
|
|
2018
|
+
* @return {boolean}
|
|
2019
|
+
*/
|
|
2020
|
+
proto.notification.NotificationSearchRequest.prototype.hasSearch = function() {
|
|
2021
|
+
return jspb.Message.getField(this, 9) != null;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
|
|
1770
2025
|
|
|
1771
2026
|
|
|
1772
2027
|
|
|
@@ -2279,7 +2534,8 @@ proto.notification.File.prototype.toObject = function(opt_includeInstance) {
|
|
|
2279
2534
|
*/
|
|
2280
2535
|
proto.notification.File.toObject = function(includeInstance, msg) {
|
|
2281
2536
|
var f, obj = {
|
|
2282
|
-
media: msg.getMedia_asB64()
|
|
2537
|
+
media: msg.getMedia_asB64(),
|
|
2538
|
+
fileRole: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2283
2539
|
};
|
|
2284
2540
|
|
|
2285
2541
|
if (includeInstance) {
|
|
@@ -2320,6 +2576,10 @@ proto.notification.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2320
2576
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2321
2577
|
msg.setMedia(value);
|
|
2322
2578
|
break;
|
|
2579
|
+
case 2:
|
|
2580
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2581
|
+
msg.setFileRole(value);
|
|
2582
|
+
break;
|
|
2323
2583
|
default:
|
|
2324
2584
|
reader.skipField();
|
|
2325
2585
|
break;
|
|
@@ -2356,6 +2616,13 @@ proto.notification.File.serializeBinaryToWriter = function(message, writer) {
|
|
|
2356
2616
|
f
|
|
2357
2617
|
);
|
|
2358
2618
|
}
|
|
2619
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2620
|
+
if (f != null) {
|
|
2621
|
+
writer.writeString(
|
|
2622
|
+
2,
|
|
2623
|
+
f
|
|
2624
|
+
);
|
|
2625
|
+
}
|
|
2359
2626
|
};
|
|
2360
2627
|
|
|
2361
2628
|
|
|
@@ -2401,6 +2668,42 @@ proto.notification.File.prototype.setMedia = function(value) {
|
|
|
2401
2668
|
};
|
|
2402
2669
|
|
|
2403
2670
|
|
|
2671
|
+
/**
|
|
2672
|
+
* optional string file_role = 2;
|
|
2673
|
+
* @return {string}
|
|
2674
|
+
*/
|
|
2675
|
+
proto.notification.File.prototype.getFileRole = function() {
|
|
2676
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* @param {string} value
|
|
2682
|
+
* @return {!proto.notification.File} returns this
|
|
2683
|
+
*/
|
|
2684
|
+
proto.notification.File.prototype.setFileRole = function(value) {
|
|
2685
|
+
return jspb.Message.setField(this, 2, value);
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* Clears the field making it undefined.
|
|
2691
|
+
* @return {!proto.notification.File} returns this
|
|
2692
|
+
*/
|
|
2693
|
+
proto.notification.File.prototype.clearFileRole = function() {
|
|
2694
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* Returns whether this field is set.
|
|
2700
|
+
* @return {boolean}
|
|
2701
|
+
*/
|
|
2702
|
+
proto.notification.File.prototype.hasFileRole = function() {
|
|
2703
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
|
|
2404
2707
|
|
|
2405
2708
|
|
|
2406
2709
|
|
|
@@ -2577,8 +2880,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2577
2880
|
* http://goto/soy-param-migration
|
|
2578
2881
|
* @return {!Object}
|
|
2579
2882
|
*/
|
|
2580
|
-
proto.notification.
|
|
2581
|
-
return proto.notification.
|
|
2883
|
+
proto.notification.NotificationItemRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2884
|
+
return proto.notification.NotificationItemRequest.toObject(opt_includeInstance, this);
|
|
2582
2885
|
};
|
|
2583
2886
|
|
|
2584
2887
|
|
|
@@ -2587,18 +2890,21 @@ proto.notification.NotificationRequest.prototype.toObject = function(opt_include
|
|
|
2587
2890
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2588
2891
|
* the JSPB instance for transitional soy proto support:
|
|
2589
2892
|
* http://goto/soy-param-migration
|
|
2590
|
-
* @param {!proto.notification.
|
|
2893
|
+
* @param {!proto.notification.NotificationItemRequest} msg The msg instance to transform.
|
|
2591
2894
|
* @return {!Object}
|
|
2592
2895
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2593
2896
|
*/
|
|
2594
|
-
proto.notification.
|
|
2897
|
+
proto.notification.NotificationItemRequest.toObject = function(includeInstance, msg) {
|
|
2595
2898
|
var f, obj = {
|
|
2596
2899
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2597
2900
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2598
2901
|
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2599
2902
|
type: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2600
2903
|
trigger: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2601
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
2904
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2905
|
+
category: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2906
|
+
desktopImage: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2907
|
+
mobileImage: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
2602
2908
|
};
|
|
2603
2909
|
|
|
2604
2910
|
if (includeInstance) {
|
|
@@ -2612,23 +2918,23 @@ proto.notification.NotificationRequest.toObject = function(includeInstance, msg)
|
|
|
2612
2918
|
/**
|
|
2613
2919
|
* Deserializes binary data (in protobuf wire format).
|
|
2614
2920
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2615
|
-
* @return {!proto.notification.
|
|
2921
|
+
* @return {!proto.notification.NotificationItemRequest}
|
|
2616
2922
|
*/
|
|
2617
|
-
proto.notification.
|
|
2923
|
+
proto.notification.NotificationItemRequest.deserializeBinary = function(bytes) {
|
|
2618
2924
|
var reader = new jspb.BinaryReader(bytes);
|
|
2619
|
-
var msg = new proto.notification.
|
|
2620
|
-
return proto.notification.
|
|
2925
|
+
var msg = new proto.notification.NotificationItemRequest;
|
|
2926
|
+
return proto.notification.NotificationItemRequest.deserializeBinaryFromReader(msg, reader);
|
|
2621
2927
|
};
|
|
2622
2928
|
|
|
2623
2929
|
|
|
2624
2930
|
/**
|
|
2625
2931
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2626
2932
|
* given reader into the given message object.
|
|
2627
|
-
* @param {!proto.notification.
|
|
2933
|
+
* @param {!proto.notification.NotificationItemRequest} msg The message object to deserialize into.
|
|
2628
2934
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2629
|
-
* @return {!proto.notification.
|
|
2935
|
+
* @return {!proto.notification.NotificationItemRequest}
|
|
2630
2936
|
*/
|
|
2631
|
-
proto.notification.
|
|
2937
|
+
proto.notification.NotificationItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2632
2938
|
while (reader.nextField()) {
|
|
2633
2939
|
if (reader.isEndGroup()) {
|
|
2634
2940
|
break;
|
|
@@ -2659,6 +2965,18 @@ proto.notification.NotificationRequest.deserializeBinaryFromReader = function(ms
|
|
|
2659
2965
|
var value = /** @type {number} */ (reader.readInt32());
|
|
2660
2966
|
msg.setIsActive(value);
|
|
2661
2967
|
break;
|
|
2968
|
+
case 7:
|
|
2969
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2970
|
+
msg.setCategory(value);
|
|
2971
|
+
break;
|
|
2972
|
+
case 8:
|
|
2973
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2974
|
+
msg.setDesktopImage(value);
|
|
2975
|
+
break;
|
|
2976
|
+
case 9:
|
|
2977
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2978
|
+
msg.setMobileImage(value);
|
|
2979
|
+
break;
|
|
2662
2980
|
default:
|
|
2663
2981
|
reader.skipField();
|
|
2664
2982
|
break;
|
|
@@ -2672,9 +2990,9 @@ proto.notification.NotificationRequest.deserializeBinaryFromReader = function(ms
|
|
|
2672
2990
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2673
2991
|
* @return {!Uint8Array}
|
|
2674
2992
|
*/
|
|
2675
|
-
proto.notification.
|
|
2993
|
+
proto.notification.NotificationItemRequest.prototype.serializeBinary = function() {
|
|
2676
2994
|
var writer = new jspb.BinaryWriter();
|
|
2677
|
-
proto.notification.
|
|
2995
|
+
proto.notification.NotificationItemRequest.serializeBinaryToWriter(this, writer);
|
|
2678
2996
|
return writer.getResultBuffer();
|
|
2679
2997
|
};
|
|
2680
2998
|
|
|
@@ -2682,11 +3000,11 @@ proto.notification.NotificationRequest.prototype.serializeBinary = function() {
|
|
|
2682
3000
|
/**
|
|
2683
3001
|
* Serializes the given message to binary data (in protobuf wire
|
|
2684
3002
|
* format), writing to the given BinaryWriter.
|
|
2685
|
-
* @param {!proto.notification.
|
|
3003
|
+
* @param {!proto.notification.NotificationItemRequest} message
|
|
2686
3004
|
* @param {!jspb.BinaryWriter} writer
|
|
2687
3005
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2688
3006
|
*/
|
|
2689
|
-
proto.notification.
|
|
3007
|
+
proto.notification.NotificationItemRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2690
3008
|
var f = undefined;
|
|
2691
3009
|
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
2692
3010
|
if (f != null) {
|
|
@@ -2730,6 +3048,27 @@ proto.notification.NotificationRequest.serializeBinaryToWriter = function(messag
|
|
|
2730
3048
|
f
|
|
2731
3049
|
);
|
|
2732
3050
|
}
|
|
3051
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
3052
|
+
if (f != null) {
|
|
3053
|
+
writer.writeString(
|
|
3054
|
+
7,
|
|
3055
|
+
f
|
|
3056
|
+
);
|
|
3057
|
+
}
|
|
3058
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
3059
|
+
if (f != null) {
|
|
3060
|
+
writer.writeString(
|
|
3061
|
+
8,
|
|
3062
|
+
f
|
|
3063
|
+
);
|
|
3064
|
+
}
|
|
3065
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
3066
|
+
if (f != null) {
|
|
3067
|
+
writer.writeString(
|
|
3068
|
+
9,
|
|
3069
|
+
f
|
|
3070
|
+
);
|
|
3071
|
+
}
|
|
2733
3072
|
};
|
|
2734
3073
|
|
|
2735
3074
|
|
|
@@ -2737,25 +3076,25 @@ proto.notification.NotificationRequest.serializeBinaryToWriter = function(messag
|
|
|
2737
3076
|
* optional int32 id = 1;
|
|
2738
3077
|
* @return {number}
|
|
2739
3078
|
*/
|
|
2740
|
-
proto.notification.
|
|
3079
|
+
proto.notification.NotificationItemRequest.prototype.getId = function() {
|
|
2741
3080
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2742
3081
|
};
|
|
2743
3082
|
|
|
2744
3083
|
|
|
2745
3084
|
/**
|
|
2746
3085
|
* @param {number} value
|
|
2747
|
-
* @return {!proto.notification.
|
|
3086
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2748
3087
|
*/
|
|
2749
|
-
proto.notification.
|
|
3088
|
+
proto.notification.NotificationItemRequest.prototype.setId = function(value) {
|
|
2750
3089
|
return jspb.Message.setField(this, 1, value);
|
|
2751
3090
|
};
|
|
2752
3091
|
|
|
2753
3092
|
|
|
2754
3093
|
/**
|
|
2755
3094
|
* Clears the field making it undefined.
|
|
2756
|
-
* @return {!proto.notification.
|
|
3095
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2757
3096
|
*/
|
|
2758
|
-
proto.notification.
|
|
3097
|
+
proto.notification.NotificationItemRequest.prototype.clearId = function() {
|
|
2759
3098
|
return jspb.Message.setField(this, 1, undefined);
|
|
2760
3099
|
};
|
|
2761
3100
|
|
|
@@ -2764,7 +3103,7 @@ proto.notification.NotificationRequest.prototype.clearId = function() {
|
|
|
2764
3103
|
* Returns whether this field is set.
|
|
2765
3104
|
* @return {boolean}
|
|
2766
3105
|
*/
|
|
2767
|
-
proto.notification.
|
|
3106
|
+
proto.notification.NotificationItemRequest.prototype.hasId = function() {
|
|
2768
3107
|
return jspb.Message.getField(this, 1) != null;
|
|
2769
3108
|
};
|
|
2770
3109
|
|
|
@@ -2773,25 +3112,25 @@ proto.notification.NotificationRequest.prototype.hasId = function() {
|
|
|
2773
3112
|
* optional string title = 2;
|
|
2774
3113
|
* @return {string}
|
|
2775
3114
|
*/
|
|
2776
|
-
proto.notification.
|
|
3115
|
+
proto.notification.NotificationItemRequest.prototype.getTitle = function() {
|
|
2777
3116
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2778
3117
|
};
|
|
2779
3118
|
|
|
2780
3119
|
|
|
2781
3120
|
/**
|
|
2782
3121
|
* @param {string} value
|
|
2783
|
-
* @return {!proto.notification.
|
|
3122
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2784
3123
|
*/
|
|
2785
|
-
proto.notification.
|
|
3124
|
+
proto.notification.NotificationItemRequest.prototype.setTitle = function(value) {
|
|
2786
3125
|
return jspb.Message.setField(this, 2, value);
|
|
2787
3126
|
};
|
|
2788
3127
|
|
|
2789
3128
|
|
|
2790
3129
|
/**
|
|
2791
3130
|
* Clears the field making it undefined.
|
|
2792
|
-
* @return {!proto.notification.
|
|
3131
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2793
3132
|
*/
|
|
2794
|
-
proto.notification.
|
|
3133
|
+
proto.notification.NotificationItemRequest.prototype.clearTitle = function() {
|
|
2795
3134
|
return jspb.Message.setField(this, 2, undefined);
|
|
2796
3135
|
};
|
|
2797
3136
|
|
|
@@ -2800,7 +3139,7 @@ proto.notification.NotificationRequest.prototype.clearTitle = function() {
|
|
|
2800
3139
|
* Returns whether this field is set.
|
|
2801
3140
|
* @return {boolean}
|
|
2802
3141
|
*/
|
|
2803
|
-
proto.notification.
|
|
3142
|
+
proto.notification.NotificationItemRequest.prototype.hasTitle = function() {
|
|
2804
3143
|
return jspb.Message.getField(this, 2) != null;
|
|
2805
3144
|
};
|
|
2806
3145
|
|
|
@@ -2809,25 +3148,25 @@ proto.notification.NotificationRequest.prototype.hasTitle = function() {
|
|
|
2809
3148
|
* optional string content = 3;
|
|
2810
3149
|
* @return {string}
|
|
2811
3150
|
*/
|
|
2812
|
-
proto.notification.
|
|
3151
|
+
proto.notification.NotificationItemRequest.prototype.getContent = function() {
|
|
2813
3152
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2814
3153
|
};
|
|
2815
3154
|
|
|
2816
3155
|
|
|
2817
3156
|
/**
|
|
2818
3157
|
* @param {string} value
|
|
2819
|
-
* @return {!proto.notification.
|
|
3158
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2820
3159
|
*/
|
|
2821
|
-
proto.notification.
|
|
3160
|
+
proto.notification.NotificationItemRequest.prototype.setContent = function(value) {
|
|
2822
3161
|
return jspb.Message.setField(this, 3, value);
|
|
2823
3162
|
};
|
|
2824
3163
|
|
|
2825
3164
|
|
|
2826
3165
|
/**
|
|
2827
3166
|
* Clears the field making it undefined.
|
|
2828
|
-
* @return {!proto.notification.
|
|
3167
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2829
3168
|
*/
|
|
2830
|
-
proto.notification.
|
|
3169
|
+
proto.notification.NotificationItemRequest.prototype.clearContent = function() {
|
|
2831
3170
|
return jspb.Message.setField(this, 3, undefined);
|
|
2832
3171
|
};
|
|
2833
3172
|
|
|
@@ -2836,7 +3175,7 @@ proto.notification.NotificationRequest.prototype.clearContent = function() {
|
|
|
2836
3175
|
* Returns whether this field is set.
|
|
2837
3176
|
* @return {boolean}
|
|
2838
3177
|
*/
|
|
2839
|
-
proto.notification.
|
|
3178
|
+
proto.notification.NotificationItemRequest.prototype.hasContent = function() {
|
|
2840
3179
|
return jspb.Message.getField(this, 3) != null;
|
|
2841
3180
|
};
|
|
2842
3181
|
|
|
@@ -2845,25 +3184,25 @@ proto.notification.NotificationRequest.prototype.hasContent = function() {
|
|
|
2845
3184
|
* optional string type = 4;
|
|
2846
3185
|
* @return {string}
|
|
2847
3186
|
*/
|
|
2848
|
-
proto.notification.
|
|
3187
|
+
proto.notification.NotificationItemRequest.prototype.getType = function() {
|
|
2849
3188
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2850
3189
|
};
|
|
2851
3190
|
|
|
2852
3191
|
|
|
2853
3192
|
/**
|
|
2854
3193
|
* @param {string} value
|
|
2855
|
-
* @return {!proto.notification.
|
|
3194
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2856
3195
|
*/
|
|
2857
|
-
proto.notification.
|
|
3196
|
+
proto.notification.NotificationItemRequest.prototype.setType = function(value) {
|
|
2858
3197
|
return jspb.Message.setField(this, 4, value);
|
|
2859
3198
|
};
|
|
2860
3199
|
|
|
2861
3200
|
|
|
2862
3201
|
/**
|
|
2863
3202
|
* Clears the field making it undefined.
|
|
2864
|
-
* @return {!proto.notification.
|
|
3203
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2865
3204
|
*/
|
|
2866
|
-
proto.notification.
|
|
3205
|
+
proto.notification.NotificationItemRequest.prototype.clearType = function() {
|
|
2867
3206
|
return jspb.Message.setField(this, 4, undefined);
|
|
2868
3207
|
};
|
|
2869
3208
|
|
|
@@ -2872,7 +3211,7 @@ proto.notification.NotificationRequest.prototype.clearType = function() {
|
|
|
2872
3211
|
* Returns whether this field is set.
|
|
2873
3212
|
* @return {boolean}
|
|
2874
3213
|
*/
|
|
2875
|
-
proto.notification.
|
|
3214
|
+
proto.notification.NotificationItemRequest.prototype.hasType = function() {
|
|
2876
3215
|
return jspb.Message.getField(this, 4) != null;
|
|
2877
3216
|
};
|
|
2878
3217
|
|
|
@@ -2881,25 +3220,25 @@ proto.notification.NotificationRequest.prototype.hasType = function() {
|
|
|
2881
3220
|
* optional string trigger = 5;
|
|
2882
3221
|
* @return {string}
|
|
2883
3222
|
*/
|
|
2884
|
-
proto.notification.
|
|
3223
|
+
proto.notification.NotificationItemRequest.prototype.getTrigger = function() {
|
|
2885
3224
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2886
3225
|
};
|
|
2887
3226
|
|
|
2888
3227
|
|
|
2889
3228
|
/**
|
|
2890
3229
|
* @param {string} value
|
|
2891
|
-
* @return {!proto.notification.
|
|
3230
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2892
3231
|
*/
|
|
2893
|
-
proto.notification.
|
|
3232
|
+
proto.notification.NotificationItemRequest.prototype.setTrigger = function(value) {
|
|
2894
3233
|
return jspb.Message.setField(this, 5, value);
|
|
2895
3234
|
};
|
|
2896
3235
|
|
|
2897
3236
|
|
|
2898
3237
|
/**
|
|
2899
3238
|
* Clears the field making it undefined.
|
|
2900
|
-
* @return {!proto.notification.
|
|
3239
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2901
3240
|
*/
|
|
2902
|
-
proto.notification.
|
|
3241
|
+
proto.notification.NotificationItemRequest.prototype.clearTrigger = function() {
|
|
2903
3242
|
return jspb.Message.setField(this, 5, undefined);
|
|
2904
3243
|
};
|
|
2905
3244
|
|
|
@@ -2908,7 +3247,7 @@ proto.notification.NotificationRequest.prototype.clearTrigger = function() {
|
|
|
2908
3247
|
* Returns whether this field is set.
|
|
2909
3248
|
* @return {boolean}
|
|
2910
3249
|
*/
|
|
2911
|
-
proto.notification.
|
|
3250
|
+
proto.notification.NotificationItemRequest.prototype.hasTrigger = function() {
|
|
2912
3251
|
return jspb.Message.getField(this, 5) != null;
|
|
2913
3252
|
};
|
|
2914
3253
|
|
|
@@ -2917,25 +3256,25 @@ proto.notification.NotificationRequest.prototype.hasTrigger = function() {
|
|
|
2917
3256
|
* optional int32 is_active = 6;
|
|
2918
3257
|
* @return {number}
|
|
2919
3258
|
*/
|
|
2920
|
-
proto.notification.
|
|
3259
|
+
proto.notification.NotificationItemRequest.prototype.getIsActive = function() {
|
|
2921
3260
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2922
3261
|
};
|
|
2923
3262
|
|
|
2924
3263
|
|
|
2925
3264
|
/**
|
|
2926
3265
|
* @param {number} value
|
|
2927
|
-
* @return {!proto.notification.
|
|
3266
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2928
3267
|
*/
|
|
2929
|
-
proto.notification.
|
|
3268
|
+
proto.notification.NotificationItemRequest.prototype.setIsActive = function(value) {
|
|
2930
3269
|
return jspb.Message.setField(this, 6, value);
|
|
2931
3270
|
};
|
|
2932
3271
|
|
|
2933
3272
|
|
|
2934
3273
|
/**
|
|
2935
3274
|
* Clears the field making it undefined.
|
|
2936
|
-
* @return {!proto.notification.
|
|
3275
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2937
3276
|
*/
|
|
2938
|
-
proto.notification.
|
|
3277
|
+
proto.notification.NotificationItemRequest.prototype.clearIsActive = function() {
|
|
2939
3278
|
return jspb.Message.setField(this, 6, undefined);
|
|
2940
3279
|
};
|
|
2941
3280
|
|
|
@@ -2944,148 +3283,145 @@ proto.notification.NotificationRequest.prototype.clearIsActive = function() {
|
|
|
2944
3283
|
* Returns whether this field is set.
|
|
2945
3284
|
* @return {boolean}
|
|
2946
3285
|
*/
|
|
2947
|
-
proto.notification.
|
|
3286
|
+
proto.notification.NotificationItemRequest.prototype.hasIsActive = function() {
|
|
2948
3287
|
return jspb.Message.getField(this, 6) != null;
|
|
2949
3288
|
};
|
|
2950
3289
|
|
|
2951
3290
|
|
|
3291
|
+
/**
|
|
3292
|
+
* optional string category = 7;
|
|
3293
|
+
* @return {string}
|
|
3294
|
+
*/
|
|
3295
|
+
proto.notification.NotificationItemRequest.prototype.getCategory = function() {
|
|
3296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3297
|
+
};
|
|
3298
|
+
|
|
2952
3299
|
|
|
3300
|
+
/**
|
|
3301
|
+
* @param {string} value
|
|
3302
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
3303
|
+
*/
|
|
3304
|
+
proto.notification.NotificationItemRequest.prototype.setCategory = function(value) {
|
|
3305
|
+
return jspb.Message.setField(this, 7, value);
|
|
3306
|
+
};
|
|
2953
3307
|
|
|
2954
3308
|
|
|
2955
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2956
3309
|
/**
|
|
2957
|
-
*
|
|
2958
|
-
*
|
|
2959
|
-
* Optional fields that are not set will be set to undefined.
|
|
2960
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2961
|
-
* For the list of reserved names please see:
|
|
2962
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2963
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2964
|
-
* JSPB instance for transitional soy proto support:
|
|
2965
|
-
* http://goto/soy-param-migration
|
|
2966
|
-
* @return {!Object}
|
|
3310
|
+
* Clears the field making it undefined.
|
|
3311
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2967
3312
|
*/
|
|
2968
|
-
proto.notification.
|
|
2969
|
-
return
|
|
3313
|
+
proto.notification.NotificationItemRequest.prototype.clearCategory = function() {
|
|
3314
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
2970
3315
|
};
|
|
2971
3316
|
|
|
2972
3317
|
|
|
2973
3318
|
/**
|
|
2974
|
-
*
|
|
2975
|
-
* @
|
|
2976
|
-
* the JSPB instance for transitional soy proto support:
|
|
2977
|
-
* http://goto/soy-param-migration
|
|
2978
|
-
* @param {!proto.notification.GetNotificationRequest} msg The msg instance to transform.
|
|
2979
|
-
* @return {!Object}
|
|
2980
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3319
|
+
* Returns whether this field is set.
|
|
3320
|
+
* @return {boolean}
|
|
2981
3321
|
*/
|
|
2982
|
-
proto.notification.
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
};
|
|
3322
|
+
proto.notification.NotificationItemRequest.prototype.hasCategory = function() {
|
|
3323
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3324
|
+
};
|
|
2986
3325
|
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* optional string desktop_image = 8;
|
|
3329
|
+
* @return {string}
|
|
3330
|
+
*/
|
|
3331
|
+
proto.notification.NotificationItemRequest.prototype.getDesktopImage = function() {
|
|
3332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2991
3333
|
};
|
|
2992
|
-
}
|
|
2993
3334
|
|
|
2994
3335
|
|
|
2995
3336
|
/**
|
|
2996
|
-
*
|
|
2997
|
-
* @
|
|
2998
|
-
* @return {!proto.notification.GetNotificationRequest}
|
|
3337
|
+
* @param {string} value
|
|
3338
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
2999
3339
|
*/
|
|
3000
|
-
proto.notification.
|
|
3001
|
-
|
|
3002
|
-
var msg = new proto.notification.GetNotificationRequest;
|
|
3003
|
-
return proto.notification.GetNotificationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3340
|
+
proto.notification.NotificationItemRequest.prototype.setDesktopImage = function(value) {
|
|
3341
|
+
return jspb.Message.setField(this, 8, value);
|
|
3004
3342
|
};
|
|
3005
3343
|
|
|
3006
3344
|
|
|
3007
3345
|
/**
|
|
3008
|
-
*
|
|
3009
|
-
*
|
|
3010
|
-
* @param {!proto.notification.GetNotificationRequest} msg The message object to deserialize into.
|
|
3011
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3012
|
-
* @return {!proto.notification.GetNotificationRequest}
|
|
3346
|
+
* Clears the field making it undefined.
|
|
3347
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
3013
3348
|
*/
|
|
3014
|
-
proto.notification.
|
|
3015
|
-
|
|
3016
|
-
if (reader.isEndGroup()) {
|
|
3017
|
-
break;
|
|
3018
|
-
}
|
|
3019
|
-
var field = reader.getFieldNumber();
|
|
3020
|
-
switch (field) {
|
|
3021
|
-
case 1:
|
|
3022
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
3023
|
-
msg.setId(value);
|
|
3024
|
-
break;
|
|
3025
|
-
default:
|
|
3026
|
-
reader.skipField();
|
|
3027
|
-
break;
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
return msg;
|
|
3349
|
+
proto.notification.NotificationItemRequest.prototype.clearDesktopImage = function() {
|
|
3350
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
3031
3351
|
};
|
|
3032
3352
|
|
|
3033
3353
|
|
|
3034
3354
|
/**
|
|
3035
|
-
*
|
|
3036
|
-
* @return {
|
|
3355
|
+
* Returns whether this field is set.
|
|
3356
|
+
* @return {boolean}
|
|
3037
3357
|
*/
|
|
3038
|
-
proto.notification.
|
|
3039
|
-
|
|
3040
|
-
proto.notification.GetNotificationRequest.serializeBinaryToWriter(this, writer);
|
|
3041
|
-
return writer.getResultBuffer();
|
|
3358
|
+
proto.notification.NotificationItemRequest.prototype.hasDesktopImage = function() {
|
|
3359
|
+
return jspb.Message.getField(this, 8) != null;
|
|
3042
3360
|
};
|
|
3043
3361
|
|
|
3044
3362
|
|
|
3045
3363
|
/**
|
|
3046
|
-
*
|
|
3047
|
-
*
|
|
3048
|
-
* @param {!proto.notification.GetNotificationRequest} message
|
|
3049
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3050
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3364
|
+
* optional string mobile_image = 9;
|
|
3365
|
+
* @return {string}
|
|
3051
3366
|
*/
|
|
3052
|
-
proto.notification.
|
|
3053
|
-
|
|
3054
|
-
f = message.getId();
|
|
3055
|
-
if (f !== 0) {
|
|
3056
|
-
writer.writeInt32(
|
|
3057
|
-
1,
|
|
3058
|
-
f
|
|
3059
|
-
);
|
|
3060
|
-
}
|
|
3367
|
+
proto.notification.NotificationItemRequest.prototype.getMobileImage = function() {
|
|
3368
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
3061
3369
|
};
|
|
3062
3370
|
|
|
3063
3371
|
|
|
3064
3372
|
/**
|
|
3065
|
-
*
|
|
3066
|
-
* @return {
|
|
3373
|
+
* @param {string} value
|
|
3374
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
3067
3375
|
*/
|
|
3068
|
-
proto.notification.
|
|
3069
|
-
return
|
|
3376
|
+
proto.notification.NotificationItemRequest.prototype.setMobileImage = function(value) {
|
|
3377
|
+
return jspb.Message.setField(this, 9, value);
|
|
3070
3378
|
};
|
|
3071
3379
|
|
|
3072
3380
|
|
|
3073
3381
|
/**
|
|
3074
|
-
*
|
|
3075
|
-
* @return {!proto.notification.
|
|
3382
|
+
* Clears the field making it undefined.
|
|
3383
|
+
* @return {!proto.notification.NotificationItemRequest} returns this
|
|
3076
3384
|
*/
|
|
3077
|
-
proto.notification.
|
|
3078
|
-
return jspb.Message.
|
|
3385
|
+
proto.notification.NotificationItemRequest.prototype.clearMobileImage = function() {
|
|
3386
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
3387
|
+
};
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* Returns whether this field is set.
|
|
3392
|
+
* @return {boolean}
|
|
3393
|
+
*/
|
|
3394
|
+
proto.notification.NotificationItemRequest.prototype.hasMobileImage = function() {
|
|
3395
|
+
return jspb.Message.getField(this, 9) != null;
|
|
3079
3396
|
};
|
|
3080
3397
|
|
|
3081
3398
|
|
|
3082
3399
|
|
|
3083
3400
|
/**
|
|
3084
|
-
*
|
|
3085
|
-
*
|
|
3401
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
3402
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
3403
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
3404
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
3405
|
+
* @private {!Array<!Array<number>>}
|
|
3086
3406
|
* @const
|
|
3087
3407
|
*/
|
|
3088
|
-
proto.notification.
|
|
3408
|
+
proto.notification.NotificationRequest.oneofGroups_ = [[1,2]];
|
|
3409
|
+
|
|
3410
|
+
/**
|
|
3411
|
+
* @enum {number}
|
|
3412
|
+
*/
|
|
3413
|
+
proto.notification.NotificationRequest.RequestCase = {
|
|
3414
|
+
REQUEST_NOT_SET: 0,
|
|
3415
|
+
NOTIFICATION_DATA: 1,
|
|
3416
|
+
FILE: 2
|
|
3417
|
+
};
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* @return {proto.notification.NotificationRequest.RequestCase}
|
|
3421
|
+
*/
|
|
3422
|
+
proto.notification.NotificationRequest.prototype.getRequestCase = function() {
|
|
3423
|
+
return /** @type {proto.notification.NotificationRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.notification.NotificationRequest.oneofGroups_[0]));
|
|
3424
|
+
};
|
|
3089
3425
|
|
|
3090
3426
|
|
|
3091
3427
|
|
|
@@ -3102,8 +3438,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3102
3438
|
* http://goto/soy-param-migration
|
|
3103
3439
|
* @return {!Object}
|
|
3104
3440
|
*/
|
|
3105
|
-
proto.notification.
|
|
3106
|
-
return proto.notification.
|
|
3441
|
+
proto.notification.NotificationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3442
|
+
return proto.notification.NotificationRequest.toObject(opt_includeInstance, this);
|
|
3107
3443
|
};
|
|
3108
3444
|
|
|
3109
3445
|
|
|
@@ -3112,14 +3448,14 @@ proto.notification.SendNotificationRequest.prototype.toObject = function(opt_inc
|
|
|
3112
3448
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3113
3449
|
* the JSPB instance for transitional soy proto support:
|
|
3114
3450
|
* http://goto/soy-param-migration
|
|
3115
|
-
* @param {!proto.notification.
|
|
3451
|
+
* @param {!proto.notification.NotificationRequest} msg The msg instance to transform.
|
|
3116
3452
|
* @return {!Object}
|
|
3117
3453
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3118
3454
|
*/
|
|
3119
|
-
proto.notification.
|
|
3455
|
+
proto.notification.NotificationRequest.toObject = function(includeInstance, msg) {
|
|
3120
3456
|
var f, obj = {
|
|
3121
|
-
|
|
3122
|
-
|
|
3457
|
+
notificationData: (f = msg.getNotificationData()) && proto.notification.NotificationItemRequest.toObject(includeInstance, f),
|
|
3458
|
+
file: (f = msg.getFile()) && proto.notification.File.toObject(includeInstance, f)
|
|
3123
3459
|
};
|
|
3124
3460
|
|
|
3125
3461
|
if (includeInstance) {
|
|
@@ -3133,23 +3469,23 @@ proto.notification.SendNotificationRequest.toObject = function(includeInstance,
|
|
|
3133
3469
|
/**
|
|
3134
3470
|
* Deserializes binary data (in protobuf wire format).
|
|
3135
3471
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3136
|
-
* @return {!proto.notification.
|
|
3472
|
+
* @return {!proto.notification.NotificationRequest}
|
|
3137
3473
|
*/
|
|
3138
|
-
proto.notification.
|
|
3474
|
+
proto.notification.NotificationRequest.deserializeBinary = function(bytes) {
|
|
3139
3475
|
var reader = new jspb.BinaryReader(bytes);
|
|
3140
|
-
var msg = new proto.notification.
|
|
3141
|
-
return proto.notification.
|
|
3476
|
+
var msg = new proto.notification.NotificationRequest;
|
|
3477
|
+
return proto.notification.NotificationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3142
3478
|
};
|
|
3143
3479
|
|
|
3144
3480
|
|
|
3145
3481
|
/**
|
|
3146
3482
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3147
3483
|
* given reader into the given message object.
|
|
3148
|
-
* @param {!proto.notification.
|
|
3484
|
+
* @param {!proto.notification.NotificationRequest} msg The message object to deserialize into.
|
|
3149
3485
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3150
|
-
* @return {!proto.notification.
|
|
3486
|
+
* @return {!proto.notification.NotificationRequest}
|
|
3151
3487
|
*/
|
|
3152
|
-
proto.notification.
|
|
3488
|
+
proto.notification.NotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3153
3489
|
while (reader.nextField()) {
|
|
3154
3490
|
if (reader.isEndGroup()) {
|
|
3155
3491
|
break;
|
|
@@ -3157,14 +3493,14 @@ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = functio
|
|
|
3157
3493
|
var field = reader.getFieldNumber();
|
|
3158
3494
|
switch (field) {
|
|
3159
3495
|
case 1:
|
|
3160
|
-
var value =
|
|
3161
|
-
|
|
3496
|
+
var value = new proto.notification.NotificationItemRequest;
|
|
3497
|
+
reader.readMessage(value,proto.notification.NotificationItemRequest.deserializeBinaryFromReader);
|
|
3498
|
+
msg.setNotificationData(value);
|
|
3162
3499
|
break;
|
|
3163
3500
|
case 2:
|
|
3164
|
-
var
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
}
|
|
3501
|
+
var value = new proto.notification.File;
|
|
3502
|
+
reader.readMessage(value,proto.notification.File.deserializeBinaryFromReader);
|
|
3503
|
+
msg.setFile(value);
|
|
3168
3504
|
break;
|
|
3169
3505
|
default:
|
|
3170
3506
|
reader.skipField();
|
|
@@ -3179,9 +3515,9 @@ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = functio
|
|
|
3179
3515
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3180
3516
|
* @return {!Uint8Array}
|
|
3181
3517
|
*/
|
|
3182
|
-
proto.notification.
|
|
3518
|
+
proto.notification.NotificationRequest.prototype.serializeBinary = function() {
|
|
3183
3519
|
var writer = new jspb.BinaryWriter();
|
|
3184
|
-
proto.notification.
|
|
3520
|
+
proto.notification.NotificationRequest.serializeBinaryToWriter(this, writer);
|
|
3185
3521
|
return writer.getResultBuffer();
|
|
3186
3522
|
};
|
|
3187
3523
|
|
|
@@ -3189,81 +3525,102 @@ proto.notification.SendNotificationRequest.prototype.serializeBinary = function(
|
|
|
3189
3525
|
/**
|
|
3190
3526
|
* Serializes the given message to binary data (in protobuf wire
|
|
3191
3527
|
* format), writing to the given BinaryWriter.
|
|
3192
|
-
* @param {!proto.notification.
|
|
3528
|
+
* @param {!proto.notification.NotificationRequest} message
|
|
3193
3529
|
* @param {!jspb.BinaryWriter} writer
|
|
3194
3530
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3195
3531
|
*/
|
|
3196
|
-
proto.notification.
|
|
3532
|
+
proto.notification.NotificationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3197
3533
|
var f = undefined;
|
|
3198
|
-
f = message.
|
|
3199
|
-
if (f
|
|
3200
|
-
writer.
|
|
3534
|
+
f = message.getNotificationData();
|
|
3535
|
+
if (f != null) {
|
|
3536
|
+
writer.writeMessage(
|
|
3201
3537
|
1,
|
|
3202
|
-
f
|
|
3538
|
+
f,
|
|
3539
|
+
proto.notification.NotificationItemRequest.serializeBinaryToWriter
|
|
3203
3540
|
);
|
|
3204
3541
|
}
|
|
3205
|
-
f = message.
|
|
3206
|
-
if (f
|
|
3207
|
-
writer.
|
|
3208
|
-
2,
|
|
3209
|
-
f
|
|
3542
|
+
f = message.getFile();
|
|
3543
|
+
if (f != null) {
|
|
3544
|
+
writer.writeMessage(
|
|
3545
|
+
2,
|
|
3546
|
+
f,
|
|
3547
|
+
proto.notification.File.serializeBinaryToWriter
|
|
3210
3548
|
);
|
|
3211
3549
|
}
|
|
3212
3550
|
};
|
|
3213
3551
|
|
|
3214
3552
|
|
|
3215
3553
|
/**
|
|
3216
|
-
* optional
|
|
3217
|
-
* @return {
|
|
3554
|
+
* optional NotificationItemRequest notification_data = 1;
|
|
3555
|
+
* @return {?proto.notification.NotificationItemRequest}
|
|
3218
3556
|
*/
|
|
3219
|
-
proto.notification.
|
|
3220
|
-
return /** @type
|
|
3557
|
+
proto.notification.NotificationRequest.prototype.getNotificationData = function() {
|
|
3558
|
+
return /** @type{?proto.notification.NotificationItemRequest} */ (
|
|
3559
|
+
jspb.Message.getWrapperField(this, proto.notification.NotificationItemRequest, 1));
|
|
3221
3560
|
};
|
|
3222
3561
|
|
|
3223
3562
|
|
|
3224
3563
|
/**
|
|
3225
|
-
* @param {
|
|
3226
|
-
* @return {!proto.notification.
|
|
3564
|
+
* @param {?proto.notification.NotificationItemRequest|undefined} value
|
|
3565
|
+
* @return {!proto.notification.NotificationRequest} returns this
|
|
3566
|
+
*/
|
|
3567
|
+
proto.notification.NotificationRequest.prototype.setNotificationData = function(value) {
|
|
3568
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.notification.NotificationRequest.oneofGroups_[0], value);
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* Clears the message field making it undefined.
|
|
3574
|
+
* @return {!proto.notification.NotificationRequest} returns this
|
|
3227
3575
|
*/
|
|
3228
|
-
proto.notification.
|
|
3229
|
-
return
|
|
3576
|
+
proto.notification.NotificationRequest.prototype.clearNotificationData = function() {
|
|
3577
|
+
return this.setNotificationData(undefined);
|
|
3230
3578
|
};
|
|
3231
3579
|
|
|
3232
3580
|
|
|
3233
3581
|
/**
|
|
3234
|
-
*
|
|
3235
|
-
* @return {
|
|
3582
|
+
* Returns whether this field is set.
|
|
3583
|
+
* @return {boolean}
|
|
3236
3584
|
*/
|
|
3237
|
-
proto.notification.
|
|
3238
|
-
return
|
|
3585
|
+
proto.notification.NotificationRequest.prototype.hasNotificationData = function() {
|
|
3586
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3239
3587
|
};
|
|
3240
3588
|
|
|
3241
3589
|
|
|
3242
3590
|
/**
|
|
3243
|
-
*
|
|
3244
|
-
* @return {
|
|
3591
|
+
* optional File file = 2;
|
|
3592
|
+
* @return {?proto.notification.File}
|
|
3245
3593
|
*/
|
|
3246
|
-
proto.notification.
|
|
3247
|
-
return
|
|
3594
|
+
proto.notification.NotificationRequest.prototype.getFile = function() {
|
|
3595
|
+
return /** @type{?proto.notification.File} */ (
|
|
3596
|
+
jspb.Message.getWrapperField(this, proto.notification.File, 2));
|
|
3248
3597
|
};
|
|
3249
3598
|
|
|
3250
3599
|
|
|
3251
3600
|
/**
|
|
3252
|
-
* @param {
|
|
3253
|
-
* @
|
|
3254
|
-
|
|
3601
|
+
* @param {?proto.notification.File|undefined} value
|
|
3602
|
+
* @return {!proto.notification.NotificationRequest} returns this
|
|
3603
|
+
*/
|
|
3604
|
+
proto.notification.NotificationRequest.prototype.setFile = function(value) {
|
|
3605
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.notification.NotificationRequest.oneofGroups_[0], value);
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* Clears the message field making it undefined.
|
|
3611
|
+
* @return {!proto.notification.NotificationRequest} returns this
|
|
3255
3612
|
*/
|
|
3256
|
-
proto.notification.
|
|
3257
|
-
return
|
|
3613
|
+
proto.notification.NotificationRequest.prototype.clearFile = function() {
|
|
3614
|
+
return this.setFile(undefined);
|
|
3258
3615
|
};
|
|
3259
3616
|
|
|
3260
3617
|
|
|
3261
3618
|
/**
|
|
3262
|
-
*
|
|
3263
|
-
* @return {
|
|
3619
|
+
* Returns whether this field is set.
|
|
3620
|
+
* @return {boolean}
|
|
3264
3621
|
*/
|
|
3265
|
-
proto.notification.
|
|
3266
|
-
return
|
|
3622
|
+
proto.notification.NotificationRequest.prototype.hasFile = function() {
|
|
3623
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3267
3624
|
};
|
|
3268
3625
|
|
|
3269
3626
|
|
|
@@ -3283,8 +3640,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3283
3640
|
* http://goto/soy-param-migration
|
|
3284
3641
|
* @return {!Object}
|
|
3285
3642
|
*/
|
|
3286
|
-
proto.notification.
|
|
3287
|
-
return proto.notification.
|
|
3643
|
+
proto.notification.GetNotificationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3644
|
+
return proto.notification.GetNotificationRequest.toObject(opt_includeInstance, this);
|
|
3288
3645
|
};
|
|
3289
3646
|
|
|
3290
3647
|
|
|
@@ -3293,13 +3650,13 @@ proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_
|
|
|
3293
3650
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3294
3651
|
* the JSPB instance for transitional soy proto support:
|
|
3295
3652
|
* http://goto/soy-param-migration
|
|
3296
|
-
* @param {!proto.notification.
|
|
3653
|
+
* @param {!proto.notification.GetNotificationRequest} msg The msg instance to transform.
|
|
3297
3654
|
* @return {!Object}
|
|
3298
3655
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3299
3656
|
*/
|
|
3300
|
-
proto.notification.
|
|
3657
|
+
proto.notification.GetNotificationRequest.toObject = function(includeInstance, msg) {
|
|
3301
3658
|
var f, obj = {
|
|
3302
|
-
|
|
3659
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3303
3660
|
};
|
|
3304
3661
|
|
|
3305
3662
|
if (includeInstance) {
|
|
@@ -3313,23 +3670,23 @@ proto.notification.NotificationStatusResponse.toObject = function(includeInstanc
|
|
|
3313
3670
|
/**
|
|
3314
3671
|
* Deserializes binary data (in protobuf wire format).
|
|
3315
3672
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3316
|
-
* @return {!proto.notification.
|
|
3673
|
+
* @return {!proto.notification.GetNotificationRequest}
|
|
3317
3674
|
*/
|
|
3318
|
-
proto.notification.
|
|
3675
|
+
proto.notification.GetNotificationRequest.deserializeBinary = function(bytes) {
|
|
3319
3676
|
var reader = new jspb.BinaryReader(bytes);
|
|
3320
|
-
var msg = new proto.notification.
|
|
3321
|
-
return proto.notification.
|
|
3677
|
+
var msg = new proto.notification.GetNotificationRequest;
|
|
3678
|
+
return proto.notification.GetNotificationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3322
3679
|
};
|
|
3323
3680
|
|
|
3324
3681
|
|
|
3325
3682
|
/**
|
|
3326
3683
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3327
3684
|
* given reader into the given message object.
|
|
3328
|
-
* @param {!proto.notification.
|
|
3685
|
+
* @param {!proto.notification.GetNotificationRequest} msg The message object to deserialize into.
|
|
3329
3686
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3330
|
-
* @return {!proto.notification.
|
|
3687
|
+
* @return {!proto.notification.GetNotificationRequest}
|
|
3331
3688
|
*/
|
|
3332
|
-
proto.notification.
|
|
3689
|
+
proto.notification.GetNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3333
3690
|
while (reader.nextField()) {
|
|
3334
3691
|
if (reader.isEndGroup()) {
|
|
3335
3692
|
break;
|
|
@@ -3337,8 +3694,8 @@ proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = func
|
|
|
3337
3694
|
var field = reader.getFieldNumber();
|
|
3338
3695
|
switch (field) {
|
|
3339
3696
|
case 1:
|
|
3340
|
-
var value = /** @type {
|
|
3341
|
-
msg.
|
|
3697
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3698
|
+
msg.setId(value);
|
|
3342
3699
|
break;
|
|
3343
3700
|
default:
|
|
3344
3701
|
reader.skipField();
|
|
@@ -3353,9 +3710,9 @@ proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = func
|
|
|
3353
3710
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3354
3711
|
* @return {!Uint8Array}
|
|
3355
3712
|
*/
|
|
3356
|
-
proto.notification.
|
|
3713
|
+
proto.notification.GetNotificationRequest.prototype.serializeBinary = function() {
|
|
3357
3714
|
var writer = new jspb.BinaryWriter();
|
|
3358
|
-
proto.notification.
|
|
3715
|
+
proto.notification.GetNotificationRequest.serializeBinaryToWriter(this, writer);
|
|
3359
3716
|
return writer.getResultBuffer();
|
|
3360
3717
|
};
|
|
3361
3718
|
|
|
@@ -3363,15 +3720,15 @@ proto.notification.NotificationStatusResponse.prototype.serializeBinary = functi
|
|
|
3363
3720
|
/**
|
|
3364
3721
|
* Serializes the given message to binary data (in protobuf wire
|
|
3365
3722
|
* format), writing to the given BinaryWriter.
|
|
3366
|
-
* @param {!proto.notification.
|
|
3723
|
+
* @param {!proto.notification.GetNotificationRequest} message
|
|
3367
3724
|
* @param {!jspb.BinaryWriter} writer
|
|
3368
3725
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3369
3726
|
*/
|
|
3370
|
-
proto.notification.
|
|
3727
|
+
proto.notification.GetNotificationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3371
3728
|
var f = undefined;
|
|
3372
|
-
f = message.
|
|
3373
|
-
if (f
|
|
3374
|
-
writer.
|
|
3729
|
+
f = message.getId();
|
|
3730
|
+
if (f !== 0) {
|
|
3731
|
+
writer.writeInt32(
|
|
3375
3732
|
1,
|
|
3376
3733
|
f
|
|
3377
3734
|
);
|
|
@@ -3380,24 +3737,31 @@ proto.notification.NotificationStatusResponse.serializeBinaryToWriter = function
|
|
|
3380
3737
|
|
|
3381
3738
|
|
|
3382
3739
|
/**
|
|
3383
|
-
* optional
|
|
3384
|
-
* @return {
|
|
3740
|
+
* optional int32 id = 1;
|
|
3741
|
+
* @return {number}
|
|
3385
3742
|
*/
|
|
3386
|
-
proto.notification.
|
|
3387
|
-
return /** @type {
|
|
3743
|
+
proto.notification.GetNotificationRequest.prototype.getId = function() {
|
|
3744
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3388
3745
|
};
|
|
3389
3746
|
|
|
3390
3747
|
|
|
3391
3748
|
/**
|
|
3392
|
-
* @param {
|
|
3393
|
-
* @return {!proto.notification.
|
|
3749
|
+
* @param {number} value
|
|
3750
|
+
* @return {!proto.notification.GetNotificationRequest} returns this
|
|
3394
3751
|
*/
|
|
3395
|
-
proto.notification.
|
|
3396
|
-
return jspb.Message.
|
|
3752
|
+
proto.notification.GetNotificationRequest.prototype.setId = function(value) {
|
|
3753
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3397
3754
|
};
|
|
3398
3755
|
|
|
3399
3756
|
|
|
3400
3757
|
|
|
3758
|
+
/**
|
|
3759
|
+
* List of repeated fields within this message type.
|
|
3760
|
+
* @private {!Array<number>}
|
|
3761
|
+
* @const
|
|
3762
|
+
*/
|
|
3763
|
+
proto.notification.SendNotificationRequest.repeatedFields_ = [2];
|
|
3764
|
+
|
|
3401
3765
|
|
|
3402
3766
|
|
|
3403
3767
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3413,8 +3777,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3413
3777
|
* http://goto/soy-param-migration
|
|
3414
3778
|
* @return {!Object}
|
|
3415
3779
|
*/
|
|
3416
|
-
proto.notification.
|
|
3417
|
-
return proto.notification.
|
|
3780
|
+
proto.notification.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3781
|
+
return proto.notification.SendNotificationRequest.toObject(opt_includeInstance, this);
|
|
3418
3782
|
};
|
|
3419
3783
|
|
|
3420
3784
|
|
|
@@ -3423,17 +3787,14 @@ proto.notification.UserNotificationItem.prototype.toObject = function(opt_includ
|
|
|
3423
3787
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3424
3788
|
* the JSPB instance for transitional soy proto support:
|
|
3425
3789
|
* http://goto/soy-param-migration
|
|
3426
|
-
* @param {!proto.notification.
|
|
3790
|
+
* @param {!proto.notification.SendNotificationRequest} msg The msg instance to transform.
|
|
3427
3791
|
* @return {!Object}
|
|
3428
3792
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3429
3793
|
*/
|
|
3430
|
-
proto.notification.
|
|
3794
|
+
proto.notification.SendNotificationRequest.toObject = function(includeInstance, msg) {
|
|
3431
3795
|
var f, obj = {
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3435
|
-
isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
3436
|
-
created: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
3796
|
+
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3797
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
3437
3798
|
};
|
|
3438
3799
|
|
|
3439
3800
|
if (includeInstance) {
|
|
@@ -3447,23 +3808,23 @@ proto.notification.UserNotificationItem.toObject = function(includeInstance, msg
|
|
|
3447
3808
|
/**
|
|
3448
3809
|
* Deserializes binary data (in protobuf wire format).
|
|
3449
3810
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3450
|
-
* @return {!proto.notification.
|
|
3811
|
+
* @return {!proto.notification.SendNotificationRequest}
|
|
3451
3812
|
*/
|
|
3452
|
-
proto.notification.
|
|
3813
|
+
proto.notification.SendNotificationRequest.deserializeBinary = function(bytes) {
|
|
3453
3814
|
var reader = new jspb.BinaryReader(bytes);
|
|
3454
|
-
var msg = new proto.notification.
|
|
3455
|
-
return proto.notification.
|
|
3815
|
+
var msg = new proto.notification.SendNotificationRequest;
|
|
3816
|
+
return proto.notification.SendNotificationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3456
3817
|
};
|
|
3457
3818
|
|
|
3458
3819
|
|
|
3459
3820
|
/**
|
|
3460
3821
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3461
3822
|
* given reader into the given message object.
|
|
3462
|
-
* @param {!proto.notification.
|
|
3823
|
+
* @param {!proto.notification.SendNotificationRequest} msg The message object to deserialize into.
|
|
3463
3824
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3464
|
-
* @return {!proto.notification.
|
|
3825
|
+
* @return {!proto.notification.SendNotificationRequest}
|
|
3465
3826
|
*/
|
|
3466
|
-
proto.notification.
|
|
3827
|
+
proto.notification.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3467
3828
|
while (reader.nextField()) {
|
|
3468
3829
|
if (reader.isEndGroup()) {
|
|
3469
3830
|
break;
|
|
@@ -3472,23 +3833,13 @@ proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(m
|
|
|
3472
3833
|
switch (field) {
|
|
3473
3834
|
case 1:
|
|
3474
3835
|
var value = /** @type {number} */ (reader.readInt32());
|
|
3475
|
-
msg.
|
|
3836
|
+
msg.setNotificationId(value);
|
|
3476
3837
|
break;
|
|
3477
3838
|
case 2:
|
|
3478
|
-
var
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3483
|
-
msg.setContent(value);
|
|
3484
|
-
break;
|
|
3485
|
-
case 4:
|
|
3486
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3487
|
-
msg.setIsChecked(value);
|
|
3488
|
-
break;
|
|
3489
|
-
case 5:
|
|
3490
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3491
|
-
msg.setCreated(value);
|
|
3839
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
3840
|
+
for (var i = 0; i < values.length; i++) {
|
|
3841
|
+
msg.addUserIds(values[i]);
|
|
3842
|
+
}
|
|
3492
3843
|
break;
|
|
3493
3844
|
default:
|
|
3494
3845
|
reader.skipField();
|
|
@@ -3503,9 +3854,9 @@ proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(m
|
|
|
3503
3854
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3504
3855
|
* @return {!Uint8Array}
|
|
3505
3856
|
*/
|
|
3506
|
-
proto.notification.
|
|
3857
|
+
proto.notification.SendNotificationRequest.prototype.serializeBinary = function() {
|
|
3507
3858
|
var writer = new jspb.BinaryWriter();
|
|
3508
|
-
proto.notification.
|
|
3859
|
+
proto.notification.SendNotificationRequest.serializeBinaryToWriter(this, writer);
|
|
3509
3860
|
return writer.getResultBuffer();
|
|
3510
3861
|
};
|
|
3511
3862
|
|
|
@@ -3513,165 +3864,214 @@ proto.notification.UserNotificationItem.prototype.serializeBinary = function() {
|
|
|
3513
3864
|
/**
|
|
3514
3865
|
* Serializes the given message to binary data (in protobuf wire
|
|
3515
3866
|
* format), writing to the given BinaryWriter.
|
|
3516
|
-
* @param {!proto.notification.
|
|
3867
|
+
* @param {!proto.notification.SendNotificationRequest} message
|
|
3517
3868
|
* @param {!jspb.BinaryWriter} writer
|
|
3518
3869
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3519
3870
|
*/
|
|
3520
|
-
proto.notification.
|
|
3871
|
+
proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3521
3872
|
var f = undefined;
|
|
3522
|
-
f = message.
|
|
3873
|
+
f = message.getNotificationId();
|
|
3523
3874
|
if (f !== 0) {
|
|
3524
3875
|
writer.writeInt32(
|
|
3525
3876
|
1,
|
|
3526
3877
|
f
|
|
3527
3878
|
);
|
|
3528
3879
|
}
|
|
3529
|
-
f = message.
|
|
3880
|
+
f = message.getUserIdsList();
|
|
3530
3881
|
if (f.length > 0) {
|
|
3531
|
-
writer.
|
|
3882
|
+
writer.writePackedInt32(
|
|
3532
3883
|
2,
|
|
3533
3884
|
f
|
|
3534
3885
|
);
|
|
3535
3886
|
}
|
|
3536
|
-
f = message.getContent();
|
|
3537
|
-
if (f.length > 0) {
|
|
3538
|
-
writer.writeString(
|
|
3539
|
-
3,
|
|
3540
|
-
f
|
|
3541
|
-
);
|
|
3542
|
-
}
|
|
3543
|
-
f = message.getIsChecked();
|
|
3544
|
-
if (f) {
|
|
3545
|
-
writer.writeBool(
|
|
3546
|
-
4,
|
|
3547
|
-
f
|
|
3548
|
-
);
|
|
3549
|
-
}
|
|
3550
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
3551
|
-
if (f != null) {
|
|
3552
|
-
writer.writeString(
|
|
3553
|
-
5,
|
|
3554
|
-
f
|
|
3555
|
-
);
|
|
3556
|
-
}
|
|
3557
3887
|
};
|
|
3558
3888
|
|
|
3559
3889
|
|
|
3560
3890
|
/**
|
|
3561
|
-
* optional int32
|
|
3891
|
+
* optional int32 notification_id = 1;
|
|
3562
3892
|
* @return {number}
|
|
3563
3893
|
*/
|
|
3564
|
-
proto.notification.
|
|
3894
|
+
proto.notification.SendNotificationRequest.prototype.getNotificationId = function() {
|
|
3565
3895
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3566
3896
|
};
|
|
3567
3897
|
|
|
3568
3898
|
|
|
3569
3899
|
/**
|
|
3570
3900
|
* @param {number} value
|
|
3571
|
-
* @return {!proto.notification.
|
|
3901
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
3572
3902
|
*/
|
|
3573
|
-
proto.notification.
|
|
3903
|
+
proto.notification.SendNotificationRequest.prototype.setNotificationId = function(value) {
|
|
3574
3904
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3575
3905
|
};
|
|
3576
3906
|
|
|
3577
3907
|
|
|
3578
3908
|
/**
|
|
3579
|
-
*
|
|
3580
|
-
* @return {
|
|
3909
|
+
* repeated int32 user_ids = 2;
|
|
3910
|
+
* @return {!Array<number>}
|
|
3581
3911
|
*/
|
|
3582
|
-
proto.notification.
|
|
3583
|
-
return /** @type {
|
|
3912
|
+
proto.notification.SendNotificationRequest.prototype.getUserIdsList = function() {
|
|
3913
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
3584
3914
|
};
|
|
3585
3915
|
|
|
3586
3916
|
|
|
3587
3917
|
/**
|
|
3588
|
-
* @param {
|
|
3589
|
-
* @return {!proto.notification.
|
|
3918
|
+
* @param {!Array<number>} value
|
|
3919
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
3590
3920
|
*/
|
|
3591
|
-
proto.notification.
|
|
3592
|
-
return jspb.Message.
|
|
3921
|
+
proto.notification.SendNotificationRequest.prototype.setUserIdsList = function(value) {
|
|
3922
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
3593
3923
|
};
|
|
3594
3924
|
|
|
3595
3925
|
|
|
3596
3926
|
/**
|
|
3597
|
-
*
|
|
3598
|
-
* @
|
|
3927
|
+
* @param {number} value
|
|
3928
|
+
* @param {number=} opt_index
|
|
3929
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
3599
3930
|
*/
|
|
3600
|
-
proto.notification.
|
|
3601
|
-
return
|
|
3931
|
+
proto.notification.SendNotificationRequest.prototype.addUserIds = function(value, opt_index) {
|
|
3932
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
3602
3933
|
};
|
|
3603
3934
|
|
|
3604
3935
|
|
|
3605
3936
|
/**
|
|
3606
|
-
*
|
|
3607
|
-
* @return {!proto.notification.
|
|
3937
|
+
* Clears the list making it empty but non-null.
|
|
3938
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
3608
3939
|
*/
|
|
3609
|
-
proto.notification.
|
|
3610
|
-
return
|
|
3940
|
+
proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function() {
|
|
3941
|
+
return this.setUserIdsList([]);
|
|
3611
3942
|
};
|
|
3612
3943
|
|
|
3613
3944
|
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
|
|
3948
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3614
3949
|
/**
|
|
3615
|
-
*
|
|
3616
|
-
*
|
|
3950
|
+
* Creates an object representation of this proto.
|
|
3951
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3952
|
+
* Optional fields that are not set will be set to undefined.
|
|
3953
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3954
|
+
* For the list of reserved names please see:
|
|
3955
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3956
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3957
|
+
* JSPB instance for transitional soy proto support:
|
|
3958
|
+
* http://goto/soy-param-migration
|
|
3959
|
+
* @return {!Object}
|
|
3617
3960
|
*/
|
|
3618
|
-
proto.notification.
|
|
3619
|
-
return
|
|
3961
|
+
proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3962
|
+
return proto.notification.NotificationStatusResponse.toObject(opt_includeInstance, this);
|
|
3620
3963
|
};
|
|
3621
3964
|
|
|
3622
3965
|
|
|
3623
3966
|
/**
|
|
3624
|
-
* @
|
|
3625
|
-
* @
|
|
3967
|
+
* Static version of the {@see toObject} method.
|
|
3968
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3969
|
+
* the JSPB instance for transitional soy proto support:
|
|
3970
|
+
* http://goto/soy-param-migration
|
|
3971
|
+
* @param {!proto.notification.NotificationStatusResponse} msg The msg instance to transform.
|
|
3972
|
+
* @return {!Object}
|
|
3973
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3626
3974
|
*/
|
|
3627
|
-
proto.notification.
|
|
3628
|
-
|
|
3975
|
+
proto.notification.NotificationStatusResponse.toObject = function(includeInstance, msg) {
|
|
3976
|
+
var f, obj = {
|
|
3977
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3978
|
+
};
|
|
3979
|
+
|
|
3980
|
+
if (includeInstance) {
|
|
3981
|
+
obj.$jspbMessageInstance = msg;
|
|
3982
|
+
}
|
|
3983
|
+
return obj;
|
|
3629
3984
|
};
|
|
3985
|
+
}
|
|
3630
3986
|
|
|
3631
3987
|
|
|
3632
3988
|
/**
|
|
3633
|
-
*
|
|
3634
|
-
* @
|
|
3989
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3990
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3991
|
+
* @return {!proto.notification.NotificationStatusResponse}
|
|
3635
3992
|
*/
|
|
3636
|
-
proto.notification.
|
|
3637
|
-
|
|
3993
|
+
proto.notification.NotificationStatusResponse.deserializeBinary = function(bytes) {
|
|
3994
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3995
|
+
var msg = new proto.notification.NotificationStatusResponse;
|
|
3996
|
+
return proto.notification.NotificationStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
3638
3997
|
};
|
|
3639
3998
|
|
|
3640
3999
|
|
|
3641
4000
|
/**
|
|
3642
|
-
*
|
|
3643
|
-
*
|
|
4001
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4002
|
+
* given reader into the given message object.
|
|
4003
|
+
* @param {!proto.notification.NotificationStatusResponse} msg The message object to deserialize into.
|
|
4004
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4005
|
+
* @return {!proto.notification.NotificationStatusResponse}
|
|
3644
4006
|
*/
|
|
3645
|
-
proto.notification.
|
|
3646
|
-
|
|
4007
|
+
proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4008
|
+
while (reader.nextField()) {
|
|
4009
|
+
if (reader.isEndGroup()) {
|
|
4010
|
+
break;
|
|
4011
|
+
}
|
|
4012
|
+
var field = reader.getFieldNumber();
|
|
4013
|
+
switch (field) {
|
|
4014
|
+
case 1:
|
|
4015
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4016
|
+
msg.setStatus(value);
|
|
4017
|
+
break;
|
|
4018
|
+
default:
|
|
4019
|
+
reader.skipField();
|
|
4020
|
+
break;
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
return msg;
|
|
3647
4024
|
};
|
|
3648
4025
|
|
|
3649
4026
|
|
|
3650
4027
|
/**
|
|
3651
|
-
*
|
|
3652
|
-
* @return {!
|
|
4028
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4029
|
+
* @return {!Uint8Array}
|
|
3653
4030
|
*/
|
|
3654
|
-
proto.notification.
|
|
3655
|
-
|
|
4031
|
+
proto.notification.NotificationStatusResponse.prototype.serializeBinary = function() {
|
|
4032
|
+
var writer = new jspb.BinaryWriter();
|
|
4033
|
+
proto.notification.NotificationStatusResponse.serializeBinaryToWriter(this, writer);
|
|
4034
|
+
return writer.getResultBuffer();
|
|
3656
4035
|
};
|
|
3657
4036
|
|
|
3658
4037
|
|
|
3659
4038
|
/**
|
|
3660
|
-
*
|
|
3661
|
-
*
|
|
4039
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4040
|
+
* format), writing to the given BinaryWriter.
|
|
4041
|
+
* @param {!proto.notification.NotificationStatusResponse} message
|
|
4042
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4043
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3662
4044
|
*/
|
|
3663
|
-
proto.notification.
|
|
3664
|
-
|
|
4045
|
+
proto.notification.NotificationStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4046
|
+
var f = undefined;
|
|
4047
|
+
f = message.getStatus();
|
|
4048
|
+
if (f.length > 0) {
|
|
4049
|
+
writer.writeString(
|
|
4050
|
+
1,
|
|
4051
|
+
f
|
|
4052
|
+
);
|
|
4053
|
+
}
|
|
3665
4054
|
};
|
|
3666
4055
|
|
|
3667
4056
|
|
|
4057
|
+
/**
|
|
4058
|
+
* optional string status = 1;
|
|
4059
|
+
* @return {string}
|
|
4060
|
+
*/
|
|
4061
|
+
proto.notification.NotificationStatusResponse.prototype.getStatus = function() {
|
|
4062
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4063
|
+
};
|
|
4064
|
+
|
|
3668
4065
|
|
|
3669
4066
|
/**
|
|
3670
|
-
*
|
|
3671
|
-
* @
|
|
3672
|
-
* @const
|
|
4067
|
+
* @param {string} value
|
|
4068
|
+
* @return {!proto.notification.NotificationStatusResponse} returns this
|
|
3673
4069
|
*/
|
|
3674
|
-
proto.notification.
|
|
4070
|
+
proto.notification.NotificationStatusResponse.prototype.setStatus = function(value) {
|
|
4071
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4072
|
+
};
|
|
4073
|
+
|
|
4074
|
+
|
|
3675
4075
|
|
|
3676
4076
|
|
|
3677
4077
|
|
|
@@ -3688,8 +4088,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3688
4088
|
* http://goto/soy-param-migration
|
|
3689
4089
|
* @return {!Object}
|
|
3690
4090
|
*/
|
|
3691
|
-
proto.notification.
|
|
3692
|
-
return proto.notification.
|
|
4091
|
+
proto.notification.UserNotificationItem.prototype.toObject = function(opt_includeInstance) {
|
|
4092
|
+
return proto.notification.UserNotificationItem.toObject(opt_includeInstance, this);
|
|
3693
4093
|
};
|
|
3694
4094
|
|
|
3695
4095
|
|
|
@@ -3698,16 +4098,17 @@ proto.notification.UserNotificationItemsResponse.prototype.toObject = function(o
|
|
|
3698
4098
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3699
4099
|
* the JSPB instance for transitional soy proto support:
|
|
3700
4100
|
* http://goto/soy-param-migration
|
|
3701
|
-
* @param {!proto.notification.
|
|
4101
|
+
* @param {!proto.notification.UserNotificationItem} msg The msg instance to transform.
|
|
3702
4102
|
* @return {!Object}
|
|
3703
4103
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3704
4104
|
*/
|
|
3705
|
-
proto.notification.
|
|
4105
|
+
proto.notification.UserNotificationItem.toObject = function(includeInstance, msg) {
|
|
3706
4106
|
var f, obj = {
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
4107
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4108
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4109
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4110
|
+
isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
4111
|
+
created: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
3711
4112
|
};
|
|
3712
4113
|
|
|
3713
4114
|
if (includeInstance) {
|
|
@@ -3721,23 +4122,23 @@ proto.notification.UserNotificationItemsResponse.toObject = function(includeInst
|
|
|
3721
4122
|
/**
|
|
3722
4123
|
* Deserializes binary data (in protobuf wire format).
|
|
3723
4124
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3724
|
-
* @return {!proto.notification.
|
|
4125
|
+
* @return {!proto.notification.UserNotificationItem}
|
|
3725
4126
|
*/
|
|
3726
|
-
proto.notification.
|
|
4127
|
+
proto.notification.UserNotificationItem.deserializeBinary = function(bytes) {
|
|
3727
4128
|
var reader = new jspb.BinaryReader(bytes);
|
|
3728
|
-
var msg = new proto.notification.
|
|
3729
|
-
return proto.notification.
|
|
4129
|
+
var msg = new proto.notification.UserNotificationItem;
|
|
4130
|
+
return proto.notification.UserNotificationItem.deserializeBinaryFromReader(msg, reader);
|
|
3730
4131
|
};
|
|
3731
4132
|
|
|
3732
4133
|
|
|
3733
4134
|
/**
|
|
3734
4135
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3735
4136
|
* given reader into the given message object.
|
|
3736
|
-
* @param {!proto.notification.
|
|
4137
|
+
* @param {!proto.notification.UserNotificationItem} msg The message object to deserialize into.
|
|
3737
4138
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3738
|
-
* @return {!proto.notification.
|
|
4139
|
+
* @return {!proto.notification.UserNotificationItem}
|
|
3739
4140
|
*/
|
|
3740
|
-
proto.notification.
|
|
4141
|
+
proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3741
4142
|
while (reader.nextField()) {
|
|
3742
4143
|
if (reader.isEndGroup()) {
|
|
3743
4144
|
break;
|
|
@@ -3745,17 +4146,24 @@ proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader = f
|
|
|
3745
4146
|
var field = reader.getFieldNumber();
|
|
3746
4147
|
switch (field) {
|
|
3747
4148
|
case 1:
|
|
3748
|
-
var value =
|
|
3749
|
-
|
|
3750
|
-
msg.addItems(value);
|
|
4149
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4150
|
+
msg.setId(value);
|
|
3751
4151
|
break;
|
|
3752
4152
|
case 2:
|
|
3753
|
-
var value = /** @type {
|
|
3754
|
-
msg.
|
|
4153
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4154
|
+
msg.setTitle(value);
|
|
3755
4155
|
break;
|
|
3756
4156
|
case 3:
|
|
3757
|
-
var value = /** @type {
|
|
3758
|
-
msg.
|
|
4157
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4158
|
+
msg.setContent(value);
|
|
4159
|
+
break;
|
|
4160
|
+
case 4:
|
|
4161
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4162
|
+
msg.setIsChecked(value);
|
|
4163
|
+
break;
|
|
4164
|
+
case 5:
|
|
4165
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4166
|
+
msg.setCreated(value);
|
|
3759
4167
|
break;
|
|
3760
4168
|
default:
|
|
3761
4169
|
reader.skipField();
|
|
@@ -3770,9 +4178,9 @@ proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader = f
|
|
|
3770
4178
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3771
4179
|
* @return {!Uint8Array}
|
|
3772
4180
|
*/
|
|
3773
|
-
proto.notification.
|
|
4181
|
+
proto.notification.UserNotificationItem.prototype.serializeBinary = function() {
|
|
3774
4182
|
var writer = new jspb.BinaryWriter();
|
|
3775
|
-
proto.notification.
|
|
4183
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter(this, writer);
|
|
3776
4184
|
return writer.getResultBuffer();
|
|
3777
4185
|
};
|
|
3778
4186
|
|
|
@@ -3780,98 +4188,1608 @@ proto.notification.UserNotificationItemsResponse.prototype.serializeBinary = fun
|
|
|
3780
4188
|
/**
|
|
3781
4189
|
* Serializes the given message to binary data (in protobuf wire
|
|
3782
4190
|
* format), writing to the given BinaryWriter.
|
|
3783
|
-
* @param {!proto.notification.
|
|
4191
|
+
* @param {!proto.notification.UserNotificationItem} message
|
|
3784
4192
|
* @param {!jspb.BinaryWriter} writer
|
|
3785
4193
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3786
4194
|
*/
|
|
3787
|
-
proto.notification.
|
|
4195
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter = function(message, writer) {
|
|
3788
4196
|
var f = undefined;
|
|
3789
|
-
f = message.
|
|
3790
|
-
if (f
|
|
3791
|
-
writer.
|
|
4197
|
+
f = message.getId();
|
|
4198
|
+
if (f !== 0) {
|
|
4199
|
+
writer.writeInt32(
|
|
3792
4200
|
1,
|
|
3793
|
-
f
|
|
3794
|
-
proto.notification.UserNotificationItem.serializeBinaryToWriter
|
|
4201
|
+
f
|
|
3795
4202
|
);
|
|
3796
4203
|
}
|
|
3797
|
-
f =
|
|
3798
|
-
if (f
|
|
3799
|
-
writer.
|
|
4204
|
+
f = message.getTitle();
|
|
4205
|
+
if (f.length > 0) {
|
|
4206
|
+
writer.writeString(
|
|
3800
4207
|
2,
|
|
3801
4208
|
f
|
|
3802
4209
|
);
|
|
3803
4210
|
}
|
|
3804
|
-
f =
|
|
3805
|
-
if (f
|
|
3806
|
-
writer.
|
|
4211
|
+
f = message.getContent();
|
|
4212
|
+
if (f.length > 0) {
|
|
4213
|
+
writer.writeString(
|
|
3807
4214
|
3,
|
|
3808
4215
|
f
|
|
3809
4216
|
);
|
|
3810
4217
|
}
|
|
4218
|
+
f = message.getIsChecked();
|
|
4219
|
+
if (f) {
|
|
4220
|
+
writer.writeBool(
|
|
4221
|
+
4,
|
|
4222
|
+
f
|
|
4223
|
+
);
|
|
4224
|
+
}
|
|
4225
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
4226
|
+
if (f != null) {
|
|
4227
|
+
writer.writeString(
|
|
4228
|
+
5,
|
|
4229
|
+
f
|
|
4230
|
+
);
|
|
4231
|
+
}
|
|
3811
4232
|
};
|
|
3812
4233
|
|
|
3813
4234
|
|
|
3814
4235
|
/**
|
|
3815
|
-
*
|
|
3816
|
-
* @return {
|
|
4236
|
+
* optional int32 id = 1;
|
|
4237
|
+
* @return {number}
|
|
3817
4238
|
*/
|
|
3818
|
-
proto.notification.
|
|
3819
|
-
return /** @type{
|
|
3820
|
-
jspb.Message.getRepeatedWrapperField(this, proto.notification.UserNotificationItem, 1));
|
|
4239
|
+
proto.notification.UserNotificationItem.prototype.getId = function() {
|
|
4240
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3821
4241
|
};
|
|
3822
4242
|
|
|
3823
4243
|
|
|
3824
4244
|
/**
|
|
3825
|
-
* @param {
|
|
3826
|
-
* @return {!proto.notification.
|
|
3827
|
-
*/
|
|
3828
|
-
proto.notification.
|
|
3829
|
-
return jspb.Message.
|
|
4245
|
+
* @param {number} value
|
|
4246
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
4247
|
+
*/
|
|
4248
|
+
proto.notification.UserNotificationItem.prototype.setId = function(value) {
|
|
4249
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3830
4250
|
};
|
|
3831
4251
|
|
|
3832
4252
|
|
|
3833
4253
|
/**
|
|
3834
|
-
*
|
|
3835
|
-
* @
|
|
3836
|
-
* @return {!proto.notification.UserNotificationItem}
|
|
4254
|
+
* optional string title = 2;
|
|
4255
|
+
* @return {string}
|
|
3837
4256
|
*/
|
|
3838
|
-
proto.notification.
|
|
3839
|
-
return jspb.Message.
|
|
4257
|
+
proto.notification.UserNotificationItem.prototype.getTitle = function() {
|
|
4258
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3840
4259
|
};
|
|
3841
4260
|
|
|
3842
4261
|
|
|
3843
4262
|
/**
|
|
3844
|
-
*
|
|
3845
|
-
* @return {!proto.notification.
|
|
4263
|
+
* @param {string} value
|
|
4264
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
3846
4265
|
*/
|
|
3847
|
-
proto.notification.
|
|
3848
|
-
return
|
|
4266
|
+
proto.notification.UserNotificationItem.prototype.setTitle = function(value) {
|
|
4267
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3849
4268
|
};
|
|
3850
4269
|
|
|
3851
4270
|
|
|
3852
4271
|
/**
|
|
3853
|
-
* optional
|
|
3854
|
-
* @return {
|
|
4272
|
+
* optional string content = 3;
|
|
4273
|
+
* @return {string}
|
|
3855
4274
|
*/
|
|
3856
|
-
proto.notification.
|
|
3857
|
-
return /** @type {
|
|
4275
|
+
proto.notification.UserNotificationItem.prototype.getContent = function() {
|
|
4276
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4277
|
+
};
|
|
4278
|
+
|
|
4279
|
+
|
|
4280
|
+
/**
|
|
4281
|
+
* @param {string} value
|
|
4282
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
4283
|
+
*/
|
|
4284
|
+
proto.notification.UserNotificationItem.prototype.setContent = function(value) {
|
|
4285
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4286
|
+
};
|
|
4287
|
+
|
|
4288
|
+
|
|
4289
|
+
/**
|
|
4290
|
+
* optional bool is_checked = 4;
|
|
4291
|
+
* @return {boolean}
|
|
4292
|
+
*/
|
|
4293
|
+
proto.notification.UserNotificationItem.prototype.getIsChecked = function() {
|
|
4294
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
4295
|
+
};
|
|
4296
|
+
|
|
4297
|
+
|
|
4298
|
+
/**
|
|
4299
|
+
* @param {boolean} value
|
|
4300
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
4301
|
+
*/
|
|
4302
|
+
proto.notification.UserNotificationItem.prototype.setIsChecked = function(value) {
|
|
4303
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
4304
|
+
};
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
/**
|
|
4308
|
+
* optional string created = 5;
|
|
4309
|
+
* @return {string}
|
|
4310
|
+
*/
|
|
4311
|
+
proto.notification.UserNotificationItem.prototype.getCreated = function() {
|
|
4312
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4313
|
+
};
|
|
4314
|
+
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* @param {string} value
|
|
4318
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
4319
|
+
*/
|
|
4320
|
+
proto.notification.UserNotificationItem.prototype.setCreated = function(value) {
|
|
4321
|
+
return jspb.Message.setField(this, 5, value);
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Clears the field making it undefined.
|
|
4327
|
+
* @return {!proto.notification.UserNotificationItem} returns this
|
|
4328
|
+
*/
|
|
4329
|
+
proto.notification.UserNotificationItem.prototype.clearCreated = function() {
|
|
4330
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
4331
|
+
};
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
/**
|
|
4335
|
+
* Returns whether this field is set.
|
|
4336
|
+
* @return {boolean}
|
|
4337
|
+
*/
|
|
4338
|
+
proto.notification.UserNotificationItem.prototype.hasCreated = function() {
|
|
4339
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
/**
|
|
4345
|
+
* List of repeated fields within this message type.
|
|
4346
|
+
* @private {!Array<number>}
|
|
4347
|
+
* @const
|
|
4348
|
+
*/
|
|
4349
|
+
proto.notification.UserNotificationItemsResponse.repeatedFields_ = [1];
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
|
|
4353
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4354
|
+
/**
|
|
4355
|
+
* Creates an object representation of this proto.
|
|
4356
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4357
|
+
* Optional fields that are not set will be set to undefined.
|
|
4358
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4359
|
+
* For the list of reserved names please see:
|
|
4360
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4361
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4362
|
+
* JSPB instance for transitional soy proto support:
|
|
4363
|
+
* http://goto/soy-param-migration
|
|
4364
|
+
* @return {!Object}
|
|
4365
|
+
*/
|
|
4366
|
+
proto.notification.UserNotificationItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4367
|
+
return proto.notification.UserNotificationItemsResponse.toObject(opt_includeInstance, this);
|
|
4368
|
+
};
|
|
4369
|
+
|
|
4370
|
+
|
|
4371
|
+
/**
|
|
4372
|
+
* Static version of the {@see toObject} method.
|
|
4373
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4374
|
+
* the JSPB instance for transitional soy proto support:
|
|
4375
|
+
* http://goto/soy-param-migration
|
|
4376
|
+
* @param {!proto.notification.UserNotificationItemsResponse} msg The msg instance to transform.
|
|
4377
|
+
* @return {!Object}
|
|
4378
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4379
|
+
*/
|
|
4380
|
+
proto.notification.UserNotificationItemsResponse.toObject = function(includeInstance, msg) {
|
|
4381
|
+
var f, obj = {
|
|
4382
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
4383
|
+
proto.notification.UserNotificationItem.toObject, includeInstance),
|
|
4384
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4385
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
if (includeInstance) {
|
|
4389
|
+
obj.$jspbMessageInstance = msg;
|
|
4390
|
+
}
|
|
4391
|
+
return obj;
|
|
4392
|
+
};
|
|
4393
|
+
}
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
/**
|
|
4397
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4398
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4399
|
+
* @return {!proto.notification.UserNotificationItemsResponse}
|
|
4400
|
+
*/
|
|
4401
|
+
proto.notification.UserNotificationItemsResponse.deserializeBinary = function(bytes) {
|
|
4402
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4403
|
+
var msg = new proto.notification.UserNotificationItemsResponse;
|
|
4404
|
+
return proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader(msg, reader);
|
|
4405
|
+
};
|
|
4406
|
+
|
|
4407
|
+
|
|
4408
|
+
/**
|
|
4409
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4410
|
+
* given reader into the given message object.
|
|
4411
|
+
* @param {!proto.notification.UserNotificationItemsResponse} msg The message object to deserialize into.
|
|
4412
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4413
|
+
* @return {!proto.notification.UserNotificationItemsResponse}
|
|
4414
|
+
*/
|
|
4415
|
+
proto.notification.UserNotificationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4416
|
+
while (reader.nextField()) {
|
|
4417
|
+
if (reader.isEndGroup()) {
|
|
4418
|
+
break;
|
|
4419
|
+
}
|
|
4420
|
+
var field = reader.getFieldNumber();
|
|
4421
|
+
switch (field) {
|
|
4422
|
+
case 1:
|
|
4423
|
+
var value = new proto.notification.UserNotificationItem;
|
|
4424
|
+
reader.readMessage(value,proto.notification.UserNotificationItem.deserializeBinaryFromReader);
|
|
4425
|
+
msg.addItems(value);
|
|
4426
|
+
break;
|
|
4427
|
+
case 2:
|
|
4428
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4429
|
+
msg.setTotalPages(value);
|
|
4430
|
+
break;
|
|
4431
|
+
case 3:
|
|
4432
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4433
|
+
msg.setTotalItems(value);
|
|
4434
|
+
break;
|
|
4435
|
+
default:
|
|
4436
|
+
reader.skipField();
|
|
4437
|
+
break;
|
|
4438
|
+
}
|
|
4439
|
+
}
|
|
4440
|
+
return msg;
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4446
|
+
* @return {!Uint8Array}
|
|
4447
|
+
*/
|
|
4448
|
+
proto.notification.UserNotificationItemsResponse.prototype.serializeBinary = function() {
|
|
4449
|
+
var writer = new jspb.BinaryWriter();
|
|
4450
|
+
proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter(this, writer);
|
|
4451
|
+
return writer.getResultBuffer();
|
|
4452
|
+
};
|
|
4453
|
+
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4457
|
+
* format), writing to the given BinaryWriter.
|
|
4458
|
+
* @param {!proto.notification.UserNotificationItemsResponse} message
|
|
4459
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4460
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4461
|
+
*/
|
|
4462
|
+
proto.notification.UserNotificationItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4463
|
+
var f = undefined;
|
|
4464
|
+
f = message.getItemsList();
|
|
4465
|
+
if (f.length > 0) {
|
|
4466
|
+
writer.writeRepeatedMessage(
|
|
4467
|
+
1,
|
|
4468
|
+
f,
|
|
4469
|
+
proto.notification.UserNotificationItem.serializeBinaryToWriter
|
|
4470
|
+
);
|
|
4471
|
+
}
|
|
4472
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
4473
|
+
if (f != null) {
|
|
4474
|
+
writer.writeInt32(
|
|
4475
|
+
2,
|
|
4476
|
+
f
|
|
4477
|
+
);
|
|
4478
|
+
}
|
|
4479
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
4480
|
+
if (f != null) {
|
|
4481
|
+
writer.writeInt32(
|
|
4482
|
+
3,
|
|
4483
|
+
f
|
|
4484
|
+
);
|
|
4485
|
+
}
|
|
4486
|
+
};
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
/**
|
|
4490
|
+
* repeated UserNotificationItem items = 1;
|
|
4491
|
+
* @return {!Array<!proto.notification.UserNotificationItem>}
|
|
4492
|
+
*/
|
|
4493
|
+
proto.notification.UserNotificationItemsResponse.prototype.getItemsList = function() {
|
|
4494
|
+
return /** @type{!Array<!proto.notification.UserNotificationItem>} */ (
|
|
4495
|
+
jspb.Message.getRepeatedWrapperField(this, proto.notification.UserNotificationItem, 1));
|
|
4496
|
+
};
|
|
4497
|
+
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* @param {!Array<!proto.notification.UserNotificationItem>} value
|
|
4501
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4502
|
+
*/
|
|
4503
|
+
proto.notification.UserNotificationItemsResponse.prototype.setItemsList = function(value) {
|
|
4504
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
/**
|
|
4509
|
+
* @param {!proto.notification.UserNotificationItem=} opt_value
|
|
4510
|
+
* @param {number=} opt_index
|
|
4511
|
+
* @return {!proto.notification.UserNotificationItem}
|
|
4512
|
+
*/
|
|
4513
|
+
proto.notification.UserNotificationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
4514
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.UserNotificationItem, opt_index);
|
|
4515
|
+
};
|
|
4516
|
+
|
|
4517
|
+
|
|
4518
|
+
/**
|
|
4519
|
+
* Clears the list making it empty but non-null.
|
|
4520
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4521
|
+
*/
|
|
4522
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearItemsList = function() {
|
|
4523
|
+
return this.setItemsList([]);
|
|
4524
|
+
};
|
|
4525
|
+
|
|
4526
|
+
|
|
4527
|
+
/**
|
|
4528
|
+
* optional int32 total_pages = 2;
|
|
4529
|
+
* @return {number}
|
|
4530
|
+
*/
|
|
4531
|
+
proto.notification.UserNotificationItemsResponse.prototype.getTotalPages = function() {
|
|
4532
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4533
|
+
};
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* @param {number} value
|
|
4538
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4539
|
+
*/
|
|
4540
|
+
proto.notification.UserNotificationItemsResponse.prototype.setTotalPages = function(value) {
|
|
4541
|
+
return jspb.Message.setField(this, 2, value);
|
|
4542
|
+
};
|
|
4543
|
+
|
|
4544
|
+
|
|
4545
|
+
/**
|
|
4546
|
+
* Clears the field making it undefined.
|
|
4547
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4548
|
+
*/
|
|
4549
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearTotalPages = function() {
|
|
4550
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
4551
|
+
};
|
|
4552
|
+
|
|
4553
|
+
|
|
4554
|
+
/**
|
|
4555
|
+
* Returns whether this field is set.
|
|
4556
|
+
* @return {boolean}
|
|
4557
|
+
*/
|
|
4558
|
+
proto.notification.UserNotificationItemsResponse.prototype.hasTotalPages = function() {
|
|
4559
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4560
|
+
};
|
|
4561
|
+
|
|
4562
|
+
|
|
4563
|
+
/**
|
|
4564
|
+
* optional int32 total_items = 3;
|
|
4565
|
+
* @return {number}
|
|
4566
|
+
*/
|
|
4567
|
+
proto.notification.UserNotificationItemsResponse.prototype.getTotalItems = function() {
|
|
4568
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4569
|
+
};
|
|
4570
|
+
|
|
4571
|
+
|
|
4572
|
+
/**
|
|
4573
|
+
* @param {number} value
|
|
4574
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4575
|
+
*/
|
|
4576
|
+
proto.notification.UserNotificationItemsResponse.prototype.setTotalItems = function(value) {
|
|
4577
|
+
return jspb.Message.setField(this, 3, value);
|
|
4578
|
+
};
|
|
4579
|
+
|
|
4580
|
+
|
|
4581
|
+
/**
|
|
4582
|
+
* Clears the field making it undefined.
|
|
4583
|
+
* @return {!proto.notification.UserNotificationItemsResponse} returns this
|
|
4584
|
+
*/
|
|
4585
|
+
proto.notification.UserNotificationItemsResponse.prototype.clearTotalItems = function() {
|
|
4586
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4587
|
+
};
|
|
4588
|
+
|
|
4589
|
+
|
|
4590
|
+
/**
|
|
4591
|
+
* Returns whether this field is set.
|
|
4592
|
+
* @return {boolean}
|
|
4593
|
+
*/
|
|
4594
|
+
proto.notification.UserNotificationItemsResponse.prototype.hasTotalItems = function() {
|
|
4595
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4596
|
+
};
|
|
4597
|
+
|
|
4598
|
+
|
|
4599
|
+
|
|
4600
|
+
|
|
4601
|
+
|
|
4602
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4603
|
+
/**
|
|
4604
|
+
* Creates an object representation of this proto.
|
|
4605
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4606
|
+
* Optional fields that are not set will be set to undefined.
|
|
4607
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4608
|
+
* For the list of reserved names please see:
|
|
4609
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4610
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4611
|
+
* JSPB instance for transitional soy proto support:
|
|
4612
|
+
* http://goto/soy-param-migration
|
|
4613
|
+
* @return {!Object}
|
|
4614
|
+
*/
|
|
4615
|
+
proto.notification.NotificationItem.prototype.toObject = function(opt_includeInstance) {
|
|
4616
|
+
return proto.notification.NotificationItem.toObject(opt_includeInstance, this);
|
|
4617
|
+
};
|
|
4618
|
+
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* Static version of the {@see toObject} method.
|
|
4622
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4623
|
+
* the JSPB instance for transitional soy proto support:
|
|
4624
|
+
* http://goto/soy-param-migration
|
|
4625
|
+
* @param {!proto.notification.NotificationItem} msg The msg instance to transform.
|
|
4626
|
+
* @return {!Object}
|
|
4627
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4628
|
+
*/
|
|
4629
|
+
proto.notification.NotificationItem.toObject = function(includeInstance, msg) {
|
|
4630
|
+
var f, obj = {
|
|
4631
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4632
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4633
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4634
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
4635
|
+
type: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4636
|
+
trigger: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
4637
|
+
created: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
4638
|
+
category: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
4639
|
+
desktopImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
4640
|
+
desktopImageCdn: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
4641
|
+
mobileImage: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
4642
|
+
mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4645
|
+
if (includeInstance) {
|
|
4646
|
+
obj.$jspbMessageInstance = msg;
|
|
4647
|
+
}
|
|
4648
|
+
return obj;
|
|
4649
|
+
};
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4655
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4656
|
+
* @return {!proto.notification.NotificationItem}
|
|
4657
|
+
*/
|
|
4658
|
+
proto.notification.NotificationItem.deserializeBinary = function(bytes) {
|
|
4659
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4660
|
+
var msg = new proto.notification.NotificationItem;
|
|
4661
|
+
return proto.notification.NotificationItem.deserializeBinaryFromReader(msg, reader);
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4667
|
+
* given reader into the given message object.
|
|
4668
|
+
* @param {!proto.notification.NotificationItem} msg The message object to deserialize into.
|
|
4669
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4670
|
+
* @return {!proto.notification.NotificationItem}
|
|
4671
|
+
*/
|
|
4672
|
+
proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
4673
|
+
while (reader.nextField()) {
|
|
4674
|
+
if (reader.isEndGroup()) {
|
|
4675
|
+
break;
|
|
4676
|
+
}
|
|
4677
|
+
var field = reader.getFieldNumber();
|
|
4678
|
+
switch (field) {
|
|
4679
|
+
case 1:
|
|
4680
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4681
|
+
msg.setId(value);
|
|
4682
|
+
break;
|
|
4683
|
+
case 2:
|
|
4684
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4685
|
+
msg.setTitle(value);
|
|
4686
|
+
break;
|
|
4687
|
+
case 3:
|
|
4688
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4689
|
+
msg.setContent(value);
|
|
4690
|
+
break;
|
|
4691
|
+
case 4:
|
|
4692
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4693
|
+
msg.setIsActive(value);
|
|
4694
|
+
break;
|
|
4695
|
+
case 5:
|
|
4696
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4697
|
+
msg.setType(value);
|
|
4698
|
+
break;
|
|
4699
|
+
case 6:
|
|
4700
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4701
|
+
msg.setTrigger(value);
|
|
4702
|
+
break;
|
|
4703
|
+
case 7:
|
|
4704
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4705
|
+
msg.setCreated(value);
|
|
4706
|
+
break;
|
|
4707
|
+
case 8:
|
|
4708
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4709
|
+
msg.setCategory(value);
|
|
4710
|
+
break;
|
|
4711
|
+
case 9:
|
|
4712
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4713
|
+
msg.setDesktopImage(value);
|
|
4714
|
+
break;
|
|
4715
|
+
case 10:
|
|
4716
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4717
|
+
msg.setDesktopImageCdn(value);
|
|
4718
|
+
break;
|
|
4719
|
+
case 11:
|
|
4720
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4721
|
+
msg.setMobileImage(value);
|
|
4722
|
+
break;
|
|
4723
|
+
case 12:
|
|
4724
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4725
|
+
msg.setMobileImageCdn(value);
|
|
4726
|
+
break;
|
|
4727
|
+
default:
|
|
4728
|
+
reader.skipField();
|
|
4729
|
+
break;
|
|
4730
|
+
}
|
|
4731
|
+
}
|
|
4732
|
+
return msg;
|
|
4733
|
+
};
|
|
4734
|
+
|
|
4735
|
+
|
|
4736
|
+
/**
|
|
4737
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4738
|
+
* @return {!Uint8Array}
|
|
4739
|
+
*/
|
|
4740
|
+
proto.notification.NotificationItem.prototype.serializeBinary = function() {
|
|
4741
|
+
var writer = new jspb.BinaryWriter();
|
|
4742
|
+
proto.notification.NotificationItem.serializeBinaryToWriter(this, writer);
|
|
4743
|
+
return writer.getResultBuffer();
|
|
4744
|
+
};
|
|
4745
|
+
|
|
4746
|
+
|
|
4747
|
+
/**
|
|
4748
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4749
|
+
* format), writing to the given BinaryWriter.
|
|
4750
|
+
* @param {!proto.notification.NotificationItem} message
|
|
4751
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4753
|
+
*/
|
|
4754
|
+
proto.notification.NotificationItem.serializeBinaryToWriter = function(message, writer) {
|
|
4755
|
+
var f = undefined;
|
|
4756
|
+
f = message.getId();
|
|
4757
|
+
if (f !== 0) {
|
|
4758
|
+
writer.writeInt32(
|
|
4759
|
+
1,
|
|
4760
|
+
f
|
|
4761
|
+
);
|
|
4762
|
+
}
|
|
4763
|
+
f = message.getTitle();
|
|
4764
|
+
if (f.length > 0) {
|
|
4765
|
+
writer.writeString(
|
|
4766
|
+
2,
|
|
4767
|
+
f
|
|
4768
|
+
);
|
|
4769
|
+
}
|
|
4770
|
+
f = message.getContent();
|
|
4771
|
+
if (f.length > 0) {
|
|
4772
|
+
writer.writeString(
|
|
4773
|
+
3,
|
|
4774
|
+
f
|
|
4775
|
+
);
|
|
4776
|
+
}
|
|
4777
|
+
f = message.getIsActive();
|
|
4778
|
+
if (f) {
|
|
4779
|
+
writer.writeBool(
|
|
4780
|
+
4,
|
|
4781
|
+
f
|
|
4782
|
+
);
|
|
4783
|
+
}
|
|
4784
|
+
f = message.getType();
|
|
4785
|
+
if (f.length > 0) {
|
|
4786
|
+
writer.writeString(
|
|
4787
|
+
5,
|
|
4788
|
+
f
|
|
4789
|
+
);
|
|
4790
|
+
}
|
|
4791
|
+
f = message.getTrigger();
|
|
4792
|
+
if (f.length > 0) {
|
|
4793
|
+
writer.writeString(
|
|
4794
|
+
6,
|
|
4795
|
+
f
|
|
4796
|
+
);
|
|
4797
|
+
}
|
|
4798
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
4799
|
+
if (f != null) {
|
|
4800
|
+
writer.writeString(
|
|
4801
|
+
7,
|
|
4802
|
+
f
|
|
4803
|
+
);
|
|
4804
|
+
}
|
|
4805
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
4806
|
+
if (f != null) {
|
|
4807
|
+
writer.writeString(
|
|
4808
|
+
8,
|
|
4809
|
+
f
|
|
4810
|
+
);
|
|
4811
|
+
}
|
|
4812
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
4813
|
+
if (f != null) {
|
|
4814
|
+
writer.writeString(
|
|
4815
|
+
9,
|
|
4816
|
+
f
|
|
4817
|
+
);
|
|
4818
|
+
}
|
|
4819
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
4820
|
+
if (f != null) {
|
|
4821
|
+
writer.writeString(
|
|
4822
|
+
10,
|
|
4823
|
+
f
|
|
4824
|
+
);
|
|
4825
|
+
}
|
|
4826
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
4827
|
+
if (f != null) {
|
|
4828
|
+
writer.writeString(
|
|
4829
|
+
11,
|
|
4830
|
+
f
|
|
4831
|
+
);
|
|
4832
|
+
}
|
|
4833
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
|
4834
|
+
if (f != null) {
|
|
4835
|
+
writer.writeString(
|
|
4836
|
+
12,
|
|
4837
|
+
f
|
|
4838
|
+
);
|
|
4839
|
+
}
|
|
4840
|
+
};
|
|
4841
|
+
|
|
4842
|
+
|
|
4843
|
+
/**
|
|
4844
|
+
* optional int32 id = 1;
|
|
4845
|
+
* @return {number}
|
|
4846
|
+
*/
|
|
4847
|
+
proto.notification.NotificationItem.prototype.getId = function() {
|
|
4848
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4849
|
+
};
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
/**
|
|
4853
|
+
* @param {number} value
|
|
4854
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4855
|
+
*/
|
|
4856
|
+
proto.notification.NotificationItem.prototype.setId = function(value) {
|
|
4857
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4858
|
+
};
|
|
4859
|
+
|
|
4860
|
+
|
|
4861
|
+
/**
|
|
4862
|
+
* optional string title = 2;
|
|
4863
|
+
* @return {string}
|
|
4864
|
+
*/
|
|
4865
|
+
proto.notification.NotificationItem.prototype.getTitle = function() {
|
|
4866
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4867
|
+
};
|
|
4868
|
+
|
|
4869
|
+
|
|
4870
|
+
/**
|
|
4871
|
+
* @param {string} value
|
|
4872
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4873
|
+
*/
|
|
4874
|
+
proto.notification.NotificationItem.prototype.setTitle = function(value) {
|
|
4875
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4876
|
+
};
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
/**
|
|
4880
|
+
* optional string content = 3;
|
|
4881
|
+
* @return {string}
|
|
4882
|
+
*/
|
|
4883
|
+
proto.notification.NotificationItem.prototype.getContent = function() {
|
|
4884
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4885
|
+
};
|
|
4886
|
+
|
|
4887
|
+
|
|
4888
|
+
/**
|
|
4889
|
+
* @param {string} value
|
|
4890
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4891
|
+
*/
|
|
4892
|
+
proto.notification.NotificationItem.prototype.setContent = function(value) {
|
|
4893
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4894
|
+
};
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
/**
|
|
4898
|
+
* optional bool is_active = 4;
|
|
4899
|
+
* @return {boolean}
|
|
4900
|
+
*/
|
|
4901
|
+
proto.notification.NotificationItem.prototype.getIsActive = function() {
|
|
4902
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
4903
|
+
};
|
|
4904
|
+
|
|
4905
|
+
|
|
4906
|
+
/**
|
|
4907
|
+
* @param {boolean} value
|
|
4908
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4909
|
+
*/
|
|
4910
|
+
proto.notification.NotificationItem.prototype.setIsActive = function(value) {
|
|
4911
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
4912
|
+
};
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
/**
|
|
4916
|
+
* optional string type = 5;
|
|
4917
|
+
* @return {string}
|
|
4918
|
+
*/
|
|
4919
|
+
proto.notification.NotificationItem.prototype.getType = function() {
|
|
4920
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4921
|
+
};
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
/**
|
|
4925
|
+
* @param {string} value
|
|
4926
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4927
|
+
*/
|
|
4928
|
+
proto.notification.NotificationItem.prototype.setType = function(value) {
|
|
4929
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4930
|
+
};
|
|
4931
|
+
|
|
4932
|
+
|
|
4933
|
+
/**
|
|
4934
|
+
* optional string trigger = 6;
|
|
4935
|
+
* @return {string}
|
|
4936
|
+
*/
|
|
4937
|
+
proto.notification.NotificationItem.prototype.getTrigger = function() {
|
|
4938
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
4939
|
+
};
|
|
4940
|
+
|
|
4941
|
+
|
|
4942
|
+
/**
|
|
4943
|
+
* @param {string} value
|
|
4944
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4945
|
+
*/
|
|
4946
|
+
proto.notification.NotificationItem.prototype.setTrigger = function(value) {
|
|
4947
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
4948
|
+
};
|
|
4949
|
+
|
|
4950
|
+
|
|
4951
|
+
/**
|
|
4952
|
+
* optional string created = 7;
|
|
4953
|
+
* @return {string}
|
|
4954
|
+
*/
|
|
4955
|
+
proto.notification.NotificationItem.prototype.getCreated = function() {
|
|
4956
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
4957
|
+
};
|
|
4958
|
+
|
|
4959
|
+
|
|
4960
|
+
/**
|
|
4961
|
+
* @param {string} value
|
|
4962
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4963
|
+
*/
|
|
4964
|
+
proto.notification.NotificationItem.prototype.setCreated = function(value) {
|
|
4965
|
+
return jspb.Message.setField(this, 7, value);
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4968
|
+
|
|
4969
|
+
/**
|
|
4970
|
+
* Clears the field making it undefined.
|
|
4971
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4972
|
+
*/
|
|
4973
|
+
proto.notification.NotificationItem.prototype.clearCreated = function() {
|
|
4974
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
4975
|
+
};
|
|
4976
|
+
|
|
4977
|
+
|
|
4978
|
+
/**
|
|
4979
|
+
* Returns whether this field is set.
|
|
4980
|
+
* @return {boolean}
|
|
4981
|
+
*/
|
|
4982
|
+
proto.notification.NotificationItem.prototype.hasCreated = function() {
|
|
4983
|
+
return jspb.Message.getField(this, 7) != null;
|
|
4984
|
+
};
|
|
4985
|
+
|
|
4986
|
+
|
|
4987
|
+
/**
|
|
4988
|
+
* optional string category = 8;
|
|
4989
|
+
* @return {string}
|
|
4990
|
+
*/
|
|
4991
|
+
proto.notification.NotificationItem.prototype.getCategory = function() {
|
|
4992
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
4993
|
+
};
|
|
4994
|
+
|
|
4995
|
+
|
|
4996
|
+
/**
|
|
4997
|
+
* @param {string} value
|
|
4998
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
4999
|
+
*/
|
|
5000
|
+
proto.notification.NotificationItem.prototype.setCategory = function(value) {
|
|
5001
|
+
return jspb.Message.setField(this, 8, value);
|
|
5002
|
+
};
|
|
5003
|
+
|
|
5004
|
+
|
|
5005
|
+
/**
|
|
5006
|
+
* Clears the field making it undefined.
|
|
5007
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5008
|
+
*/
|
|
5009
|
+
proto.notification.NotificationItem.prototype.clearCategory = function() {
|
|
5010
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
5011
|
+
};
|
|
5012
|
+
|
|
5013
|
+
|
|
5014
|
+
/**
|
|
5015
|
+
* Returns whether this field is set.
|
|
5016
|
+
* @return {boolean}
|
|
5017
|
+
*/
|
|
5018
|
+
proto.notification.NotificationItem.prototype.hasCategory = function() {
|
|
5019
|
+
return jspb.Message.getField(this, 8) != null;
|
|
5020
|
+
};
|
|
5021
|
+
|
|
5022
|
+
|
|
5023
|
+
/**
|
|
5024
|
+
* optional string desktop_image = 9;
|
|
5025
|
+
* @return {string}
|
|
5026
|
+
*/
|
|
5027
|
+
proto.notification.NotificationItem.prototype.getDesktopImage = function() {
|
|
5028
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
5029
|
+
};
|
|
5030
|
+
|
|
5031
|
+
|
|
5032
|
+
/**
|
|
5033
|
+
* @param {string} value
|
|
5034
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5035
|
+
*/
|
|
5036
|
+
proto.notification.NotificationItem.prototype.setDesktopImage = function(value) {
|
|
5037
|
+
return jspb.Message.setField(this, 9, value);
|
|
5038
|
+
};
|
|
5039
|
+
|
|
5040
|
+
|
|
5041
|
+
/**
|
|
5042
|
+
* Clears the field making it undefined.
|
|
5043
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5044
|
+
*/
|
|
5045
|
+
proto.notification.NotificationItem.prototype.clearDesktopImage = function() {
|
|
5046
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
5047
|
+
};
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
/**
|
|
5051
|
+
* Returns whether this field is set.
|
|
5052
|
+
* @return {boolean}
|
|
5053
|
+
*/
|
|
5054
|
+
proto.notification.NotificationItem.prototype.hasDesktopImage = function() {
|
|
5055
|
+
return jspb.Message.getField(this, 9) != null;
|
|
5056
|
+
};
|
|
5057
|
+
|
|
5058
|
+
|
|
5059
|
+
/**
|
|
5060
|
+
* optional string desktop_image_cdn = 10;
|
|
5061
|
+
* @return {string}
|
|
5062
|
+
*/
|
|
5063
|
+
proto.notification.NotificationItem.prototype.getDesktopImageCdn = function() {
|
|
5064
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
5065
|
+
};
|
|
5066
|
+
|
|
5067
|
+
|
|
5068
|
+
/**
|
|
5069
|
+
* @param {string} value
|
|
5070
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5071
|
+
*/
|
|
5072
|
+
proto.notification.NotificationItem.prototype.setDesktopImageCdn = function(value) {
|
|
5073
|
+
return jspb.Message.setField(this, 10, value);
|
|
5074
|
+
};
|
|
5075
|
+
|
|
5076
|
+
|
|
5077
|
+
/**
|
|
5078
|
+
* Clears the field making it undefined.
|
|
5079
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5080
|
+
*/
|
|
5081
|
+
proto.notification.NotificationItem.prototype.clearDesktopImageCdn = function() {
|
|
5082
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
5083
|
+
};
|
|
5084
|
+
|
|
5085
|
+
|
|
5086
|
+
/**
|
|
5087
|
+
* Returns whether this field is set.
|
|
5088
|
+
* @return {boolean}
|
|
5089
|
+
*/
|
|
5090
|
+
proto.notification.NotificationItem.prototype.hasDesktopImageCdn = function() {
|
|
5091
|
+
return jspb.Message.getField(this, 10) != null;
|
|
5092
|
+
};
|
|
5093
|
+
|
|
5094
|
+
|
|
5095
|
+
/**
|
|
5096
|
+
* optional string mobile_image = 11;
|
|
5097
|
+
* @return {string}
|
|
5098
|
+
*/
|
|
5099
|
+
proto.notification.NotificationItem.prototype.getMobileImage = function() {
|
|
5100
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
5101
|
+
};
|
|
5102
|
+
|
|
5103
|
+
|
|
5104
|
+
/**
|
|
5105
|
+
* @param {string} value
|
|
5106
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5107
|
+
*/
|
|
5108
|
+
proto.notification.NotificationItem.prototype.setMobileImage = function(value) {
|
|
5109
|
+
return jspb.Message.setField(this, 11, value);
|
|
5110
|
+
};
|
|
5111
|
+
|
|
5112
|
+
|
|
5113
|
+
/**
|
|
5114
|
+
* Clears the field making it undefined.
|
|
5115
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5116
|
+
*/
|
|
5117
|
+
proto.notification.NotificationItem.prototype.clearMobileImage = function() {
|
|
5118
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
5119
|
+
};
|
|
5120
|
+
|
|
5121
|
+
|
|
5122
|
+
/**
|
|
5123
|
+
* Returns whether this field is set.
|
|
5124
|
+
* @return {boolean}
|
|
5125
|
+
*/
|
|
5126
|
+
proto.notification.NotificationItem.prototype.hasMobileImage = function() {
|
|
5127
|
+
return jspb.Message.getField(this, 11) != null;
|
|
5128
|
+
};
|
|
5129
|
+
|
|
5130
|
+
|
|
5131
|
+
/**
|
|
5132
|
+
* optional string mobile_image_cdn = 12;
|
|
5133
|
+
* @return {string}
|
|
5134
|
+
*/
|
|
5135
|
+
proto.notification.NotificationItem.prototype.getMobileImageCdn = function() {
|
|
5136
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
5137
|
+
};
|
|
5138
|
+
|
|
5139
|
+
|
|
5140
|
+
/**
|
|
5141
|
+
* @param {string} value
|
|
5142
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5143
|
+
*/
|
|
5144
|
+
proto.notification.NotificationItem.prototype.setMobileImageCdn = function(value) {
|
|
5145
|
+
return jspb.Message.setField(this, 12, value);
|
|
5146
|
+
};
|
|
5147
|
+
|
|
5148
|
+
|
|
5149
|
+
/**
|
|
5150
|
+
* Clears the field making it undefined.
|
|
5151
|
+
* @return {!proto.notification.NotificationItem} returns this
|
|
5152
|
+
*/
|
|
5153
|
+
proto.notification.NotificationItem.prototype.clearMobileImageCdn = function() {
|
|
5154
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
5155
|
+
};
|
|
5156
|
+
|
|
5157
|
+
|
|
5158
|
+
/**
|
|
5159
|
+
* Returns whether this field is set.
|
|
5160
|
+
* @return {boolean}
|
|
5161
|
+
*/
|
|
5162
|
+
proto.notification.NotificationItem.prototype.hasMobileImageCdn = function() {
|
|
5163
|
+
return jspb.Message.getField(this, 12) != null;
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
|
|
5167
|
+
|
|
5168
|
+
|
|
5169
|
+
|
|
5170
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5171
|
+
/**
|
|
5172
|
+
* Creates an object representation of this proto.
|
|
5173
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5174
|
+
* Optional fields that are not set will be set to undefined.
|
|
5175
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5176
|
+
* For the list of reserved names please see:
|
|
5177
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5178
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5179
|
+
* JSPB instance for transitional soy proto support:
|
|
5180
|
+
* http://goto/soy-param-migration
|
|
5181
|
+
* @return {!Object}
|
|
5182
|
+
*/
|
|
5183
|
+
proto.notification.NotificationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5184
|
+
return proto.notification.NotificationResponse.toObject(opt_includeInstance, this);
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* Static version of the {@see toObject} method.
|
|
5190
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5191
|
+
* the JSPB instance for transitional soy proto support:
|
|
5192
|
+
* http://goto/soy-param-migration
|
|
5193
|
+
* @param {!proto.notification.NotificationResponse} msg The msg instance to transform.
|
|
5194
|
+
* @return {!Object}
|
|
5195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5196
|
+
*/
|
|
5197
|
+
proto.notification.NotificationResponse.toObject = function(includeInstance, msg) {
|
|
5198
|
+
var f, obj = {
|
|
5199
|
+
data: (f = msg.getData()) && proto.notification.NotificationItem.toObject(includeInstance, f)
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
if (includeInstance) {
|
|
5203
|
+
obj.$jspbMessageInstance = msg;
|
|
5204
|
+
}
|
|
5205
|
+
return obj;
|
|
5206
|
+
};
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
|
|
5210
|
+
/**
|
|
5211
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5212
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5213
|
+
* @return {!proto.notification.NotificationResponse}
|
|
5214
|
+
*/
|
|
5215
|
+
proto.notification.NotificationResponse.deserializeBinary = function(bytes) {
|
|
5216
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5217
|
+
var msg = new proto.notification.NotificationResponse;
|
|
5218
|
+
return proto.notification.NotificationResponse.deserializeBinaryFromReader(msg, reader);
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
/**
|
|
5223
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5224
|
+
* given reader into the given message object.
|
|
5225
|
+
* @param {!proto.notification.NotificationResponse} msg The message object to deserialize into.
|
|
5226
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5227
|
+
* @return {!proto.notification.NotificationResponse}
|
|
5228
|
+
*/
|
|
5229
|
+
proto.notification.NotificationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5230
|
+
while (reader.nextField()) {
|
|
5231
|
+
if (reader.isEndGroup()) {
|
|
5232
|
+
break;
|
|
5233
|
+
}
|
|
5234
|
+
var field = reader.getFieldNumber();
|
|
5235
|
+
switch (field) {
|
|
5236
|
+
case 1:
|
|
5237
|
+
var value = new proto.notification.NotificationItem;
|
|
5238
|
+
reader.readMessage(value,proto.notification.NotificationItem.deserializeBinaryFromReader);
|
|
5239
|
+
msg.setData(value);
|
|
5240
|
+
break;
|
|
5241
|
+
default:
|
|
5242
|
+
reader.skipField();
|
|
5243
|
+
break;
|
|
5244
|
+
}
|
|
5245
|
+
}
|
|
5246
|
+
return msg;
|
|
5247
|
+
};
|
|
5248
|
+
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5252
|
+
* @return {!Uint8Array}
|
|
5253
|
+
*/
|
|
5254
|
+
proto.notification.NotificationResponse.prototype.serializeBinary = function() {
|
|
5255
|
+
var writer = new jspb.BinaryWriter();
|
|
5256
|
+
proto.notification.NotificationResponse.serializeBinaryToWriter(this, writer);
|
|
5257
|
+
return writer.getResultBuffer();
|
|
5258
|
+
};
|
|
5259
|
+
|
|
5260
|
+
|
|
5261
|
+
/**
|
|
5262
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5263
|
+
* format), writing to the given BinaryWriter.
|
|
5264
|
+
* @param {!proto.notification.NotificationResponse} message
|
|
5265
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5266
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5267
|
+
*/
|
|
5268
|
+
proto.notification.NotificationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5269
|
+
var f = undefined;
|
|
5270
|
+
f = message.getData();
|
|
5271
|
+
if (f != null) {
|
|
5272
|
+
writer.writeMessage(
|
|
5273
|
+
1,
|
|
5274
|
+
f,
|
|
5275
|
+
proto.notification.NotificationItem.serializeBinaryToWriter
|
|
5276
|
+
);
|
|
5277
|
+
}
|
|
5278
|
+
};
|
|
5279
|
+
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* optional NotificationItem data = 1;
|
|
5283
|
+
* @return {?proto.notification.NotificationItem}
|
|
5284
|
+
*/
|
|
5285
|
+
proto.notification.NotificationResponse.prototype.getData = function() {
|
|
5286
|
+
return /** @type{?proto.notification.NotificationItem} */ (
|
|
5287
|
+
jspb.Message.getWrapperField(this, proto.notification.NotificationItem, 1));
|
|
5288
|
+
};
|
|
5289
|
+
|
|
5290
|
+
|
|
5291
|
+
/**
|
|
5292
|
+
* @param {?proto.notification.NotificationItem|undefined} value
|
|
5293
|
+
* @return {!proto.notification.NotificationResponse} returns this
|
|
5294
|
+
*/
|
|
5295
|
+
proto.notification.NotificationResponse.prototype.setData = function(value) {
|
|
5296
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5297
|
+
};
|
|
5298
|
+
|
|
5299
|
+
|
|
5300
|
+
/**
|
|
5301
|
+
* Clears the message field making it undefined.
|
|
5302
|
+
* @return {!proto.notification.NotificationResponse} returns this
|
|
5303
|
+
*/
|
|
5304
|
+
proto.notification.NotificationResponse.prototype.clearData = function() {
|
|
5305
|
+
return this.setData(undefined);
|
|
5306
|
+
};
|
|
5307
|
+
|
|
5308
|
+
|
|
5309
|
+
/**
|
|
5310
|
+
* Returns whether this field is set.
|
|
5311
|
+
* @return {boolean}
|
|
5312
|
+
*/
|
|
5313
|
+
proto.notification.NotificationResponse.prototype.hasData = function() {
|
|
5314
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5315
|
+
};
|
|
5316
|
+
|
|
5317
|
+
|
|
5318
|
+
|
|
5319
|
+
/**
|
|
5320
|
+
* List of repeated fields within this message type.
|
|
5321
|
+
* @private {!Array<number>}
|
|
5322
|
+
* @const
|
|
5323
|
+
*/
|
|
5324
|
+
proto.notification.NotificationItemsResponse.repeatedFields_ = [1];
|
|
5325
|
+
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5329
|
+
/**
|
|
5330
|
+
* Creates an object representation of this proto.
|
|
5331
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5332
|
+
* Optional fields that are not set will be set to undefined.
|
|
5333
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5334
|
+
* For the list of reserved names please see:
|
|
5335
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5336
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5337
|
+
* JSPB instance for transitional soy proto support:
|
|
5338
|
+
* http://goto/soy-param-migration
|
|
5339
|
+
* @return {!Object}
|
|
5340
|
+
*/
|
|
5341
|
+
proto.notification.NotificationItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5342
|
+
return proto.notification.NotificationItemsResponse.toObject(opt_includeInstance, this);
|
|
5343
|
+
};
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
/**
|
|
5347
|
+
* Static version of the {@see toObject} method.
|
|
5348
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5349
|
+
* the JSPB instance for transitional soy proto support:
|
|
5350
|
+
* http://goto/soy-param-migration
|
|
5351
|
+
* @param {!proto.notification.NotificationItemsResponse} msg The msg instance to transform.
|
|
5352
|
+
* @return {!Object}
|
|
5353
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5354
|
+
*/
|
|
5355
|
+
proto.notification.NotificationItemsResponse.toObject = function(includeInstance, msg) {
|
|
5356
|
+
var f, obj = {
|
|
5357
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
5358
|
+
proto.notification.NotificationItem.toObject, includeInstance),
|
|
5359
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
5360
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
5361
|
+
};
|
|
5362
|
+
|
|
5363
|
+
if (includeInstance) {
|
|
5364
|
+
obj.$jspbMessageInstance = msg;
|
|
5365
|
+
}
|
|
5366
|
+
return obj;
|
|
5367
|
+
};
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
|
|
5371
|
+
/**
|
|
5372
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5373
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5374
|
+
* @return {!proto.notification.NotificationItemsResponse}
|
|
5375
|
+
*/
|
|
5376
|
+
proto.notification.NotificationItemsResponse.deserializeBinary = function(bytes) {
|
|
5377
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5378
|
+
var msg = new proto.notification.NotificationItemsResponse;
|
|
5379
|
+
return proto.notification.NotificationItemsResponse.deserializeBinaryFromReader(msg, reader);
|
|
5380
|
+
};
|
|
5381
|
+
|
|
5382
|
+
|
|
5383
|
+
/**
|
|
5384
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5385
|
+
* given reader into the given message object.
|
|
5386
|
+
* @param {!proto.notification.NotificationItemsResponse} msg The message object to deserialize into.
|
|
5387
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5388
|
+
* @return {!proto.notification.NotificationItemsResponse}
|
|
5389
|
+
*/
|
|
5390
|
+
proto.notification.NotificationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5391
|
+
while (reader.nextField()) {
|
|
5392
|
+
if (reader.isEndGroup()) {
|
|
5393
|
+
break;
|
|
5394
|
+
}
|
|
5395
|
+
var field = reader.getFieldNumber();
|
|
5396
|
+
switch (field) {
|
|
5397
|
+
case 1:
|
|
5398
|
+
var value = new proto.notification.NotificationItem;
|
|
5399
|
+
reader.readMessage(value,proto.notification.NotificationItem.deserializeBinaryFromReader);
|
|
5400
|
+
msg.addItems(value);
|
|
5401
|
+
break;
|
|
5402
|
+
case 2:
|
|
5403
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5404
|
+
msg.setTotalPages(value);
|
|
5405
|
+
break;
|
|
5406
|
+
case 3:
|
|
5407
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5408
|
+
msg.setTotalItems(value);
|
|
5409
|
+
break;
|
|
5410
|
+
default:
|
|
5411
|
+
reader.skipField();
|
|
5412
|
+
break;
|
|
5413
|
+
}
|
|
5414
|
+
}
|
|
5415
|
+
return msg;
|
|
5416
|
+
};
|
|
5417
|
+
|
|
5418
|
+
|
|
5419
|
+
/**
|
|
5420
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5421
|
+
* @return {!Uint8Array}
|
|
5422
|
+
*/
|
|
5423
|
+
proto.notification.NotificationItemsResponse.prototype.serializeBinary = function() {
|
|
5424
|
+
var writer = new jspb.BinaryWriter();
|
|
5425
|
+
proto.notification.NotificationItemsResponse.serializeBinaryToWriter(this, writer);
|
|
5426
|
+
return writer.getResultBuffer();
|
|
5427
|
+
};
|
|
5428
|
+
|
|
5429
|
+
|
|
5430
|
+
/**
|
|
5431
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5432
|
+
* format), writing to the given BinaryWriter.
|
|
5433
|
+
* @param {!proto.notification.NotificationItemsResponse} message
|
|
5434
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5435
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5436
|
+
*/
|
|
5437
|
+
proto.notification.NotificationItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5438
|
+
var f = undefined;
|
|
5439
|
+
f = message.getItemsList();
|
|
5440
|
+
if (f.length > 0) {
|
|
5441
|
+
writer.writeRepeatedMessage(
|
|
5442
|
+
1,
|
|
5443
|
+
f,
|
|
5444
|
+
proto.notification.NotificationItem.serializeBinaryToWriter
|
|
5445
|
+
);
|
|
5446
|
+
}
|
|
5447
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
5448
|
+
if (f != null) {
|
|
5449
|
+
writer.writeInt32(
|
|
5450
|
+
2,
|
|
5451
|
+
f
|
|
5452
|
+
);
|
|
5453
|
+
}
|
|
5454
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
5455
|
+
if (f != null) {
|
|
5456
|
+
writer.writeInt32(
|
|
5457
|
+
3,
|
|
5458
|
+
f
|
|
5459
|
+
);
|
|
5460
|
+
}
|
|
5461
|
+
};
|
|
5462
|
+
|
|
5463
|
+
|
|
5464
|
+
/**
|
|
5465
|
+
* repeated NotificationItem items = 1;
|
|
5466
|
+
* @return {!Array<!proto.notification.NotificationItem>}
|
|
5467
|
+
*/
|
|
5468
|
+
proto.notification.NotificationItemsResponse.prototype.getItemsList = function() {
|
|
5469
|
+
return /** @type{!Array<!proto.notification.NotificationItem>} */ (
|
|
5470
|
+
jspb.Message.getRepeatedWrapperField(this, proto.notification.NotificationItem, 1));
|
|
5471
|
+
};
|
|
5472
|
+
|
|
5473
|
+
|
|
5474
|
+
/**
|
|
5475
|
+
* @param {!Array<!proto.notification.NotificationItem>} value
|
|
5476
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5477
|
+
*/
|
|
5478
|
+
proto.notification.NotificationItemsResponse.prototype.setItemsList = function(value) {
|
|
5479
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
5480
|
+
};
|
|
5481
|
+
|
|
5482
|
+
|
|
5483
|
+
/**
|
|
5484
|
+
* @param {!proto.notification.NotificationItem=} opt_value
|
|
5485
|
+
* @param {number=} opt_index
|
|
5486
|
+
* @return {!proto.notification.NotificationItem}
|
|
5487
|
+
*/
|
|
5488
|
+
proto.notification.NotificationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
5489
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.NotificationItem, opt_index);
|
|
5490
|
+
};
|
|
5491
|
+
|
|
5492
|
+
|
|
5493
|
+
/**
|
|
5494
|
+
* Clears the list making it empty but non-null.
|
|
5495
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5496
|
+
*/
|
|
5497
|
+
proto.notification.NotificationItemsResponse.prototype.clearItemsList = function() {
|
|
5498
|
+
return this.setItemsList([]);
|
|
5499
|
+
};
|
|
5500
|
+
|
|
5501
|
+
|
|
5502
|
+
/**
|
|
5503
|
+
* optional int32 total_pages = 2;
|
|
5504
|
+
* @return {number}
|
|
5505
|
+
*/
|
|
5506
|
+
proto.notification.NotificationItemsResponse.prototype.getTotalPages = function() {
|
|
5507
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
5508
|
+
};
|
|
5509
|
+
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* @param {number} value
|
|
5513
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5514
|
+
*/
|
|
5515
|
+
proto.notification.NotificationItemsResponse.prototype.setTotalPages = function(value) {
|
|
5516
|
+
return jspb.Message.setField(this, 2, value);
|
|
5517
|
+
};
|
|
5518
|
+
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* Clears the field making it undefined.
|
|
5522
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5523
|
+
*/
|
|
5524
|
+
proto.notification.NotificationItemsResponse.prototype.clearTotalPages = function() {
|
|
5525
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5526
|
+
};
|
|
5527
|
+
|
|
5528
|
+
|
|
5529
|
+
/**
|
|
5530
|
+
* Returns whether this field is set.
|
|
5531
|
+
* @return {boolean}
|
|
5532
|
+
*/
|
|
5533
|
+
proto.notification.NotificationItemsResponse.prototype.hasTotalPages = function() {
|
|
5534
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5535
|
+
};
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
/**
|
|
5539
|
+
* optional int32 total_items = 3;
|
|
5540
|
+
* @return {number}
|
|
5541
|
+
*/
|
|
5542
|
+
proto.notification.NotificationItemsResponse.prototype.getTotalItems = function() {
|
|
5543
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5546
|
+
|
|
5547
|
+
/**
|
|
5548
|
+
* @param {number} value
|
|
5549
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5550
|
+
*/
|
|
5551
|
+
proto.notification.NotificationItemsResponse.prototype.setTotalItems = function(value) {
|
|
5552
|
+
return jspb.Message.setField(this, 3, value);
|
|
5553
|
+
};
|
|
5554
|
+
|
|
5555
|
+
|
|
5556
|
+
/**
|
|
5557
|
+
* Clears the field making it undefined.
|
|
5558
|
+
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
5559
|
+
*/
|
|
5560
|
+
proto.notification.NotificationItemsResponse.prototype.clearTotalItems = function() {
|
|
5561
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
5562
|
+
};
|
|
5563
|
+
|
|
5564
|
+
|
|
5565
|
+
/**
|
|
5566
|
+
* Returns whether this field is set.
|
|
5567
|
+
* @return {boolean}
|
|
5568
|
+
*/
|
|
5569
|
+
proto.notification.NotificationItemsResponse.prototype.hasTotalItems = function() {
|
|
5570
|
+
return jspb.Message.getField(this, 3) != null;
|
|
5571
|
+
};
|
|
5572
|
+
|
|
5573
|
+
|
|
5574
|
+
|
|
5575
|
+
|
|
5576
|
+
|
|
5577
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5578
|
+
/**
|
|
5579
|
+
* Creates an object representation of this proto.
|
|
5580
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5581
|
+
* Optional fields that are not set will be set to undefined.
|
|
5582
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5583
|
+
* For the list of reserved names please see:
|
|
5584
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5585
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5586
|
+
* JSPB instance for transitional soy proto support:
|
|
5587
|
+
* http://goto/soy-param-migration
|
|
5588
|
+
* @return {!Object}
|
|
5589
|
+
*/
|
|
5590
|
+
proto.notification.NotificationTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5591
|
+
return proto.notification.NotificationTranslationRequest.toObject(opt_includeInstance, this);
|
|
5592
|
+
};
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
/**
|
|
5596
|
+
* Static version of the {@see toObject} method.
|
|
5597
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5598
|
+
* the JSPB instance for transitional soy proto support:
|
|
5599
|
+
* http://goto/soy-param-migration
|
|
5600
|
+
* @param {!proto.notification.NotificationTranslationRequest} msg The msg instance to transform.
|
|
5601
|
+
* @return {!Object}
|
|
5602
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5603
|
+
*/
|
|
5604
|
+
proto.notification.NotificationTranslationRequest.toObject = function(includeInstance, msg) {
|
|
5605
|
+
var f, obj = {
|
|
5606
|
+
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
5607
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
5608
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5609
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5610
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
5611
|
+
};
|
|
5612
|
+
|
|
5613
|
+
if (includeInstance) {
|
|
5614
|
+
obj.$jspbMessageInstance = msg;
|
|
5615
|
+
}
|
|
5616
|
+
return obj;
|
|
5617
|
+
};
|
|
5618
|
+
}
|
|
5619
|
+
|
|
5620
|
+
|
|
5621
|
+
/**
|
|
5622
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5623
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5624
|
+
* @return {!proto.notification.NotificationTranslationRequest}
|
|
5625
|
+
*/
|
|
5626
|
+
proto.notification.NotificationTranslationRequest.deserializeBinary = function(bytes) {
|
|
5627
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5628
|
+
var msg = new proto.notification.NotificationTranslationRequest;
|
|
5629
|
+
return proto.notification.NotificationTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
5630
|
+
};
|
|
5631
|
+
|
|
5632
|
+
|
|
5633
|
+
/**
|
|
5634
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5635
|
+
* given reader into the given message object.
|
|
5636
|
+
* @param {!proto.notification.NotificationTranslationRequest} msg The message object to deserialize into.
|
|
5637
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5638
|
+
* @return {!proto.notification.NotificationTranslationRequest}
|
|
5639
|
+
*/
|
|
5640
|
+
proto.notification.NotificationTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5641
|
+
while (reader.nextField()) {
|
|
5642
|
+
if (reader.isEndGroup()) {
|
|
5643
|
+
break;
|
|
5644
|
+
}
|
|
5645
|
+
var field = reader.getFieldNumber();
|
|
5646
|
+
switch (field) {
|
|
5647
|
+
case 1:
|
|
5648
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5649
|
+
msg.setNotificationId(value);
|
|
5650
|
+
break;
|
|
5651
|
+
case 2:
|
|
5652
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5653
|
+
msg.setLocale(value);
|
|
5654
|
+
break;
|
|
5655
|
+
case 3:
|
|
5656
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5657
|
+
msg.setTitle(value);
|
|
5658
|
+
break;
|
|
5659
|
+
case 4:
|
|
5660
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5661
|
+
msg.setContent(value);
|
|
5662
|
+
break;
|
|
5663
|
+
case 5:
|
|
5664
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5665
|
+
msg.setIsActive(value);
|
|
5666
|
+
break;
|
|
5667
|
+
default:
|
|
5668
|
+
reader.skipField();
|
|
5669
|
+
break;
|
|
5670
|
+
}
|
|
5671
|
+
}
|
|
5672
|
+
return msg;
|
|
5673
|
+
};
|
|
5674
|
+
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5678
|
+
* @return {!Uint8Array}
|
|
5679
|
+
*/
|
|
5680
|
+
proto.notification.NotificationTranslationRequest.prototype.serializeBinary = function() {
|
|
5681
|
+
var writer = new jspb.BinaryWriter();
|
|
5682
|
+
proto.notification.NotificationTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
5683
|
+
return writer.getResultBuffer();
|
|
5684
|
+
};
|
|
5685
|
+
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5689
|
+
* format), writing to the given BinaryWriter.
|
|
5690
|
+
* @param {!proto.notification.NotificationTranslationRequest} message
|
|
5691
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5692
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5693
|
+
*/
|
|
5694
|
+
proto.notification.NotificationTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5695
|
+
var f = undefined;
|
|
5696
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
5697
|
+
if (f != null) {
|
|
5698
|
+
writer.writeInt32(
|
|
5699
|
+
1,
|
|
5700
|
+
f
|
|
5701
|
+
);
|
|
5702
|
+
}
|
|
5703
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
5704
|
+
if (f != null) {
|
|
5705
|
+
writer.writeString(
|
|
5706
|
+
2,
|
|
5707
|
+
f
|
|
5708
|
+
);
|
|
5709
|
+
}
|
|
5710
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
5711
|
+
if (f != null) {
|
|
5712
|
+
writer.writeString(
|
|
5713
|
+
3,
|
|
5714
|
+
f
|
|
5715
|
+
);
|
|
5716
|
+
}
|
|
5717
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
5718
|
+
if (f != null) {
|
|
5719
|
+
writer.writeString(
|
|
5720
|
+
4,
|
|
5721
|
+
f
|
|
5722
|
+
);
|
|
5723
|
+
}
|
|
5724
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
5725
|
+
if (f != null) {
|
|
5726
|
+
writer.writeInt32(
|
|
5727
|
+
5,
|
|
5728
|
+
f
|
|
5729
|
+
);
|
|
5730
|
+
}
|
|
5731
|
+
};
|
|
5732
|
+
|
|
5733
|
+
|
|
5734
|
+
/**
|
|
5735
|
+
* optional int32 notification_id = 1;
|
|
5736
|
+
* @return {number}
|
|
5737
|
+
*/
|
|
5738
|
+
proto.notification.NotificationTranslationRequest.prototype.getNotificationId = function() {
|
|
5739
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3858
5740
|
};
|
|
3859
5741
|
|
|
3860
5742
|
|
|
3861
5743
|
/**
|
|
3862
5744
|
* @param {number} value
|
|
3863
|
-
* @return {!proto.notification.
|
|
5745
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
3864
5746
|
*/
|
|
3865
|
-
proto.notification.
|
|
5747
|
+
proto.notification.NotificationTranslationRequest.prototype.setNotificationId = function(value) {
|
|
5748
|
+
return jspb.Message.setField(this, 1, value);
|
|
5749
|
+
};
|
|
5750
|
+
|
|
5751
|
+
|
|
5752
|
+
/**
|
|
5753
|
+
* Clears the field making it undefined.
|
|
5754
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5755
|
+
*/
|
|
5756
|
+
proto.notification.NotificationTranslationRequest.prototype.clearNotificationId = function() {
|
|
5757
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
5758
|
+
};
|
|
5759
|
+
|
|
5760
|
+
|
|
5761
|
+
/**
|
|
5762
|
+
* Returns whether this field is set.
|
|
5763
|
+
* @return {boolean}
|
|
5764
|
+
*/
|
|
5765
|
+
proto.notification.NotificationTranslationRequest.prototype.hasNotificationId = function() {
|
|
5766
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5767
|
+
};
|
|
5768
|
+
|
|
5769
|
+
|
|
5770
|
+
/**
|
|
5771
|
+
* optional string locale = 2;
|
|
5772
|
+
* @return {string}
|
|
5773
|
+
*/
|
|
5774
|
+
proto.notification.NotificationTranslationRequest.prototype.getLocale = function() {
|
|
5775
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5776
|
+
};
|
|
5777
|
+
|
|
5778
|
+
|
|
5779
|
+
/**
|
|
5780
|
+
* @param {string} value
|
|
5781
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5782
|
+
*/
|
|
5783
|
+
proto.notification.NotificationTranslationRequest.prototype.setLocale = function(value) {
|
|
3866
5784
|
return jspb.Message.setField(this, 2, value);
|
|
3867
5785
|
};
|
|
3868
5786
|
|
|
3869
5787
|
|
|
3870
5788
|
/**
|
|
3871
5789
|
* Clears the field making it undefined.
|
|
3872
|
-
* @return {!proto.notification.
|
|
5790
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
3873
5791
|
*/
|
|
3874
|
-
proto.notification.
|
|
5792
|
+
proto.notification.NotificationTranslationRequest.prototype.clearLocale = function() {
|
|
3875
5793
|
return jspb.Message.setField(this, 2, undefined);
|
|
3876
5794
|
};
|
|
3877
5795
|
|
|
@@ -3880,44 +5798,276 @@ proto.notification.UserNotificationItemsResponse.prototype.clearTotalPages = fun
|
|
|
3880
5798
|
* Returns whether this field is set.
|
|
3881
5799
|
* @return {boolean}
|
|
3882
5800
|
*/
|
|
3883
|
-
proto.notification.
|
|
5801
|
+
proto.notification.NotificationTranslationRequest.prototype.hasLocale = function() {
|
|
3884
5802
|
return jspb.Message.getField(this, 2) != null;
|
|
3885
5803
|
};
|
|
3886
5804
|
|
|
3887
5805
|
|
|
3888
5806
|
/**
|
|
3889
|
-
* optional
|
|
5807
|
+
* optional string title = 3;
|
|
5808
|
+
* @return {string}
|
|
5809
|
+
*/
|
|
5810
|
+
proto.notification.NotificationTranslationRequest.prototype.getTitle = function() {
|
|
5811
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
5812
|
+
};
|
|
5813
|
+
|
|
5814
|
+
|
|
5815
|
+
/**
|
|
5816
|
+
* @param {string} value
|
|
5817
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5818
|
+
*/
|
|
5819
|
+
proto.notification.NotificationTranslationRequest.prototype.setTitle = function(value) {
|
|
5820
|
+
return jspb.Message.setField(this, 3, value);
|
|
5821
|
+
};
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* Clears the field making it undefined.
|
|
5826
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5827
|
+
*/
|
|
5828
|
+
proto.notification.NotificationTranslationRequest.prototype.clearTitle = function() {
|
|
5829
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
5830
|
+
};
|
|
5831
|
+
|
|
5832
|
+
|
|
5833
|
+
/**
|
|
5834
|
+
* Returns whether this field is set.
|
|
5835
|
+
* @return {boolean}
|
|
5836
|
+
*/
|
|
5837
|
+
proto.notification.NotificationTranslationRequest.prototype.hasTitle = function() {
|
|
5838
|
+
return jspb.Message.getField(this, 3) != null;
|
|
5839
|
+
};
|
|
5840
|
+
|
|
5841
|
+
|
|
5842
|
+
/**
|
|
5843
|
+
* optional string content = 4;
|
|
5844
|
+
* @return {string}
|
|
5845
|
+
*/
|
|
5846
|
+
proto.notification.NotificationTranslationRequest.prototype.getContent = function() {
|
|
5847
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
5848
|
+
};
|
|
5849
|
+
|
|
5850
|
+
|
|
5851
|
+
/**
|
|
5852
|
+
* @param {string} value
|
|
5853
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5854
|
+
*/
|
|
5855
|
+
proto.notification.NotificationTranslationRequest.prototype.setContent = function(value) {
|
|
5856
|
+
return jspb.Message.setField(this, 4, value);
|
|
5857
|
+
};
|
|
5858
|
+
|
|
5859
|
+
|
|
5860
|
+
/**
|
|
5861
|
+
* Clears the field making it undefined.
|
|
5862
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5863
|
+
*/
|
|
5864
|
+
proto.notification.NotificationTranslationRequest.prototype.clearContent = function() {
|
|
5865
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
5866
|
+
};
|
|
5867
|
+
|
|
5868
|
+
|
|
5869
|
+
/**
|
|
5870
|
+
* Returns whether this field is set.
|
|
5871
|
+
* @return {boolean}
|
|
5872
|
+
*/
|
|
5873
|
+
proto.notification.NotificationTranslationRequest.prototype.hasContent = function() {
|
|
5874
|
+
return jspb.Message.getField(this, 4) != null;
|
|
5875
|
+
};
|
|
5876
|
+
|
|
5877
|
+
|
|
5878
|
+
/**
|
|
5879
|
+
* optional int32 is_active = 5;
|
|
5880
|
+
* @return {number}
|
|
5881
|
+
*/
|
|
5882
|
+
proto.notification.NotificationTranslationRequest.prototype.getIsActive = function() {
|
|
5883
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
5884
|
+
};
|
|
5885
|
+
|
|
5886
|
+
|
|
5887
|
+
/**
|
|
5888
|
+
* @param {number} value
|
|
5889
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5890
|
+
*/
|
|
5891
|
+
proto.notification.NotificationTranslationRequest.prototype.setIsActive = function(value) {
|
|
5892
|
+
return jspb.Message.setField(this, 5, value);
|
|
5893
|
+
};
|
|
5894
|
+
|
|
5895
|
+
|
|
5896
|
+
/**
|
|
5897
|
+
* Clears the field making it undefined.
|
|
5898
|
+
* @return {!proto.notification.NotificationTranslationRequest} returns this
|
|
5899
|
+
*/
|
|
5900
|
+
proto.notification.NotificationTranslationRequest.prototype.clearIsActive = function() {
|
|
5901
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
5902
|
+
};
|
|
5903
|
+
|
|
5904
|
+
|
|
5905
|
+
/**
|
|
5906
|
+
* Returns whether this field is set.
|
|
5907
|
+
* @return {boolean}
|
|
5908
|
+
*/
|
|
5909
|
+
proto.notification.NotificationTranslationRequest.prototype.hasIsActive = function() {
|
|
5910
|
+
return jspb.Message.getField(this, 5) != null;
|
|
5911
|
+
};
|
|
5912
|
+
|
|
5913
|
+
|
|
5914
|
+
|
|
5915
|
+
|
|
5916
|
+
|
|
5917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5918
|
+
/**
|
|
5919
|
+
* Creates an object representation of this proto.
|
|
5920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5921
|
+
* Optional fields that are not set will be set to undefined.
|
|
5922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5923
|
+
* For the list of reserved names please see:
|
|
5924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5926
|
+
* JSPB instance for transitional soy proto support:
|
|
5927
|
+
* http://goto/soy-param-migration
|
|
5928
|
+
* @return {!Object}
|
|
5929
|
+
*/
|
|
5930
|
+
proto.notification.GetNotificationTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5931
|
+
return proto.notification.GetNotificationTranslationRequest.toObject(opt_includeInstance, this);
|
|
5932
|
+
};
|
|
5933
|
+
|
|
5934
|
+
|
|
5935
|
+
/**
|
|
5936
|
+
* Static version of the {@see toObject} method.
|
|
5937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5938
|
+
* the JSPB instance for transitional soy proto support:
|
|
5939
|
+
* http://goto/soy-param-migration
|
|
5940
|
+
* @param {!proto.notification.GetNotificationTranslationRequest} msg The msg instance to transform.
|
|
5941
|
+
* @return {!Object}
|
|
5942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5943
|
+
*/
|
|
5944
|
+
proto.notification.GetNotificationTranslationRequest.toObject = function(includeInstance, msg) {
|
|
5945
|
+
var f, obj = {
|
|
5946
|
+
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
5947
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5948
|
+
};
|
|
5949
|
+
|
|
5950
|
+
if (includeInstance) {
|
|
5951
|
+
obj.$jspbMessageInstance = msg;
|
|
5952
|
+
}
|
|
5953
|
+
return obj;
|
|
5954
|
+
};
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
|
|
5958
|
+
/**
|
|
5959
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5960
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5961
|
+
* @return {!proto.notification.GetNotificationTranslationRequest}
|
|
5962
|
+
*/
|
|
5963
|
+
proto.notification.GetNotificationTranslationRequest.deserializeBinary = function(bytes) {
|
|
5964
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5965
|
+
var msg = new proto.notification.GetNotificationTranslationRequest;
|
|
5966
|
+
return proto.notification.GetNotificationTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
5967
|
+
};
|
|
5968
|
+
|
|
5969
|
+
|
|
5970
|
+
/**
|
|
5971
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5972
|
+
* given reader into the given message object.
|
|
5973
|
+
* @param {!proto.notification.GetNotificationTranslationRequest} msg The message object to deserialize into.
|
|
5974
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5975
|
+
* @return {!proto.notification.GetNotificationTranslationRequest}
|
|
5976
|
+
*/
|
|
5977
|
+
proto.notification.GetNotificationTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5978
|
+
while (reader.nextField()) {
|
|
5979
|
+
if (reader.isEndGroup()) {
|
|
5980
|
+
break;
|
|
5981
|
+
}
|
|
5982
|
+
var field = reader.getFieldNumber();
|
|
5983
|
+
switch (field) {
|
|
5984
|
+
case 1:
|
|
5985
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5986
|
+
msg.setNotificationId(value);
|
|
5987
|
+
break;
|
|
5988
|
+
case 2:
|
|
5989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5990
|
+
msg.setLocale(value);
|
|
5991
|
+
break;
|
|
5992
|
+
default:
|
|
5993
|
+
reader.skipField();
|
|
5994
|
+
break;
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
return msg;
|
|
5998
|
+
};
|
|
5999
|
+
|
|
6000
|
+
|
|
6001
|
+
/**
|
|
6002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6003
|
+
* @return {!Uint8Array}
|
|
6004
|
+
*/
|
|
6005
|
+
proto.notification.GetNotificationTranslationRequest.prototype.serializeBinary = function() {
|
|
6006
|
+
var writer = new jspb.BinaryWriter();
|
|
6007
|
+
proto.notification.GetNotificationTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
6008
|
+
return writer.getResultBuffer();
|
|
6009
|
+
};
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
/**
|
|
6013
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6014
|
+
* format), writing to the given BinaryWriter.
|
|
6015
|
+
* @param {!proto.notification.GetNotificationTranslationRequest} message
|
|
6016
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6018
|
+
*/
|
|
6019
|
+
proto.notification.GetNotificationTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6020
|
+
var f = undefined;
|
|
6021
|
+
f = message.getNotificationId();
|
|
6022
|
+
if (f !== 0) {
|
|
6023
|
+
writer.writeInt32(
|
|
6024
|
+
1,
|
|
6025
|
+
f
|
|
6026
|
+
);
|
|
6027
|
+
}
|
|
6028
|
+
f = message.getLocale();
|
|
6029
|
+
if (f.length > 0) {
|
|
6030
|
+
writer.writeString(
|
|
6031
|
+
2,
|
|
6032
|
+
f
|
|
6033
|
+
);
|
|
6034
|
+
}
|
|
6035
|
+
};
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
/**
|
|
6039
|
+
* optional int32 notification_id = 1;
|
|
3890
6040
|
* @return {number}
|
|
3891
6041
|
*/
|
|
3892
|
-
proto.notification.
|
|
3893
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
6042
|
+
proto.notification.GetNotificationTranslationRequest.prototype.getNotificationId = function() {
|
|
6043
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3894
6044
|
};
|
|
3895
6045
|
|
|
3896
6046
|
|
|
3897
6047
|
/**
|
|
3898
6048
|
* @param {number} value
|
|
3899
|
-
* @return {!proto.notification.
|
|
6049
|
+
* @return {!proto.notification.GetNotificationTranslationRequest} returns this
|
|
3900
6050
|
*/
|
|
3901
|
-
proto.notification.
|
|
3902
|
-
return jspb.Message.
|
|
6051
|
+
proto.notification.GetNotificationTranslationRequest.prototype.setNotificationId = function(value) {
|
|
6052
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3903
6053
|
};
|
|
3904
6054
|
|
|
3905
6055
|
|
|
3906
6056
|
/**
|
|
3907
|
-
*
|
|
3908
|
-
* @return {
|
|
6057
|
+
* optional string locale = 2;
|
|
6058
|
+
* @return {string}
|
|
3909
6059
|
*/
|
|
3910
|
-
proto.notification.
|
|
3911
|
-
return jspb.Message.
|
|
6060
|
+
proto.notification.GetNotificationTranslationRequest.prototype.getLocale = function() {
|
|
6061
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3912
6062
|
};
|
|
3913
6063
|
|
|
3914
6064
|
|
|
3915
6065
|
/**
|
|
3916
|
-
*
|
|
3917
|
-
* @return {
|
|
6066
|
+
* @param {string} value
|
|
6067
|
+
* @return {!proto.notification.GetNotificationTranslationRequest} returns this
|
|
3918
6068
|
*/
|
|
3919
|
-
proto.notification.
|
|
3920
|
-
return jspb.Message.
|
|
6069
|
+
proto.notification.GetNotificationTranslationRequest.prototype.setLocale = function(value) {
|
|
6070
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3921
6071
|
};
|
|
3922
6072
|
|
|
3923
6073
|
|
|
@@ -3937,8 +6087,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3937
6087
|
* http://goto/soy-param-migration
|
|
3938
6088
|
* @return {!Object}
|
|
3939
6089
|
*/
|
|
3940
|
-
proto.notification.
|
|
3941
|
-
return proto.notification.
|
|
6090
|
+
proto.notification.NotificationTranslationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6091
|
+
return proto.notification.NotificationTranslationResponse.toObject(opt_includeInstance, this);
|
|
3942
6092
|
};
|
|
3943
6093
|
|
|
3944
6094
|
|
|
@@ -3947,19 +6097,16 @@ proto.notification.NotificationItem.prototype.toObject = function(opt_includeIns
|
|
|
3947
6097
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3948
6098
|
* the JSPB instance for transitional soy proto support:
|
|
3949
6099
|
* http://goto/soy-param-migration
|
|
3950
|
-
* @param {!proto.notification.
|
|
6100
|
+
* @param {!proto.notification.NotificationTranslationResponse} msg The msg instance to transform.
|
|
3951
6101
|
* @return {!Object}
|
|
3952
6102
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3953
6103
|
*/
|
|
3954
|
-
proto.notification.
|
|
6104
|
+
proto.notification.NotificationTranslationResponse.toObject = function(includeInstance, msg) {
|
|
3955
6105
|
var f, obj = {
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
type: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3961
|
-
trigger: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3962
|
-
created: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
6106
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6107
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6108
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
6109
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3963
6110
|
};
|
|
3964
6111
|
|
|
3965
6112
|
if (includeInstance) {
|
|
@@ -3973,23 +6120,23 @@ proto.notification.NotificationItem.toObject = function(includeInstance, msg) {
|
|
|
3973
6120
|
/**
|
|
3974
6121
|
* Deserializes binary data (in protobuf wire format).
|
|
3975
6122
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3976
|
-
* @return {!proto.notification.
|
|
6123
|
+
* @return {!proto.notification.NotificationTranslationResponse}
|
|
3977
6124
|
*/
|
|
3978
|
-
proto.notification.
|
|
6125
|
+
proto.notification.NotificationTranslationResponse.deserializeBinary = function(bytes) {
|
|
3979
6126
|
var reader = new jspb.BinaryReader(bytes);
|
|
3980
|
-
var msg = new proto.notification.
|
|
3981
|
-
return proto.notification.
|
|
6127
|
+
var msg = new proto.notification.NotificationTranslationResponse;
|
|
6128
|
+
return proto.notification.NotificationTranslationResponse.deserializeBinaryFromReader(msg, reader);
|
|
3982
6129
|
};
|
|
3983
6130
|
|
|
3984
6131
|
|
|
3985
6132
|
/**
|
|
3986
6133
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3987
6134
|
* given reader into the given message object.
|
|
3988
|
-
* @param {!proto.notification.
|
|
6135
|
+
* @param {!proto.notification.NotificationTranslationResponse} msg The message object to deserialize into.
|
|
3989
6136
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3990
|
-
* @return {!proto.notification.
|
|
6137
|
+
* @return {!proto.notification.NotificationTranslationResponse}
|
|
3991
6138
|
*/
|
|
3992
|
-
proto.notification.
|
|
6139
|
+
proto.notification.NotificationTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3993
6140
|
while (reader.nextField()) {
|
|
3994
6141
|
if (reader.isEndGroup()) {
|
|
3995
6142
|
break;
|
|
@@ -3997,32 +6144,20 @@ proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg,
|
|
|
3997
6144
|
var field = reader.getFieldNumber();
|
|
3998
6145
|
switch (field) {
|
|
3999
6146
|
case 1:
|
|
4000
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
4001
|
-
msg.setId(value);
|
|
4002
|
-
break;
|
|
4003
|
-
case 2:
|
|
4004
6147
|
var value = /** @type {string} */ (reader.readString());
|
|
4005
6148
|
msg.setTitle(value);
|
|
4006
6149
|
break;
|
|
4007
|
-
case
|
|
6150
|
+
case 2:
|
|
4008
6151
|
var value = /** @type {string} */ (reader.readString());
|
|
4009
6152
|
msg.setContent(value);
|
|
4010
6153
|
break;
|
|
4011
|
-
case
|
|
4012
|
-
var value = /** @type {
|
|
6154
|
+
case 3:
|
|
6155
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4013
6156
|
msg.setIsActive(value);
|
|
4014
6157
|
break;
|
|
4015
|
-
case
|
|
4016
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4017
|
-
msg.setType(value);
|
|
4018
|
-
break;
|
|
4019
|
-
case 6:
|
|
4020
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4021
|
-
msg.setTrigger(value);
|
|
4022
|
-
break;
|
|
4023
|
-
case 7:
|
|
6158
|
+
case 4:
|
|
4024
6159
|
var value = /** @type {string} */ (reader.readString());
|
|
4025
|
-
msg.
|
|
6160
|
+
msg.setLocale(value);
|
|
4026
6161
|
break;
|
|
4027
6162
|
default:
|
|
4028
6163
|
reader.skipField();
|
|
@@ -4037,9 +6172,9 @@ proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg,
|
|
|
4037
6172
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4038
6173
|
* @return {!Uint8Array}
|
|
4039
6174
|
*/
|
|
4040
|
-
proto.notification.
|
|
6175
|
+
proto.notification.NotificationTranslationResponse.prototype.serializeBinary = function() {
|
|
4041
6176
|
var writer = new jspb.BinaryWriter();
|
|
4042
|
-
proto.notification.
|
|
6177
|
+
proto.notification.NotificationTranslationResponse.serializeBinaryToWriter(this, writer);
|
|
4043
6178
|
return writer.getResultBuffer();
|
|
4044
6179
|
};
|
|
4045
6180
|
|
|
@@ -4047,58 +6182,37 @@ proto.notification.NotificationItem.prototype.serializeBinary = function() {
|
|
|
4047
6182
|
/**
|
|
4048
6183
|
* Serializes the given message to binary data (in protobuf wire
|
|
4049
6184
|
* format), writing to the given BinaryWriter.
|
|
4050
|
-
* @param {!proto.notification.
|
|
6185
|
+
* @param {!proto.notification.NotificationTranslationResponse} message
|
|
4051
6186
|
* @param {!jspb.BinaryWriter} writer
|
|
4052
6187
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4053
6188
|
*/
|
|
4054
|
-
proto.notification.
|
|
6189
|
+
proto.notification.NotificationTranslationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4055
6190
|
var f = undefined;
|
|
4056
|
-
f =
|
|
4057
|
-
if (f
|
|
4058
|
-
writer.
|
|
6191
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
6192
|
+
if (f != null) {
|
|
6193
|
+
writer.writeString(
|
|
4059
6194
|
1,
|
|
4060
6195
|
f
|
|
4061
6196
|
);
|
|
4062
6197
|
}
|
|
4063
|
-
f =
|
|
4064
|
-
if (f
|
|
6198
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
6199
|
+
if (f != null) {
|
|
4065
6200
|
writer.writeString(
|
|
4066
6201
|
2,
|
|
4067
6202
|
f
|
|
4068
6203
|
);
|
|
4069
6204
|
}
|
|
4070
|
-
f =
|
|
4071
|
-
if (f
|
|
4072
|
-
writer.
|
|
6205
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
6206
|
+
if (f != null) {
|
|
6207
|
+
writer.writeInt32(
|
|
4073
6208
|
3,
|
|
4074
6209
|
f
|
|
4075
6210
|
);
|
|
4076
6211
|
}
|
|
4077
|
-
f =
|
|
4078
|
-
if (f) {
|
|
4079
|
-
writer.writeBool(
|
|
4080
|
-
4,
|
|
4081
|
-
f
|
|
4082
|
-
);
|
|
4083
|
-
}
|
|
4084
|
-
f = message.getType();
|
|
4085
|
-
if (f.length > 0) {
|
|
4086
|
-
writer.writeString(
|
|
4087
|
-
5,
|
|
4088
|
-
f
|
|
4089
|
-
);
|
|
4090
|
-
}
|
|
4091
|
-
f = message.getTrigger();
|
|
4092
|
-
if (f.length > 0) {
|
|
4093
|
-
writer.writeString(
|
|
4094
|
-
6,
|
|
4095
|
-
f
|
|
4096
|
-
);
|
|
4097
|
-
}
|
|
4098
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
6212
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
4099
6213
|
if (f != null) {
|
|
4100
6214
|
writer.writeString(
|
|
4101
|
-
|
|
6215
|
+
4,
|
|
4102
6216
|
f
|
|
4103
6217
|
);
|
|
4104
6218
|
}
|
|
@@ -4106,288 +6220,137 @@ proto.notification.NotificationItem.serializeBinaryToWriter = function(message,
|
|
|
4106
6220
|
|
|
4107
6221
|
|
|
4108
6222
|
/**
|
|
4109
|
-
* optional
|
|
4110
|
-
* @return {number}
|
|
4111
|
-
*/
|
|
4112
|
-
proto.notification.NotificationItem.prototype.getId = function() {
|
|
4113
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4114
|
-
};
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
/**
|
|
4118
|
-
* @param {number} value
|
|
4119
|
-
* @return {!proto.notification.NotificationItem} returns this
|
|
4120
|
-
*/
|
|
4121
|
-
proto.notification.NotificationItem.prototype.setId = function(value) {
|
|
4122
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4123
|
-
};
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
/**
|
|
4127
|
-
* optional string title = 2;
|
|
6223
|
+
* optional string title = 1;
|
|
4128
6224
|
* @return {string}
|
|
4129
6225
|
*/
|
|
4130
|
-
proto.notification.
|
|
4131
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
6226
|
+
proto.notification.NotificationTranslationResponse.prototype.getTitle = function() {
|
|
6227
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4132
6228
|
};
|
|
4133
6229
|
|
|
4134
6230
|
|
|
4135
6231
|
/**
|
|
4136
6232
|
* @param {string} value
|
|
4137
|
-
* @return {!proto.notification.
|
|
4138
|
-
*/
|
|
4139
|
-
proto.notification.NotificationItem.prototype.setTitle = function(value) {
|
|
4140
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4141
|
-
};
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
/**
|
|
4145
|
-
* optional string content = 3;
|
|
4146
|
-
* @return {string}
|
|
6233
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4147
6234
|
*/
|
|
4148
|
-
proto.notification.
|
|
4149
|
-
return
|
|
6235
|
+
proto.notification.NotificationTranslationResponse.prototype.setTitle = function(value) {
|
|
6236
|
+
return jspb.Message.setField(this, 1, value);
|
|
4150
6237
|
};
|
|
4151
6238
|
|
|
4152
6239
|
|
|
4153
6240
|
/**
|
|
4154
|
-
*
|
|
4155
|
-
* @return {!proto.notification.
|
|
6241
|
+
* Clears the field making it undefined.
|
|
6242
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4156
6243
|
*/
|
|
4157
|
-
proto.notification.
|
|
4158
|
-
return jspb.Message.
|
|
6244
|
+
proto.notification.NotificationTranslationResponse.prototype.clearTitle = function() {
|
|
6245
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
4159
6246
|
};
|
|
4160
6247
|
|
|
4161
6248
|
|
|
4162
6249
|
/**
|
|
4163
|
-
*
|
|
6250
|
+
* Returns whether this field is set.
|
|
4164
6251
|
* @return {boolean}
|
|
4165
6252
|
*/
|
|
4166
|
-
proto.notification.
|
|
4167
|
-
return
|
|
4168
|
-
};
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
/**
|
|
4172
|
-
* @param {boolean} value
|
|
4173
|
-
* @return {!proto.notification.NotificationItem} returns this
|
|
4174
|
-
*/
|
|
4175
|
-
proto.notification.NotificationItem.prototype.setIsActive = function(value) {
|
|
4176
|
-
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
/**
|
|
4181
|
-
* optional string type = 5;
|
|
4182
|
-
* @return {string}
|
|
4183
|
-
*/
|
|
4184
|
-
proto.notification.NotificationItem.prototype.getType = function() {
|
|
4185
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4186
|
-
};
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
/**
|
|
4190
|
-
* @param {string} value
|
|
4191
|
-
* @return {!proto.notification.NotificationItem} returns this
|
|
4192
|
-
*/
|
|
4193
|
-
proto.notification.NotificationItem.prototype.setType = function(value) {
|
|
4194
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4195
|
-
};
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
/**
|
|
4199
|
-
* optional string trigger = 6;
|
|
4200
|
-
* @return {string}
|
|
4201
|
-
*/
|
|
4202
|
-
proto.notification.NotificationItem.prototype.getTrigger = function() {
|
|
4203
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
4204
|
-
};
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
/**
|
|
4208
|
-
* @param {string} value
|
|
4209
|
-
* @return {!proto.notification.NotificationItem} returns this
|
|
4210
|
-
*/
|
|
4211
|
-
proto.notification.NotificationItem.prototype.setTrigger = function(value) {
|
|
4212
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
6253
|
+
proto.notification.NotificationTranslationResponse.prototype.hasTitle = function() {
|
|
6254
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4213
6255
|
};
|
|
4214
6256
|
|
|
4215
6257
|
|
|
4216
6258
|
/**
|
|
4217
|
-
* optional string
|
|
6259
|
+
* optional string content = 2;
|
|
4218
6260
|
* @return {string}
|
|
4219
6261
|
*/
|
|
4220
|
-
proto.notification.
|
|
4221
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
6262
|
+
proto.notification.NotificationTranslationResponse.prototype.getContent = function() {
|
|
6263
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4222
6264
|
};
|
|
4223
6265
|
|
|
4224
6266
|
|
|
4225
6267
|
/**
|
|
4226
6268
|
* @param {string} value
|
|
4227
|
-
* @return {!proto.notification.
|
|
4228
|
-
*/
|
|
4229
|
-
proto.notification.
|
|
4230
|
-
return jspb.Message.setField(this,
|
|
4231
|
-
};
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
/**
|
|
4235
|
-
* Clears the field making it undefined.
|
|
4236
|
-
* @return {!proto.notification.NotificationItem} returns this
|
|
4237
|
-
*/
|
|
4238
|
-
proto.notification.NotificationItem.prototype.clearCreated = function() {
|
|
4239
|
-
return jspb.Message.setField(this, 7, undefined);
|
|
4240
|
-
};
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
/**
|
|
4244
|
-
* Returns whether this field is set.
|
|
4245
|
-
* @return {boolean}
|
|
4246
|
-
*/
|
|
4247
|
-
proto.notification.NotificationItem.prototype.hasCreated = function() {
|
|
4248
|
-
return jspb.Message.getField(this, 7) != null;
|
|
4249
|
-
};
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4256
|
-
/**
|
|
4257
|
-
* Creates an object representation of this proto.
|
|
4258
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4259
|
-
* Optional fields that are not set will be set to undefined.
|
|
4260
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4261
|
-
* For the list of reserved names please see:
|
|
4262
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4263
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4264
|
-
* JSPB instance for transitional soy proto support:
|
|
4265
|
-
* http://goto/soy-param-migration
|
|
4266
|
-
* @return {!Object}
|
|
4267
|
-
*/
|
|
4268
|
-
proto.notification.NotificationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4269
|
-
return proto.notification.NotificationResponse.toObject(opt_includeInstance, this);
|
|
6269
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
6270
|
+
*/
|
|
6271
|
+
proto.notification.NotificationTranslationResponse.prototype.setContent = function(value) {
|
|
6272
|
+
return jspb.Message.setField(this, 2, value);
|
|
4270
6273
|
};
|
|
4271
6274
|
|
|
4272
6275
|
|
|
4273
6276
|
/**
|
|
4274
|
-
*
|
|
4275
|
-
* @
|
|
4276
|
-
* the JSPB instance for transitional soy proto support:
|
|
4277
|
-
* http://goto/soy-param-migration
|
|
4278
|
-
* @param {!proto.notification.NotificationResponse} msg The msg instance to transform.
|
|
4279
|
-
* @return {!Object}
|
|
4280
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6277
|
+
* Clears the field making it undefined.
|
|
6278
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4281
6279
|
*/
|
|
4282
|
-
proto.notification.
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
};
|
|
6280
|
+
proto.notification.NotificationTranslationResponse.prototype.clearContent = function() {
|
|
6281
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6282
|
+
};
|
|
4286
6283
|
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
6284
|
+
|
|
6285
|
+
/**
|
|
6286
|
+
* Returns whether this field is set.
|
|
6287
|
+
* @return {boolean}
|
|
6288
|
+
*/
|
|
6289
|
+
proto.notification.NotificationTranslationResponse.prototype.hasContent = function() {
|
|
6290
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4291
6291
|
};
|
|
4292
|
-
}
|
|
4293
6292
|
|
|
4294
6293
|
|
|
4295
6294
|
/**
|
|
4296
|
-
*
|
|
4297
|
-
* @
|
|
4298
|
-
* @return {!proto.notification.NotificationResponse}
|
|
6295
|
+
* optional int32 is_active = 3;
|
|
6296
|
+
* @return {number}
|
|
4299
6297
|
*/
|
|
4300
|
-
proto.notification.
|
|
4301
|
-
|
|
4302
|
-
var msg = new proto.notification.NotificationResponse;
|
|
4303
|
-
return proto.notification.NotificationResponse.deserializeBinaryFromReader(msg, reader);
|
|
6298
|
+
proto.notification.NotificationTranslationResponse.prototype.getIsActive = function() {
|
|
6299
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4304
6300
|
};
|
|
4305
6301
|
|
|
4306
6302
|
|
|
4307
6303
|
/**
|
|
4308
|
-
*
|
|
4309
|
-
*
|
|
4310
|
-
* @param {!proto.notification.NotificationResponse} msg The message object to deserialize into.
|
|
4311
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4312
|
-
* @return {!proto.notification.NotificationResponse}
|
|
6304
|
+
* @param {number} value
|
|
6305
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4313
6306
|
*/
|
|
4314
|
-
proto.notification.
|
|
4315
|
-
|
|
4316
|
-
if (reader.isEndGroup()) {
|
|
4317
|
-
break;
|
|
4318
|
-
}
|
|
4319
|
-
var field = reader.getFieldNumber();
|
|
4320
|
-
switch (field) {
|
|
4321
|
-
case 1:
|
|
4322
|
-
var value = new proto.notification.NotificationItem;
|
|
4323
|
-
reader.readMessage(value,proto.notification.NotificationItem.deserializeBinaryFromReader);
|
|
4324
|
-
msg.setData(value);
|
|
4325
|
-
break;
|
|
4326
|
-
default:
|
|
4327
|
-
reader.skipField();
|
|
4328
|
-
break;
|
|
4329
|
-
}
|
|
4330
|
-
}
|
|
4331
|
-
return msg;
|
|
6307
|
+
proto.notification.NotificationTranslationResponse.prototype.setIsActive = function(value) {
|
|
6308
|
+
return jspb.Message.setField(this, 3, value);
|
|
4332
6309
|
};
|
|
4333
6310
|
|
|
4334
6311
|
|
|
4335
6312
|
/**
|
|
4336
|
-
*
|
|
4337
|
-
* @return {!
|
|
6313
|
+
* Clears the field making it undefined.
|
|
6314
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4338
6315
|
*/
|
|
4339
|
-
proto.notification.
|
|
4340
|
-
|
|
4341
|
-
proto.notification.NotificationResponse.serializeBinaryToWriter(this, writer);
|
|
4342
|
-
return writer.getResultBuffer();
|
|
6316
|
+
proto.notification.NotificationTranslationResponse.prototype.clearIsActive = function() {
|
|
6317
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4343
6318
|
};
|
|
4344
6319
|
|
|
4345
6320
|
|
|
4346
6321
|
/**
|
|
4347
|
-
*
|
|
4348
|
-
*
|
|
4349
|
-
* @param {!proto.notification.NotificationResponse} message
|
|
4350
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4351
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6322
|
+
* Returns whether this field is set.
|
|
6323
|
+
* @return {boolean}
|
|
4352
6324
|
*/
|
|
4353
|
-
proto.notification.
|
|
4354
|
-
|
|
4355
|
-
f = message.getData();
|
|
4356
|
-
if (f != null) {
|
|
4357
|
-
writer.writeMessage(
|
|
4358
|
-
1,
|
|
4359
|
-
f,
|
|
4360
|
-
proto.notification.NotificationItem.serializeBinaryToWriter
|
|
4361
|
-
);
|
|
4362
|
-
}
|
|
6325
|
+
proto.notification.NotificationTranslationResponse.prototype.hasIsActive = function() {
|
|
6326
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4363
6327
|
};
|
|
4364
6328
|
|
|
4365
6329
|
|
|
4366
6330
|
/**
|
|
4367
|
-
* optional
|
|
4368
|
-
* @return {
|
|
6331
|
+
* optional string locale = 4;
|
|
6332
|
+
* @return {string}
|
|
4369
6333
|
*/
|
|
4370
|
-
proto.notification.
|
|
4371
|
-
return /** @type{
|
|
4372
|
-
jspb.Message.getWrapperField(this, proto.notification.NotificationItem, 1));
|
|
6334
|
+
proto.notification.NotificationTranslationResponse.prototype.getLocale = function() {
|
|
6335
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
4373
6336
|
};
|
|
4374
6337
|
|
|
4375
6338
|
|
|
4376
6339
|
/**
|
|
4377
|
-
* @param {
|
|
4378
|
-
* @return {!proto.notification.
|
|
4379
|
-
*/
|
|
4380
|
-
proto.notification.
|
|
4381
|
-
return jspb.Message.
|
|
6340
|
+
* @param {string} value
|
|
6341
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
6342
|
+
*/
|
|
6343
|
+
proto.notification.NotificationTranslationResponse.prototype.setLocale = function(value) {
|
|
6344
|
+
return jspb.Message.setField(this, 4, value);
|
|
4382
6345
|
};
|
|
4383
6346
|
|
|
4384
6347
|
|
|
4385
6348
|
/**
|
|
4386
|
-
* Clears the
|
|
4387
|
-
* @return {!proto.notification.
|
|
6349
|
+
* Clears the field making it undefined.
|
|
6350
|
+
* @return {!proto.notification.NotificationTranslationResponse} returns this
|
|
4388
6351
|
*/
|
|
4389
|
-
proto.notification.
|
|
4390
|
-
return
|
|
6352
|
+
proto.notification.NotificationTranslationResponse.prototype.clearLocale = function() {
|
|
6353
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
4391
6354
|
};
|
|
4392
6355
|
|
|
4393
6356
|
|
|
@@ -4395,8 +6358,8 @@ proto.notification.NotificationResponse.prototype.clearData = function() {
|
|
|
4395
6358
|
* Returns whether this field is set.
|
|
4396
6359
|
* @return {boolean}
|
|
4397
6360
|
*/
|
|
4398
|
-
proto.notification.
|
|
4399
|
-
return jspb.Message.getField(this,
|
|
6361
|
+
proto.notification.NotificationTranslationResponse.prototype.hasLocale = function() {
|
|
6362
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4400
6363
|
};
|
|
4401
6364
|
|
|
4402
6365
|
|
|
@@ -4406,7 +6369,7 @@ proto.notification.NotificationResponse.prototype.hasData = function() {
|
|
|
4406
6369
|
* @private {!Array<number>}
|
|
4407
6370
|
* @const
|
|
4408
6371
|
*/
|
|
4409
|
-
proto.notification.
|
|
6372
|
+
proto.notification.NotificationStringListResponse.repeatedFields_ = [1];
|
|
4410
6373
|
|
|
4411
6374
|
|
|
4412
6375
|
|
|
@@ -4423,8 +6386,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4423
6386
|
* http://goto/soy-param-migration
|
|
4424
6387
|
* @return {!Object}
|
|
4425
6388
|
*/
|
|
4426
|
-
proto.notification.
|
|
4427
|
-
return proto.notification.
|
|
6389
|
+
proto.notification.NotificationStringListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6390
|
+
return proto.notification.NotificationStringListResponse.toObject(opt_includeInstance, this);
|
|
4428
6391
|
};
|
|
4429
6392
|
|
|
4430
6393
|
|
|
@@ -4433,16 +6396,13 @@ proto.notification.NotificationItemsResponse.prototype.toObject = function(opt_i
|
|
|
4433
6396
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4434
6397
|
* the JSPB instance for transitional soy proto support:
|
|
4435
6398
|
* http://goto/soy-param-migration
|
|
4436
|
-
* @param {!proto.notification.
|
|
6399
|
+
* @param {!proto.notification.NotificationStringListResponse} msg The msg instance to transform.
|
|
4437
6400
|
* @return {!Object}
|
|
4438
6401
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4439
6402
|
*/
|
|
4440
|
-
proto.notification.
|
|
6403
|
+
proto.notification.NotificationStringListResponse.toObject = function(includeInstance, msg) {
|
|
4441
6404
|
var f, obj = {
|
|
4442
|
-
itemsList: jspb.Message.
|
|
4443
|
-
proto.notification.NotificationItem.toObject, includeInstance),
|
|
4444
|
-
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4445
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
6405
|
+
itemsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
4446
6406
|
};
|
|
4447
6407
|
|
|
4448
6408
|
if (includeInstance) {
|
|
@@ -4456,23 +6416,23 @@ proto.notification.NotificationItemsResponse.toObject = function(includeInstance
|
|
|
4456
6416
|
/**
|
|
4457
6417
|
* Deserializes binary data (in protobuf wire format).
|
|
4458
6418
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4459
|
-
* @return {!proto.notification.
|
|
6419
|
+
* @return {!proto.notification.NotificationStringListResponse}
|
|
4460
6420
|
*/
|
|
4461
|
-
proto.notification.
|
|
6421
|
+
proto.notification.NotificationStringListResponse.deserializeBinary = function(bytes) {
|
|
4462
6422
|
var reader = new jspb.BinaryReader(bytes);
|
|
4463
|
-
var msg = new proto.notification.
|
|
4464
|
-
return proto.notification.
|
|
6423
|
+
var msg = new proto.notification.NotificationStringListResponse;
|
|
6424
|
+
return proto.notification.NotificationStringListResponse.deserializeBinaryFromReader(msg, reader);
|
|
4465
6425
|
};
|
|
4466
6426
|
|
|
4467
6427
|
|
|
4468
6428
|
/**
|
|
4469
6429
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4470
6430
|
* given reader into the given message object.
|
|
4471
|
-
* @param {!proto.notification.
|
|
6431
|
+
* @param {!proto.notification.NotificationStringListResponse} msg The message object to deserialize into.
|
|
4472
6432
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4473
|
-
* @return {!proto.notification.
|
|
6433
|
+
* @return {!proto.notification.NotificationStringListResponse}
|
|
4474
6434
|
*/
|
|
4475
|
-
proto.notification.
|
|
6435
|
+
proto.notification.NotificationStringListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4476
6436
|
while (reader.nextField()) {
|
|
4477
6437
|
if (reader.isEndGroup()) {
|
|
4478
6438
|
break;
|
|
@@ -4480,18 +6440,9 @@ proto.notification.NotificationItemsResponse.deserializeBinaryFromReader = funct
|
|
|
4480
6440
|
var field = reader.getFieldNumber();
|
|
4481
6441
|
switch (field) {
|
|
4482
6442
|
case 1:
|
|
4483
|
-
var value =
|
|
4484
|
-
reader.readMessage(value,proto.notification.NotificationItem.deserializeBinaryFromReader);
|
|
6443
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4485
6444
|
msg.addItems(value);
|
|
4486
6445
|
break;
|
|
4487
|
-
case 2:
|
|
4488
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
4489
|
-
msg.setTotalPages(value);
|
|
4490
|
-
break;
|
|
4491
|
-
case 3:
|
|
4492
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
4493
|
-
msg.setTotalItems(value);
|
|
4494
|
-
break;
|
|
4495
6446
|
default:
|
|
4496
6447
|
reader.skipField();
|
|
4497
6448
|
break;
|
|
@@ -4505,9 +6456,9 @@ proto.notification.NotificationItemsResponse.deserializeBinaryFromReader = funct
|
|
|
4505
6456
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4506
6457
|
* @return {!Uint8Array}
|
|
4507
6458
|
*/
|
|
4508
|
-
proto.notification.
|
|
6459
|
+
proto.notification.NotificationStringListResponse.prototype.serializeBinary = function() {
|
|
4509
6460
|
var writer = new jspb.BinaryWriter();
|
|
4510
|
-
proto.notification.
|
|
6461
|
+
proto.notification.NotificationStringListResponse.serializeBinaryToWriter(this, writer);
|
|
4511
6462
|
return writer.getResultBuffer();
|
|
4512
6463
|
};
|
|
4513
6464
|
|
|
@@ -4515,31 +6466,16 @@ proto.notification.NotificationItemsResponse.prototype.serializeBinary = functio
|
|
|
4515
6466
|
/**
|
|
4516
6467
|
* Serializes the given message to binary data (in protobuf wire
|
|
4517
6468
|
* format), writing to the given BinaryWriter.
|
|
4518
|
-
* @param {!proto.notification.
|
|
6469
|
+
* @param {!proto.notification.NotificationStringListResponse} message
|
|
4519
6470
|
* @param {!jspb.BinaryWriter} writer
|
|
4520
6471
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4521
6472
|
*/
|
|
4522
|
-
proto.notification.
|
|
6473
|
+
proto.notification.NotificationStringListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4523
6474
|
var f = undefined;
|
|
4524
6475
|
f = message.getItemsList();
|
|
4525
6476
|
if (f.length > 0) {
|
|
4526
|
-
writer.
|
|
6477
|
+
writer.writeRepeatedString(
|
|
4527
6478
|
1,
|
|
4528
|
-
f,
|
|
4529
|
-
proto.notification.NotificationItem.serializeBinaryToWriter
|
|
4530
|
-
);
|
|
4531
|
-
}
|
|
4532
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
4533
|
-
if (f != null) {
|
|
4534
|
-
writer.writeInt32(
|
|
4535
|
-
2,
|
|
4536
|
-
f
|
|
4537
|
-
);
|
|
4538
|
-
}
|
|
4539
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
4540
|
-
if (f != null) {
|
|
4541
|
-
writer.writeInt32(
|
|
4542
|
-
3,
|
|
4543
6479
|
f
|
|
4544
6480
|
);
|
|
4545
6481
|
}
|
|
@@ -4547,115 +6483,42 @@ proto.notification.NotificationItemsResponse.serializeBinaryToWriter = function(
|
|
|
4547
6483
|
|
|
4548
6484
|
|
|
4549
6485
|
/**
|
|
4550
|
-
* repeated
|
|
4551
|
-
* @return {!Array
|
|
6486
|
+
* repeated string items = 1;
|
|
6487
|
+
* @return {!Array<string>}
|
|
4552
6488
|
*/
|
|
4553
|
-
proto.notification.
|
|
4554
|
-
return /** @type{!Array
|
|
4555
|
-
jspb.Message.getRepeatedWrapperField(this, proto.notification.NotificationItem, 1));
|
|
6489
|
+
proto.notification.NotificationStringListResponse.prototype.getItemsList = function() {
|
|
6490
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4556
6491
|
};
|
|
4557
6492
|
|
|
4558
6493
|
|
|
4559
6494
|
/**
|
|
4560
|
-
* @param {!Array
|
|
4561
|
-
* @return {!proto.notification.
|
|
4562
|
-
*/
|
|
4563
|
-
proto.notification.
|
|
4564
|
-
return jspb.Message.
|
|
6495
|
+
* @param {!Array<string>} value
|
|
6496
|
+
* @return {!proto.notification.NotificationStringListResponse} returns this
|
|
6497
|
+
*/
|
|
6498
|
+
proto.notification.NotificationStringListResponse.prototype.setItemsList = function(value) {
|
|
6499
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
4565
6500
|
};
|
|
4566
6501
|
|
|
4567
6502
|
|
|
4568
6503
|
/**
|
|
4569
|
-
* @param {
|
|
6504
|
+
* @param {string} value
|
|
4570
6505
|
* @param {number=} opt_index
|
|
4571
|
-
* @return {!proto.notification.
|
|
6506
|
+
* @return {!proto.notification.NotificationStringListResponse} returns this
|
|
4572
6507
|
*/
|
|
4573
|
-
proto.notification.
|
|
4574
|
-
return jspb.Message.
|
|
6508
|
+
proto.notification.NotificationStringListResponse.prototype.addItems = function(value, opt_index) {
|
|
6509
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4575
6510
|
};
|
|
4576
6511
|
|
|
4577
6512
|
|
|
4578
6513
|
/**
|
|
4579
6514
|
* Clears the list making it empty but non-null.
|
|
4580
|
-
* @return {!proto.notification.
|
|
6515
|
+
* @return {!proto.notification.NotificationStringListResponse} returns this
|
|
4581
6516
|
*/
|
|
4582
|
-
proto.notification.
|
|
6517
|
+
proto.notification.NotificationStringListResponse.prototype.clearItemsList = function() {
|
|
4583
6518
|
return this.setItemsList([]);
|
|
4584
6519
|
};
|
|
4585
6520
|
|
|
4586
6521
|
|
|
4587
|
-
/**
|
|
4588
|
-
* optional int32 total_pages = 2;
|
|
4589
|
-
* @return {number}
|
|
4590
|
-
*/
|
|
4591
|
-
proto.notification.NotificationItemsResponse.prototype.getTotalPages = function() {
|
|
4592
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4593
|
-
};
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
/**
|
|
4597
|
-
* @param {number} value
|
|
4598
|
-
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
4599
|
-
*/
|
|
4600
|
-
proto.notification.NotificationItemsResponse.prototype.setTotalPages = function(value) {
|
|
4601
|
-
return jspb.Message.setField(this, 2, value);
|
|
4602
|
-
};
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
/**
|
|
4606
|
-
* Clears the field making it undefined.
|
|
4607
|
-
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
4608
|
-
*/
|
|
4609
|
-
proto.notification.NotificationItemsResponse.prototype.clearTotalPages = function() {
|
|
4610
|
-
return jspb.Message.setField(this, 2, undefined);
|
|
4611
|
-
};
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
/**
|
|
4615
|
-
* Returns whether this field is set.
|
|
4616
|
-
* @return {boolean}
|
|
4617
|
-
*/
|
|
4618
|
-
proto.notification.NotificationItemsResponse.prototype.hasTotalPages = function() {
|
|
4619
|
-
return jspb.Message.getField(this, 2) != null;
|
|
4620
|
-
};
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
/**
|
|
4624
|
-
* optional int32 total_items = 3;
|
|
4625
|
-
* @return {number}
|
|
4626
|
-
*/
|
|
4627
|
-
proto.notification.NotificationItemsResponse.prototype.getTotalItems = function() {
|
|
4628
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4629
|
-
};
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
/**
|
|
4633
|
-
* @param {number} value
|
|
4634
|
-
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
4635
|
-
*/
|
|
4636
|
-
proto.notification.NotificationItemsResponse.prototype.setTotalItems = function(value) {
|
|
4637
|
-
return jspb.Message.setField(this, 3, value);
|
|
4638
|
-
};
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
/**
|
|
4642
|
-
* Clears the field making it undefined.
|
|
4643
|
-
* @return {!proto.notification.NotificationItemsResponse} returns this
|
|
4644
|
-
*/
|
|
4645
|
-
proto.notification.NotificationItemsResponse.prototype.clearTotalItems = function() {
|
|
4646
|
-
return jspb.Message.setField(this, 3, undefined);
|
|
4647
|
-
};
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
/**
|
|
4651
|
-
* Returns whether this field is set.
|
|
4652
|
-
* @return {boolean}
|
|
4653
|
-
*/
|
|
4654
|
-
proto.notification.NotificationItemsResponse.prototype.hasTotalItems = function() {
|
|
4655
|
-
return jspb.Message.getField(this, 3) != null;
|
|
4656
|
-
};
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
6522
|
|
|
4660
6523
|
|
|
4661
6524
|
|