protobuf-platform 1.0.180 → 1.0.182
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/loyalty/loyalty.proto
CHANGED
package/loyalty/loyalty_pb.js
CHANGED
@@ -3863,7 +3863,8 @@ proto.loyalty.BetPoint.toObject = function(includeInstance, msg) {
|
|
3863
3863
|
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
3864
3864
|
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
3865
3865
|
numberOfStep: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
3866
|
-
wagerGameListId: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
3866
|
+
wagerGameListId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
3867
|
+
wagerGameListTitle: jspb.Message.getFieldWithDefault(msg, 7, "")
|
3867
3868
|
};
|
3868
3869
|
|
3869
3870
|
if (includeInstance) {
|
@@ -3924,6 +3925,10 @@ proto.loyalty.BetPoint.deserializeBinaryFromReader = function(msg, reader) {
|
|
3924
3925
|
var value = /** @type {number} */ (reader.readInt32());
|
3925
3926
|
msg.setWagerGameListId(value);
|
3926
3927
|
break;
|
3928
|
+
case 7:
|
3929
|
+
var value = /** @type {string} */ (reader.readString());
|
3930
|
+
msg.setWagerGameListTitle(value);
|
3931
|
+
break;
|
3927
3932
|
default:
|
3928
3933
|
reader.skipField();
|
3929
3934
|
break;
|
@@ -3995,6 +4000,13 @@ proto.loyalty.BetPoint.serializeBinaryToWriter = function(message, writer) {
|
|
3995
4000
|
f
|
3996
4001
|
);
|
3997
4002
|
}
|
4003
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
4004
|
+
if (f != null) {
|
4005
|
+
writer.writeString(
|
4006
|
+
7,
|
4007
|
+
f
|
4008
|
+
);
|
4009
|
+
}
|
3998
4010
|
};
|
3999
4011
|
|
4000
4012
|
|
@@ -4142,6 +4154,42 @@ proto.loyalty.BetPoint.prototype.hasWagerGameListId = function() {
|
|
4142
4154
|
};
|
4143
4155
|
|
4144
4156
|
|
4157
|
+
/**
|
4158
|
+
* optional string wager_game_list_title = 7;
|
4159
|
+
* @return {string}
|
4160
|
+
*/
|
4161
|
+
proto.loyalty.BetPoint.prototype.getWagerGameListTitle = function() {
|
4162
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
4163
|
+
};
|
4164
|
+
|
4165
|
+
|
4166
|
+
/**
|
4167
|
+
* @param {string} value
|
4168
|
+
* @return {!proto.loyalty.BetPoint} returns this
|
4169
|
+
*/
|
4170
|
+
proto.loyalty.BetPoint.prototype.setWagerGameListTitle = function(value) {
|
4171
|
+
return jspb.Message.setField(this, 7, value);
|
4172
|
+
};
|
4173
|
+
|
4174
|
+
|
4175
|
+
/**
|
4176
|
+
* Clears the field making it undefined.
|
4177
|
+
* @return {!proto.loyalty.BetPoint} returns this
|
4178
|
+
*/
|
4179
|
+
proto.loyalty.BetPoint.prototype.clearWagerGameListTitle = function() {
|
4180
|
+
return jspb.Message.setField(this, 7, undefined);
|
4181
|
+
};
|
4182
|
+
|
4183
|
+
|
4184
|
+
/**
|
4185
|
+
* Returns whether this field is set.
|
4186
|
+
* @return {boolean}
|
4187
|
+
*/
|
4188
|
+
proto.loyalty.BetPoint.prototype.hasWagerGameListTitle = function() {
|
4189
|
+
return jspb.Message.getField(this, 7) != null;
|
4190
|
+
};
|
4191
|
+
|
4192
|
+
|
4145
4193
|
|
4146
4194
|
|
4147
4195
|
|
@@ -11,6 +11,7 @@ service Notification {
|
|
11
11
|
//rpc updateSingleLevel(stream LevelRequest) returns (LevelResponse);
|
12
12
|
//rpc deleteSingleLevel(GetLevelRequest) returns (LevelStatusResponse);
|
13
13
|
//rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
|
14
|
+
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
14
15
|
}
|
15
16
|
|
16
17
|
message PingRequest { string ping = 1; }
|
@@ -23,4 +24,13 @@ message NotificationSearchRequest {
|
|
23
24
|
}
|
24
25
|
//Media
|
25
26
|
message File { bytes media = 1; }
|
26
|
-
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
27
|
+
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
28
|
+
|
29
|
+
//Notification
|
30
|
+
message SendNotificationRequest {
|
31
|
+
int32 notification_id = 1;
|
32
|
+
repeated int32 user_ids = 2;
|
33
|
+
}
|
34
|
+
message NotificationStatusResponse {
|
35
|
+
string status = 1;
|
36
|
+
}
|
@@ -26,6 +26,17 @@ function deserialize_notification_GetFileRequest(buffer_arg) {
|
|
26
26
|
return notification_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
27
|
}
|
28
28
|
|
29
|
+
function serialize_notification_NotificationStatusResponse(arg) {
|
30
|
+
if (!(arg instanceof notification_pb.NotificationStatusResponse)) {
|
31
|
+
throw new Error('Expected argument of type notification.NotificationStatusResponse');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_notification_NotificationStatusResponse(buffer_arg) {
|
37
|
+
return notification_pb.NotificationStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
29
40
|
function serialize_notification_PingRequest(arg) {
|
30
41
|
if (!(arg instanceof notification_pb.PingRequest)) {
|
31
42
|
throw new Error('Expected argument of type notification.PingRequest');
|
@@ -48,6 +59,17 @@ function deserialize_notification_PongResponse(buffer_arg) {
|
|
48
59
|
return notification_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
49
60
|
}
|
50
61
|
|
62
|
+
function serialize_notification_SendNotificationRequest(arg) {
|
63
|
+
if (!(arg instanceof notification_pb.SendNotificationRequest)) {
|
64
|
+
throw new Error('Expected argument of type notification.SendNotificationRequest');
|
65
|
+
}
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
67
|
+
}
|
68
|
+
|
69
|
+
function deserialize_notification_SendNotificationRequest(buffer_arg) {
|
70
|
+
return notification_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
|
+
}
|
72
|
+
|
51
73
|
|
52
74
|
var NotificationService = exports.NotificationService = {
|
53
75
|
checkConnection: {
|
@@ -78,6 +100,17 @@ var NotificationService = exports.NotificationService = {
|
|
78
100
|
// rpc updateSingleLevel(stream LevelRequest) returns (LevelResponse);
|
79
101
|
// rpc deleteSingleLevel(GetLevelRequest) returns (LevelStatusResponse);
|
80
102
|
// rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
|
103
|
+
sendNotificationToUsers: {
|
104
|
+
path: '/notification.Notification/sendNotificationToUsers',
|
105
|
+
requestStream: false,
|
106
|
+
responseStream: false,
|
107
|
+
requestType: notification_pb.SendNotificationRequest,
|
108
|
+
responseType: notification_pb.NotificationStatusResponse,
|
109
|
+
requestSerialize: serialize_notification_SendNotificationRequest,
|
110
|
+
requestDeserialize: deserialize_notification_SendNotificationRequest,
|
111
|
+
responseSerialize: serialize_notification_NotificationStatusResponse,
|
112
|
+
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
113
|
+
},
|
81
114
|
};
|
82
115
|
|
83
116
|
exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService);
|
@@ -24,9 +24,11 @@ var global = (function() {
|
|
24
24
|
goog.exportSymbol('proto.notification.File', null, global);
|
25
25
|
goog.exportSymbol('proto.notification.GetFileRequest', null, global);
|
26
26
|
goog.exportSymbol('proto.notification.NotificationSearchRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.notification.NotificationStatusResponse', null, global);
|
27
28
|
goog.exportSymbol('proto.notification.PaginationRequest', null, global);
|
28
29
|
goog.exportSymbol('proto.notification.PingRequest', null, global);
|
29
30
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
30
32
|
/**
|
31
33
|
* Generated by JsPbCodeGenerator.
|
32
34
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -153,6 +155,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
155
|
*/
|
154
156
|
proto.notification.GetFileRequest.displayName = 'proto.notification.GetFileRequest';
|
155
157
|
}
|
158
|
+
/**
|
159
|
+
* Generated by JsPbCodeGenerator.
|
160
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
161
|
+
* server response, or constructed directly in Javascript. The array is used
|
162
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
163
|
+
* If no data is provided, the constructed object will be empty, but still
|
164
|
+
* valid.
|
165
|
+
* @extends {jspb.Message}
|
166
|
+
* @constructor
|
167
|
+
*/
|
168
|
+
proto.notification.SendNotificationRequest = function(opt_data) {
|
169
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.SendNotificationRequest.repeatedFields_, null);
|
170
|
+
};
|
171
|
+
goog.inherits(proto.notification.SendNotificationRequest, jspb.Message);
|
172
|
+
if (goog.DEBUG && !COMPILED) {
|
173
|
+
/**
|
174
|
+
* @public
|
175
|
+
* @override
|
176
|
+
*/
|
177
|
+
proto.notification.SendNotificationRequest.displayName = 'proto.notification.SendNotificationRequest';
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Generated by JsPbCodeGenerator.
|
181
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
182
|
+
* server response, or constructed directly in Javascript. The array is used
|
183
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
184
|
+
* If no data is provided, the constructed object will be empty, but still
|
185
|
+
* valid.
|
186
|
+
* @extends {jspb.Message}
|
187
|
+
* @constructor
|
188
|
+
*/
|
189
|
+
proto.notification.NotificationStatusResponse = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.notification.NotificationStatusResponse, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.notification.NotificationStatusResponse.displayName = 'proto.notification.NotificationStatusResponse';
|
199
|
+
}
|
156
200
|
|
157
201
|
|
158
202
|
|
@@ -1182,4 +1226,322 @@ proto.notification.GetFileRequest.prototype.setInstanceType = function(value) {
|
|
1182
1226
|
};
|
1183
1227
|
|
1184
1228
|
|
1229
|
+
|
1230
|
+
/**
|
1231
|
+
* List of repeated fields within this message type.
|
1232
|
+
* @private {!Array<number>}
|
1233
|
+
* @const
|
1234
|
+
*/
|
1235
|
+
proto.notification.SendNotificationRequest.repeatedFields_ = [2];
|
1236
|
+
|
1237
|
+
|
1238
|
+
|
1239
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1240
|
+
/**
|
1241
|
+
* Creates an object representation of this proto.
|
1242
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1243
|
+
* Optional fields that are not set will be set to undefined.
|
1244
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1245
|
+
* For the list of reserved names please see:
|
1246
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1247
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1248
|
+
* JSPB instance for transitional soy proto support:
|
1249
|
+
* http://goto/soy-param-migration
|
1250
|
+
* @return {!Object}
|
1251
|
+
*/
|
1252
|
+
proto.notification.SendNotificationRequest.prototype.toObject = function(opt_includeInstance) {
|
1253
|
+
return proto.notification.SendNotificationRequest.toObject(opt_includeInstance, this);
|
1254
|
+
};
|
1255
|
+
|
1256
|
+
|
1257
|
+
/**
|
1258
|
+
* Static version of the {@see toObject} method.
|
1259
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1260
|
+
* the JSPB instance for transitional soy proto support:
|
1261
|
+
* http://goto/soy-param-migration
|
1262
|
+
* @param {!proto.notification.SendNotificationRequest} msg The msg instance to transform.
|
1263
|
+
* @return {!Object}
|
1264
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1265
|
+
*/
|
1266
|
+
proto.notification.SendNotificationRequest.toObject = function(includeInstance, msg) {
|
1267
|
+
var f, obj = {
|
1268
|
+
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1269
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
1270
|
+
};
|
1271
|
+
|
1272
|
+
if (includeInstance) {
|
1273
|
+
obj.$jspbMessageInstance = msg;
|
1274
|
+
}
|
1275
|
+
return obj;
|
1276
|
+
};
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
|
1280
|
+
/**
|
1281
|
+
* Deserializes binary data (in protobuf wire format).
|
1282
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1283
|
+
* @return {!proto.notification.SendNotificationRequest}
|
1284
|
+
*/
|
1285
|
+
proto.notification.SendNotificationRequest.deserializeBinary = function(bytes) {
|
1286
|
+
var reader = new jspb.BinaryReader(bytes);
|
1287
|
+
var msg = new proto.notification.SendNotificationRequest;
|
1288
|
+
return proto.notification.SendNotificationRequest.deserializeBinaryFromReader(msg, reader);
|
1289
|
+
};
|
1290
|
+
|
1291
|
+
|
1292
|
+
/**
|
1293
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1294
|
+
* given reader into the given message object.
|
1295
|
+
* @param {!proto.notification.SendNotificationRequest} msg The message object to deserialize into.
|
1296
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1297
|
+
* @return {!proto.notification.SendNotificationRequest}
|
1298
|
+
*/
|
1299
|
+
proto.notification.SendNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1300
|
+
while (reader.nextField()) {
|
1301
|
+
if (reader.isEndGroup()) {
|
1302
|
+
break;
|
1303
|
+
}
|
1304
|
+
var field = reader.getFieldNumber();
|
1305
|
+
switch (field) {
|
1306
|
+
case 1:
|
1307
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1308
|
+
msg.setNotificationId(value);
|
1309
|
+
break;
|
1310
|
+
case 2:
|
1311
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1312
|
+
for (var i = 0; i < values.length; i++) {
|
1313
|
+
msg.addUserIds(values[i]);
|
1314
|
+
}
|
1315
|
+
break;
|
1316
|
+
default:
|
1317
|
+
reader.skipField();
|
1318
|
+
break;
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
return msg;
|
1322
|
+
};
|
1323
|
+
|
1324
|
+
|
1325
|
+
/**
|
1326
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1327
|
+
* @return {!Uint8Array}
|
1328
|
+
*/
|
1329
|
+
proto.notification.SendNotificationRequest.prototype.serializeBinary = function() {
|
1330
|
+
var writer = new jspb.BinaryWriter();
|
1331
|
+
proto.notification.SendNotificationRequest.serializeBinaryToWriter(this, writer);
|
1332
|
+
return writer.getResultBuffer();
|
1333
|
+
};
|
1334
|
+
|
1335
|
+
|
1336
|
+
/**
|
1337
|
+
* Serializes the given message to binary data (in protobuf wire
|
1338
|
+
* format), writing to the given BinaryWriter.
|
1339
|
+
* @param {!proto.notification.SendNotificationRequest} message
|
1340
|
+
* @param {!jspb.BinaryWriter} writer
|
1341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1342
|
+
*/
|
1343
|
+
proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(message, writer) {
|
1344
|
+
var f = undefined;
|
1345
|
+
f = message.getNotificationId();
|
1346
|
+
if (f !== 0) {
|
1347
|
+
writer.writeInt32(
|
1348
|
+
1,
|
1349
|
+
f
|
1350
|
+
);
|
1351
|
+
}
|
1352
|
+
f = message.getUserIdsList();
|
1353
|
+
if (f.length > 0) {
|
1354
|
+
writer.writePackedInt32(
|
1355
|
+
2,
|
1356
|
+
f
|
1357
|
+
);
|
1358
|
+
}
|
1359
|
+
};
|
1360
|
+
|
1361
|
+
|
1362
|
+
/**
|
1363
|
+
* optional int32 notification_id = 1;
|
1364
|
+
* @return {number}
|
1365
|
+
*/
|
1366
|
+
proto.notification.SendNotificationRequest.prototype.getNotificationId = function() {
|
1367
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1368
|
+
};
|
1369
|
+
|
1370
|
+
|
1371
|
+
/**
|
1372
|
+
* @param {number} value
|
1373
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
1374
|
+
*/
|
1375
|
+
proto.notification.SendNotificationRequest.prototype.setNotificationId = function(value) {
|
1376
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1377
|
+
};
|
1378
|
+
|
1379
|
+
|
1380
|
+
/**
|
1381
|
+
* repeated int32 user_ids = 2;
|
1382
|
+
* @return {!Array<number>}
|
1383
|
+
*/
|
1384
|
+
proto.notification.SendNotificationRequest.prototype.getUserIdsList = function() {
|
1385
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
1386
|
+
};
|
1387
|
+
|
1388
|
+
|
1389
|
+
/**
|
1390
|
+
* @param {!Array<number>} value
|
1391
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
1392
|
+
*/
|
1393
|
+
proto.notification.SendNotificationRequest.prototype.setUserIdsList = function(value) {
|
1394
|
+
return jspb.Message.setField(this, 2, value || []);
|
1395
|
+
};
|
1396
|
+
|
1397
|
+
|
1398
|
+
/**
|
1399
|
+
* @param {number} value
|
1400
|
+
* @param {number=} opt_index
|
1401
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
1402
|
+
*/
|
1403
|
+
proto.notification.SendNotificationRequest.prototype.addUserIds = function(value, opt_index) {
|
1404
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
1405
|
+
};
|
1406
|
+
|
1407
|
+
|
1408
|
+
/**
|
1409
|
+
* Clears the list making it empty but non-null.
|
1410
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
1411
|
+
*/
|
1412
|
+
proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function() {
|
1413
|
+
return this.setUserIdsList([]);
|
1414
|
+
};
|
1415
|
+
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1421
|
+
/**
|
1422
|
+
* Creates an object representation of this proto.
|
1423
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1424
|
+
* Optional fields that are not set will be set to undefined.
|
1425
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1426
|
+
* For the list of reserved names please see:
|
1427
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1428
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1429
|
+
* JSPB instance for transitional soy proto support:
|
1430
|
+
* http://goto/soy-param-migration
|
1431
|
+
* @return {!Object}
|
1432
|
+
*/
|
1433
|
+
proto.notification.NotificationStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
1434
|
+
return proto.notification.NotificationStatusResponse.toObject(opt_includeInstance, this);
|
1435
|
+
};
|
1436
|
+
|
1437
|
+
|
1438
|
+
/**
|
1439
|
+
* Static version of the {@see toObject} method.
|
1440
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1441
|
+
* the JSPB instance for transitional soy proto support:
|
1442
|
+
* http://goto/soy-param-migration
|
1443
|
+
* @param {!proto.notification.NotificationStatusResponse} msg The msg instance to transform.
|
1444
|
+
* @return {!Object}
|
1445
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1446
|
+
*/
|
1447
|
+
proto.notification.NotificationStatusResponse.toObject = function(includeInstance, msg) {
|
1448
|
+
var f, obj = {
|
1449
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
1450
|
+
};
|
1451
|
+
|
1452
|
+
if (includeInstance) {
|
1453
|
+
obj.$jspbMessageInstance = msg;
|
1454
|
+
}
|
1455
|
+
return obj;
|
1456
|
+
};
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
|
1460
|
+
/**
|
1461
|
+
* Deserializes binary data (in protobuf wire format).
|
1462
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1463
|
+
* @return {!proto.notification.NotificationStatusResponse}
|
1464
|
+
*/
|
1465
|
+
proto.notification.NotificationStatusResponse.deserializeBinary = function(bytes) {
|
1466
|
+
var reader = new jspb.BinaryReader(bytes);
|
1467
|
+
var msg = new proto.notification.NotificationStatusResponse;
|
1468
|
+
return proto.notification.NotificationStatusResponse.deserializeBinaryFromReader(msg, reader);
|
1469
|
+
};
|
1470
|
+
|
1471
|
+
|
1472
|
+
/**
|
1473
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1474
|
+
* given reader into the given message object.
|
1475
|
+
* @param {!proto.notification.NotificationStatusResponse} msg The message object to deserialize into.
|
1476
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1477
|
+
* @return {!proto.notification.NotificationStatusResponse}
|
1478
|
+
*/
|
1479
|
+
proto.notification.NotificationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1480
|
+
while (reader.nextField()) {
|
1481
|
+
if (reader.isEndGroup()) {
|
1482
|
+
break;
|
1483
|
+
}
|
1484
|
+
var field = reader.getFieldNumber();
|
1485
|
+
switch (field) {
|
1486
|
+
case 1:
|
1487
|
+
var value = /** @type {string} */ (reader.readString());
|
1488
|
+
msg.setStatus(value);
|
1489
|
+
break;
|
1490
|
+
default:
|
1491
|
+
reader.skipField();
|
1492
|
+
break;
|
1493
|
+
}
|
1494
|
+
}
|
1495
|
+
return msg;
|
1496
|
+
};
|
1497
|
+
|
1498
|
+
|
1499
|
+
/**
|
1500
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1501
|
+
* @return {!Uint8Array}
|
1502
|
+
*/
|
1503
|
+
proto.notification.NotificationStatusResponse.prototype.serializeBinary = function() {
|
1504
|
+
var writer = new jspb.BinaryWriter();
|
1505
|
+
proto.notification.NotificationStatusResponse.serializeBinaryToWriter(this, writer);
|
1506
|
+
return writer.getResultBuffer();
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
|
1510
|
+
/**
|
1511
|
+
* Serializes the given message to binary data (in protobuf wire
|
1512
|
+
* format), writing to the given BinaryWriter.
|
1513
|
+
* @param {!proto.notification.NotificationStatusResponse} message
|
1514
|
+
* @param {!jspb.BinaryWriter} writer
|
1515
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1516
|
+
*/
|
1517
|
+
proto.notification.NotificationStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
1518
|
+
var f = undefined;
|
1519
|
+
f = message.getStatus();
|
1520
|
+
if (f.length > 0) {
|
1521
|
+
writer.writeString(
|
1522
|
+
1,
|
1523
|
+
f
|
1524
|
+
);
|
1525
|
+
}
|
1526
|
+
};
|
1527
|
+
|
1528
|
+
|
1529
|
+
/**
|
1530
|
+
* optional string status = 1;
|
1531
|
+
* @return {string}
|
1532
|
+
*/
|
1533
|
+
proto.notification.NotificationStatusResponse.prototype.getStatus = function() {
|
1534
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1535
|
+
};
|
1536
|
+
|
1537
|
+
|
1538
|
+
/**
|
1539
|
+
* @param {string} value
|
1540
|
+
* @return {!proto.notification.NotificationStatusResponse} returns this
|
1541
|
+
*/
|
1542
|
+
proto.notification.NotificationStatusResponse.prototype.setStatus = function(value) {
|
1543
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1544
|
+
};
|
1545
|
+
|
1546
|
+
|
1185
1547
|
goog.object.extend(exports, proto.notification);
|