protobuf-platform 1.2.488 → 1.2.491

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_pb.js CHANGED
@@ -75,10 +75,13 @@ goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
75
75
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
76
76
  goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
77
77
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
78
+ goog.exportSymbol('proto.bonus.ListSignUpBonusesRequest', null, global);
79
+ goog.exportSymbol('proto.bonus.ListSignUpBonusesResponse', null, global);
78
80
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
79
81
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
80
82
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
81
83
  goog.exportSymbol('proto.bonus.SearchBonusRequest', null, global);
84
+ goog.exportSymbol('proto.bonus.SignUpBonusListItem', null, global);
82
85
  goog.exportSymbol('proto.bonus.UserBonusHistoryResponse', null, global);
83
86
  goog.exportSymbol('proto.bonus.UserBonusItem', null, global);
84
87
  goog.exportSymbol('proto.bonus.UserBonusItemsResponse', null, global);
@@ -546,6 +549,69 @@ if (goog.DEBUG && !COMPILED) {
546
549
  */
547
550
  proto.bonus.BonusItemsResponse.displayName = 'proto.bonus.BonusItemsResponse';
548
551
  }
552
+ /**
553
+ * Generated by JsPbCodeGenerator.
554
+ * @param {Array=} opt_data Optional initial data array, typically from a
555
+ * server response, or constructed directly in Javascript. The array is used
556
+ * in place and becomes part of the constructed object. It is not cloned.
557
+ * If no data is provided, the constructed object will be empty, but still
558
+ * valid.
559
+ * @extends {jspb.Message}
560
+ * @constructor
561
+ */
562
+ proto.bonus.ListSignUpBonusesRequest = function(opt_data) {
563
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
564
+ };
565
+ goog.inherits(proto.bonus.ListSignUpBonusesRequest, jspb.Message);
566
+ if (goog.DEBUG && !COMPILED) {
567
+ /**
568
+ * @public
569
+ * @override
570
+ */
571
+ proto.bonus.ListSignUpBonusesRequest.displayName = 'proto.bonus.ListSignUpBonusesRequest';
572
+ }
573
+ /**
574
+ * Generated by JsPbCodeGenerator.
575
+ * @param {Array=} opt_data Optional initial data array, typically from a
576
+ * server response, or constructed directly in Javascript. The array is used
577
+ * in place and becomes part of the constructed object. It is not cloned.
578
+ * If no data is provided, the constructed object will be empty, but still
579
+ * valid.
580
+ * @extends {jspb.Message}
581
+ * @constructor
582
+ */
583
+ proto.bonus.SignUpBonusListItem = function(opt_data) {
584
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
585
+ };
586
+ goog.inherits(proto.bonus.SignUpBonusListItem, jspb.Message);
587
+ if (goog.DEBUG && !COMPILED) {
588
+ /**
589
+ * @public
590
+ * @override
591
+ */
592
+ proto.bonus.SignUpBonusListItem.displayName = 'proto.bonus.SignUpBonusListItem';
593
+ }
594
+ /**
595
+ * Generated by JsPbCodeGenerator.
596
+ * @param {Array=} opt_data Optional initial data array, typically from a
597
+ * server response, or constructed directly in Javascript. The array is used
598
+ * in place and becomes part of the constructed object. It is not cloned.
599
+ * If no data is provided, the constructed object will be empty, but still
600
+ * valid.
601
+ * @extends {jspb.Message}
602
+ * @constructor
603
+ */
604
+ proto.bonus.ListSignUpBonusesResponse = function(opt_data) {
605
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.ListSignUpBonusesResponse.repeatedFields_, null);
606
+ };
607
+ goog.inherits(proto.bonus.ListSignUpBonusesResponse, jspb.Message);
608
+ if (goog.DEBUG && !COMPILED) {
609
+ /**
610
+ * @public
611
+ * @override
612
+ */
613
+ proto.bonus.ListSignUpBonusesResponse.displayName = 'proto.bonus.ListSignUpBonusesResponse';
614
+ }
549
615
  /**
550
616
  * Generated by JsPbCodeGenerator.
551
617
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10044,6 +10110,582 @@ proto.bonus.BonusItemsResponse.prototype.hasTotalItems = function() {
10044
10110
 
10045
10111
 
10046
10112
 
10113
+
10114
+
10115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10116
+ /**
10117
+ * Creates an object representation of this proto.
10118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10119
+ * Optional fields that are not set will be set to undefined.
10120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10121
+ * For the list of reserved names please see:
10122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10124
+ * JSPB instance for transitional soy proto support:
10125
+ * http://goto/soy-param-migration
10126
+ * @return {!Object}
10127
+ */
10128
+ proto.bonus.ListSignUpBonusesRequest.prototype.toObject = function(opt_includeInstance) {
10129
+ return proto.bonus.ListSignUpBonusesRequest.toObject(opt_includeInstance, this);
10130
+ };
10131
+
10132
+
10133
+ /**
10134
+ * Static version of the {@see toObject} method.
10135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10136
+ * the JSPB instance for transitional soy proto support:
10137
+ * http://goto/soy-param-migration
10138
+ * @param {!proto.bonus.ListSignUpBonusesRequest} msg The msg instance to transform.
10139
+ * @return {!Object}
10140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10141
+ */
10142
+ proto.bonus.ListSignUpBonusesRequest.toObject = function(includeInstance, msg) {
10143
+ var f, obj = {
10144
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
10145
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
10146
+ };
10147
+
10148
+ if (includeInstance) {
10149
+ obj.$jspbMessageInstance = msg;
10150
+ }
10151
+ return obj;
10152
+ };
10153
+ }
10154
+
10155
+
10156
+ /**
10157
+ * Deserializes binary data (in protobuf wire format).
10158
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10159
+ * @return {!proto.bonus.ListSignUpBonusesRequest}
10160
+ */
10161
+ proto.bonus.ListSignUpBonusesRequest.deserializeBinary = function(bytes) {
10162
+ var reader = new jspb.BinaryReader(bytes);
10163
+ var msg = new proto.bonus.ListSignUpBonusesRequest;
10164
+ return proto.bonus.ListSignUpBonusesRequest.deserializeBinaryFromReader(msg, reader);
10165
+ };
10166
+
10167
+
10168
+ /**
10169
+ * Deserializes binary data (in protobuf wire format) from the
10170
+ * given reader into the given message object.
10171
+ * @param {!proto.bonus.ListSignUpBonusesRequest} msg The message object to deserialize into.
10172
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10173
+ * @return {!proto.bonus.ListSignUpBonusesRequest}
10174
+ */
10175
+ proto.bonus.ListSignUpBonusesRequest.deserializeBinaryFromReader = function(msg, reader) {
10176
+ while (reader.nextField()) {
10177
+ if (reader.isEndGroup()) {
10178
+ break;
10179
+ }
10180
+ var field = reader.getFieldNumber();
10181
+ switch (field) {
10182
+ case 1:
10183
+ var value = /** @type {string} */ (reader.readString());
10184
+ msg.setCurrency(value);
10185
+ break;
10186
+ case 2:
10187
+ var value = /** @type {string} */ (reader.readString());
10188
+ msg.setLocale(value);
10189
+ break;
10190
+ default:
10191
+ reader.skipField();
10192
+ break;
10193
+ }
10194
+ }
10195
+ return msg;
10196
+ };
10197
+
10198
+
10199
+ /**
10200
+ * Serializes the message to binary data (in protobuf wire format).
10201
+ * @return {!Uint8Array}
10202
+ */
10203
+ proto.bonus.ListSignUpBonusesRequest.prototype.serializeBinary = function() {
10204
+ var writer = new jspb.BinaryWriter();
10205
+ proto.bonus.ListSignUpBonusesRequest.serializeBinaryToWriter(this, writer);
10206
+ return writer.getResultBuffer();
10207
+ };
10208
+
10209
+
10210
+ /**
10211
+ * Serializes the given message to binary data (in protobuf wire
10212
+ * format), writing to the given BinaryWriter.
10213
+ * @param {!proto.bonus.ListSignUpBonusesRequest} message
10214
+ * @param {!jspb.BinaryWriter} writer
10215
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10216
+ */
10217
+ proto.bonus.ListSignUpBonusesRequest.serializeBinaryToWriter = function(message, writer) {
10218
+ var f = undefined;
10219
+ f = message.getCurrency();
10220
+ if (f.length > 0) {
10221
+ writer.writeString(
10222
+ 1,
10223
+ f
10224
+ );
10225
+ }
10226
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
10227
+ if (f != null) {
10228
+ writer.writeString(
10229
+ 2,
10230
+ f
10231
+ );
10232
+ }
10233
+ };
10234
+
10235
+
10236
+ /**
10237
+ * optional string currency = 1;
10238
+ * @return {string}
10239
+ */
10240
+ proto.bonus.ListSignUpBonusesRequest.prototype.getCurrency = function() {
10241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10242
+ };
10243
+
10244
+
10245
+ /**
10246
+ * @param {string} value
10247
+ * @return {!proto.bonus.ListSignUpBonusesRequest} returns this
10248
+ */
10249
+ proto.bonus.ListSignUpBonusesRequest.prototype.setCurrency = function(value) {
10250
+ return jspb.Message.setProto3StringField(this, 1, value);
10251
+ };
10252
+
10253
+
10254
+ /**
10255
+ * optional string locale = 2;
10256
+ * @return {string}
10257
+ */
10258
+ proto.bonus.ListSignUpBonusesRequest.prototype.getLocale = function() {
10259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10260
+ };
10261
+
10262
+
10263
+ /**
10264
+ * @param {string} value
10265
+ * @return {!proto.bonus.ListSignUpBonusesRequest} returns this
10266
+ */
10267
+ proto.bonus.ListSignUpBonusesRequest.prototype.setLocale = function(value) {
10268
+ return jspb.Message.setField(this, 2, value);
10269
+ };
10270
+
10271
+
10272
+ /**
10273
+ * Clears the field making it undefined.
10274
+ * @return {!proto.bonus.ListSignUpBonusesRequest} returns this
10275
+ */
10276
+ proto.bonus.ListSignUpBonusesRequest.prototype.clearLocale = function() {
10277
+ return jspb.Message.setField(this, 2, undefined);
10278
+ };
10279
+
10280
+
10281
+ /**
10282
+ * Returns whether this field is set.
10283
+ * @return {boolean}
10284
+ */
10285
+ proto.bonus.ListSignUpBonusesRequest.prototype.hasLocale = function() {
10286
+ return jspb.Message.getField(this, 2) != null;
10287
+ };
10288
+
10289
+
10290
+
10291
+
10292
+
10293
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10294
+ /**
10295
+ * Creates an object representation of this proto.
10296
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10297
+ * Optional fields that are not set will be set to undefined.
10298
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10299
+ * For the list of reserved names please see:
10300
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10301
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10302
+ * JSPB instance for transitional soy proto support:
10303
+ * http://goto/soy-param-migration
10304
+ * @return {!Object}
10305
+ */
10306
+ proto.bonus.SignUpBonusListItem.prototype.toObject = function(opt_includeInstance) {
10307
+ return proto.bonus.SignUpBonusListItem.toObject(opt_includeInstance, this);
10308
+ };
10309
+
10310
+
10311
+ /**
10312
+ * Static version of the {@see toObject} method.
10313
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10314
+ * the JSPB instance for transitional soy proto support:
10315
+ * http://goto/soy-param-migration
10316
+ * @param {!proto.bonus.SignUpBonusListItem} msg The msg instance to transform.
10317
+ * @return {!Object}
10318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10319
+ */
10320
+ proto.bonus.SignUpBonusListItem.toObject = function(includeInstance, msg) {
10321
+ var f, obj = {
10322
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
10323
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
10324
+ image: jspb.Message.getFieldWithDefault(msg, 3, ""),
10325
+ currency: jspb.Message.getFieldWithDefault(msg, 4, "")
10326
+ };
10327
+
10328
+ if (includeInstance) {
10329
+ obj.$jspbMessageInstance = msg;
10330
+ }
10331
+ return obj;
10332
+ };
10333
+ }
10334
+
10335
+
10336
+ /**
10337
+ * Deserializes binary data (in protobuf wire format).
10338
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10339
+ * @return {!proto.bonus.SignUpBonusListItem}
10340
+ */
10341
+ proto.bonus.SignUpBonusListItem.deserializeBinary = function(bytes) {
10342
+ var reader = new jspb.BinaryReader(bytes);
10343
+ var msg = new proto.bonus.SignUpBonusListItem;
10344
+ return proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader(msg, reader);
10345
+ };
10346
+
10347
+
10348
+ /**
10349
+ * Deserializes binary data (in protobuf wire format) from the
10350
+ * given reader into the given message object.
10351
+ * @param {!proto.bonus.SignUpBonusListItem} msg The message object to deserialize into.
10352
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10353
+ * @return {!proto.bonus.SignUpBonusListItem}
10354
+ */
10355
+ proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader = function(msg, reader) {
10356
+ while (reader.nextField()) {
10357
+ if (reader.isEndGroup()) {
10358
+ break;
10359
+ }
10360
+ var field = reader.getFieldNumber();
10361
+ switch (field) {
10362
+ case 1:
10363
+ var value = /** @type {number} */ (reader.readInt32());
10364
+ msg.setId(value);
10365
+ break;
10366
+ case 2:
10367
+ var value = /** @type {string} */ (reader.readString());
10368
+ msg.setTitle(value);
10369
+ break;
10370
+ case 3:
10371
+ var value = /** @type {string} */ (reader.readString());
10372
+ msg.setImage(value);
10373
+ break;
10374
+ case 4:
10375
+ var value = /** @type {string} */ (reader.readString());
10376
+ msg.setCurrency(value);
10377
+ break;
10378
+ default:
10379
+ reader.skipField();
10380
+ break;
10381
+ }
10382
+ }
10383
+ return msg;
10384
+ };
10385
+
10386
+
10387
+ /**
10388
+ * Serializes the message to binary data (in protobuf wire format).
10389
+ * @return {!Uint8Array}
10390
+ */
10391
+ proto.bonus.SignUpBonusListItem.prototype.serializeBinary = function() {
10392
+ var writer = new jspb.BinaryWriter();
10393
+ proto.bonus.SignUpBonusListItem.serializeBinaryToWriter(this, writer);
10394
+ return writer.getResultBuffer();
10395
+ };
10396
+
10397
+
10398
+ /**
10399
+ * Serializes the given message to binary data (in protobuf wire
10400
+ * format), writing to the given BinaryWriter.
10401
+ * @param {!proto.bonus.SignUpBonusListItem} message
10402
+ * @param {!jspb.BinaryWriter} writer
10403
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10404
+ */
10405
+ proto.bonus.SignUpBonusListItem.serializeBinaryToWriter = function(message, writer) {
10406
+ var f = undefined;
10407
+ f = message.getId();
10408
+ if (f !== 0) {
10409
+ writer.writeInt32(
10410
+ 1,
10411
+ f
10412
+ );
10413
+ }
10414
+ f = message.getTitle();
10415
+ if (f.length > 0) {
10416
+ writer.writeString(
10417
+ 2,
10418
+ f
10419
+ );
10420
+ }
10421
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
10422
+ if (f != null) {
10423
+ writer.writeString(
10424
+ 3,
10425
+ f
10426
+ );
10427
+ }
10428
+ f = message.getCurrency();
10429
+ if (f.length > 0) {
10430
+ writer.writeString(
10431
+ 4,
10432
+ f
10433
+ );
10434
+ }
10435
+ };
10436
+
10437
+
10438
+ /**
10439
+ * optional int32 id = 1;
10440
+ * @return {number}
10441
+ */
10442
+ proto.bonus.SignUpBonusListItem.prototype.getId = function() {
10443
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10444
+ };
10445
+
10446
+
10447
+ /**
10448
+ * @param {number} value
10449
+ * @return {!proto.bonus.SignUpBonusListItem} returns this
10450
+ */
10451
+ proto.bonus.SignUpBonusListItem.prototype.setId = function(value) {
10452
+ return jspb.Message.setProto3IntField(this, 1, value);
10453
+ };
10454
+
10455
+
10456
+ /**
10457
+ * optional string title = 2;
10458
+ * @return {string}
10459
+ */
10460
+ proto.bonus.SignUpBonusListItem.prototype.getTitle = function() {
10461
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10462
+ };
10463
+
10464
+
10465
+ /**
10466
+ * @param {string} value
10467
+ * @return {!proto.bonus.SignUpBonusListItem} returns this
10468
+ */
10469
+ proto.bonus.SignUpBonusListItem.prototype.setTitle = function(value) {
10470
+ return jspb.Message.setProto3StringField(this, 2, value);
10471
+ };
10472
+
10473
+
10474
+ /**
10475
+ * optional string image = 3;
10476
+ * @return {string}
10477
+ */
10478
+ proto.bonus.SignUpBonusListItem.prototype.getImage = function() {
10479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10480
+ };
10481
+
10482
+
10483
+ /**
10484
+ * @param {string} value
10485
+ * @return {!proto.bonus.SignUpBonusListItem} returns this
10486
+ */
10487
+ proto.bonus.SignUpBonusListItem.prototype.setImage = function(value) {
10488
+ return jspb.Message.setField(this, 3, value);
10489
+ };
10490
+
10491
+
10492
+ /**
10493
+ * Clears the field making it undefined.
10494
+ * @return {!proto.bonus.SignUpBonusListItem} returns this
10495
+ */
10496
+ proto.bonus.SignUpBonusListItem.prototype.clearImage = function() {
10497
+ return jspb.Message.setField(this, 3, undefined);
10498
+ };
10499
+
10500
+
10501
+ /**
10502
+ * Returns whether this field is set.
10503
+ * @return {boolean}
10504
+ */
10505
+ proto.bonus.SignUpBonusListItem.prototype.hasImage = function() {
10506
+ return jspb.Message.getField(this, 3) != null;
10507
+ };
10508
+
10509
+
10510
+ /**
10511
+ * optional string currency = 4;
10512
+ * @return {string}
10513
+ */
10514
+ proto.bonus.SignUpBonusListItem.prototype.getCurrency = function() {
10515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10516
+ };
10517
+
10518
+
10519
+ /**
10520
+ * @param {string} value
10521
+ * @return {!proto.bonus.SignUpBonusListItem} returns this
10522
+ */
10523
+ proto.bonus.SignUpBonusListItem.prototype.setCurrency = function(value) {
10524
+ return jspb.Message.setProto3StringField(this, 4, value);
10525
+ };
10526
+
10527
+
10528
+
10529
+ /**
10530
+ * List of repeated fields within this message type.
10531
+ * @private {!Array<number>}
10532
+ * @const
10533
+ */
10534
+ proto.bonus.ListSignUpBonusesResponse.repeatedFields_ = [1];
10535
+
10536
+
10537
+
10538
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10539
+ /**
10540
+ * Creates an object representation of this proto.
10541
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10542
+ * Optional fields that are not set will be set to undefined.
10543
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10544
+ * For the list of reserved names please see:
10545
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10546
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10547
+ * JSPB instance for transitional soy proto support:
10548
+ * http://goto/soy-param-migration
10549
+ * @return {!Object}
10550
+ */
10551
+ proto.bonus.ListSignUpBonusesResponse.prototype.toObject = function(opt_includeInstance) {
10552
+ return proto.bonus.ListSignUpBonusesResponse.toObject(opt_includeInstance, this);
10553
+ };
10554
+
10555
+
10556
+ /**
10557
+ * Static version of the {@see toObject} method.
10558
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10559
+ * the JSPB instance for transitional soy proto support:
10560
+ * http://goto/soy-param-migration
10561
+ * @param {!proto.bonus.ListSignUpBonusesResponse} msg The msg instance to transform.
10562
+ * @return {!Object}
10563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10564
+ */
10565
+ proto.bonus.ListSignUpBonusesResponse.toObject = function(includeInstance, msg) {
10566
+ var f, obj = {
10567
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
10568
+ proto.bonus.SignUpBonusListItem.toObject, includeInstance)
10569
+ };
10570
+
10571
+ if (includeInstance) {
10572
+ obj.$jspbMessageInstance = msg;
10573
+ }
10574
+ return obj;
10575
+ };
10576
+ }
10577
+
10578
+
10579
+ /**
10580
+ * Deserializes binary data (in protobuf wire format).
10581
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10582
+ * @return {!proto.bonus.ListSignUpBonusesResponse}
10583
+ */
10584
+ proto.bonus.ListSignUpBonusesResponse.deserializeBinary = function(bytes) {
10585
+ var reader = new jspb.BinaryReader(bytes);
10586
+ var msg = new proto.bonus.ListSignUpBonusesResponse;
10587
+ return proto.bonus.ListSignUpBonusesResponse.deserializeBinaryFromReader(msg, reader);
10588
+ };
10589
+
10590
+
10591
+ /**
10592
+ * Deserializes binary data (in protobuf wire format) from the
10593
+ * given reader into the given message object.
10594
+ * @param {!proto.bonus.ListSignUpBonusesResponse} msg The message object to deserialize into.
10595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10596
+ * @return {!proto.bonus.ListSignUpBonusesResponse}
10597
+ */
10598
+ proto.bonus.ListSignUpBonusesResponse.deserializeBinaryFromReader = function(msg, reader) {
10599
+ while (reader.nextField()) {
10600
+ if (reader.isEndGroup()) {
10601
+ break;
10602
+ }
10603
+ var field = reader.getFieldNumber();
10604
+ switch (field) {
10605
+ case 1:
10606
+ var value = new proto.bonus.SignUpBonusListItem;
10607
+ reader.readMessage(value,proto.bonus.SignUpBonusListItem.deserializeBinaryFromReader);
10608
+ msg.addItems(value);
10609
+ break;
10610
+ default:
10611
+ reader.skipField();
10612
+ break;
10613
+ }
10614
+ }
10615
+ return msg;
10616
+ };
10617
+
10618
+
10619
+ /**
10620
+ * Serializes the message to binary data (in protobuf wire format).
10621
+ * @return {!Uint8Array}
10622
+ */
10623
+ proto.bonus.ListSignUpBonusesResponse.prototype.serializeBinary = function() {
10624
+ var writer = new jspb.BinaryWriter();
10625
+ proto.bonus.ListSignUpBonusesResponse.serializeBinaryToWriter(this, writer);
10626
+ return writer.getResultBuffer();
10627
+ };
10628
+
10629
+
10630
+ /**
10631
+ * Serializes the given message to binary data (in protobuf wire
10632
+ * format), writing to the given BinaryWriter.
10633
+ * @param {!proto.bonus.ListSignUpBonusesResponse} message
10634
+ * @param {!jspb.BinaryWriter} writer
10635
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10636
+ */
10637
+ proto.bonus.ListSignUpBonusesResponse.serializeBinaryToWriter = function(message, writer) {
10638
+ var f = undefined;
10639
+ f = message.getItemsList();
10640
+ if (f.length > 0) {
10641
+ writer.writeRepeatedMessage(
10642
+ 1,
10643
+ f,
10644
+ proto.bonus.SignUpBonusListItem.serializeBinaryToWriter
10645
+ );
10646
+ }
10647
+ };
10648
+
10649
+
10650
+ /**
10651
+ * repeated SignUpBonusListItem items = 1;
10652
+ * @return {!Array<!proto.bonus.SignUpBonusListItem>}
10653
+ */
10654
+ proto.bonus.ListSignUpBonusesResponse.prototype.getItemsList = function() {
10655
+ return /** @type{!Array<!proto.bonus.SignUpBonusListItem>} */ (
10656
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.SignUpBonusListItem, 1));
10657
+ };
10658
+
10659
+
10660
+ /**
10661
+ * @param {!Array<!proto.bonus.SignUpBonusListItem>} value
10662
+ * @return {!proto.bonus.ListSignUpBonusesResponse} returns this
10663
+ */
10664
+ proto.bonus.ListSignUpBonusesResponse.prototype.setItemsList = function(value) {
10665
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10666
+ };
10667
+
10668
+
10669
+ /**
10670
+ * @param {!proto.bonus.SignUpBonusListItem=} opt_value
10671
+ * @param {number=} opt_index
10672
+ * @return {!proto.bonus.SignUpBonusListItem}
10673
+ */
10674
+ proto.bonus.ListSignUpBonusesResponse.prototype.addItems = function(opt_value, opt_index) {
10675
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.SignUpBonusListItem, opt_index);
10676
+ };
10677
+
10678
+
10679
+ /**
10680
+ * Clears the list making it empty but non-null.
10681
+ * @return {!proto.bonus.ListSignUpBonusesResponse} returns this
10682
+ */
10683
+ proto.bonus.ListSignUpBonusesResponse.prototype.clearItemsList = function() {
10684
+ return this.setItemsList([]);
10685
+ };
10686
+
10687
+
10688
+
10047
10689
  /**
10048
10690
  * List of repeated fields within this message type.
10049
10691
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.488",
3
+ "version": "1.2.491",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -150,6 +150,9 @@ service User {
150
150
  rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
151
151
  rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
152
152
  rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
153
+ rpc attemptSmsResetPasswordConfirmation(SmsResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
154
+ rpc verifySmsResetPasswordCode(VerifySmsResetPasswordCodeRequest) returns (VerifySmsResetPasswordCodeResponse);
155
+ rpc setNewPasswordFromSmsReset(SetNewPasswordFromSmsResetRequest) returns (ConfirmationStatusResponse);
153
156
  rpc setUserCookies(UserCookiesRequest) returns (ConfirmationStatusResponse);
154
157
  // Games
155
158
  rpc toggleUserFavouriteGame(UserGameRequest) returns (UserToggleGameStatusResponse);
@@ -229,6 +232,7 @@ message RegistrationRequest {
229
232
  optional string fraudnetic_token = 27;
230
233
  // Gateway IP-derived country; distinct from profile country.
231
234
  optional string ip_country = 28;
235
+ optional int32 bonus_id = 29;
232
236
  }
233
237
  message LoggedInResponse {
234
238
  int32 id = 1;
@@ -1664,6 +1668,20 @@ message EmailConfirmationRequest {
1664
1668
  message ResetPasswordConfirmationRequest {
1665
1669
  string user_email = 1;
1666
1670
  }
1671
+ message SmsResetPasswordConfirmationRequest {
1672
+ string phone = 1;
1673
+ }
1674
+ message VerifySmsResetPasswordCodeRequest {
1675
+ string phone = 1;
1676
+ string code = 2;
1677
+ }
1678
+ message VerifySmsResetPasswordCodeResponse {
1679
+ string password_reset_token = 1;
1680
+ }
1681
+ message SetNewPasswordFromSmsResetRequest {
1682
+ string password_reset_token = 1;
1683
+ string new_password = 2;
1684
+ }
1667
1685
  message ConfirmationStatusResponse {
1668
1686
  string status = 1;
1669
1687
  }