protobuf-platform 1.2.155 → 1.2.157

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
@@ -373,6 +373,7 @@ message GetPromoRequest {
373
373
  optional int32 id = 1;
374
374
  optional bool admin_side = 2;
375
375
  optional string slug = 3;
376
+ optional string locale = 4;
376
377
  }
377
378
  message PromoStatusResponse {
378
379
  string status = 1;
package/cms/cms_pb.js CHANGED
@@ -15324,7 +15324,8 @@ proto.cms.GetPromoRequest.toObject = function(includeInstance, msg) {
15324
15324
  var f, obj = {
15325
15325
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
15326
15326
  adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
15327
- slug: jspb.Message.getFieldWithDefault(msg, 3, "")
15327
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
15328
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
15328
15329
  };
15329
15330
 
15330
15331
  if (includeInstance) {
@@ -15373,6 +15374,10 @@ proto.cms.GetPromoRequest.deserializeBinaryFromReader = function(msg, reader) {
15373
15374
  var value = /** @type {string} */ (reader.readString());
15374
15375
  msg.setSlug(value);
15375
15376
  break;
15377
+ case 4:
15378
+ var value = /** @type {string} */ (reader.readString());
15379
+ msg.setLocale(value);
15380
+ break;
15376
15381
  default:
15377
15382
  reader.skipField();
15378
15383
  break;
@@ -15423,6 +15428,13 @@ proto.cms.GetPromoRequest.serializeBinaryToWriter = function(message, writer) {
15423
15428
  f
15424
15429
  );
15425
15430
  }
15431
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
15432
+ if (f != null) {
15433
+ writer.writeString(
15434
+ 4,
15435
+ f
15436
+ );
15437
+ }
15426
15438
  };
15427
15439
 
15428
15440
 
@@ -15534,6 +15546,42 @@ proto.cms.GetPromoRequest.prototype.hasSlug = function() {
15534
15546
  };
15535
15547
 
15536
15548
 
15549
+ /**
15550
+ * optional string locale = 4;
15551
+ * @return {string}
15552
+ */
15553
+ proto.cms.GetPromoRequest.prototype.getLocale = function() {
15554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15555
+ };
15556
+
15557
+
15558
+ /**
15559
+ * @param {string} value
15560
+ * @return {!proto.cms.GetPromoRequest} returns this
15561
+ */
15562
+ proto.cms.GetPromoRequest.prototype.setLocale = function(value) {
15563
+ return jspb.Message.setField(this, 4, value);
15564
+ };
15565
+
15566
+
15567
+ /**
15568
+ * Clears the field making it undefined.
15569
+ * @return {!proto.cms.GetPromoRequest} returns this
15570
+ */
15571
+ proto.cms.GetPromoRequest.prototype.clearLocale = function() {
15572
+ return jspb.Message.setField(this, 4, undefined);
15573
+ };
15574
+
15575
+
15576
+ /**
15577
+ * Returns whether this field is set.
15578
+ * @return {boolean}
15579
+ */
15580
+ proto.cms.GetPromoRequest.prototype.hasLocale = function() {
15581
+ return jspb.Message.getField(this, 4) != null;
15582
+ };
15583
+
15584
+
15537
15585
 
15538
15586
 
15539
15587
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.155",
3
+ "version": "1.2.157",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {