protobuf-platform 1.2.248 → 1.2.250
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/CLAUDE.md +8 -0
- package/bonus/bonus.proto +2 -0
- package/bonus/bonus_pb.js +97 -1
- package/cms/cms.proto +8 -0
- package/cms/cms_pb.js +422 -3
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -166,3 +166,11 @@ If a task requires publishing the protobuf package:
|
|
|
166
166
|
Cursor must stop after local generation and version bump
|
|
167
167
|
|
|
168
168
|
Cursor must explicitly instruct the developer to run npm publish manually
|
|
169
|
+
|
|
170
|
+
## Execution Restrictions
|
|
171
|
+
|
|
172
|
+
- The assistant MUST NOT execute any build, lint, test or shell commands.
|
|
173
|
+
- The assistant MUST NOT run npm, yarn, pnpm or any other package manager.
|
|
174
|
+
- The assistant MUST NOT run proto:build or any code generation commands.
|
|
175
|
+
- The assistant is allowed to modify files only.
|
|
176
|
+
- Build, lint and test execution is performed manually by the developer.
|
package/bonus/bonus.proto
CHANGED
package/bonus/bonus_pb.js
CHANGED
|
@@ -2123,7 +2123,9 @@ proto.bonus.SearchBonusRequest.toObject = function(includeInstance, msg) {
|
|
|
2123
2123
|
typeId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2124
2124
|
currenciesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
2125
2125
|
statusId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2126
|
-
locale: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
2126
|
+
locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2127
|
+
statusString: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2128
|
+
typeString: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
2127
2129
|
};
|
|
2128
2130
|
|
|
2129
2131
|
if (includeInstance) {
|
|
@@ -2180,6 +2182,14 @@ proto.bonus.SearchBonusRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
2180
2182
|
var value = /** @type {string} */ (reader.readString());
|
|
2181
2183
|
msg.setLocale(value);
|
|
2182
2184
|
break;
|
|
2185
|
+
case 6:
|
|
2186
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2187
|
+
msg.setStatusString(value);
|
|
2188
|
+
break;
|
|
2189
|
+
case 7:
|
|
2190
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2191
|
+
msg.setTypeString(value);
|
|
2192
|
+
break;
|
|
2183
2193
|
default:
|
|
2184
2194
|
reader.skipField();
|
|
2185
2195
|
break;
|
|
@@ -2244,6 +2254,20 @@ proto.bonus.SearchBonusRequest.serializeBinaryToWriter = function(message, write
|
|
|
2244
2254
|
f
|
|
2245
2255
|
);
|
|
2246
2256
|
}
|
|
2257
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
2258
|
+
if (f != null) {
|
|
2259
|
+
writer.writeString(
|
|
2260
|
+
6,
|
|
2261
|
+
f
|
|
2262
|
+
);
|
|
2263
|
+
}
|
|
2264
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
2265
|
+
if (f != null) {
|
|
2266
|
+
writer.writeString(
|
|
2267
|
+
7,
|
|
2268
|
+
f
|
|
2269
|
+
);
|
|
2270
|
+
}
|
|
2247
2271
|
};
|
|
2248
2272
|
|
|
2249
2273
|
|
|
@@ -2428,6 +2452,78 @@ proto.bonus.SearchBonusRequest.prototype.hasLocale = function() {
|
|
|
2428
2452
|
};
|
|
2429
2453
|
|
|
2430
2454
|
|
|
2455
|
+
/**
|
|
2456
|
+
* optional string status_string = 6;
|
|
2457
|
+
* @return {string}
|
|
2458
|
+
*/
|
|
2459
|
+
proto.bonus.SearchBonusRequest.prototype.getStatusString = function() {
|
|
2460
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* @param {string} value
|
|
2466
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
|
2467
|
+
*/
|
|
2468
|
+
proto.bonus.SearchBonusRequest.prototype.setStatusString = function(value) {
|
|
2469
|
+
return jspb.Message.setField(this, 6, value);
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* Clears the field making it undefined.
|
|
2475
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
|
2476
|
+
*/
|
|
2477
|
+
proto.bonus.SearchBonusRequest.prototype.clearStatusString = function() {
|
|
2478
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
2479
|
+
};
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* Returns whether this field is set.
|
|
2484
|
+
* @return {boolean}
|
|
2485
|
+
*/
|
|
2486
|
+
proto.bonus.SearchBonusRequest.prototype.hasStatusString = function() {
|
|
2487
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2488
|
+
};
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* optional string type_string = 7;
|
|
2493
|
+
* @return {string}
|
|
2494
|
+
*/
|
|
2495
|
+
proto.bonus.SearchBonusRequest.prototype.getTypeString = function() {
|
|
2496
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* @param {string} value
|
|
2502
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
|
2503
|
+
*/
|
|
2504
|
+
proto.bonus.SearchBonusRequest.prototype.setTypeString = function(value) {
|
|
2505
|
+
return jspb.Message.setField(this, 7, value);
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
/**
|
|
2510
|
+
* Clears the field making it undefined.
|
|
2511
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
|
2512
|
+
*/
|
|
2513
|
+
proto.bonus.SearchBonusRequest.prototype.clearTypeString = function() {
|
|
2514
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
2515
|
+
};
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Returns whether this field is set.
|
|
2520
|
+
* @return {boolean}
|
|
2521
|
+
*/
|
|
2522
|
+
proto.bonus.SearchBonusRequest.prototype.hasTypeString = function() {
|
|
2523
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2524
|
+
};
|
|
2525
|
+
|
|
2526
|
+
|
|
2431
2527
|
|
|
2432
2528
|
/**
|
|
2433
2529
|
* Oneof group definitions for this message. Each group defines the field
|
package/cms/cms.proto
CHANGED
|
@@ -226,6 +226,7 @@ message BannerItemRequest {
|
|
|
226
226
|
optional string anchor = 5;
|
|
227
227
|
optional int32 is_active = 6;
|
|
228
228
|
repeated BannerTexts texts = 7;
|
|
229
|
+
optional BannerCta cta = 8;
|
|
229
230
|
}
|
|
230
231
|
message BannerItem {
|
|
231
232
|
optional int32 id = 1;
|
|
@@ -238,6 +239,7 @@ message BannerItem {
|
|
|
238
239
|
optional string anchor = 8;
|
|
239
240
|
optional string cta_type = 9;
|
|
240
241
|
repeated BannerTexts texts = 10;
|
|
242
|
+
optional BannerCta cta = 11;
|
|
241
243
|
}
|
|
242
244
|
message BannerTexts {
|
|
243
245
|
string locale = 1;
|
|
@@ -246,6 +248,11 @@ message BannerTexts {
|
|
|
246
248
|
optional string cta = 4;
|
|
247
249
|
optional string note = 5;
|
|
248
250
|
}
|
|
251
|
+
message BannerCta {
|
|
252
|
+
optional string action_type = 1; // expected values: tournament|bonus|deposit|promo
|
|
253
|
+
optional int32 instance_id = 2; // entity instance id (used for future slug updates)
|
|
254
|
+
optional string slug = 3; // tournament/bonus/promo slug, not required for deposit
|
|
255
|
+
}
|
|
249
256
|
message BannerResponse {
|
|
250
257
|
BannerItem data = 1;
|
|
251
258
|
}
|
|
@@ -301,6 +308,7 @@ message UserBannerItem {
|
|
|
301
308
|
optional string cta_type = 8;
|
|
302
309
|
optional string cta_text = 9;
|
|
303
310
|
optional string note = 10;
|
|
311
|
+
optional BannerCta cta = 11;
|
|
304
312
|
}
|
|
305
313
|
message UserBannerGroupResponse {
|
|
306
314
|
repeated UserBannerItem items = 1;
|
package/cms/cms_pb.js
CHANGED
|
@@ -21,6 +21,7 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.cms.BannerCta', null, global);
|
|
24
25
|
goog.exportSymbol('proto.cms.BannerGroupItem', null, global);
|
|
25
26
|
goog.exportSymbol('proto.cms.BannerGroupItemsResponse', null, global);
|
|
26
27
|
goog.exportSymbol('proto.cms.BannerGroupRequest', null, global);
|
|
@@ -772,6 +773,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
772
773
|
*/
|
|
773
774
|
proto.cms.BannerTexts.displayName = 'proto.cms.BannerTexts';
|
|
774
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
* Generated by JsPbCodeGenerator.
|
|
778
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
779
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
780
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
781
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
782
|
+
* valid.
|
|
783
|
+
* @extends {jspb.Message}
|
|
784
|
+
* @constructor
|
|
785
|
+
*/
|
|
786
|
+
proto.cms.BannerCta = function(opt_data) {
|
|
787
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
788
|
+
};
|
|
789
|
+
goog.inherits(proto.cms.BannerCta, jspb.Message);
|
|
790
|
+
if (goog.DEBUG && !COMPILED) {
|
|
791
|
+
/**
|
|
792
|
+
* @public
|
|
793
|
+
* @override
|
|
794
|
+
*/
|
|
795
|
+
proto.cms.BannerCta.displayName = 'proto.cms.BannerCta';
|
|
796
|
+
}
|
|
775
797
|
/**
|
|
776
798
|
* Generated by JsPbCodeGenerator.
|
|
777
799
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -8099,7 +8121,8 @@ proto.cms.BannerItemRequest.toObject = function(includeInstance, msg) {
|
|
|
8099
8121
|
anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
8100
8122
|
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
8101
8123
|
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
|
8102
|
-
proto.cms.BannerTexts.toObject, includeInstance)
|
|
8124
|
+
proto.cms.BannerTexts.toObject, includeInstance),
|
|
8125
|
+
cta: (f = msg.getCta()) && proto.cms.BannerCta.toObject(includeInstance, f)
|
|
8103
8126
|
};
|
|
8104
8127
|
|
|
8105
8128
|
if (includeInstance) {
|
|
@@ -8165,6 +8188,11 @@ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
8165
8188
|
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
|
8166
8189
|
msg.addTexts(value);
|
|
8167
8190
|
break;
|
|
8191
|
+
case 8:
|
|
8192
|
+
var value = new proto.cms.BannerCta;
|
|
8193
|
+
reader.readMessage(value,proto.cms.BannerCta.deserializeBinaryFromReader);
|
|
8194
|
+
msg.setCta(value);
|
|
8195
|
+
break;
|
|
8168
8196
|
default:
|
|
8169
8197
|
reader.skipField();
|
|
8170
8198
|
break;
|
|
@@ -8244,6 +8272,14 @@ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
8244
8272
|
proto.cms.BannerTexts.serializeBinaryToWriter
|
|
8245
8273
|
);
|
|
8246
8274
|
}
|
|
8275
|
+
f = message.getCta();
|
|
8276
|
+
if (f != null) {
|
|
8277
|
+
writer.writeMessage(
|
|
8278
|
+
8,
|
|
8279
|
+
f,
|
|
8280
|
+
proto.cms.BannerCta.serializeBinaryToWriter
|
|
8281
|
+
);
|
|
8282
|
+
}
|
|
8247
8283
|
};
|
|
8248
8284
|
|
|
8249
8285
|
|
|
@@ -8501,6 +8537,43 @@ proto.cms.BannerItemRequest.prototype.clearTextsList = function() {
|
|
|
8501
8537
|
};
|
|
8502
8538
|
|
|
8503
8539
|
|
|
8540
|
+
/**
|
|
8541
|
+
* optional BannerCta cta = 8;
|
|
8542
|
+
* @return {?proto.cms.BannerCta}
|
|
8543
|
+
*/
|
|
8544
|
+
proto.cms.BannerItemRequest.prototype.getCta = function() {
|
|
8545
|
+
return /** @type{?proto.cms.BannerCta} */ (
|
|
8546
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerCta, 8));
|
|
8547
|
+
};
|
|
8548
|
+
|
|
8549
|
+
|
|
8550
|
+
/**
|
|
8551
|
+
* @param {?proto.cms.BannerCta|undefined} value
|
|
8552
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
|
8553
|
+
*/
|
|
8554
|
+
proto.cms.BannerItemRequest.prototype.setCta = function(value) {
|
|
8555
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
8556
|
+
};
|
|
8557
|
+
|
|
8558
|
+
|
|
8559
|
+
/**
|
|
8560
|
+
* Clears the message field making it undefined.
|
|
8561
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
|
8562
|
+
*/
|
|
8563
|
+
proto.cms.BannerItemRequest.prototype.clearCta = function() {
|
|
8564
|
+
return this.setCta(undefined);
|
|
8565
|
+
};
|
|
8566
|
+
|
|
8567
|
+
|
|
8568
|
+
/**
|
|
8569
|
+
* Returns whether this field is set.
|
|
8570
|
+
* @return {boolean}
|
|
8571
|
+
*/
|
|
8572
|
+
proto.cms.BannerItemRequest.prototype.hasCta = function() {
|
|
8573
|
+
return jspb.Message.getField(this, 8) != null;
|
|
8574
|
+
};
|
|
8575
|
+
|
|
8576
|
+
|
|
8504
8577
|
|
|
8505
8578
|
/**
|
|
8506
8579
|
* List of repeated fields within this message type.
|
|
@@ -8550,7 +8623,8 @@ proto.cms.BannerItem.toObject = function(includeInstance, msg) {
|
|
|
8550
8623
|
anchor: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
8551
8624
|
ctaType: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
8552
8625
|
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
|
8553
|
-
proto.cms.BannerTexts.toObject, includeInstance)
|
|
8626
|
+
proto.cms.BannerTexts.toObject, includeInstance),
|
|
8627
|
+
cta: (f = msg.getCta()) && proto.cms.BannerCta.toObject(includeInstance, f)
|
|
8554
8628
|
};
|
|
8555
8629
|
|
|
8556
8630
|
if (includeInstance) {
|
|
@@ -8628,6 +8702,11 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
8628
8702
|
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
|
8629
8703
|
msg.addTexts(value);
|
|
8630
8704
|
break;
|
|
8705
|
+
case 11:
|
|
8706
|
+
var value = new proto.cms.BannerCta;
|
|
8707
|
+
reader.readMessage(value,proto.cms.BannerCta.deserializeBinaryFromReader);
|
|
8708
|
+
msg.setCta(value);
|
|
8709
|
+
break;
|
|
8631
8710
|
default:
|
|
8632
8711
|
reader.skipField();
|
|
8633
8712
|
break;
|
|
@@ -8728,6 +8807,14 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
8728
8807
|
proto.cms.BannerTexts.serializeBinaryToWriter
|
|
8729
8808
|
);
|
|
8730
8809
|
}
|
|
8810
|
+
f = message.getCta();
|
|
8811
|
+
if (f != null) {
|
|
8812
|
+
writer.writeMessage(
|
|
8813
|
+
11,
|
|
8814
|
+
f,
|
|
8815
|
+
proto.cms.BannerCta.serializeBinaryToWriter
|
|
8816
|
+
);
|
|
8817
|
+
}
|
|
8731
8818
|
};
|
|
8732
8819
|
|
|
8733
8820
|
|
|
@@ -9093,6 +9180,43 @@ proto.cms.BannerItem.prototype.clearTextsList = function() {
|
|
|
9093
9180
|
};
|
|
9094
9181
|
|
|
9095
9182
|
|
|
9183
|
+
/**
|
|
9184
|
+
* optional BannerCta cta = 11;
|
|
9185
|
+
* @return {?proto.cms.BannerCta}
|
|
9186
|
+
*/
|
|
9187
|
+
proto.cms.BannerItem.prototype.getCta = function() {
|
|
9188
|
+
return /** @type{?proto.cms.BannerCta} */ (
|
|
9189
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerCta, 11));
|
|
9190
|
+
};
|
|
9191
|
+
|
|
9192
|
+
|
|
9193
|
+
/**
|
|
9194
|
+
* @param {?proto.cms.BannerCta|undefined} value
|
|
9195
|
+
* @return {!proto.cms.BannerItem} returns this
|
|
9196
|
+
*/
|
|
9197
|
+
proto.cms.BannerItem.prototype.setCta = function(value) {
|
|
9198
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
9199
|
+
};
|
|
9200
|
+
|
|
9201
|
+
|
|
9202
|
+
/**
|
|
9203
|
+
* Clears the message field making it undefined.
|
|
9204
|
+
* @return {!proto.cms.BannerItem} returns this
|
|
9205
|
+
*/
|
|
9206
|
+
proto.cms.BannerItem.prototype.clearCta = function() {
|
|
9207
|
+
return this.setCta(undefined);
|
|
9208
|
+
};
|
|
9209
|
+
|
|
9210
|
+
|
|
9211
|
+
/**
|
|
9212
|
+
* Returns whether this field is set.
|
|
9213
|
+
* @return {boolean}
|
|
9214
|
+
*/
|
|
9215
|
+
proto.cms.BannerItem.prototype.hasCta = function() {
|
|
9216
|
+
return jspb.Message.getField(this, 11) != null;
|
|
9217
|
+
};
|
|
9218
|
+
|
|
9219
|
+
|
|
9096
9220
|
|
|
9097
9221
|
|
|
9098
9222
|
|
|
@@ -9418,6 +9542,250 @@ proto.cms.BannerTexts.prototype.hasNote = function() {
|
|
|
9418
9542
|
|
|
9419
9543
|
|
|
9420
9544
|
|
|
9545
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9546
|
+
/**
|
|
9547
|
+
* Creates an object representation of this proto.
|
|
9548
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9549
|
+
* Optional fields that are not set will be set to undefined.
|
|
9550
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9551
|
+
* For the list of reserved names please see:
|
|
9552
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9553
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9554
|
+
* JSPB instance for transitional soy proto support:
|
|
9555
|
+
* http://goto/soy-param-migration
|
|
9556
|
+
* @return {!Object}
|
|
9557
|
+
*/
|
|
9558
|
+
proto.cms.BannerCta.prototype.toObject = function(opt_includeInstance) {
|
|
9559
|
+
return proto.cms.BannerCta.toObject(opt_includeInstance, this);
|
|
9560
|
+
};
|
|
9561
|
+
|
|
9562
|
+
|
|
9563
|
+
/**
|
|
9564
|
+
* Static version of the {@see toObject} method.
|
|
9565
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9566
|
+
* the JSPB instance for transitional soy proto support:
|
|
9567
|
+
* http://goto/soy-param-migration
|
|
9568
|
+
* @param {!proto.cms.BannerCta} msg The msg instance to transform.
|
|
9569
|
+
* @return {!Object}
|
|
9570
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9571
|
+
*/
|
|
9572
|
+
proto.cms.BannerCta.toObject = function(includeInstance, msg) {
|
|
9573
|
+
var f, obj = {
|
|
9574
|
+
actionType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9575
|
+
instanceId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9576
|
+
slug: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
9577
|
+
};
|
|
9578
|
+
|
|
9579
|
+
if (includeInstance) {
|
|
9580
|
+
obj.$jspbMessageInstance = msg;
|
|
9581
|
+
}
|
|
9582
|
+
return obj;
|
|
9583
|
+
};
|
|
9584
|
+
}
|
|
9585
|
+
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9589
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9590
|
+
* @return {!proto.cms.BannerCta}
|
|
9591
|
+
*/
|
|
9592
|
+
proto.cms.BannerCta.deserializeBinary = function(bytes) {
|
|
9593
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9594
|
+
var msg = new proto.cms.BannerCta;
|
|
9595
|
+
return proto.cms.BannerCta.deserializeBinaryFromReader(msg, reader);
|
|
9596
|
+
};
|
|
9597
|
+
|
|
9598
|
+
|
|
9599
|
+
/**
|
|
9600
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9601
|
+
* given reader into the given message object.
|
|
9602
|
+
* @param {!proto.cms.BannerCta} msg The message object to deserialize into.
|
|
9603
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9604
|
+
* @return {!proto.cms.BannerCta}
|
|
9605
|
+
*/
|
|
9606
|
+
proto.cms.BannerCta.deserializeBinaryFromReader = function(msg, reader) {
|
|
9607
|
+
while (reader.nextField()) {
|
|
9608
|
+
if (reader.isEndGroup()) {
|
|
9609
|
+
break;
|
|
9610
|
+
}
|
|
9611
|
+
var field = reader.getFieldNumber();
|
|
9612
|
+
switch (field) {
|
|
9613
|
+
case 1:
|
|
9614
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9615
|
+
msg.setActionType(value);
|
|
9616
|
+
break;
|
|
9617
|
+
case 2:
|
|
9618
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
9619
|
+
msg.setInstanceId(value);
|
|
9620
|
+
break;
|
|
9621
|
+
case 3:
|
|
9622
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9623
|
+
msg.setSlug(value);
|
|
9624
|
+
break;
|
|
9625
|
+
default:
|
|
9626
|
+
reader.skipField();
|
|
9627
|
+
break;
|
|
9628
|
+
}
|
|
9629
|
+
}
|
|
9630
|
+
return msg;
|
|
9631
|
+
};
|
|
9632
|
+
|
|
9633
|
+
|
|
9634
|
+
/**
|
|
9635
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9636
|
+
* @return {!Uint8Array}
|
|
9637
|
+
*/
|
|
9638
|
+
proto.cms.BannerCta.prototype.serializeBinary = function() {
|
|
9639
|
+
var writer = new jspb.BinaryWriter();
|
|
9640
|
+
proto.cms.BannerCta.serializeBinaryToWriter(this, writer);
|
|
9641
|
+
return writer.getResultBuffer();
|
|
9642
|
+
};
|
|
9643
|
+
|
|
9644
|
+
|
|
9645
|
+
/**
|
|
9646
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9647
|
+
* format), writing to the given BinaryWriter.
|
|
9648
|
+
* @param {!proto.cms.BannerCta} message
|
|
9649
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9651
|
+
*/
|
|
9652
|
+
proto.cms.BannerCta.serializeBinaryToWriter = function(message, writer) {
|
|
9653
|
+
var f = undefined;
|
|
9654
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
9655
|
+
if (f != null) {
|
|
9656
|
+
writer.writeString(
|
|
9657
|
+
1,
|
|
9658
|
+
f
|
|
9659
|
+
);
|
|
9660
|
+
}
|
|
9661
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
9662
|
+
if (f != null) {
|
|
9663
|
+
writer.writeInt32(
|
|
9664
|
+
2,
|
|
9665
|
+
f
|
|
9666
|
+
);
|
|
9667
|
+
}
|
|
9668
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
9669
|
+
if (f != null) {
|
|
9670
|
+
writer.writeString(
|
|
9671
|
+
3,
|
|
9672
|
+
f
|
|
9673
|
+
);
|
|
9674
|
+
}
|
|
9675
|
+
};
|
|
9676
|
+
|
|
9677
|
+
|
|
9678
|
+
/**
|
|
9679
|
+
* optional string action_type = 1;
|
|
9680
|
+
* @return {string}
|
|
9681
|
+
*/
|
|
9682
|
+
proto.cms.BannerCta.prototype.getActionType = function() {
|
|
9683
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9684
|
+
};
|
|
9685
|
+
|
|
9686
|
+
|
|
9687
|
+
/**
|
|
9688
|
+
* @param {string} value
|
|
9689
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9690
|
+
*/
|
|
9691
|
+
proto.cms.BannerCta.prototype.setActionType = function(value) {
|
|
9692
|
+
return jspb.Message.setField(this, 1, value);
|
|
9693
|
+
};
|
|
9694
|
+
|
|
9695
|
+
|
|
9696
|
+
/**
|
|
9697
|
+
* Clears the field making it undefined.
|
|
9698
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9699
|
+
*/
|
|
9700
|
+
proto.cms.BannerCta.prototype.clearActionType = function() {
|
|
9701
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
9702
|
+
};
|
|
9703
|
+
|
|
9704
|
+
|
|
9705
|
+
/**
|
|
9706
|
+
* Returns whether this field is set.
|
|
9707
|
+
* @return {boolean}
|
|
9708
|
+
*/
|
|
9709
|
+
proto.cms.BannerCta.prototype.hasActionType = function() {
|
|
9710
|
+
return jspb.Message.getField(this, 1) != null;
|
|
9711
|
+
};
|
|
9712
|
+
|
|
9713
|
+
|
|
9714
|
+
/**
|
|
9715
|
+
* optional int32 instance_id = 2;
|
|
9716
|
+
* @return {number}
|
|
9717
|
+
*/
|
|
9718
|
+
proto.cms.BannerCta.prototype.getInstanceId = function() {
|
|
9719
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
9720
|
+
};
|
|
9721
|
+
|
|
9722
|
+
|
|
9723
|
+
/**
|
|
9724
|
+
* @param {number} value
|
|
9725
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9726
|
+
*/
|
|
9727
|
+
proto.cms.BannerCta.prototype.setInstanceId = function(value) {
|
|
9728
|
+
return jspb.Message.setField(this, 2, value);
|
|
9729
|
+
};
|
|
9730
|
+
|
|
9731
|
+
|
|
9732
|
+
/**
|
|
9733
|
+
* Clears the field making it undefined.
|
|
9734
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9735
|
+
*/
|
|
9736
|
+
proto.cms.BannerCta.prototype.clearInstanceId = function() {
|
|
9737
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
9738
|
+
};
|
|
9739
|
+
|
|
9740
|
+
|
|
9741
|
+
/**
|
|
9742
|
+
* Returns whether this field is set.
|
|
9743
|
+
* @return {boolean}
|
|
9744
|
+
*/
|
|
9745
|
+
proto.cms.BannerCta.prototype.hasInstanceId = function() {
|
|
9746
|
+
return jspb.Message.getField(this, 2) != null;
|
|
9747
|
+
};
|
|
9748
|
+
|
|
9749
|
+
|
|
9750
|
+
/**
|
|
9751
|
+
* optional string slug = 3;
|
|
9752
|
+
* @return {string}
|
|
9753
|
+
*/
|
|
9754
|
+
proto.cms.BannerCta.prototype.getSlug = function() {
|
|
9755
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
9756
|
+
};
|
|
9757
|
+
|
|
9758
|
+
|
|
9759
|
+
/**
|
|
9760
|
+
* @param {string} value
|
|
9761
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9762
|
+
*/
|
|
9763
|
+
proto.cms.BannerCta.prototype.setSlug = function(value) {
|
|
9764
|
+
return jspb.Message.setField(this, 3, value);
|
|
9765
|
+
};
|
|
9766
|
+
|
|
9767
|
+
|
|
9768
|
+
/**
|
|
9769
|
+
* Clears the field making it undefined.
|
|
9770
|
+
* @return {!proto.cms.BannerCta} returns this
|
|
9771
|
+
*/
|
|
9772
|
+
proto.cms.BannerCta.prototype.clearSlug = function() {
|
|
9773
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
9774
|
+
};
|
|
9775
|
+
|
|
9776
|
+
|
|
9777
|
+
/**
|
|
9778
|
+
* Returns whether this field is set.
|
|
9779
|
+
* @return {boolean}
|
|
9780
|
+
*/
|
|
9781
|
+
proto.cms.BannerCta.prototype.hasSlug = function() {
|
|
9782
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9783
|
+
};
|
|
9784
|
+
|
|
9785
|
+
|
|
9786
|
+
|
|
9787
|
+
|
|
9788
|
+
|
|
9421
9789
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9422
9790
|
/**
|
|
9423
9791
|
* Creates an object representation of this proto.
|
|
@@ -11601,7 +11969,8 @@ proto.cms.UserBannerItem.toObject = function(includeInstance, msg) {
|
|
|
11601
11969
|
anchor: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
11602
11970
|
ctaType: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
11603
11971
|
ctaText: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
11604
|
-
note: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
11972
|
+
note: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
11973
|
+
cta: (f = msg.getCta()) && proto.cms.BannerCta.toObject(includeInstance, f)
|
|
11605
11974
|
};
|
|
11606
11975
|
|
|
11607
11976
|
if (includeInstance) {
|
|
@@ -11678,6 +12047,11 @@ proto.cms.UserBannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
11678
12047
|
var value = /** @type {string} */ (reader.readString());
|
|
11679
12048
|
msg.setNote(value);
|
|
11680
12049
|
break;
|
|
12050
|
+
case 11:
|
|
12051
|
+
var value = new proto.cms.BannerCta;
|
|
12052
|
+
reader.readMessage(value,proto.cms.BannerCta.deserializeBinaryFromReader);
|
|
12053
|
+
msg.setCta(value);
|
|
12054
|
+
break;
|
|
11681
12055
|
default:
|
|
11682
12056
|
reader.skipField();
|
|
11683
12057
|
break;
|
|
@@ -11777,6 +12151,14 @@ proto.cms.UserBannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
11777
12151
|
f
|
|
11778
12152
|
);
|
|
11779
12153
|
}
|
|
12154
|
+
f = message.getCta();
|
|
12155
|
+
if (f != null) {
|
|
12156
|
+
writer.writeMessage(
|
|
12157
|
+
11,
|
|
12158
|
+
f,
|
|
12159
|
+
proto.cms.BannerCta.serializeBinaryToWriter
|
|
12160
|
+
);
|
|
12161
|
+
}
|
|
11780
12162
|
};
|
|
11781
12163
|
|
|
11782
12164
|
|
|
@@ -12140,6 +12522,43 @@ proto.cms.UserBannerItem.prototype.hasNote = function() {
|
|
|
12140
12522
|
};
|
|
12141
12523
|
|
|
12142
12524
|
|
|
12525
|
+
/**
|
|
12526
|
+
* optional BannerCta cta = 11;
|
|
12527
|
+
* @return {?proto.cms.BannerCta}
|
|
12528
|
+
*/
|
|
12529
|
+
proto.cms.UserBannerItem.prototype.getCta = function() {
|
|
12530
|
+
return /** @type{?proto.cms.BannerCta} */ (
|
|
12531
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerCta, 11));
|
|
12532
|
+
};
|
|
12533
|
+
|
|
12534
|
+
|
|
12535
|
+
/**
|
|
12536
|
+
* @param {?proto.cms.BannerCta|undefined} value
|
|
12537
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
|
12538
|
+
*/
|
|
12539
|
+
proto.cms.UserBannerItem.prototype.setCta = function(value) {
|
|
12540
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
12541
|
+
};
|
|
12542
|
+
|
|
12543
|
+
|
|
12544
|
+
/**
|
|
12545
|
+
* Clears the message field making it undefined.
|
|
12546
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
|
12547
|
+
*/
|
|
12548
|
+
proto.cms.UserBannerItem.prototype.clearCta = function() {
|
|
12549
|
+
return this.setCta(undefined);
|
|
12550
|
+
};
|
|
12551
|
+
|
|
12552
|
+
|
|
12553
|
+
/**
|
|
12554
|
+
* Returns whether this field is set.
|
|
12555
|
+
* @return {boolean}
|
|
12556
|
+
*/
|
|
12557
|
+
proto.cms.UserBannerItem.prototype.hasCta = function() {
|
|
12558
|
+
return jspb.Message.getField(this, 11) != null;
|
|
12559
|
+
};
|
|
12560
|
+
|
|
12561
|
+
|
|
12143
12562
|
|
|
12144
12563
|
/**
|
|
12145
12564
|
* List of repeated fields within this message type.
|