protobuf-platform 1.2.113 → 1.2.114

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
@@ -702,17 +702,16 @@ message GetFooterApplicationsRequest {
702
702
 
703
703
  // Single BrandCore item
704
704
  message FooterBrandCoreItem {
705
- optional int32 id = 1;
706
- optional string geo = 2; // country code (e.g., "DE", "IT")
707
- optional string title = 3;
708
- optional int32 is_active = 4;
709
-
710
- // Logo (either local filename or CDN URL)
711
- optional string logo = 5; // local file name (if stored locally)
712
- optional string logo_cdn = 6; // CDN URL (if uploaded to R2)
713
-
714
- // Ordered list of footer columns; allowed values: "promos", "games", "pages"
715
- repeated string columns = 7;
705
+ optional int32 id = 1;
706
+ optional string geo = 2;
707
+ optional string title = 3;
708
+ optional int32 is_active = 4;
709
+ optional string logo = 5;
710
+ optional string logo_cdn = 6;
711
+ repeated string columns = 7;
712
+ repeated FooterBrandCoreBrief promos = 8;
713
+ repeated FooterBrandCoreBrief games = 9;
714
+ repeated FooterBrandCoreBrief pages = 10;
716
715
  }
717
716
 
718
717
  // Create/Update payload (no binary here). For update, fields are partial:
@@ -757,4 +756,9 @@ message FooterBrandCoreStatusResponse {
757
756
  // Read-one request
758
757
  message GetFooterBrandCoreRequest {
759
758
  optional int32 id = 1;
759
+ }
760
+ message FooterBrandCoreBrief {
761
+ optional int32 id = 1;
762
+ optional string title = 2;
763
+ optional string slug = 3;
760
764
  }
package/cms/cms_pb.js CHANGED
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.cms.FooterApplicationsRequest', null, global);
47
47
  goog.exportSymbol('proto.cms.FooterApplicationsRequest.PayloadCase', null, global);
48
48
  goog.exportSymbol('proto.cms.FooterApplicationsResponse', null, global);
49
49
  goog.exportSymbol('proto.cms.FooterApplicationsStatusResponse', null, global);
50
+ goog.exportSymbol('proto.cms.FooterBrandCoreBrief', null, global);
50
51
  goog.exportSymbol('proto.cms.FooterBrandCoreFile', null, global);
51
52
  goog.exportSymbol('proto.cms.FooterBrandCoreItem', null, global);
52
53
  goog.exportSymbol('proto.cms.FooterBrandCoreItemRequest', null, global);
@@ -2315,6 +2316,27 @@ if (goog.DEBUG && !COMPILED) {
2315
2316
  */
2316
2317
  proto.cms.GetFooterBrandCoreRequest.displayName = 'proto.cms.GetFooterBrandCoreRequest';
2317
2318
  }
2319
+ /**
2320
+ * Generated by JsPbCodeGenerator.
2321
+ * @param {Array=} opt_data Optional initial data array, typically from a
2322
+ * server response, or constructed directly in Javascript. The array is used
2323
+ * in place and becomes part of the constructed object. It is not cloned.
2324
+ * If no data is provided, the constructed object will be empty, but still
2325
+ * valid.
2326
+ * @extends {jspb.Message}
2327
+ * @constructor
2328
+ */
2329
+ proto.cms.FooterBrandCoreBrief = function(opt_data) {
2330
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2331
+ };
2332
+ goog.inherits(proto.cms.FooterBrandCoreBrief, jspb.Message);
2333
+ if (goog.DEBUG && !COMPILED) {
2334
+ /**
2335
+ * @public
2336
+ * @override
2337
+ */
2338
+ proto.cms.FooterBrandCoreBrief.displayName = 'proto.cms.FooterBrandCoreBrief';
2339
+ }
2318
2340
 
2319
2341
 
2320
2342
 
@@ -25998,7 +26020,7 @@ proto.cms.GetFooterApplicationsRequest.prototype.hasId = function() {
25998
26020
  * @private {!Array<number>}
25999
26021
  * @const
26000
26022
  */
26001
- proto.cms.FooterBrandCoreItem.repeatedFields_ = [7];
26023
+ proto.cms.FooterBrandCoreItem.repeatedFields_ = [7,8,9,10];
26002
26024
 
26003
26025
 
26004
26026
 
@@ -26037,7 +26059,13 @@ proto.cms.FooterBrandCoreItem.toObject = function(includeInstance, msg) {
26037
26059
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
26038
26060
  logo: jspb.Message.getFieldWithDefault(msg, 5, ""),
26039
26061
  logoCdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
26040
- columnsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
26062
+ columnsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
26063
+ promosList: jspb.Message.toObjectList(msg.getPromosList(),
26064
+ proto.cms.FooterBrandCoreBrief.toObject, includeInstance),
26065
+ gamesList: jspb.Message.toObjectList(msg.getGamesList(),
26066
+ proto.cms.FooterBrandCoreBrief.toObject, includeInstance),
26067
+ pagesList: jspb.Message.toObjectList(msg.getPagesList(),
26068
+ proto.cms.FooterBrandCoreBrief.toObject, includeInstance)
26041
26069
  };
26042
26070
 
26043
26071
  if (includeInstance) {
@@ -26102,6 +26130,21 @@ proto.cms.FooterBrandCoreItem.deserializeBinaryFromReader = function(msg, reader
26102
26130
  var value = /** @type {string} */ (reader.readString());
26103
26131
  msg.addColumns(value);
26104
26132
  break;
26133
+ case 8:
26134
+ var value = new proto.cms.FooterBrandCoreBrief;
26135
+ reader.readMessage(value,proto.cms.FooterBrandCoreBrief.deserializeBinaryFromReader);
26136
+ msg.addPromos(value);
26137
+ break;
26138
+ case 9:
26139
+ var value = new proto.cms.FooterBrandCoreBrief;
26140
+ reader.readMessage(value,proto.cms.FooterBrandCoreBrief.deserializeBinaryFromReader);
26141
+ msg.addGames(value);
26142
+ break;
26143
+ case 10:
26144
+ var value = new proto.cms.FooterBrandCoreBrief;
26145
+ reader.readMessage(value,proto.cms.FooterBrandCoreBrief.deserializeBinaryFromReader);
26146
+ msg.addPages(value);
26147
+ break;
26105
26148
  default:
26106
26149
  reader.skipField();
26107
26150
  break;
@@ -26180,6 +26223,30 @@ proto.cms.FooterBrandCoreItem.serializeBinaryToWriter = function(message, writer
26180
26223
  f
26181
26224
  );
26182
26225
  }
26226
+ f = message.getPromosList();
26227
+ if (f.length > 0) {
26228
+ writer.writeRepeatedMessage(
26229
+ 8,
26230
+ f,
26231
+ proto.cms.FooterBrandCoreBrief.serializeBinaryToWriter
26232
+ );
26233
+ }
26234
+ f = message.getGamesList();
26235
+ if (f.length > 0) {
26236
+ writer.writeRepeatedMessage(
26237
+ 9,
26238
+ f,
26239
+ proto.cms.FooterBrandCoreBrief.serializeBinaryToWriter
26240
+ );
26241
+ }
26242
+ f = message.getPagesList();
26243
+ if (f.length > 0) {
26244
+ writer.writeRepeatedMessage(
26245
+ 10,
26246
+ f,
26247
+ proto.cms.FooterBrandCoreBrief.serializeBinaryToWriter
26248
+ );
26249
+ }
26183
26250
  };
26184
26251
 
26185
26252
 
@@ -26436,6 +26503,120 @@ proto.cms.FooterBrandCoreItem.prototype.clearColumnsList = function() {
26436
26503
  };
26437
26504
 
26438
26505
 
26506
+ /**
26507
+ * repeated FooterBrandCoreBrief promos = 8;
26508
+ * @return {!Array<!proto.cms.FooterBrandCoreBrief>}
26509
+ */
26510
+ proto.cms.FooterBrandCoreItem.prototype.getPromosList = function() {
26511
+ return /** @type{!Array<!proto.cms.FooterBrandCoreBrief>} */ (
26512
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.FooterBrandCoreBrief, 8));
26513
+ };
26514
+
26515
+
26516
+ /**
26517
+ * @param {!Array<!proto.cms.FooterBrandCoreBrief>} value
26518
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26519
+ */
26520
+ proto.cms.FooterBrandCoreItem.prototype.setPromosList = function(value) {
26521
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
26522
+ };
26523
+
26524
+
26525
+ /**
26526
+ * @param {!proto.cms.FooterBrandCoreBrief=} opt_value
26527
+ * @param {number=} opt_index
26528
+ * @return {!proto.cms.FooterBrandCoreBrief}
26529
+ */
26530
+ proto.cms.FooterBrandCoreItem.prototype.addPromos = function(opt_value, opt_index) {
26531
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.cms.FooterBrandCoreBrief, opt_index);
26532
+ };
26533
+
26534
+
26535
+ /**
26536
+ * Clears the list making it empty but non-null.
26537
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26538
+ */
26539
+ proto.cms.FooterBrandCoreItem.prototype.clearPromosList = function() {
26540
+ return this.setPromosList([]);
26541
+ };
26542
+
26543
+
26544
+ /**
26545
+ * repeated FooterBrandCoreBrief games = 9;
26546
+ * @return {!Array<!proto.cms.FooterBrandCoreBrief>}
26547
+ */
26548
+ proto.cms.FooterBrandCoreItem.prototype.getGamesList = function() {
26549
+ return /** @type{!Array<!proto.cms.FooterBrandCoreBrief>} */ (
26550
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.FooterBrandCoreBrief, 9));
26551
+ };
26552
+
26553
+
26554
+ /**
26555
+ * @param {!Array<!proto.cms.FooterBrandCoreBrief>} value
26556
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26557
+ */
26558
+ proto.cms.FooterBrandCoreItem.prototype.setGamesList = function(value) {
26559
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
26560
+ };
26561
+
26562
+
26563
+ /**
26564
+ * @param {!proto.cms.FooterBrandCoreBrief=} opt_value
26565
+ * @param {number=} opt_index
26566
+ * @return {!proto.cms.FooterBrandCoreBrief}
26567
+ */
26568
+ proto.cms.FooterBrandCoreItem.prototype.addGames = function(opt_value, opt_index) {
26569
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.cms.FooterBrandCoreBrief, opt_index);
26570
+ };
26571
+
26572
+
26573
+ /**
26574
+ * Clears the list making it empty but non-null.
26575
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26576
+ */
26577
+ proto.cms.FooterBrandCoreItem.prototype.clearGamesList = function() {
26578
+ return this.setGamesList([]);
26579
+ };
26580
+
26581
+
26582
+ /**
26583
+ * repeated FooterBrandCoreBrief pages = 10;
26584
+ * @return {!Array<!proto.cms.FooterBrandCoreBrief>}
26585
+ */
26586
+ proto.cms.FooterBrandCoreItem.prototype.getPagesList = function() {
26587
+ return /** @type{!Array<!proto.cms.FooterBrandCoreBrief>} */ (
26588
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.FooterBrandCoreBrief, 10));
26589
+ };
26590
+
26591
+
26592
+ /**
26593
+ * @param {!Array<!proto.cms.FooterBrandCoreBrief>} value
26594
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26595
+ */
26596
+ proto.cms.FooterBrandCoreItem.prototype.setPagesList = function(value) {
26597
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
26598
+ };
26599
+
26600
+
26601
+ /**
26602
+ * @param {!proto.cms.FooterBrandCoreBrief=} opt_value
26603
+ * @param {number=} opt_index
26604
+ * @return {!proto.cms.FooterBrandCoreBrief}
26605
+ */
26606
+ proto.cms.FooterBrandCoreItem.prototype.addPages = function(opt_value, opt_index) {
26607
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.cms.FooterBrandCoreBrief, opt_index);
26608
+ };
26609
+
26610
+
26611
+ /**
26612
+ * Clears the list making it empty but non-null.
26613
+ * @return {!proto.cms.FooterBrandCoreItem} returns this
26614
+ */
26615
+ proto.cms.FooterBrandCoreItem.prototype.clearPagesList = function() {
26616
+ return this.setPagesList([]);
26617
+ };
26618
+
26619
+
26439
26620
 
26440
26621
  /**
26441
26622
  * List of repeated fields within this message type.
@@ -27866,4 +28047,248 @@ proto.cms.GetFooterBrandCoreRequest.prototype.hasId = function() {
27866
28047
  };
27867
28048
 
27868
28049
 
28050
+
28051
+
28052
+
28053
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28054
+ /**
28055
+ * Creates an object representation of this proto.
28056
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28057
+ * Optional fields that are not set will be set to undefined.
28058
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28059
+ * For the list of reserved names please see:
28060
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28061
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28062
+ * JSPB instance for transitional soy proto support:
28063
+ * http://goto/soy-param-migration
28064
+ * @return {!Object}
28065
+ */
28066
+ proto.cms.FooterBrandCoreBrief.prototype.toObject = function(opt_includeInstance) {
28067
+ return proto.cms.FooterBrandCoreBrief.toObject(opt_includeInstance, this);
28068
+ };
28069
+
28070
+
28071
+ /**
28072
+ * Static version of the {@see toObject} method.
28073
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28074
+ * the JSPB instance for transitional soy proto support:
28075
+ * http://goto/soy-param-migration
28076
+ * @param {!proto.cms.FooterBrandCoreBrief} msg The msg instance to transform.
28077
+ * @return {!Object}
28078
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28079
+ */
28080
+ proto.cms.FooterBrandCoreBrief.toObject = function(includeInstance, msg) {
28081
+ var f, obj = {
28082
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
28083
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
28084
+ slug: jspb.Message.getFieldWithDefault(msg, 3, "")
28085
+ };
28086
+
28087
+ if (includeInstance) {
28088
+ obj.$jspbMessageInstance = msg;
28089
+ }
28090
+ return obj;
28091
+ };
28092
+ }
28093
+
28094
+
28095
+ /**
28096
+ * Deserializes binary data (in protobuf wire format).
28097
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28098
+ * @return {!proto.cms.FooterBrandCoreBrief}
28099
+ */
28100
+ proto.cms.FooterBrandCoreBrief.deserializeBinary = function(bytes) {
28101
+ var reader = new jspb.BinaryReader(bytes);
28102
+ var msg = new proto.cms.FooterBrandCoreBrief;
28103
+ return proto.cms.FooterBrandCoreBrief.deserializeBinaryFromReader(msg, reader);
28104
+ };
28105
+
28106
+
28107
+ /**
28108
+ * Deserializes binary data (in protobuf wire format) from the
28109
+ * given reader into the given message object.
28110
+ * @param {!proto.cms.FooterBrandCoreBrief} msg The message object to deserialize into.
28111
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28112
+ * @return {!proto.cms.FooterBrandCoreBrief}
28113
+ */
28114
+ proto.cms.FooterBrandCoreBrief.deserializeBinaryFromReader = function(msg, reader) {
28115
+ while (reader.nextField()) {
28116
+ if (reader.isEndGroup()) {
28117
+ break;
28118
+ }
28119
+ var field = reader.getFieldNumber();
28120
+ switch (field) {
28121
+ case 1:
28122
+ var value = /** @type {number} */ (reader.readInt32());
28123
+ msg.setId(value);
28124
+ break;
28125
+ case 2:
28126
+ var value = /** @type {string} */ (reader.readString());
28127
+ msg.setTitle(value);
28128
+ break;
28129
+ case 3:
28130
+ var value = /** @type {string} */ (reader.readString());
28131
+ msg.setSlug(value);
28132
+ break;
28133
+ default:
28134
+ reader.skipField();
28135
+ break;
28136
+ }
28137
+ }
28138
+ return msg;
28139
+ };
28140
+
28141
+
28142
+ /**
28143
+ * Serializes the message to binary data (in protobuf wire format).
28144
+ * @return {!Uint8Array}
28145
+ */
28146
+ proto.cms.FooterBrandCoreBrief.prototype.serializeBinary = function() {
28147
+ var writer = new jspb.BinaryWriter();
28148
+ proto.cms.FooterBrandCoreBrief.serializeBinaryToWriter(this, writer);
28149
+ return writer.getResultBuffer();
28150
+ };
28151
+
28152
+
28153
+ /**
28154
+ * Serializes the given message to binary data (in protobuf wire
28155
+ * format), writing to the given BinaryWriter.
28156
+ * @param {!proto.cms.FooterBrandCoreBrief} message
28157
+ * @param {!jspb.BinaryWriter} writer
28158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28159
+ */
28160
+ proto.cms.FooterBrandCoreBrief.serializeBinaryToWriter = function(message, writer) {
28161
+ var f = undefined;
28162
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
28163
+ if (f != null) {
28164
+ writer.writeInt32(
28165
+ 1,
28166
+ f
28167
+ );
28168
+ }
28169
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
28170
+ if (f != null) {
28171
+ writer.writeString(
28172
+ 2,
28173
+ f
28174
+ );
28175
+ }
28176
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
28177
+ if (f != null) {
28178
+ writer.writeString(
28179
+ 3,
28180
+ f
28181
+ );
28182
+ }
28183
+ };
28184
+
28185
+
28186
+ /**
28187
+ * optional int32 id = 1;
28188
+ * @return {number}
28189
+ */
28190
+ proto.cms.FooterBrandCoreBrief.prototype.getId = function() {
28191
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28192
+ };
28193
+
28194
+
28195
+ /**
28196
+ * @param {number} value
28197
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28198
+ */
28199
+ proto.cms.FooterBrandCoreBrief.prototype.setId = function(value) {
28200
+ return jspb.Message.setField(this, 1, value);
28201
+ };
28202
+
28203
+
28204
+ /**
28205
+ * Clears the field making it undefined.
28206
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28207
+ */
28208
+ proto.cms.FooterBrandCoreBrief.prototype.clearId = function() {
28209
+ return jspb.Message.setField(this, 1, undefined);
28210
+ };
28211
+
28212
+
28213
+ /**
28214
+ * Returns whether this field is set.
28215
+ * @return {boolean}
28216
+ */
28217
+ proto.cms.FooterBrandCoreBrief.prototype.hasId = function() {
28218
+ return jspb.Message.getField(this, 1) != null;
28219
+ };
28220
+
28221
+
28222
+ /**
28223
+ * optional string title = 2;
28224
+ * @return {string}
28225
+ */
28226
+ proto.cms.FooterBrandCoreBrief.prototype.getTitle = function() {
28227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28228
+ };
28229
+
28230
+
28231
+ /**
28232
+ * @param {string} value
28233
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28234
+ */
28235
+ proto.cms.FooterBrandCoreBrief.prototype.setTitle = function(value) {
28236
+ return jspb.Message.setField(this, 2, value);
28237
+ };
28238
+
28239
+
28240
+ /**
28241
+ * Clears the field making it undefined.
28242
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28243
+ */
28244
+ proto.cms.FooterBrandCoreBrief.prototype.clearTitle = function() {
28245
+ return jspb.Message.setField(this, 2, undefined);
28246
+ };
28247
+
28248
+
28249
+ /**
28250
+ * Returns whether this field is set.
28251
+ * @return {boolean}
28252
+ */
28253
+ proto.cms.FooterBrandCoreBrief.prototype.hasTitle = function() {
28254
+ return jspb.Message.getField(this, 2) != null;
28255
+ };
28256
+
28257
+
28258
+ /**
28259
+ * optional string slug = 3;
28260
+ * @return {string}
28261
+ */
28262
+ proto.cms.FooterBrandCoreBrief.prototype.getSlug = function() {
28263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28264
+ };
28265
+
28266
+
28267
+ /**
28268
+ * @param {string} value
28269
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28270
+ */
28271
+ proto.cms.FooterBrandCoreBrief.prototype.setSlug = function(value) {
28272
+ return jspb.Message.setField(this, 3, value);
28273
+ };
28274
+
28275
+
28276
+ /**
28277
+ * Clears the field making it undefined.
28278
+ * @return {!proto.cms.FooterBrandCoreBrief} returns this
28279
+ */
28280
+ proto.cms.FooterBrandCoreBrief.prototype.clearSlug = function() {
28281
+ return jspb.Message.setField(this, 3, undefined);
28282
+ };
28283
+
28284
+
28285
+ /**
28286
+ * Returns whether this field is set.
28287
+ * @return {boolean}
28288
+ */
28289
+ proto.cms.FooterBrandCoreBrief.prototype.hasSlug = function() {
28290
+ return jspb.Message.getField(this, 3) != null;
28291
+ };
28292
+
28293
+
27869
28294
  goog.object.extend(exports, proto.cms);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.113",
3
+ "version": "1.2.114",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {