protobuf-platform 1.2.64 → 1.2.66

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
@@ -86,6 +86,7 @@ message PromptRequest {
86
86
  optional float top_p = 6;
87
87
  optional float frequency_penalty = 7;
88
88
  optional float presence_penalty = 8;
89
+ optional string role_content = 9;
89
90
  }
90
91
  message GeneratedTextResponse {
91
92
  string text = 1;
@@ -2721,7 +2721,8 @@ proto.config.PromptRequest.toObject = function(includeInstance, msg) {
2721
2721
  temperature: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
2722
2722
  topP: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
2723
2723
  frequencyPenalty: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
2724
- presencePenalty: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
2724
+ presencePenalty: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
2725
+ roleContent: jspb.Message.getFieldWithDefault(msg, 9, "")
2725
2726
  };
2726
2727
 
2727
2728
  if (includeInstance) {
@@ -2790,6 +2791,10 @@ proto.config.PromptRequest.deserializeBinaryFromReader = function(msg, reader) {
2790
2791
  var value = /** @type {number} */ (reader.readFloat());
2791
2792
  msg.setPresencePenalty(value);
2792
2793
  break;
2794
+ case 9:
2795
+ var value = /** @type {string} */ (reader.readString());
2796
+ msg.setRoleContent(value);
2797
+ break;
2793
2798
  default:
2794
2799
  reader.skipField();
2795
2800
  break;
@@ -2875,6 +2880,13 @@ proto.config.PromptRequest.serializeBinaryToWriter = function(message, writer) {
2875
2880
  f
2876
2881
  );
2877
2882
  }
2883
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
2884
+ if (f != null) {
2885
+ writer.writeString(
2886
+ 9,
2887
+ f
2888
+ );
2889
+ }
2878
2890
  };
2879
2891
 
2880
2892
 
@@ -3112,6 +3124,42 @@ proto.config.PromptRequest.prototype.hasPresencePenalty = function() {
3112
3124
  };
3113
3125
 
3114
3126
 
3127
+ /**
3128
+ * optional string role_content = 9;
3129
+ * @return {string}
3130
+ */
3131
+ proto.config.PromptRequest.prototype.getRoleContent = function() {
3132
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3133
+ };
3134
+
3135
+
3136
+ /**
3137
+ * @param {string} value
3138
+ * @return {!proto.config.PromptRequest} returns this
3139
+ */
3140
+ proto.config.PromptRequest.prototype.setRoleContent = function(value) {
3141
+ return jspb.Message.setField(this, 9, value);
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * Clears the field making it undefined.
3147
+ * @return {!proto.config.PromptRequest} returns this
3148
+ */
3149
+ proto.config.PromptRequest.prototype.clearRoleContent = function() {
3150
+ return jspb.Message.setField(this, 9, undefined);
3151
+ };
3152
+
3153
+
3154
+ /**
3155
+ * Returns whether this field is set.
3156
+ * @return {boolean}
3157
+ */
3158
+ proto.config.PromptRequest.prototype.hasRoleContent = function() {
3159
+ return jspb.Message.getField(this, 9) != null;
3160
+ };
3161
+
3162
+
3115
3163
 
3116
3164
 
3117
3165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.64",
3
+ "version": "1.2.66",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {