protobuf-platform 1.0.194 → 1.0.196
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 +16 -3
- package/cms/cms_grpc_pb.js +73 -28
- package/cms/cms_pb.js +505 -6
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -12,13 +12,17 @@ service CMS {
|
|
12
12
|
rpc setBurgerMenuWidget(CommonWidgetRequest) returns (BurgerMenuWidgetItem);
|
13
13
|
rpc getBurgerMenuWidget(GetBurgerMenuWidgetRequest) returns (BurgerMenuWidgetItem);
|
14
14
|
//Banners
|
15
|
-
rpc createBannerGroup(BannerGroupRequest) returns (BannerGroupItem);
|
16
|
-
rpc readBannerGroup(GetBannerGroupRequest) returns (BannerGroupItem);
|
17
15
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
18
16
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
19
17
|
rpc updateSingleBanner(stream BannerRequest) returns (BannerResponse);
|
20
18
|
rpc deleteSingleBanner(GetBannerRequest) returns (BannerStatusResponse);
|
21
19
|
rpc readListBanners(PaginationRequest) returns (BannerItemsResponse);
|
20
|
+
//Banners Group
|
21
|
+
rpc createBannerGroup(BannerGroupRequest) returns (BannerGroupResponse);
|
22
|
+
rpc readBannerGroup(GetBannerGroupRequest) returns (BannerGroupResponse);
|
23
|
+
rpc updateBannerGroup(BannerGroupRequest) returns (BannerGroupResponse);
|
24
|
+
rpc deleteBannerGroup(GetBannerGroupRequest) returns (BannerStatusResponse);
|
25
|
+
rpc readListBannersGroup(PaginationRequest) returns (BannerGroupItemsResponse);
|
22
26
|
}
|
23
27
|
|
24
28
|
message PingRequest { string ping = 1; }
|
@@ -82,7 +86,8 @@ message BannerItem {
|
|
82
86
|
optional string image_big = 4;
|
83
87
|
optional string image_small = 5;
|
84
88
|
optional string anchor = 6;
|
85
|
-
|
89
|
+
optional string cta_type = 7;
|
90
|
+
repeated BannerTexts texts = 8;
|
86
91
|
}
|
87
92
|
message BannerTexts {
|
88
93
|
string locale = 1;
|
@@ -122,4 +127,12 @@ message BannerGroupItem {
|
|
122
127
|
message GetBannerGroupRequest {
|
123
128
|
int32 id = 1;
|
124
129
|
optional bool admin_side = 2;
|
130
|
+
}
|
131
|
+
message BannerGroupResponse {
|
132
|
+
BannerGroupItem data = 1;
|
133
|
+
}
|
134
|
+
message BannerGroupItemsResponse {
|
135
|
+
repeated BannerGroupItem items = 1;
|
136
|
+
optional int32 total_pages = 2;
|
137
|
+
optional int32 total_items = 3;
|
125
138
|
}
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var cms_pb = require('./cms_pb.js');
|
6
6
|
|
7
|
-
function
|
8
|
-
if (!(arg instanceof cms_pb.
|
9
|
-
throw new Error('Expected argument of type cms.
|
7
|
+
function serialize_cms_BannerGroupItemsResponse(arg) {
|
8
|
+
if (!(arg instanceof cms_pb.BannerGroupItemsResponse)) {
|
9
|
+
throw new Error('Expected argument of type cms.BannerGroupItemsResponse');
|
10
10
|
}
|
11
11
|
return Buffer.from(arg.serializeBinary());
|
12
12
|
}
|
13
13
|
|
14
|
-
function
|
15
|
-
return cms_pb.
|
14
|
+
function deserialize_cms_BannerGroupItemsResponse(buffer_arg) {
|
15
|
+
return cms_pb.BannerGroupItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
16
|
}
|
17
17
|
|
18
18
|
function serialize_cms_BannerGroupRequest(arg) {
|
@@ -26,6 +26,17 @@ function deserialize_cms_BannerGroupRequest(buffer_arg) {
|
|
26
26
|
return cms_pb.BannerGroupRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
27
|
}
|
28
28
|
|
29
|
+
function serialize_cms_BannerGroupResponse(arg) {
|
30
|
+
if (!(arg instanceof cms_pb.BannerGroupResponse)) {
|
31
|
+
throw new Error('Expected argument of type cms.BannerGroupResponse');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_cms_BannerGroupResponse(buffer_arg) {
|
37
|
+
return cms_pb.BannerGroupResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
29
40
|
function serialize_cms_BannerItemsResponse(arg) {
|
30
41
|
if (!(arg instanceof cms_pb.BannerItemsResponse)) {
|
31
42
|
throw new Error('Expected argument of type cms.BannerItemsResponse');
|
@@ -294,29 +305,7 @@ setMainPageWidget: {
|
|
294
305
|
responseDeserialize: deserialize_cms_BurgerMenuWidgetItem,
|
295
306
|
},
|
296
307
|
// Banners
|
297
|
-
|
298
|
-
path: '/cms.CMS/createBannerGroup',
|
299
|
-
requestStream: false,
|
300
|
-
responseStream: false,
|
301
|
-
requestType: cms_pb.BannerGroupRequest,
|
302
|
-
responseType: cms_pb.BannerGroupItem,
|
303
|
-
requestSerialize: serialize_cms_BannerGroupRequest,
|
304
|
-
requestDeserialize: deserialize_cms_BannerGroupRequest,
|
305
|
-
responseSerialize: serialize_cms_BannerGroupItem,
|
306
|
-
responseDeserialize: deserialize_cms_BannerGroupItem,
|
307
|
-
},
|
308
|
-
readBannerGroup: {
|
309
|
-
path: '/cms.CMS/readBannerGroup',
|
310
|
-
requestStream: false,
|
311
|
-
responseStream: false,
|
312
|
-
requestType: cms_pb.GetBannerGroupRequest,
|
313
|
-
responseType: cms_pb.BannerGroupItem,
|
314
|
-
requestSerialize: serialize_cms_GetBannerGroupRequest,
|
315
|
-
requestDeserialize: deserialize_cms_GetBannerGroupRequest,
|
316
|
-
responseSerialize: serialize_cms_BannerGroupItem,
|
317
|
-
responseDeserialize: deserialize_cms_BannerGroupItem,
|
318
|
-
},
|
319
|
-
createSingleBanner: {
|
308
|
+
createSingleBanner: {
|
320
309
|
path: '/cms.CMS/createSingleBanner',
|
321
310
|
requestStream: true,
|
322
311
|
responseStream: false,
|
@@ -371,6 +360,62 @@ createBannerGroup: {
|
|
371
360
|
responseSerialize: serialize_cms_BannerItemsResponse,
|
372
361
|
responseDeserialize: deserialize_cms_BannerItemsResponse,
|
373
362
|
},
|
363
|
+
// Banners Group
|
364
|
+
createBannerGroup: {
|
365
|
+
path: '/cms.CMS/createBannerGroup',
|
366
|
+
requestStream: false,
|
367
|
+
responseStream: false,
|
368
|
+
requestType: cms_pb.BannerGroupRequest,
|
369
|
+
responseType: cms_pb.BannerGroupResponse,
|
370
|
+
requestSerialize: serialize_cms_BannerGroupRequest,
|
371
|
+
requestDeserialize: deserialize_cms_BannerGroupRequest,
|
372
|
+
responseSerialize: serialize_cms_BannerGroupResponse,
|
373
|
+
responseDeserialize: deserialize_cms_BannerGroupResponse,
|
374
|
+
},
|
375
|
+
readBannerGroup: {
|
376
|
+
path: '/cms.CMS/readBannerGroup',
|
377
|
+
requestStream: false,
|
378
|
+
responseStream: false,
|
379
|
+
requestType: cms_pb.GetBannerGroupRequest,
|
380
|
+
responseType: cms_pb.BannerGroupResponse,
|
381
|
+
requestSerialize: serialize_cms_GetBannerGroupRequest,
|
382
|
+
requestDeserialize: deserialize_cms_GetBannerGroupRequest,
|
383
|
+
responseSerialize: serialize_cms_BannerGroupResponse,
|
384
|
+
responseDeserialize: deserialize_cms_BannerGroupResponse,
|
385
|
+
},
|
386
|
+
updateBannerGroup: {
|
387
|
+
path: '/cms.CMS/updateBannerGroup',
|
388
|
+
requestStream: false,
|
389
|
+
responseStream: false,
|
390
|
+
requestType: cms_pb.BannerGroupRequest,
|
391
|
+
responseType: cms_pb.BannerGroupResponse,
|
392
|
+
requestSerialize: serialize_cms_BannerGroupRequest,
|
393
|
+
requestDeserialize: deserialize_cms_BannerGroupRequest,
|
394
|
+
responseSerialize: serialize_cms_BannerGroupResponse,
|
395
|
+
responseDeserialize: deserialize_cms_BannerGroupResponse,
|
396
|
+
},
|
397
|
+
deleteBannerGroup: {
|
398
|
+
path: '/cms.CMS/deleteBannerGroup',
|
399
|
+
requestStream: false,
|
400
|
+
responseStream: false,
|
401
|
+
requestType: cms_pb.GetBannerGroupRequest,
|
402
|
+
responseType: cms_pb.BannerStatusResponse,
|
403
|
+
requestSerialize: serialize_cms_GetBannerGroupRequest,
|
404
|
+
requestDeserialize: deserialize_cms_GetBannerGroupRequest,
|
405
|
+
responseSerialize: serialize_cms_BannerStatusResponse,
|
406
|
+
responseDeserialize: deserialize_cms_BannerStatusResponse,
|
407
|
+
},
|
408
|
+
readListBannersGroup: {
|
409
|
+
path: '/cms.CMS/readListBannersGroup',
|
410
|
+
requestStream: false,
|
411
|
+
responseStream: false,
|
412
|
+
requestType: cms_pb.PaginationRequest,
|
413
|
+
responseType: cms_pb.BannerGroupItemsResponse,
|
414
|
+
requestSerialize: serialize_cms_PaginationRequest,
|
415
|
+
requestDeserialize: deserialize_cms_PaginationRequest,
|
416
|
+
responseSerialize: serialize_cms_BannerGroupItemsResponse,
|
417
|
+
responseDeserialize: deserialize_cms_BannerGroupItemsResponse,
|
418
|
+
},
|
374
419
|
};
|
375
420
|
|
376
421
|
exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
|
package/cms/cms_pb.js
CHANGED
@@ -22,7 +22,9 @@ var global = (function() {
|
|
22
22
|
}.call(null));
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.cms.BannerGroupItem', null, global);
|
25
|
+
goog.exportSymbol('proto.cms.BannerGroupItemsResponse', null, global);
|
25
26
|
goog.exportSymbol('proto.cms.BannerGroupRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.cms.BannerGroupResponse', null, global);
|
26
28
|
goog.exportSymbol('proto.cms.BannerItem', null, global);
|
27
29
|
goog.exportSymbol('proto.cms.BannerItemRequest', null, global);
|
28
30
|
goog.exportSymbol('proto.cms.BannerItemsResponse', null, global);
|
@@ -506,6 +508,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
506
508
|
*/
|
507
509
|
proto.cms.GetBannerGroupRequest.displayName = 'proto.cms.GetBannerGroupRequest';
|
508
510
|
}
|
511
|
+
/**
|
512
|
+
* Generated by JsPbCodeGenerator.
|
513
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
514
|
+
* server response, or constructed directly in Javascript. The array is used
|
515
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
516
|
+
* If no data is provided, the constructed object will be empty, but still
|
517
|
+
* valid.
|
518
|
+
* @extends {jspb.Message}
|
519
|
+
* @constructor
|
520
|
+
*/
|
521
|
+
proto.cms.BannerGroupResponse = function(opt_data) {
|
522
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
523
|
+
};
|
524
|
+
goog.inherits(proto.cms.BannerGroupResponse, jspb.Message);
|
525
|
+
if (goog.DEBUG && !COMPILED) {
|
526
|
+
/**
|
527
|
+
* @public
|
528
|
+
* @override
|
529
|
+
*/
|
530
|
+
proto.cms.BannerGroupResponse.displayName = 'proto.cms.BannerGroupResponse';
|
531
|
+
}
|
532
|
+
/**
|
533
|
+
* Generated by JsPbCodeGenerator.
|
534
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
535
|
+
* server response, or constructed directly in Javascript. The array is used
|
536
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
537
|
+
* If no data is provided, the constructed object will be empty, but still
|
538
|
+
* valid.
|
539
|
+
* @extends {jspb.Message}
|
540
|
+
* @constructor
|
541
|
+
*/
|
542
|
+
proto.cms.BannerGroupItemsResponse = function(opt_data) {
|
543
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupItemsResponse.repeatedFields_, null);
|
544
|
+
};
|
545
|
+
goog.inherits(proto.cms.BannerGroupItemsResponse, jspb.Message);
|
546
|
+
if (goog.DEBUG && !COMPILED) {
|
547
|
+
/**
|
548
|
+
* @public
|
549
|
+
* @override
|
550
|
+
*/
|
551
|
+
proto.cms.BannerGroupItemsResponse.displayName = 'proto.cms.BannerGroupItemsResponse';
|
552
|
+
}
|
509
553
|
|
510
554
|
|
511
555
|
|
@@ -3276,7 +3320,7 @@ proto.cms.BannerItemRequest.prototype.clearTextsList = function() {
|
|
3276
3320
|
* @private {!Array<number>}
|
3277
3321
|
* @const
|
3278
3322
|
*/
|
3279
|
-
proto.cms.BannerItem.repeatedFields_ = [
|
3323
|
+
proto.cms.BannerItem.repeatedFields_ = [8];
|
3280
3324
|
|
3281
3325
|
|
3282
3326
|
|
@@ -3315,6 +3359,7 @@ proto.cms.BannerItem.toObject = function(includeInstance, msg) {
|
|
3315
3359
|
imageBig: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3316
3360
|
imageSmall: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3317
3361
|
anchor: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3362
|
+
ctaType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
3318
3363
|
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
3319
3364
|
proto.cms.BannerTexts.toObject, includeInstance)
|
3320
3365
|
};
|
@@ -3378,6 +3423,10 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3378
3423
|
msg.setAnchor(value);
|
3379
3424
|
break;
|
3380
3425
|
case 7:
|
3426
|
+
var value = /** @type {string} */ (reader.readString());
|
3427
|
+
msg.setCtaType(value);
|
3428
|
+
break;
|
3429
|
+
case 8:
|
3381
3430
|
var value = new proto.cms.BannerTexts;
|
3382
3431
|
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
3383
3432
|
msg.addTexts(value);
|
@@ -3453,10 +3502,17 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3453
3502
|
f
|
3454
3503
|
);
|
3455
3504
|
}
|
3505
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
3506
|
+
if (f != null) {
|
3507
|
+
writer.writeString(
|
3508
|
+
7,
|
3509
|
+
f
|
3510
|
+
);
|
3511
|
+
}
|
3456
3512
|
f = message.getTextsList();
|
3457
3513
|
if (f.length > 0) {
|
3458
3514
|
writer.writeRepeatedMessage(
|
3459
|
-
|
3515
|
+
8,
|
3460
3516
|
f,
|
3461
3517
|
proto.cms.BannerTexts.serializeBinaryToWriter
|
3462
3518
|
);
|
@@ -3681,12 +3737,48 @@ proto.cms.BannerItem.prototype.hasAnchor = function() {
|
|
3681
3737
|
|
3682
3738
|
|
3683
3739
|
/**
|
3684
|
-
*
|
3740
|
+
* optional string cta_type = 7;
|
3741
|
+
* @return {string}
|
3742
|
+
*/
|
3743
|
+
proto.cms.BannerItem.prototype.getCtaType = function() {
|
3744
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
3745
|
+
};
|
3746
|
+
|
3747
|
+
|
3748
|
+
/**
|
3749
|
+
* @param {string} value
|
3750
|
+
* @return {!proto.cms.BannerItem} returns this
|
3751
|
+
*/
|
3752
|
+
proto.cms.BannerItem.prototype.setCtaType = function(value) {
|
3753
|
+
return jspb.Message.setField(this, 7, value);
|
3754
|
+
};
|
3755
|
+
|
3756
|
+
|
3757
|
+
/**
|
3758
|
+
* Clears the field making it undefined.
|
3759
|
+
* @return {!proto.cms.BannerItem} returns this
|
3760
|
+
*/
|
3761
|
+
proto.cms.BannerItem.prototype.clearCtaType = function() {
|
3762
|
+
return jspb.Message.setField(this, 7, undefined);
|
3763
|
+
};
|
3764
|
+
|
3765
|
+
|
3766
|
+
/**
|
3767
|
+
* Returns whether this field is set.
|
3768
|
+
* @return {boolean}
|
3769
|
+
*/
|
3770
|
+
proto.cms.BannerItem.prototype.hasCtaType = function() {
|
3771
|
+
return jspb.Message.getField(this, 7) != null;
|
3772
|
+
};
|
3773
|
+
|
3774
|
+
|
3775
|
+
/**
|
3776
|
+
* repeated BannerTexts texts = 8;
|
3685
3777
|
* @return {!Array<!proto.cms.BannerTexts>}
|
3686
3778
|
*/
|
3687
3779
|
proto.cms.BannerItem.prototype.getTextsList = function() {
|
3688
3780
|
return /** @type{!Array<!proto.cms.BannerTexts>} */ (
|
3689
|
-
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts,
|
3781
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 8));
|
3690
3782
|
};
|
3691
3783
|
|
3692
3784
|
|
@@ -3695,7 +3787,7 @@ proto.cms.BannerItem.prototype.getTextsList = function() {
|
|
3695
3787
|
* @return {!proto.cms.BannerItem} returns this
|
3696
3788
|
*/
|
3697
3789
|
proto.cms.BannerItem.prototype.setTextsList = function(value) {
|
3698
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
3790
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
3699
3791
|
};
|
3700
3792
|
|
3701
3793
|
|
@@ -3705,7 +3797,7 @@ proto.cms.BannerItem.prototype.setTextsList = function(value) {
|
|
3705
3797
|
* @return {!proto.cms.BannerTexts}
|
3706
3798
|
*/
|
3707
3799
|
proto.cms.BannerItem.prototype.addTexts = function(opt_value, opt_index) {
|
3708
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
3800
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.cms.BannerTexts, opt_index);
|
3709
3801
|
};
|
3710
3802
|
|
3711
3803
|
|
@@ -5586,4 +5678,411 @@ proto.cms.GetBannerGroupRequest.prototype.hasAdminSide = function() {
|
|
5586
5678
|
};
|
5587
5679
|
|
5588
5680
|
|
5681
|
+
|
5682
|
+
|
5683
|
+
|
5684
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5685
|
+
/**
|
5686
|
+
* Creates an object representation of this proto.
|
5687
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5688
|
+
* Optional fields that are not set will be set to undefined.
|
5689
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5690
|
+
* For the list of reserved names please see:
|
5691
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5692
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5693
|
+
* JSPB instance for transitional soy proto support:
|
5694
|
+
* http://goto/soy-param-migration
|
5695
|
+
* @return {!Object}
|
5696
|
+
*/
|
5697
|
+
proto.cms.BannerGroupResponse.prototype.toObject = function(opt_includeInstance) {
|
5698
|
+
return proto.cms.BannerGroupResponse.toObject(opt_includeInstance, this);
|
5699
|
+
};
|
5700
|
+
|
5701
|
+
|
5702
|
+
/**
|
5703
|
+
* Static version of the {@see toObject} method.
|
5704
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5705
|
+
* the JSPB instance for transitional soy proto support:
|
5706
|
+
* http://goto/soy-param-migration
|
5707
|
+
* @param {!proto.cms.BannerGroupResponse} msg The msg instance to transform.
|
5708
|
+
* @return {!Object}
|
5709
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5710
|
+
*/
|
5711
|
+
proto.cms.BannerGroupResponse.toObject = function(includeInstance, msg) {
|
5712
|
+
var f, obj = {
|
5713
|
+
data: (f = msg.getData()) && proto.cms.BannerGroupItem.toObject(includeInstance, f)
|
5714
|
+
};
|
5715
|
+
|
5716
|
+
if (includeInstance) {
|
5717
|
+
obj.$jspbMessageInstance = msg;
|
5718
|
+
}
|
5719
|
+
return obj;
|
5720
|
+
};
|
5721
|
+
}
|
5722
|
+
|
5723
|
+
|
5724
|
+
/**
|
5725
|
+
* Deserializes binary data (in protobuf wire format).
|
5726
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5727
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5728
|
+
*/
|
5729
|
+
proto.cms.BannerGroupResponse.deserializeBinary = function(bytes) {
|
5730
|
+
var reader = new jspb.BinaryReader(bytes);
|
5731
|
+
var msg = new proto.cms.BannerGroupResponse;
|
5732
|
+
return proto.cms.BannerGroupResponse.deserializeBinaryFromReader(msg, reader);
|
5733
|
+
};
|
5734
|
+
|
5735
|
+
|
5736
|
+
/**
|
5737
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5738
|
+
* given reader into the given message object.
|
5739
|
+
* @param {!proto.cms.BannerGroupResponse} msg The message object to deserialize into.
|
5740
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5741
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5742
|
+
*/
|
5743
|
+
proto.cms.BannerGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5744
|
+
while (reader.nextField()) {
|
5745
|
+
if (reader.isEndGroup()) {
|
5746
|
+
break;
|
5747
|
+
}
|
5748
|
+
var field = reader.getFieldNumber();
|
5749
|
+
switch (field) {
|
5750
|
+
case 1:
|
5751
|
+
var value = new proto.cms.BannerGroupItem;
|
5752
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5753
|
+
msg.setData(value);
|
5754
|
+
break;
|
5755
|
+
default:
|
5756
|
+
reader.skipField();
|
5757
|
+
break;
|
5758
|
+
}
|
5759
|
+
}
|
5760
|
+
return msg;
|
5761
|
+
};
|
5762
|
+
|
5763
|
+
|
5764
|
+
/**
|
5765
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5766
|
+
* @return {!Uint8Array}
|
5767
|
+
*/
|
5768
|
+
proto.cms.BannerGroupResponse.prototype.serializeBinary = function() {
|
5769
|
+
var writer = new jspb.BinaryWriter();
|
5770
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter(this, writer);
|
5771
|
+
return writer.getResultBuffer();
|
5772
|
+
};
|
5773
|
+
|
5774
|
+
|
5775
|
+
/**
|
5776
|
+
* Serializes the given message to binary data (in protobuf wire
|
5777
|
+
* format), writing to the given BinaryWriter.
|
5778
|
+
* @param {!proto.cms.BannerGroupResponse} message
|
5779
|
+
* @param {!jspb.BinaryWriter} writer
|
5780
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5781
|
+
*/
|
5782
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
5783
|
+
var f = undefined;
|
5784
|
+
f = message.getData();
|
5785
|
+
if (f != null) {
|
5786
|
+
writer.writeMessage(
|
5787
|
+
1,
|
5788
|
+
f,
|
5789
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5790
|
+
);
|
5791
|
+
}
|
5792
|
+
};
|
5793
|
+
|
5794
|
+
|
5795
|
+
/**
|
5796
|
+
* optional BannerGroupItem data = 1;
|
5797
|
+
* @return {?proto.cms.BannerGroupItem}
|
5798
|
+
*/
|
5799
|
+
proto.cms.BannerGroupResponse.prototype.getData = function() {
|
5800
|
+
return /** @type{?proto.cms.BannerGroupItem} */ (
|
5801
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5802
|
+
};
|
5803
|
+
|
5804
|
+
|
5805
|
+
/**
|
5806
|
+
* @param {?proto.cms.BannerGroupItem|undefined} value
|
5807
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5808
|
+
*/
|
5809
|
+
proto.cms.BannerGroupResponse.prototype.setData = function(value) {
|
5810
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
5811
|
+
};
|
5812
|
+
|
5813
|
+
|
5814
|
+
/**
|
5815
|
+
* Clears the message field making it undefined.
|
5816
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5817
|
+
*/
|
5818
|
+
proto.cms.BannerGroupResponse.prototype.clearData = function() {
|
5819
|
+
return this.setData(undefined);
|
5820
|
+
};
|
5821
|
+
|
5822
|
+
|
5823
|
+
/**
|
5824
|
+
* Returns whether this field is set.
|
5825
|
+
* @return {boolean}
|
5826
|
+
*/
|
5827
|
+
proto.cms.BannerGroupResponse.prototype.hasData = function() {
|
5828
|
+
return jspb.Message.getField(this, 1) != null;
|
5829
|
+
};
|
5830
|
+
|
5831
|
+
|
5832
|
+
|
5833
|
+
/**
|
5834
|
+
* List of repeated fields within this message type.
|
5835
|
+
* @private {!Array<number>}
|
5836
|
+
* @const
|
5837
|
+
*/
|
5838
|
+
proto.cms.BannerGroupItemsResponse.repeatedFields_ = [1];
|
5839
|
+
|
5840
|
+
|
5841
|
+
|
5842
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5843
|
+
/**
|
5844
|
+
* Creates an object representation of this proto.
|
5845
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5846
|
+
* Optional fields that are not set will be set to undefined.
|
5847
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5848
|
+
* For the list of reserved names please see:
|
5849
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5850
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5851
|
+
* JSPB instance for transitional soy proto support:
|
5852
|
+
* http://goto/soy-param-migration
|
5853
|
+
* @return {!Object}
|
5854
|
+
*/
|
5855
|
+
proto.cms.BannerGroupItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
5856
|
+
return proto.cms.BannerGroupItemsResponse.toObject(opt_includeInstance, this);
|
5857
|
+
};
|
5858
|
+
|
5859
|
+
|
5860
|
+
/**
|
5861
|
+
* Static version of the {@see toObject} method.
|
5862
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5863
|
+
* the JSPB instance for transitional soy proto support:
|
5864
|
+
* http://goto/soy-param-migration
|
5865
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The msg instance to transform.
|
5866
|
+
* @return {!Object}
|
5867
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5868
|
+
*/
|
5869
|
+
proto.cms.BannerGroupItemsResponse.toObject = function(includeInstance, msg) {
|
5870
|
+
var f, obj = {
|
5871
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5872
|
+
proto.cms.BannerGroupItem.toObject, includeInstance),
|
5873
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5874
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
5875
|
+
};
|
5876
|
+
|
5877
|
+
if (includeInstance) {
|
5878
|
+
obj.$jspbMessageInstance = msg;
|
5879
|
+
}
|
5880
|
+
return obj;
|
5881
|
+
};
|
5882
|
+
}
|
5883
|
+
|
5884
|
+
|
5885
|
+
/**
|
5886
|
+
* Deserializes binary data (in protobuf wire format).
|
5887
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5888
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5889
|
+
*/
|
5890
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinary = function(bytes) {
|
5891
|
+
var reader = new jspb.BinaryReader(bytes);
|
5892
|
+
var msg = new proto.cms.BannerGroupItemsResponse;
|
5893
|
+
return proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader(msg, reader);
|
5894
|
+
};
|
5895
|
+
|
5896
|
+
|
5897
|
+
/**
|
5898
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5899
|
+
* given reader into the given message object.
|
5900
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The message object to deserialize into.
|
5901
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5902
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5903
|
+
*/
|
5904
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5905
|
+
while (reader.nextField()) {
|
5906
|
+
if (reader.isEndGroup()) {
|
5907
|
+
break;
|
5908
|
+
}
|
5909
|
+
var field = reader.getFieldNumber();
|
5910
|
+
switch (field) {
|
5911
|
+
case 1:
|
5912
|
+
var value = new proto.cms.BannerGroupItem;
|
5913
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5914
|
+
msg.addItems(value);
|
5915
|
+
break;
|
5916
|
+
case 2:
|
5917
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5918
|
+
msg.setTotalPages(value);
|
5919
|
+
break;
|
5920
|
+
case 3:
|
5921
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5922
|
+
msg.setTotalItems(value);
|
5923
|
+
break;
|
5924
|
+
default:
|
5925
|
+
reader.skipField();
|
5926
|
+
break;
|
5927
|
+
}
|
5928
|
+
}
|
5929
|
+
return msg;
|
5930
|
+
};
|
5931
|
+
|
5932
|
+
|
5933
|
+
/**
|
5934
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5935
|
+
* @return {!Uint8Array}
|
5936
|
+
*/
|
5937
|
+
proto.cms.BannerGroupItemsResponse.prototype.serializeBinary = function() {
|
5938
|
+
var writer = new jspb.BinaryWriter();
|
5939
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter(this, writer);
|
5940
|
+
return writer.getResultBuffer();
|
5941
|
+
};
|
5942
|
+
|
5943
|
+
|
5944
|
+
/**
|
5945
|
+
* Serializes the given message to binary data (in protobuf wire
|
5946
|
+
* format), writing to the given BinaryWriter.
|
5947
|
+
* @param {!proto.cms.BannerGroupItemsResponse} message
|
5948
|
+
* @param {!jspb.BinaryWriter} writer
|
5949
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5950
|
+
*/
|
5951
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
5952
|
+
var f = undefined;
|
5953
|
+
f = message.getItemsList();
|
5954
|
+
if (f.length > 0) {
|
5955
|
+
writer.writeRepeatedMessage(
|
5956
|
+
1,
|
5957
|
+
f,
|
5958
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5959
|
+
);
|
5960
|
+
}
|
5961
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5962
|
+
if (f != null) {
|
5963
|
+
writer.writeInt32(
|
5964
|
+
2,
|
5965
|
+
f
|
5966
|
+
);
|
5967
|
+
}
|
5968
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5969
|
+
if (f != null) {
|
5970
|
+
writer.writeInt32(
|
5971
|
+
3,
|
5972
|
+
f
|
5973
|
+
);
|
5974
|
+
}
|
5975
|
+
};
|
5976
|
+
|
5977
|
+
|
5978
|
+
/**
|
5979
|
+
* repeated BannerGroupItem items = 1;
|
5980
|
+
* @return {!Array<!proto.cms.BannerGroupItem>}
|
5981
|
+
*/
|
5982
|
+
proto.cms.BannerGroupItemsResponse.prototype.getItemsList = function() {
|
5983
|
+
return /** @type{!Array<!proto.cms.BannerGroupItem>} */ (
|
5984
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5985
|
+
};
|
5986
|
+
|
5987
|
+
|
5988
|
+
/**
|
5989
|
+
* @param {!Array<!proto.cms.BannerGroupItem>} value
|
5990
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5991
|
+
*/
|
5992
|
+
proto.cms.BannerGroupItemsResponse.prototype.setItemsList = function(value) {
|
5993
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
5994
|
+
};
|
5995
|
+
|
5996
|
+
|
5997
|
+
/**
|
5998
|
+
* @param {!proto.cms.BannerGroupItem=} opt_value
|
5999
|
+
* @param {number=} opt_index
|
6000
|
+
* @return {!proto.cms.BannerGroupItem}
|
6001
|
+
*/
|
6002
|
+
proto.cms.BannerGroupItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
6003
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerGroupItem, opt_index);
|
6004
|
+
};
|
6005
|
+
|
6006
|
+
|
6007
|
+
/**
|
6008
|
+
* Clears the list making it empty but non-null.
|
6009
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6010
|
+
*/
|
6011
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearItemsList = function() {
|
6012
|
+
return this.setItemsList([]);
|
6013
|
+
};
|
6014
|
+
|
6015
|
+
|
6016
|
+
/**
|
6017
|
+
* optional int32 total_pages = 2;
|
6018
|
+
* @return {number}
|
6019
|
+
*/
|
6020
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalPages = function() {
|
6021
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6022
|
+
};
|
6023
|
+
|
6024
|
+
|
6025
|
+
/**
|
6026
|
+
* @param {number} value
|
6027
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6028
|
+
*/
|
6029
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalPages = function(value) {
|
6030
|
+
return jspb.Message.setField(this, 2, value);
|
6031
|
+
};
|
6032
|
+
|
6033
|
+
|
6034
|
+
/**
|
6035
|
+
* Clears the field making it undefined.
|
6036
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6037
|
+
*/
|
6038
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalPages = function() {
|
6039
|
+
return jspb.Message.setField(this, 2, undefined);
|
6040
|
+
};
|
6041
|
+
|
6042
|
+
|
6043
|
+
/**
|
6044
|
+
* Returns whether this field is set.
|
6045
|
+
* @return {boolean}
|
6046
|
+
*/
|
6047
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalPages = function() {
|
6048
|
+
return jspb.Message.getField(this, 2) != null;
|
6049
|
+
};
|
6050
|
+
|
6051
|
+
|
6052
|
+
/**
|
6053
|
+
* optional int32 total_items = 3;
|
6054
|
+
* @return {number}
|
6055
|
+
*/
|
6056
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalItems = function() {
|
6057
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6058
|
+
};
|
6059
|
+
|
6060
|
+
|
6061
|
+
/**
|
6062
|
+
* @param {number} value
|
6063
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6064
|
+
*/
|
6065
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalItems = function(value) {
|
6066
|
+
return jspb.Message.setField(this, 3, value);
|
6067
|
+
};
|
6068
|
+
|
6069
|
+
|
6070
|
+
/**
|
6071
|
+
* Clears the field making it undefined.
|
6072
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6073
|
+
*/
|
6074
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalItems = function() {
|
6075
|
+
return jspb.Message.setField(this, 3, undefined);
|
6076
|
+
};
|
6077
|
+
|
6078
|
+
|
6079
|
+
/**
|
6080
|
+
* Returns whether this field is set.
|
6081
|
+
* @return {boolean}
|
6082
|
+
*/
|
6083
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
|
6084
|
+
return jspb.Message.getField(this, 3) != null;
|
6085
|
+
};
|
6086
|
+
|
6087
|
+
|
5589
6088
|
goog.object.extend(exports, proto.cms);
|