protobuf-platform 1.2.63 → 1.2.65

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/cms/cms.proto CHANGED
@@ -13,6 +13,8 @@ service CMS {
13
13
  rpc getBurgerMenuWidget(GetBurgerMenuWidgetRequest) returns (BurgerMenuWidgetItem);
14
14
  rpc setSignUpFormWidget(CommonWidgetRequest) returns (SignUpFormWidgetItem);
15
15
  rpc getSignUpFormWidget(GetSignUpFormWidgetRequest) returns (SignUpFormWidgetItem);
16
+ rpc setHeaderWidget(CommonWidgetRequest) returns (HeaderWidgetItem);
17
+ rpc getHeaderWidget(GetHeaderWidgetRequest) returns (HeaderWidgetItem);
16
18
  //Banners
17
19
  rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
18
20
  rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
@@ -104,12 +106,20 @@ message BurgerMenuWidgetItem {
104
106
  }
105
107
  message GetSignUpFormWidgetRequest {
106
108
  optional string geo = 1;
107
- optional bool admin_side = 4;
109
+ optional bool admin_side = 2;
108
110
  }
109
111
  message SignUpFormWidgetItem {
110
112
  string geo = 1;
111
113
  string content = 2;
112
114
  }
115
+ message GetHeaderWidgetRequest {
116
+ optional string geo = 1;
117
+ optional bool admin_side = 2;
118
+ }
119
+ message HeaderWidgetItem {
120
+ string geo = 1;
121
+ string content = 2;
122
+ }
113
123
  //Banners CRUD
114
124
  message BannerRequest {
115
125
  oneof request {
@@ -213,6 +213,17 @@ function deserialize_cms_GetGameWidgetRequest(buffer_arg) {
213
213
  return cms_pb.GetGameWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
214
214
  }
215
215
 
216
+ function serialize_cms_GetHeaderWidgetRequest(arg) {
217
+ if (!(arg instanceof cms_pb.GetHeaderWidgetRequest)) {
218
+ throw new Error('Expected argument of type cms.GetHeaderWidgetRequest');
219
+ }
220
+ return Buffer.from(arg.serializeBinary());
221
+ }
222
+
223
+ function deserialize_cms_GetHeaderWidgetRequest(buffer_arg) {
224
+ return cms_pb.GetHeaderWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
225
+ }
226
+
216
227
  function serialize_cms_GetMainPageWidgetRequest(arg) {
217
228
  if (!(arg instanceof cms_pb.GetMainPageWidgetRequest)) {
218
229
  throw new Error('Expected argument of type cms.GetMainPageWidgetRequest');
@@ -279,6 +290,17 @@ function deserialize_cms_GetSignUpFormWidgetRequest(buffer_arg) {
279
290
  return cms_pb.GetSignUpFormWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
291
  }
281
292
 
293
+ function serialize_cms_HeaderWidgetItem(arg) {
294
+ if (!(arg instanceof cms_pb.HeaderWidgetItem)) {
295
+ throw new Error('Expected argument of type cms.HeaderWidgetItem');
296
+ }
297
+ return Buffer.from(arg.serializeBinary());
298
+ }
299
+
300
+ function deserialize_cms_HeaderWidgetItem(buffer_arg) {
301
+ return cms_pb.HeaderWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
302
+ }
303
+
282
304
  function serialize_cms_ItemsBunchRequest(arg) {
283
305
  if (!(arg instanceof cms_pb.ItemsBunchRequest)) {
284
306
  throw new Error('Expected argument of type cms.ItemsBunchRequest');
@@ -601,6 +623,28 @@ setMainPageWidget: {
601
623
  responseSerialize: serialize_cms_SignUpFormWidgetItem,
602
624
  responseDeserialize: deserialize_cms_SignUpFormWidgetItem,
603
625
  },
626
+ setHeaderWidget: {
627
+ path: '/cms.CMS/setHeaderWidget',
628
+ requestStream: false,
629
+ responseStream: false,
630
+ requestType: cms_pb.CommonWidgetRequest,
631
+ responseType: cms_pb.HeaderWidgetItem,
632
+ requestSerialize: serialize_cms_CommonWidgetRequest,
633
+ requestDeserialize: deserialize_cms_CommonWidgetRequest,
634
+ responseSerialize: serialize_cms_HeaderWidgetItem,
635
+ responseDeserialize: deserialize_cms_HeaderWidgetItem,
636
+ },
637
+ getHeaderWidget: {
638
+ path: '/cms.CMS/getHeaderWidget',
639
+ requestStream: false,
640
+ responseStream: false,
641
+ requestType: cms_pb.GetHeaderWidgetRequest,
642
+ responseType: cms_pb.HeaderWidgetItem,
643
+ requestSerialize: serialize_cms_GetHeaderWidgetRequest,
644
+ requestDeserialize: deserialize_cms_GetHeaderWidgetRequest,
645
+ responseSerialize: serialize_cms_HeaderWidgetItem,
646
+ responseDeserialize: deserialize_cms_HeaderWidgetItem,
647
+ },
604
648
  // Banners
605
649
  createSingleBanner: {
606
650
  path: '/cms.CMS/createSingleBanner',
package/cms/cms_pb.js CHANGED
@@ -48,12 +48,14 @@ goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
48
48
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
49
49
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
50
50
  goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
51
+ goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
51
52
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
52
53
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
53
54
  goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
54
55
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
55
56
  goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
56
57
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
58
+ goog.exportSymbol('proto.cms.HeaderWidgetItem', null, global);
57
59
  goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
58
60
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
59
61
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
@@ -374,6 +376,48 @@ if (goog.DEBUG && !COMPILED) {
374
376
  */
375
377
  proto.cms.SignUpFormWidgetItem.displayName = 'proto.cms.SignUpFormWidgetItem';
376
378
  }
379
+ /**
380
+ * Generated by JsPbCodeGenerator.
381
+ * @param {Array=} opt_data Optional initial data array, typically from a
382
+ * server response, or constructed directly in Javascript. The array is used
383
+ * in place and becomes part of the constructed object. It is not cloned.
384
+ * If no data is provided, the constructed object will be empty, but still
385
+ * valid.
386
+ * @extends {jspb.Message}
387
+ * @constructor
388
+ */
389
+ proto.cms.GetHeaderWidgetRequest = function(opt_data) {
390
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
391
+ };
392
+ goog.inherits(proto.cms.GetHeaderWidgetRequest, jspb.Message);
393
+ if (goog.DEBUG && !COMPILED) {
394
+ /**
395
+ * @public
396
+ * @override
397
+ */
398
+ proto.cms.GetHeaderWidgetRequest.displayName = 'proto.cms.GetHeaderWidgetRequest';
399
+ }
400
+ /**
401
+ * Generated by JsPbCodeGenerator.
402
+ * @param {Array=} opt_data Optional initial data array, typically from a
403
+ * server response, or constructed directly in Javascript. The array is used
404
+ * in place and becomes part of the constructed object. It is not cloned.
405
+ * If no data is provided, the constructed object will be empty, but still
406
+ * valid.
407
+ * @extends {jspb.Message}
408
+ * @constructor
409
+ */
410
+ proto.cms.HeaderWidgetItem = function(opt_data) {
411
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
412
+ };
413
+ goog.inherits(proto.cms.HeaderWidgetItem, jspb.Message);
414
+ if (goog.DEBUG && !COMPILED) {
415
+ /**
416
+ * @public
417
+ * @override
418
+ */
419
+ proto.cms.HeaderWidgetItem.displayName = 'proto.cms.HeaderWidgetItem';
420
+ }
377
421
  /**
378
422
  * Generated by JsPbCodeGenerator.
379
423
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3875,7 +3919,7 @@ proto.cms.GetSignUpFormWidgetRequest.prototype.toObject = function(opt_includeIn
3875
3919
  proto.cms.GetSignUpFormWidgetRequest.toObject = function(includeInstance, msg) {
3876
3920
  var f, obj = {
3877
3921
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
3878
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
3922
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
3879
3923
  };
3880
3924
 
3881
3925
  if (includeInstance) {
@@ -3916,7 +3960,7 @@ proto.cms.GetSignUpFormWidgetRequest.deserializeBinaryFromReader = function(msg,
3916
3960
  var value = /** @type {string} */ (reader.readString());
3917
3961
  msg.setGeo(value);
3918
3962
  break;
3919
- case 4:
3963
+ case 2:
3920
3964
  var value = /** @type {boolean} */ (reader.readBool());
3921
3965
  msg.setAdminSide(value);
3922
3966
  break;
@@ -3956,10 +4000,10 @@ proto.cms.GetSignUpFormWidgetRequest.serializeBinaryToWriter = function(message,
3956
4000
  f
3957
4001
  );
3958
4002
  }
3959
- f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
4003
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
3960
4004
  if (f != null) {
3961
4005
  writer.writeBool(
3962
- 4,
4006
+ 2,
3963
4007
  f
3964
4008
  );
3965
4009
  }
@@ -4003,11 +4047,11 @@ proto.cms.GetSignUpFormWidgetRequest.prototype.hasGeo = function() {
4003
4047
 
4004
4048
 
4005
4049
  /**
4006
- * optional bool admin_side = 4;
4050
+ * optional bool admin_side = 2;
4007
4051
  * @return {boolean}
4008
4052
  */
4009
4053
  proto.cms.GetSignUpFormWidgetRequest.prototype.getAdminSide = function() {
4010
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
4054
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
4011
4055
  };
4012
4056
 
4013
4057
 
@@ -4016,7 +4060,7 @@ proto.cms.GetSignUpFormWidgetRequest.prototype.getAdminSide = function() {
4016
4060
  * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
4017
4061
  */
4018
4062
  proto.cms.GetSignUpFormWidgetRequest.prototype.setAdminSide = function(value) {
4019
- return jspb.Message.setField(this, 4, value);
4063
+ return jspb.Message.setField(this, 2, value);
4020
4064
  };
4021
4065
 
4022
4066
 
@@ -4025,7 +4069,7 @@ proto.cms.GetSignUpFormWidgetRequest.prototype.setAdminSide = function(value) {
4025
4069
  * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
4026
4070
  */
4027
4071
  proto.cms.GetSignUpFormWidgetRequest.prototype.clearAdminSide = function() {
4028
- return jspb.Message.setField(this, 4, undefined);
4072
+ return jspb.Message.setField(this, 2, undefined);
4029
4073
  };
4030
4074
 
4031
4075
 
@@ -4034,7 +4078,7 @@ proto.cms.GetSignUpFormWidgetRequest.prototype.clearAdminSide = function() {
4034
4078
  * @return {boolean}
4035
4079
  */
4036
4080
  proto.cms.GetSignUpFormWidgetRequest.prototype.hasAdminSide = function() {
4037
- return jspb.Message.getField(this, 4) != null;
4081
+ return jspb.Message.getField(this, 2) != null;
4038
4082
  };
4039
4083
 
4040
4084
 
@@ -4199,6 +4243,362 @@ proto.cms.SignUpFormWidgetItem.prototype.setContent = function(value) {
4199
4243
 
4200
4244
 
4201
4245
 
4246
+
4247
+
4248
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4249
+ /**
4250
+ * Creates an object representation of this proto.
4251
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4252
+ * Optional fields that are not set will be set to undefined.
4253
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4254
+ * For the list of reserved names please see:
4255
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4256
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4257
+ * JSPB instance for transitional soy proto support:
4258
+ * http://goto/soy-param-migration
4259
+ * @return {!Object}
4260
+ */
4261
+ proto.cms.GetHeaderWidgetRequest.prototype.toObject = function(opt_includeInstance) {
4262
+ return proto.cms.GetHeaderWidgetRequest.toObject(opt_includeInstance, this);
4263
+ };
4264
+
4265
+
4266
+ /**
4267
+ * Static version of the {@see toObject} method.
4268
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4269
+ * the JSPB instance for transitional soy proto support:
4270
+ * http://goto/soy-param-migration
4271
+ * @param {!proto.cms.GetHeaderWidgetRequest} msg The msg instance to transform.
4272
+ * @return {!Object}
4273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4274
+ */
4275
+ proto.cms.GetHeaderWidgetRequest.toObject = function(includeInstance, msg) {
4276
+ var f, obj = {
4277
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
4278
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
4279
+ };
4280
+
4281
+ if (includeInstance) {
4282
+ obj.$jspbMessageInstance = msg;
4283
+ }
4284
+ return obj;
4285
+ };
4286
+ }
4287
+
4288
+
4289
+ /**
4290
+ * Deserializes binary data (in protobuf wire format).
4291
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4292
+ * @return {!proto.cms.GetHeaderWidgetRequest}
4293
+ */
4294
+ proto.cms.GetHeaderWidgetRequest.deserializeBinary = function(bytes) {
4295
+ var reader = new jspb.BinaryReader(bytes);
4296
+ var msg = new proto.cms.GetHeaderWidgetRequest;
4297
+ return proto.cms.GetHeaderWidgetRequest.deserializeBinaryFromReader(msg, reader);
4298
+ };
4299
+
4300
+
4301
+ /**
4302
+ * Deserializes binary data (in protobuf wire format) from the
4303
+ * given reader into the given message object.
4304
+ * @param {!proto.cms.GetHeaderWidgetRequest} msg The message object to deserialize into.
4305
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4306
+ * @return {!proto.cms.GetHeaderWidgetRequest}
4307
+ */
4308
+ proto.cms.GetHeaderWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
4309
+ while (reader.nextField()) {
4310
+ if (reader.isEndGroup()) {
4311
+ break;
4312
+ }
4313
+ var field = reader.getFieldNumber();
4314
+ switch (field) {
4315
+ case 1:
4316
+ var value = /** @type {string} */ (reader.readString());
4317
+ msg.setGeo(value);
4318
+ break;
4319
+ case 2:
4320
+ var value = /** @type {boolean} */ (reader.readBool());
4321
+ msg.setAdminSide(value);
4322
+ break;
4323
+ default:
4324
+ reader.skipField();
4325
+ break;
4326
+ }
4327
+ }
4328
+ return msg;
4329
+ };
4330
+
4331
+
4332
+ /**
4333
+ * Serializes the message to binary data (in protobuf wire format).
4334
+ * @return {!Uint8Array}
4335
+ */
4336
+ proto.cms.GetHeaderWidgetRequest.prototype.serializeBinary = function() {
4337
+ var writer = new jspb.BinaryWriter();
4338
+ proto.cms.GetHeaderWidgetRequest.serializeBinaryToWriter(this, writer);
4339
+ return writer.getResultBuffer();
4340
+ };
4341
+
4342
+
4343
+ /**
4344
+ * Serializes the given message to binary data (in protobuf wire
4345
+ * format), writing to the given BinaryWriter.
4346
+ * @param {!proto.cms.GetHeaderWidgetRequest} message
4347
+ * @param {!jspb.BinaryWriter} writer
4348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4349
+ */
4350
+ proto.cms.GetHeaderWidgetRequest.serializeBinaryToWriter = function(message, writer) {
4351
+ var f = undefined;
4352
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
4353
+ if (f != null) {
4354
+ writer.writeString(
4355
+ 1,
4356
+ f
4357
+ );
4358
+ }
4359
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
4360
+ if (f != null) {
4361
+ writer.writeBool(
4362
+ 2,
4363
+ f
4364
+ );
4365
+ }
4366
+ };
4367
+
4368
+
4369
+ /**
4370
+ * optional string geo = 1;
4371
+ * @return {string}
4372
+ */
4373
+ proto.cms.GetHeaderWidgetRequest.prototype.getGeo = function() {
4374
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4375
+ };
4376
+
4377
+
4378
+ /**
4379
+ * @param {string} value
4380
+ * @return {!proto.cms.GetHeaderWidgetRequest} returns this
4381
+ */
4382
+ proto.cms.GetHeaderWidgetRequest.prototype.setGeo = function(value) {
4383
+ return jspb.Message.setField(this, 1, value);
4384
+ };
4385
+
4386
+
4387
+ /**
4388
+ * Clears the field making it undefined.
4389
+ * @return {!proto.cms.GetHeaderWidgetRequest} returns this
4390
+ */
4391
+ proto.cms.GetHeaderWidgetRequest.prototype.clearGeo = function() {
4392
+ return jspb.Message.setField(this, 1, undefined);
4393
+ };
4394
+
4395
+
4396
+ /**
4397
+ * Returns whether this field is set.
4398
+ * @return {boolean}
4399
+ */
4400
+ proto.cms.GetHeaderWidgetRequest.prototype.hasGeo = function() {
4401
+ return jspb.Message.getField(this, 1) != null;
4402
+ };
4403
+
4404
+
4405
+ /**
4406
+ * optional bool admin_side = 2;
4407
+ * @return {boolean}
4408
+ */
4409
+ proto.cms.GetHeaderWidgetRequest.prototype.getAdminSide = function() {
4410
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
4411
+ };
4412
+
4413
+
4414
+ /**
4415
+ * @param {boolean} value
4416
+ * @return {!proto.cms.GetHeaderWidgetRequest} returns this
4417
+ */
4418
+ proto.cms.GetHeaderWidgetRequest.prototype.setAdminSide = function(value) {
4419
+ return jspb.Message.setField(this, 2, value);
4420
+ };
4421
+
4422
+
4423
+ /**
4424
+ * Clears the field making it undefined.
4425
+ * @return {!proto.cms.GetHeaderWidgetRequest} returns this
4426
+ */
4427
+ proto.cms.GetHeaderWidgetRequest.prototype.clearAdminSide = function() {
4428
+ return jspb.Message.setField(this, 2, undefined);
4429
+ };
4430
+
4431
+
4432
+ /**
4433
+ * Returns whether this field is set.
4434
+ * @return {boolean}
4435
+ */
4436
+ proto.cms.GetHeaderWidgetRequest.prototype.hasAdminSide = function() {
4437
+ return jspb.Message.getField(this, 2) != null;
4438
+ };
4439
+
4440
+
4441
+
4442
+
4443
+
4444
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4445
+ /**
4446
+ * Creates an object representation of this proto.
4447
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4448
+ * Optional fields that are not set will be set to undefined.
4449
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4450
+ * For the list of reserved names please see:
4451
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4452
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4453
+ * JSPB instance for transitional soy proto support:
4454
+ * http://goto/soy-param-migration
4455
+ * @return {!Object}
4456
+ */
4457
+ proto.cms.HeaderWidgetItem.prototype.toObject = function(opt_includeInstance) {
4458
+ return proto.cms.HeaderWidgetItem.toObject(opt_includeInstance, this);
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * Static version of the {@see toObject} method.
4464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4465
+ * the JSPB instance for transitional soy proto support:
4466
+ * http://goto/soy-param-migration
4467
+ * @param {!proto.cms.HeaderWidgetItem} msg The msg instance to transform.
4468
+ * @return {!Object}
4469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4470
+ */
4471
+ proto.cms.HeaderWidgetItem.toObject = function(includeInstance, msg) {
4472
+ var f, obj = {
4473
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
4474
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
4475
+ };
4476
+
4477
+ if (includeInstance) {
4478
+ obj.$jspbMessageInstance = msg;
4479
+ }
4480
+ return obj;
4481
+ };
4482
+ }
4483
+
4484
+
4485
+ /**
4486
+ * Deserializes binary data (in protobuf wire format).
4487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4488
+ * @return {!proto.cms.HeaderWidgetItem}
4489
+ */
4490
+ proto.cms.HeaderWidgetItem.deserializeBinary = function(bytes) {
4491
+ var reader = new jspb.BinaryReader(bytes);
4492
+ var msg = new proto.cms.HeaderWidgetItem;
4493
+ return proto.cms.HeaderWidgetItem.deserializeBinaryFromReader(msg, reader);
4494
+ };
4495
+
4496
+
4497
+ /**
4498
+ * Deserializes binary data (in protobuf wire format) from the
4499
+ * given reader into the given message object.
4500
+ * @param {!proto.cms.HeaderWidgetItem} msg The message object to deserialize into.
4501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4502
+ * @return {!proto.cms.HeaderWidgetItem}
4503
+ */
4504
+ proto.cms.HeaderWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
4505
+ while (reader.nextField()) {
4506
+ if (reader.isEndGroup()) {
4507
+ break;
4508
+ }
4509
+ var field = reader.getFieldNumber();
4510
+ switch (field) {
4511
+ case 1:
4512
+ var value = /** @type {string} */ (reader.readString());
4513
+ msg.setGeo(value);
4514
+ break;
4515
+ case 2:
4516
+ var value = /** @type {string} */ (reader.readString());
4517
+ msg.setContent(value);
4518
+ break;
4519
+ default:
4520
+ reader.skipField();
4521
+ break;
4522
+ }
4523
+ }
4524
+ return msg;
4525
+ };
4526
+
4527
+
4528
+ /**
4529
+ * Serializes the message to binary data (in protobuf wire format).
4530
+ * @return {!Uint8Array}
4531
+ */
4532
+ proto.cms.HeaderWidgetItem.prototype.serializeBinary = function() {
4533
+ var writer = new jspb.BinaryWriter();
4534
+ proto.cms.HeaderWidgetItem.serializeBinaryToWriter(this, writer);
4535
+ return writer.getResultBuffer();
4536
+ };
4537
+
4538
+
4539
+ /**
4540
+ * Serializes the given message to binary data (in protobuf wire
4541
+ * format), writing to the given BinaryWriter.
4542
+ * @param {!proto.cms.HeaderWidgetItem} message
4543
+ * @param {!jspb.BinaryWriter} writer
4544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4545
+ */
4546
+ proto.cms.HeaderWidgetItem.serializeBinaryToWriter = function(message, writer) {
4547
+ var f = undefined;
4548
+ f = message.getGeo();
4549
+ if (f.length > 0) {
4550
+ writer.writeString(
4551
+ 1,
4552
+ f
4553
+ );
4554
+ }
4555
+ f = message.getContent();
4556
+ if (f.length > 0) {
4557
+ writer.writeString(
4558
+ 2,
4559
+ f
4560
+ );
4561
+ }
4562
+ };
4563
+
4564
+
4565
+ /**
4566
+ * optional string geo = 1;
4567
+ * @return {string}
4568
+ */
4569
+ proto.cms.HeaderWidgetItem.prototype.getGeo = function() {
4570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4571
+ };
4572
+
4573
+
4574
+ /**
4575
+ * @param {string} value
4576
+ * @return {!proto.cms.HeaderWidgetItem} returns this
4577
+ */
4578
+ proto.cms.HeaderWidgetItem.prototype.setGeo = function(value) {
4579
+ return jspb.Message.setProto3StringField(this, 1, value);
4580
+ };
4581
+
4582
+
4583
+ /**
4584
+ * optional string content = 2;
4585
+ * @return {string}
4586
+ */
4587
+ proto.cms.HeaderWidgetItem.prototype.getContent = function() {
4588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4589
+ };
4590
+
4591
+
4592
+ /**
4593
+ * @param {string} value
4594
+ * @return {!proto.cms.HeaderWidgetItem} returns this
4595
+ */
4596
+ proto.cms.HeaderWidgetItem.prototype.setContent = function(value) {
4597
+ return jspb.Message.setProto3StringField(this, 2, value);
4598
+ };
4599
+
4600
+
4601
+
4202
4602
  /**
4203
4603
  * Oneof group definitions for this message. Each group defines the field
4204
4604
  * numbers belonging to that group. When of these fields' value is set, all
@@ -33,6 +33,7 @@ message PaginationRequest {
33
33
  optional string order = 3;
34
34
  optional LoyaltySearchRequest loyalty_search_params = 4;
35
35
  optional string type = 5;
36
+ optional int32 admin_side = 6;
36
37
  }
37
38
  message LoyaltySearchRequest {
38
39
  optional int32 loyalty_id = 1;
@@ -1000,7 +1000,8 @@ proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
1000
1000
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1001
1001
  order: jspb.Message.getFieldWithDefault(msg, 3, ""),
1002
1002
  loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f),
1003
- type: jspb.Message.getFieldWithDefault(msg, 5, "")
1003
+ type: jspb.Message.getFieldWithDefault(msg, 5, ""),
1004
+ adminSide: jspb.Message.getFieldWithDefault(msg, 6, 0)
1004
1005
  };
1005
1006
 
1006
1007
  if (includeInstance) {
@@ -1058,6 +1059,10 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
1058
1059
  var value = /** @type {string} */ (reader.readString());
1059
1060
  msg.setType(value);
1060
1061
  break;
1062
+ case 6:
1063
+ var value = /** @type {number} */ (reader.readInt32());
1064
+ msg.setAdminSide(value);
1065
+ break;
1061
1066
  default:
1062
1067
  reader.skipField();
1063
1068
  break;
@@ -1123,6 +1128,13 @@ proto.loyalty.PaginationRequest.serializeBinaryToWriter = function(message, writ
1123
1128
  f
1124
1129
  );
1125
1130
  }
1131
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
1132
+ if (f != null) {
1133
+ writer.writeInt32(
1134
+ 6,
1135
+ f
1136
+ );
1137
+ }
1126
1138
  };
1127
1139
 
1128
1140
 
@@ -1271,6 +1283,42 @@ proto.loyalty.PaginationRequest.prototype.hasType = function() {
1271
1283
  };
1272
1284
 
1273
1285
 
1286
+ /**
1287
+ * optional int32 admin_side = 6;
1288
+ * @return {number}
1289
+ */
1290
+ proto.loyalty.PaginationRequest.prototype.getAdminSide = function() {
1291
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * @param {number} value
1297
+ * @return {!proto.loyalty.PaginationRequest} returns this
1298
+ */
1299
+ proto.loyalty.PaginationRequest.prototype.setAdminSide = function(value) {
1300
+ return jspb.Message.setField(this, 6, value);
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * Clears the field making it undefined.
1306
+ * @return {!proto.loyalty.PaginationRequest} returns this
1307
+ */
1308
+ proto.loyalty.PaginationRequest.prototype.clearAdminSide = function() {
1309
+ return jspb.Message.setField(this, 6, undefined);
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * Returns whether this field is set.
1315
+ * @return {boolean}
1316
+ */
1317
+ proto.loyalty.PaginationRequest.prototype.hasAdminSide = function() {
1318
+ return jspb.Message.getField(this, 6) != null;
1319
+ };
1320
+
1321
+
1274
1322
 
1275
1323
  /**
1276
1324
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.63",
3
+ "version": "1.2.65",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {