protobuf-platform 1.2.126 → 1.2.127

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
@@ -358,8 +358,9 @@ message PromoResponse {
358
358
  PromoItem data = 1;
359
359
  }
360
360
  message GetPromoRequest {
361
- int32 id = 1;
362
- optional bool admin_side = 4;
361
+ optional int32 id = 1;
362
+ optional bool admin_side = 2;
363
+ optional string slug = 3;
363
364
  }
364
365
  message PromoStatusResponse {
365
366
  string status = 1;
package/cms/cms_pb.js CHANGED
@@ -14875,7 +14875,8 @@ proto.cms.GetPromoRequest.prototype.toObject = function(opt_includeInstance) {
14875
14875
  proto.cms.GetPromoRequest.toObject = function(includeInstance, msg) {
14876
14876
  var f, obj = {
14877
14877
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
14878
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
14878
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
14879
+ slug: jspb.Message.getFieldWithDefault(msg, 3, "")
14879
14880
  };
14880
14881
 
14881
14882
  if (includeInstance) {
@@ -14916,10 +14917,14 @@ proto.cms.GetPromoRequest.deserializeBinaryFromReader = function(msg, reader) {
14916
14917
  var value = /** @type {number} */ (reader.readInt32());
14917
14918
  msg.setId(value);
14918
14919
  break;
14919
- case 4:
14920
+ case 2:
14920
14921
  var value = /** @type {boolean} */ (reader.readBool());
14921
14922
  msg.setAdminSide(value);
14922
14923
  break;
14924
+ case 3:
14925
+ var value = /** @type {string} */ (reader.readString());
14926
+ msg.setSlug(value);
14927
+ break;
14923
14928
  default:
14924
14929
  reader.skipField();
14925
14930
  break;
@@ -14949,17 +14954,24 @@ proto.cms.GetPromoRequest.prototype.serializeBinary = function() {
14949
14954
  */
14950
14955
  proto.cms.GetPromoRequest.serializeBinaryToWriter = function(message, writer) {
14951
14956
  var f = undefined;
14952
- f = message.getId();
14953
- if (f !== 0) {
14957
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
14958
+ if (f != null) {
14954
14959
  writer.writeInt32(
14955
14960
  1,
14956
14961
  f
14957
14962
  );
14958
14963
  }
14959
- f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
14964
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
14960
14965
  if (f != null) {
14961
14966
  writer.writeBool(
14962
- 4,
14967
+ 2,
14968
+ f
14969
+ );
14970
+ }
14971
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
14972
+ if (f != null) {
14973
+ writer.writeString(
14974
+ 3,
14963
14975
  f
14964
14976
  );
14965
14977
  }
@@ -14980,16 +14992,34 @@ proto.cms.GetPromoRequest.prototype.getId = function() {
14980
14992
  * @return {!proto.cms.GetPromoRequest} returns this
14981
14993
  */
14982
14994
  proto.cms.GetPromoRequest.prototype.setId = function(value) {
14983
- return jspb.Message.setProto3IntField(this, 1, value);
14995
+ return jspb.Message.setField(this, 1, value);
14984
14996
  };
14985
14997
 
14986
14998
 
14987
14999
  /**
14988
- * optional bool admin_side = 4;
15000
+ * Clears the field making it undefined.
15001
+ * @return {!proto.cms.GetPromoRequest} returns this
15002
+ */
15003
+ proto.cms.GetPromoRequest.prototype.clearId = function() {
15004
+ return jspb.Message.setField(this, 1, undefined);
15005
+ };
15006
+
15007
+
15008
+ /**
15009
+ * Returns whether this field is set.
15010
+ * @return {boolean}
15011
+ */
15012
+ proto.cms.GetPromoRequest.prototype.hasId = function() {
15013
+ return jspb.Message.getField(this, 1) != null;
15014
+ };
15015
+
15016
+
15017
+ /**
15018
+ * optional bool admin_side = 2;
14989
15019
  * @return {boolean}
14990
15020
  */
14991
15021
  proto.cms.GetPromoRequest.prototype.getAdminSide = function() {
14992
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
15022
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
14993
15023
  };
14994
15024
 
14995
15025
 
@@ -14998,7 +15028,7 @@ proto.cms.GetPromoRequest.prototype.getAdminSide = function() {
14998
15028
  * @return {!proto.cms.GetPromoRequest} returns this
14999
15029
  */
15000
15030
  proto.cms.GetPromoRequest.prototype.setAdminSide = function(value) {
15001
- return jspb.Message.setField(this, 4, value);
15031
+ return jspb.Message.setField(this, 2, value);
15002
15032
  };
15003
15033
 
15004
15034
 
@@ -15007,7 +15037,7 @@ proto.cms.GetPromoRequest.prototype.setAdminSide = function(value) {
15007
15037
  * @return {!proto.cms.GetPromoRequest} returns this
15008
15038
  */
15009
15039
  proto.cms.GetPromoRequest.prototype.clearAdminSide = function() {
15010
- return jspb.Message.setField(this, 4, undefined);
15040
+ return jspb.Message.setField(this, 2, undefined);
15011
15041
  };
15012
15042
 
15013
15043
 
@@ -15016,7 +15046,43 @@ proto.cms.GetPromoRequest.prototype.clearAdminSide = function() {
15016
15046
  * @return {boolean}
15017
15047
  */
15018
15048
  proto.cms.GetPromoRequest.prototype.hasAdminSide = function() {
15019
- return jspb.Message.getField(this, 4) != null;
15049
+ return jspb.Message.getField(this, 2) != null;
15050
+ };
15051
+
15052
+
15053
+ /**
15054
+ * optional string slug = 3;
15055
+ * @return {string}
15056
+ */
15057
+ proto.cms.GetPromoRequest.prototype.getSlug = function() {
15058
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15059
+ };
15060
+
15061
+
15062
+ /**
15063
+ * @param {string} value
15064
+ * @return {!proto.cms.GetPromoRequest} returns this
15065
+ */
15066
+ proto.cms.GetPromoRequest.prototype.setSlug = function(value) {
15067
+ return jspb.Message.setField(this, 3, value);
15068
+ };
15069
+
15070
+
15071
+ /**
15072
+ * Clears the field making it undefined.
15073
+ * @return {!proto.cms.GetPromoRequest} returns this
15074
+ */
15075
+ proto.cms.GetPromoRequest.prototype.clearSlug = function() {
15076
+ return jspb.Message.setField(this, 3, undefined);
15077
+ };
15078
+
15079
+
15080
+ /**
15081
+ * Returns whether this field is set.
15082
+ * @return {boolean}
15083
+ */
15084
+ proto.cms.GetPromoRequest.prototype.hasSlug = function() {
15085
+ return jspb.Message.getField(this, 3) != null;
15020
15086
  };
15021
15087
 
15022
15088
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.126",
3
+ "version": "1.2.127",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {