protobuf-platform 1.0.200 → 1.0.202
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 +15 -0
- package/cms/cms_grpc_pb.js +22 -0
- package/cms/cms_pb.js +737 -1
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -23,6 +23,7 @@ service CMS {
|
|
23
23
|
rpc updateBannerGroup(BannerGroupRequest) returns (BannerGroupResponse);
|
24
24
|
rpc deleteBannerGroup(GetBannerGroupRequest) returns (BannerStatusResponse);
|
25
25
|
rpc readListBannersGroup(PaginationRequest) returns (BannerGroupItemsResponse);
|
26
|
+
rpc fetchBannerGroupForUser(GetBannerGroupRequest) returns (UserBannerGroupResponse);
|
26
27
|
}
|
27
28
|
|
28
29
|
message PingRequest { string ping = 1; }
|
@@ -130,6 +131,7 @@ message GetBannerGroupRequest {
|
|
130
131
|
int32 id = 1;
|
131
132
|
optional bool admin_side = 2;
|
132
133
|
optional string locale = 3;
|
134
|
+
optional string geo = 4;
|
133
135
|
}
|
134
136
|
message BannerGroupResponse {
|
135
137
|
BannerGroupItem data = 1;
|
@@ -138,4 +140,17 @@ message BannerGroupItemsResponse {
|
|
138
140
|
repeated BannerGroupItem items = 1;
|
139
141
|
optional int32 total_pages = 2;
|
140
142
|
optional int32 total_items = 3;
|
143
|
+
}
|
144
|
+
message UserBannerItem {
|
145
|
+
optional string title = 1;
|
146
|
+
optional string content = 2;
|
147
|
+
optional string image_big = 3;
|
148
|
+
optional string image_small = 4;
|
149
|
+
optional string anchor = 5;
|
150
|
+
optional string cta_type = 6;
|
151
|
+
optional string cta_text = 7;
|
152
|
+
optional string note = 8;
|
153
|
+
}
|
154
|
+
message UserBannerGroupResponse {
|
155
|
+
repeated UserBannerItem items = 1;
|
141
156
|
}
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -224,6 +224,17 @@ function deserialize_cms_PongResponse(buffer_arg) {
|
|
224
224
|
return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
225
225
|
}
|
226
226
|
|
227
|
+
function serialize_cms_UserBannerGroupResponse(arg) {
|
228
|
+
if (!(arg instanceof cms_pb.UserBannerGroupResponse)) {
|
229
|
+
throw new Error('Expected argument of type cms.UserBannerGroupResponse');
|
230
|
+
}
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
232
|
+
}
|
233
|
+
|
234
|
+
function deserialize_cms_UserBannerGroupResponse(buffer_arg) {
|
235
|
+
return cms_pb.UserBannerGroupResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
236
|
+
}
|
237
|
+
|
227
238
|
|
228
239
|
var CMSService = exports.CMSService = {
|
229
240
|
checkConnection: {
|
@@ -416,6 +427,17 @@ createBannerGroup: {
|
|
416
427
|
responseSerialize: serialize_cms_BannerGroupItemsResponse,
|
417
428
|
responseDeserialize: deserialize_cms_BannerGroupItemsResponse,
|
418
429
|
},
|
430
|
+
fetchBannerGroupForUser: {
|
431
|
+
path: '/cms.CMS/fetchBannerGroupForUser',
|
432
|
+
requestStream: false,
|
433
|
+
responseStream: false,
|
434
|
+
requestType: cms_pb.GetBannerGroupRequest,
|
435
|
+
responseType: cms_pb.UserBannerGroupResponse,
|
436
|
+
requestSerialize: serialize_cms_GetBannerGroupRequest,
|
437
|
+
requestDeserialize: deserialize_cms_GetBannerGroupRequest,
|
438
|
+
responseSerialize: serialize_cms_UserBannerGroupResponse,
|
439
|
+
responseDeserialize: deserialize_cms_UserBannerGroupResponse,
|
440
|
+
},
|
419
441
|
};
|
420
442
|
|
421
443
|
exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
|
package/cms/cms_pb.js
CHANGED
@@ -46,6 +46,8 @@ goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
|
|
46
46
|
goog.exportSymbol('proto.cms.PaginationRequest', null, global);
|
47
47
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
48
48
|
goog.exportSymbol('proto.cms.PongResponse', null, global);
|
49
|
+
goog.exportSymbol('proto.cms.UserBannerGroupResponse', null, global);
|
50
|
+
goog.exportSymbol('proto.cms.UserBannerItem', null, global);
|
49
51
|
/**
|
50
52
|
* Generated by JsPbCodeGenerator.
|
51
53
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -550,6 +552,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
550
552
|
*/
|
551
553
|
proto.cms.BannerGroupItemsResponse.displayName = 'proto.cms.BannerGroupItemsResponse';
|
552
554
|
}
|
555
|
+
/**
|
556
|
+
* Generated by JsPbCodeGenerator.
|
557
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
558
|
+
* server response, or constructed directly in Javascript. The array is used
|
559
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
560
|
+
* If no data is provided, the constructed object will be empty, but still
|
561
|
+
* valid.
|
562
|
+
* @extends {jspb.Message}
|
563
|
+
* @constructor
|
564
|
+
*/
|
565
|
+
proto.cms.UserBannerItem = function(opt_data) {
|
566
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
567
|
+
};
|
568
|
+
goog.inherits(proto.cms.UserBannerItem, jspb.Message);
|
569
|
+
if (goog.DEBUG && !COMPILED) {
|
570
|
+
/**
|
571
|
+
* @public
|
572
|
+
* @override
|
573
|
+
*/
|
574
|
+
proto.cms.UserBannerItem.displayName = 'proto.cms.UserBannerItem';
|
575
|
+
}
|
576
|
+
/**
|
577
|
+
* Generated by JsPbCodeGenerator.
|
578
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
579
|
+
* server response, or constructed directly in Javascript. The array is used
|
580
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
581
|
+
* If no data is provided, the constructed object will be empty, but still
|
582
|
+
* valid.
|
583
|
+
* @extends {jspb.Message}
|
584
|
+
* @constructor
|
585
|
+
*/
|
586
|
+
proto.cms.UserBannerGroupResponse = function(opt_data) {
|
587
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.UserBannerGroupResponse.repeatedFields_, null);
|
588
|
+
};
|
589
|
+
goog.inherits(proto.cms.UserBannerGroupResponse, jspb.Message);
|
590
|
+
if (goog.DEBUG && !COMPILED) {
|
591
|
+
/**
|
592
|
+
* @public
|
593
|
+
* @override
|
594
|
+
*/
|
595
|
+
proto.cms.UserBannerGroupResponse.displayName = 'proto.cms.UserBannerGroupResponse';
|
596
|
+
}
|
553
597
|
|
554
598
|
|
555
599
|
|
@@ -5630,7 +5674,8 @@ proto.cms.GetBannerGroupRequest.toObject = function(includeInstance, msg) {
|
|
5630
5674
|
var f, obj = {
|
5631
5675
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5632
5676
|
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
5633
|
-
locale: jspb.Message.getFieldWithDefault(msg, 3, "")
|
5677
|
+
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
5678
|
+
geo: jspb.Message.getFieldWithDefault(msg, 4, "")
|
5634
5679
|
};
|
5635
5680
|
|
5636
5681
|
if (includeInstance) {
|
@@ -5679,6 +5724,10 @@ proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader = function(msg, read
|
|
5679
5724
|
var value = /** @type {string} */ (reader.readString());
|
5680
5725
|
msg.setLocale(value);
|
5681
5726
|
break;
|
5727
|
+
case 4:
|
5728
|
+
var value = /** @type {string} */ (reader.readString());
|
5729
|
+
msg.setGeo(value);
|
5730
|
+
break;
|
5682
5731
|
default:
|
5683
5732
|
reader.skipField();
|
5684
5733
|
break;
|
@@ -5729,6 +5778,13 @@ proto.cms.GetBannerGroupRequest.serializeBinaryToWriter = function(message, writ
|
|
5729
5778
|
f
|
5730
5779
|
);
|
5731
5780
|
}
|
5781
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
5782
|
+
if (f != null) {
|
5783
|
+
writer.writeString(
|
5784
|
+
4,
|
5785
|
+
f
|
5786
|
+
);
|
5787
|
+
}
|
5732
5788
|
};
|
5733
5789
|
|
5734
5790
|
|
@@ -5822,6 +5878,42 @@ proto.cms.GetBannerGroupRequest.prototype.hasLocale = function() {
|
|
5822
5878
|
};
|
5823
5879
|
|
5824
5880
|
|
5881
|
+
/**
|
5882
|
+
* optional string geo = 4;
|
5883
|
+
* @return {string}
|
5884
|
+
*/
|
5885
|
+
proto.cms.GetBannerGroupRequest.prototype.getGeo = function() {
|
5886
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
5887
|
+
};
|
5888
|
+
|
5889
|
+
|
5890
|
+
/**
|
5891
|
+
* @param {string} value
|
5892
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
5893
|
+
*/
|
5894
|
+
proto.cms.GetBannerGroupRequest.prototype.setGeo = function(value) {
|
5895
|
+
return jspb.Message.setField(this, 4, value);
|
5896
|
+
};
|
5897
|
+
|
5898
|
+
|
5899
|
+
/**
|
5900
|
+
* Clears the field making it undefined.
|
5901
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
5902
|
+
*/
|
5903
|
+
proto.cms.GetBannerGroupRequest.prototype.clearGeo = function() {
|
5904
|
+
return jspb.Message.setField(this, 4, undefined);
|
5905
|
+
};
|
5906
|
+
|
5907
|
+
|
5908
|
+
/**
|
5909
|
+
* Returns whether this field is set.
|
5910
|
+
* @return {boolean}
|
5911
|
+
*/
|
5912
|
+
proto.cms.GetBannerGroupRequest.prototype.hasGeo = function() {
|
5913
|
+
return jspb.Message.getField(this, 4) != null;
|
5914
|
+
};
|
5915
|
+
|
5916
|
+
|
5825
5917
|
|
5826
5918
|
|
5827
5919
|
|
@@ -6229,4 +6321,648 @@ proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
|
|
6229
6321
|
};
|
6230
6322
|
|
6231
6323
|
|
6324
|
+
|
6325
|
+
|
6326
|
+
|
6327
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6328
|
+
/**
|
6329
|
+
* Creates an object representation of this proto.
|
6330
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6331
|
+
* Optional fields that are not set will be set to undefined.
|
6332
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6333
|
+
* For the list of reserved names please see:
|
6334
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6335
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6336
|
+
* JSPB instance for transitional soy proto support:
|
6337
|
+
* http://goto/soy-param-migration
|
6338
|
+
* @return {!Object}
|
6339
|
+
*/
|
6340
|
+
proto.cms.UserBannerItem.prototype.toObject = function(opt_includeInstance) {
|
6341
|
+
return proto.cms.UserBannerItem.toObject(opt_includeInstance, this);
|
6342
|
+
};
|
6343
|
+
|
6344
|
+
|
6345
|
+
/**
|
6346
|
+
* Static version of the {@see toObject} method.
|
6347
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6348
|
+
* the JSPB instance for transitional soy proto support:
|
6349
|
+
* http://goto/soy-param-migration
|
6350
|
+
* @param {!proto.cms.UserBannerItem} msg The msg instance to transform.
|
6351
|
+
* @return {!Object}
|
6352
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6353
|
+
*/
|
6354
|
+
proto.cms.UserBannerItem.toObject = function(includeInstance, msg) {
|
6355
|
+
var f, obj = {
|
6356
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
6357
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
6358
|
+
imageBig: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
6359
|
+
imageSmall: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
6360
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
6361
|
+
ctaType: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
6362
|
+
ctaText: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
6363
|
+
note: jspb.Message.getFieldWithDefault(msg, 8, "")
|
6364
|
+
};
|
6365
|
+
|
6366
|
+
if (includeInstance) {
|
6367
|
+
obj.$jspbMessageInstance = msg;
|
6368
|
+
}
|
6369
|
+
return obj;
|
6370
|
+
};
|
6371
|
+
}
|
6372
|
+
|
6373
|
+
|
6374
|
+
/**
|
6375
|
+
* Deserializes binary data (in protobuf wire format).
|
6376
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6377
|
+
* @return {!proto.cms.UserBannerItem}
|
6378
|
+
*/
|
6379
|
+
proto.cms.UserBannerItem.deserializeBinary = function(bytes) {
|
6380
|
+
var reader = new jspb.BinaryReader(bytes);
|
6381
|
+
var msg = new proto.cms.UserBannerItem;
|
6382
|
+
return proto.cms.UserBannerItem.deserializeBinaryFromReader(msg, reader);
|
6383
|
+
};
|
6384
|
+
|
6385
|
+
|
6386
|
+
/**
|
6387
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6388
|
+
* given reader into the given message object.
|
6389
|
+
* @param {!proto.cms.UserBannerItem} msg The message object to deserialize into.
|
6390
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6391
|
+
* @return {!proto.cms.UserBannerItem}
|
6392
|
+
*/
|
6393
|
+
proto.cms.UserBannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
6394
|
+
while (reader.nextField()) {
|
6395
|
+
if (reader.isEndGroup()) {
|
6396
|
+
break;
|
6397
|
+
}
|
6398
|
+
var field = reader.getFieldNumber();
|
6399
|
+
switch (field) {
|
6400
|
+
case 1:
|
6401
|
+
var value = /** @type {string} */ (reader.readString());
|
6402
|
+
msg.setTitle(value);
|
6403
|
+
break;
|
6404
|
+
case 2:
|
6405
|
+
var value = /** @type {string} */ (reader.readString());
|
6406
|
+
msg.setContent(value);
|
6407
|
+
break;
|
6408
|
+
case 3:
|
6409
|
+
var value = /** @type {string} */ (reader.readString());
|
6410
|
+
msg.setImageBig(value);
|
6411
|
+
break;
|
6412
|
+
case 4:
|
6413
|
+
var value = /** @type {string} */ (reader.readString());
|
6414
|
+
msg.setImageSmall(value);
|
6415
|
+
break;
|
6416
|
+
case 5:
|
6417
|
+
var value = /** @type {string} */ (reader.readString());
|
6418
|
+
msg.setAnchor(value);
|
6419
|
+
break;
|
6420
|
+
case 6:
|
6421
|
+
var value = /** @type {string} */ (reader.readString());
|
6422
|
+
msg.setCtaType(value);
|
6423
|
+
break;
|
6424
|
+
case 7:
|
6425
|
+
var value = /** @type {string} */ (reader.readString());
|
6426
|
+
msg.setCtaText(value);
|
6427
|
+
break;
|
6428
|
+
case 8:
|
6429
|
+
var value = /** @type {string} */ (reader.readString());
|
6430
|
+
msg.setNote(value);
|
6431
|
+
break;
|
6432
|
+
default:
|
6433
|
+
reader.skipField();
|
6434
|
+
break;
|
6435
|
+
}
|
6436
|
+
}
|
6437
|
+
return msg;
|
6438
|
+
};
|
6439
|
+
|
6440
|
+
|
6441
|
+
/**
|
6442
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6443
|
+
* @return {!Uint8Array}
|
6444
|
+
*/
|
6445
|
+
proto.cms.UserBannerItem.prototype.serializeBinary = function() {
|
6446
|
+
var writer = new jspb.BinaryWriter();
|
6447
|
+
proto.cms.UserBannerItem.serializeBinaryToWriter(this, writer);
|
6448
|
+
return writer.getResultBuffer();
|
6449
|
+
};
|
6450
|
+
|
6451
|
+
|
6452
|
+
/**
|
6453
|
+
* Serializes the given message to binary data (in protobuf wire
|
6454
|
+
* format), writing to the given BinaryWriter.
|
6455
|
+
* @param {!proto.cms.UserBannerItem} message
|
6456
|
+
* @param {!jspb.BinaryWriter} writer
|
6457
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6458
|
+
*/
|
6459
|
+
proto.cms.UserBannerItem.serializeBinaryToWriter = function(message, writer) {
|
6460
|
+
var f = undefined;
|
6461
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
6462
|
+
if (f != null) {
|
6463
|
+
writer.writeString(
|
6464
|
+
1,
|
6465
|
+
f
|
6466
|
+
);
|
6467
|
+
}
|
6468
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
6469
|
+
if (f != null) {
|
6470
|
+
writer.writeString(
|
6471
|
+
2,
|
6472
|
+
f
|
6473
|
+
);
|
6474
|
+
}
|
6475
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
6476
|
+
if (f != null) {
|
6477
|
+
writer.writeString(
|
6478
|
+
3,
|
6479
|
+
f
|
6480
|
+
);
|
6481
|
+
}
|
6482
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
6483
|
+
if (f != null) {
|
6484
|
+
writer.writeString(
|
6485
|
+
4,
|
6486
|
+
f
|
6487
|
+
);
|
6488
|
+
}
|
6489
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
6490
|
+
if (f != null) {
|
6491
|
+
writer.writeString(
|
6492
|
+
5,
|
6493
|
+
f
|
6494
|
+
);
|
6495
|
+
}
|
6496
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
6497
|
+
if (f != null) {
|
6498
|
+
writer.writeString(
|
6499
|
+
6,
|
6500
|
+
f
|
6501
|
+
);
|
6502
|
+
}
|
6503
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
6504
|
+
if (f != null) {
|
6505
|
+
writer.writeString(
|
6506
|
+
7,
|
6507
|
+
f
|
6508
|
+
);
|
6509
|
+
}
|
6510
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
6511
|
+
if (f != null) {
|
6512
|
+
writer.writeString(
|
6513
|
+
8,
|
6514
|
+
f
|
6515
|
+
);
|
6516
|
+
}
|
6517
|
+
};
|
6518
|
+
|
6519
|
+
|
6520
|
+
/**
|
6521
|
+
* optional string title = 1;
|
6522
|
+
* @return {string}
|
6523
|
+
*/
|
6524
|
+
proto.cms.UserBannerItem.prototype.getTitle = function() {
|
6525
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
6526
|
+
};
|
6527
|
+
|
6528
|
+
|
6529
|
+
/**
|
6530
|
+
* @param {string} value
|
6531
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6532
|
+
*/
|
6533
|
+
proto.cms.UserBannerItem.prototype.setTitle = function(value) {
|
6534
|
+
return jspb.Message.setField(this, 1, value);
|
6535
|
+
};
|
6536
|
+
|
6537
|
+
|
6538
|
+
/**
|
6539
|
+
* Clears the field making it undefined.
|
6540
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6541
|
+
*/
|
6542
|
+
proto.cms.UserBannerItem.prototype.clearTitle = function() {
|
6543
|
+
return jspb.Message.setField(this, 1, undefined);
|
6544
|
+
};
|
6545
|
+
|
6546
|
+
|
6547
|
+
/**
|
6548
|
+
* Returns whether this field is set.
|
6549
|
+
* @return {boolean}
|
6550
|
+
*/
|
6551
|
+
proto.cms.UserBannerItem.prototype.hasTitle = function() {
|
6552
|
+
return jspb.Message.getField(this, 1) != null;
|
6553
|
+
};
|
6554
|
+
|
6555
|
+
|
6556
|
+
/**
|
6557
|
+
* optional string content = 2;
|
6558
|
+
* @return {string}
|
6559
|
+
*/
|
6560
|
+
proto.cms.UserBannerItem.prototype.getContent = function() {
|
6561
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6562
|
+
};
|
6563
|
+
|
6564
|
+
|
6565
|
+
/**
|
6566
|
+
* @param {string} value
|
6567
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6568
|
+
*/
|
6569
|
+
proto.cms.UserBannerItem.prototype.setContent = function(value) {
|
6570
|
+
return jspb.Message.setField(this, 2, value);
|
6571
|
+
};
|
6572
|
+
|
6573
|
+
|
6574
|
+
/**
|
6575
|
+
* Clears the field making it undefined.
|
6576
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6577
|
+
*/
|
6578
|
+
proto.cms.UserBannerItem.prototype.clearContent = function() {
|
6579
|
+
return jspb.Message.setField(this, 2, undefined);
|
6580
|
+
};
|
6581
|
+
|
6582
|
+
|
6583
|
+
/**
|
6584
|
+
* Returns whether this field is set.
|
6585
|
+
* @return {boolean}
|
6586
|
+
*/
|
6587
|
+
proto.cms.UserBannerItem.prototype.hasContent = function() {
|
6588
|
+
return jspb.Message.getField(this, 2) != null;
|
6589
|
+
};
|
6590
|
+
|
6591
|
+
|
6592
|
+
/**
|
6593
|
+
* optional string image_big = 3;
|
6594
|
+
* @return {string}
|
6595
|
+
*/
|
6596
|
+
proto.cms.UserBannerItem.prototype.getImageBig = function() {
|
6597
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6598
|
+
};
|
6599
|
+
|
6600
|
+
|
6601
|
+
/**
|
6602
|
+
* @param {string} value
|
6603
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6604
|
+
*/
|
6605
|
+
proto.cms.UserBannerItem.prototype.setImageBig = function(value) {
|
6606
|
+
return jspb.Message.setField(this, 3, value);
|
6607
|
+
};
|
6608
|
+
|
6609
|
+
|
6610
|
+
/**
|
6611
|
+
* Clears the field making it undefined.
|
6612
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6613
|
+
*/
|
6614
|
+
proto.cms.UserBannerItem.prototype.clearImageBig = function() {
|
6615
|
+
return jspb.Message.setField(this, 3, undefined);
|
6616
|
+
};
|
6617
|
+
|
6618
|
+
|
6619
|
+
/**
|
6620
|
+
* Returns whether this field is set.
|
6621
|
+
* @return {boolean}
|
6622
|
+
*/
|
6623
|
+
proto.cms.UserBannerItem.prototype.hasImageBig = function() {
|
6624
|
+
return jspb.Message.getField(this, 3) != null;
|
6625
|
+
};
|
6626
|
+
|
6627
|
+
|
6628
|
+
/**
|
6629
|
+
* optional string image_small = 4;
|
6630
|
+
* @return {string}
|
6631
|
+
*/
|
6632
|
+
proto.cms.UserBannerItem.prototype.getImageSmall = function() {
|
6633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
6634
|
+
};
|
6635
|
+
|
6636
|
+
|
6637
|
+
/**
|
6638
|
+
* @param {string} value
|
6639
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6640
|
+
*/
|
6641
|
+
proto.cms.UserBannerItem.prototype.setImageSmall = function(value) {
|
6642
|
+
return jspb.Message.setField(this, 4, value);
|
6643
|
+
};
|
6644
|
+
|
6645
|
+
|
6646
|
+
/**
|
6647
|
+
* Clears the field making it undefined.
|
6648
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6649
|
+
*/
|
6650
|
+
proto.cms.UserBannerItem.prototype.clearImageSmall = function() {
|
6651
|
+
return jspb.Message.setField(this, 4, undefined);
|
6652
|
+
};
|
6653
|
+
|
6654
|
+
|
6655
|
+
/**
|
6656
|
+
* Returns whether this field is set.
|
6657
|
+
* @return {boolean}
|
6658
|
+
*/
|
6659
|
+
proto.cms.UserBannerItem.prototype.hasImageSmall = function() {
|
6660
|
+
return jspb.Message.getField(this, 4) != null;
|
6661
|
+
};
|
6662
|
+
|
6663
|
+
|
6664
|
+
/**
|
6665
|
+
* optional string anchor = 5;
|
6666
|
+
* @return {string}
|
6667
|
+
*/
|
6668
|
+
proto.cms.UserBannerItem.prototype.getAnchor = function() {
|
6669
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
6670
|
+
};
|
6671
|
+
|
6672
|
+
|
6673
|
+
/**
|
6674
|
+
* @param {string} value
|
6675
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6676
|
+
*/
|
6677
|
+
proto.cms.UserBannerItem.prototype.setAnchor = function(value) {
|
6678
|
+
return jspb.Message.setField(this, 5, value);
|
6679
|
+
};
|
6680
|
+
|
6681
|
+
|
6682
|
+
/**
|
6683
|
+
* Clears the field making it undefined.
|
6684
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6685
|
+
*/
|
6686
|
+
proto.cms.UserBannerItem.prototype.clearAnchor = function() {
|
6687
|
+
return jspb.Message.setField(this, 5, undefined);
|
6688
|
+
};
|
6689
|
+
|
6690
|
+
|
6691
|
+
/**
|
6692
|
+
* Returns whether this field is set.
|
6693
|
+
* @return {boolean}
|
6694
|
+
*/
|
6695
|
+
proto.cms.UserBannerItem.prototype.hasAnchor = function() {
|
6696
|
+
return jspb.Message.getField(this, 5) != null;
|
6697
|
+
};
|
6698
|
+
|
6699
|
+
|
6700
|
+
/**
|
6701
|
+
* optional string cta_type = 6;
|
6702
|
+
* @return {string}
|
6703
|
+
*/
|
6704
|
+
proto.cms.UserBannerItem.prototype.getCtaType = function() {
|
6705
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
6706
|
+
};
|
6707
|
+
|
6708
|
+
|
6709
|
+
/**
|
6710
|
+
* @param {string} value
|
6711
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6712
|
+
*/
|
6713
|
+
proto.cms.UserBannerItem.prototype.setCtaType = function(value) {
|
6714
|
+
return jspb.Message.setField(this, 6, value);
|
6715
|
+
};
|
6716
|
+
|
6717
|
+
|
6718
|
+
/**
|
6719
|
+
* Clears the field making it undefined.
|
6720
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6721
|
+
*/
|
6722
|
+
proto.cms.UserBannerItem.prototype.clearCtaType = function() {
|
6723
|
+
return jspb.Message.setField(this, 6, undefined);
|
6724
|
+
};
|
6725
|
+
|
6726
|
+
|
6727
|
+
/**
|
6728
|
+
* Returns whether this field is set.
|
6729
|
+
* @return {boolean}
|
6730
|
+
*/
|
6731
|
+
proto.cms.UserBannerItem.prototype.hasCtaType = function() {
|
6732
|
+
return jspb.Message.getField(this, 6) != null;
|
6733
|
+
};
|
6734
|
+
|
6735
|
+
|
6736
|
+
/**
|
6737
|
+
* optional string cta_text = 7;
|
6738
|
+
* @return {string}
|
6739
|
+
*/
|
6740
|
+
proto.cms.UserBannerItem.prototype.getCtaText = function() {
|
6741
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6742
|
+
};
|
6743
|
+
|
6744
|
+
|
6745
|
+
/**
|
6746
|
+
* @param {string} value
|
6747
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6748
|
+
*/
|
6749
|
+
proto.cms.UserBannerItem.prototype.setCtaText = function(value) {
|
6750
|
+
return jspb.Message.setField(this, 7, value);
|
6751
|
+
};
|
6752
|
+
|
6753
|
+
|
6754
|
+
/**
|
6755
|
+
* Clears the field making it undefined.
|
6756
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6757
|
+
*/
|
6758
|
+
proto.cms.UserBannerItem.prototype.clearCtaText = function() {
|
6759
|
+
return jspb.Message.setField(this, 7, undefined);
|
6760
|
+
};
|
6761
|
+
|
6762
|
+
|
6763
|
+
/**
|
6764
|
+
* Returns whether this field is set.
|
6765
|
+
* @return {boolean}
|
6766
|
+
*/
|
6767
|
+
proto.cms.UserBannerItem.prototype.hasCtaText = function() {
|
6768
|
+
return jspb.Message.getField(this, 7) != null;
|
6769
|
+
};
|
6770
|
+
|
6771
|
+
|
6772
|
+
/**
|
6773
|
+
* optional string note = 8;
|
6774
|
+
* @return {string}
|
6775
|
+
*/
|
6776
|
+
proto.cms.UserBannerItem.prototype.getNote = function() {
|
6777
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6778
|
+
};
|
6779
|
+
|
6780
|
+
|
6781
|
+
/**
|
6782
|
+
* @param {string} value
|
6783
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6784
|
+
*/
|
6785
|
+
proto.cms.UserBannerItem.prototype.setNote = function(value) {
|
6786
|
+
return jspb.Message.setField(this, 8, value);
|
6787
|
+
};
|
6788
|
+
|
6789
|
+
|
6790
|
+
/**
|
6791
|
+
* Clears the field making it undefined.
|
6792
|
+
* @return {!proto.cms.UserBannerItem} returns this
|
6793
|
+
*/
|
6794
|
+
proto.cms.UserBannerItem.prototype.clearNote = function() {
|
6795
|
+
return jspb.Message.setField(this, 8, undefined);
|
6796
|
+
};
|
6797
|
+
|
6798
|
+
|
6799
|
+
/**
|
6800
|
+
* Returns whether this field is set.
|
6801
|
+
* @return {boolean}
|
6802
|
+
*/
|
6803
|
+
proto.cms.UserBannerItem.prototype.hasNote = function() {
|
6804
|
+
return jspb.Message.getField(this, 8) != null;
|
6805
|
+
};
|
6806
|
+
|
6807
|
+
|
6808
|
+
|
6809
|
+
/**
|
6810
|
+
* List of repeated fields within this message type.
|
6811
|
+
* @private {!Array<number>}
|
6812
|
+
* @const
|
6813
|
+
*/
|
6814
|
+
proto.cms.UserBannerGroupResponse.repeatedFields_ = [1];
|
6815
|
+
|
6816
|
+
|
6817
|
+
|
6818
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6819
|
+
/**
|
6820
|
+
* Creates an object representation of this proto.
|
6821
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6822
|
+
* Optional fields that are not set will be set to undefined.
|
6823
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6824
|
+
* For the list of reserved names please see:
|
6825
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6826
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6827
|
+
* JSPB instance for transitional soy proto support:
|
6828
|
+
* http://goto/soy-param-migration
|
6829
|
+
* @return {!Object}
|
6830
|
+
*/
|
6831
|
+
proto.cms.UserBannerGroupResponse.prototype.toObject = function(opt_includeInstance) {
|
6832
|
+
return proto.cms.UserBannerGroupResponse.toObject(opt_includeInstance, this);
|
6833
|
+
};
|
6834
|
+
|
6835
|
+
|
6836
|
+
/**
|
6837
|
+
* Static version of the {@see toObject} method.
|
6838
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6839
|
+
* the JSPB instance for transitional soy proto support:
|
6840
|
+
* http://goto/soy-param-migration
|
6841
|
+
* @param {!proto.cms.UserBannerGroupResponse} msg The msg instance to transform.
|
6842
|
+
* @return {!Object}
|
6843
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6844
|
+
*/
|
6845
|
+
proto.cms.UserBannerGroupResponse.toObject = function(includeInstance, msg) {
|
6846
|
+
var f, obj = {
|
6847
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6848
|
+
proto.cms.UserBannerItem.toObject, includeInstance)
|
6849
|
+
};
|
6850
|
+
|
6851
|
+
if (includeInstance) {
|
6852
|
+
obj.$jspbMessageInstance = msg;
|
6853
|
+
}
|
6854
|
+
return obj;
|
6855
|
+
};
|
6856
|
+
}
|
6857
|
+
|
6858
|
+
|
6859
|
+
/**
|
6860
|
+
* Deserializes binary data (in protobuf wire format).
|
6861
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6862
|
+
* @return {!proto.cms.UserBannerGroupResponse}
|
6863
|
+
*/
|
6864
|
+
proto.cms.UserBannerGroupResponse.deserializeBinary = function(bytes) {
|
6865
|
+
var reader = new jspb.BinaryReader(bytes);
|
6866
|
+
var msg = new proto.cms.UserBannerGroupResponse;
|
6867
|
+
return proto.cms.UserBannerGroupResponse.deserializeBinaryFromReader(msg, reader);
|
6868
|
+
};
|
6869
|
+
|
6870
|
+
|
6871
|
+
/**
|
6872
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6873
|
+
* given reader into the given message object.
|
6874
|
+
* @param {!proto.cms.UserBannerGroupResponse} msg The message object to deserialize into.
|
6875
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6876
|
+
* @return {!proto.cms.UserBannerGroupResponse}
|
6877
|
+
*/
|
6878
|
+
proto.cms.UserBannerGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6879
|
+
while (reader.nextField()) {
|
6880
|
+
if (reader.isEndGroup()) {
|
6881
|
+
break;
|
6882
|
+
}
|
6883
|
+
var field = reader.getFieldNumber();
|
6884
|
+
switch (field) {
|
6885
|
+
case 1:
|
6886
|
+
var value = new proto.cms.UserBannerItem;
|
6887
|
+
reader.readMessage(value,proto.cms.UserBannerItem.deserializeBinaryFromReader);
|
6888
|
+
msg.addItems(value);
|
6889
|
+
break;
|
6890
|
+
default:
|
6891
|
+
reader.skipField();
|
6892
|
+
break;
|
6893
|
+
}
|
6894
|
+
}
|
6895
|
+
return msg;
|
6896
|
+
};
|
6897
|
+
|
6898
|
+
|
6899
|
+
/**
|
6900
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6901
|
+
* @return {!Uint8Array}
|
6902
|
+
*/
|
6903
|
+
proto.cms.UserBannerGroupResponse.prototype.serializeBinary = function() {
|
6904
|
+
var writer = new jspb.BinaryWriter();
|
6905
|
+
proto.cms.UserBannerGroupResponse.serializeBinaryToWriter(this, writer);
|
6906
|
+
return writer.getResultBuffer();
|
6907
|
+
};
|
6908
|
+
|
6909
|
+
|
6910
|
+
/**
|
6911
|
+
* Serializes the given message to binary data (in protobuf wire
|
6912
|
+
* format), writing to the given BinaryWriter.
|
6913
|
+
* @param {!proto.cms.UserBannerGroupResponse} message
|
6914
|
+
* @param {!jspb.BinaryWriter} writer
|
6915
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6916
|
+
*/
|
6917
|
+
proto.cms.UserBannerGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
6918
|
+
var f = undefined;
|
6919
|
+
f = message.getItemsList();
|
6920
|
+
if (f.length > 0) {
|
6921
|
+
writer.writeRepeatedMessage(
|
6922
|
+
1,
|
6923
|
+
f,
|
6924
|
+
proto.cms.UserBannerItem.serializeBinaryToWriter
|
6925
|
+
);
|
6926
|
+
}
|
6927
|
+
};
|
6928
|
+
|
6929
|
+
|
6930
|
+
/**
|
6931
|
+
* repeated UserBannerItem items = 1;
|
6932
|
+
* @return {!Array<!proto.cms.UserBannerItem>}
|
6933
|
+
*/
|
6934
|
+
proto.cms.UserBannerGroupResponse.prototype.getItemsList = function() {
|
6935
|
+
return /** @type{!Array<!proto.cms.UserBannerItem>} */ (
|
6936
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.UserBannerItem, 1));
|
6937
|
+
};
|
6938
|
+
|
6939
|
+
|
6940
|
+
/**
|
6941
|
+
* @param {!Array<!proto.cms.UserBannerItem>} value
|
6942
|
+
* @return {!proto.cms.UserBannerGroupResponse} returns this
|
6943
|
+
*/
|
6944
|
+
proto.cms.UserBannerGroupResponse.prototype.setItemsList = function(value) {
|
6945
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6946
|
+
};
|
6947
|
+
|
6948
|
+
|
6949
|
+
/**
|
6950
|
+
* @param {!proto.cms.UserBannerItem=} opt_value
|
6951
|
+
* @param {number=} opt_index
|
6952
|
+
* @return {!proto.cms.UserBannerItem}
|
6953
|
+
*/
|
6954
|
+
proto.cms.UserBannerGroupResponse.prototype.addItems = function(opt_value, opt_index) {
|
6955
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.UserBannerItem, opt_index);
|
6956
|
+
};
|
6957
|
+
|
6958
|
+
|
6959
|
+
/**
|
6960
|
+
* Clears the list making it empty but non-null.
|
6961
|
+
* @return {!proto.cms.UserBannerGroupResponse} returns this
|
6962
|
+
*/
|
6963
|
+
proto.cms.UserBannerGroupResponse.prototype.clearItemsList = function() {
|
6964
|
+
return this.setItemsList([]);
|
6965
|
+
};
|
6966
|
+
|
6967
|
+
|
6232
6968
|
goog.object.extend(exports, proto.cms);
|