protobuf-platform 1.0.194 → 1.0.195
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 +14 -2
- package/cms/cms_grpc_pb.js +73 -28
- package/cms/cms_pb.js +451 -0
- 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; }
|
@@ -122,4 +126,12 @@ message BannerGroupItem {
|
|
122
126
|
message GetBannerGroupRequest {
|
123
127
|
int32 id = 1;
|
124
128
|
optional bool admin_side = 2;
|
129
|
+
}
|
130
|
+
message BannerGroupResponse {
|
131
|
+
BannerGroupItem data = 1;
|
132
|
+
}
|
133
|
+
message BannerGroupItemsResponse {
|
134
|
+
repeated BannerGroupItem items = 1;
|
135
|
+
optional int32 total_pages = 2;
|
136
|
+
optional int32 total_items = 3;
|
125
137
|
}
|
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
|
|
@@ -5586,4 +5630,411 @@ proto.cms.GetBannerGroupRequest.prototype.hasAdminSide = function() {
|
|
5586
5630
|
};
|
5587
5631
|
|
5588
5632
|
|
5633
|
+
|
5634
|
+
|
5635
|
+
|
5636
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5637
|
+
/**
|
5638
|
+
* Creates an object representation of this proto.
|
5639
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5640
|
+
* Optional fields that are not set will be set to undefined.
|
5641
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5642
|
+
* For the list of reserved names please see:
|
5643
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5644
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5645
|
+
* JSPB instance for transitional soy proto support:
|
5646
|
+
* http://goto/soy-param-migration
|
5647
|
+
* @return {!Object}
|
5648
|
+
*/
|
5649
|
+
proto.cms.BannerGroupResponse.prototype.toObject = function(opt_includeInstance) {
|
5650
|
+
return proto.cms.BannerGroupResponse.toObject(opt_includeInstance, this);
|
5651
|
+
};
|
5652
|
+
|
5653
|
+
|
5654
|
+
/**
|
5655
|
+
* Static version of the {@see toObject} method.
|
5656
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5657
|
+
* the JSPB instance for transitional soy proto support:
|
5658
|
+
* http://goto/soy-param-migration
|
5659
|
+
* @param {!proto.cms.BannerGroupResponse} msg The msg instance to transform.
|
5660
|
+
* @return {!Object}
|
5661
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5662
|
+
*/
|
5663
|
+
proto.cms.BannerGroupResponse.toObject = function(includeInstance, msg) {
|
5664
|
+
var f, obj = {
|
5665
|
+
data: (f = msg.getData()) && proto.cms.BannerGroupItem.toObject(includeInstance, f)
|
5666
|
+
};
|
5667
|
+
|
5668
|
+
if (includeInstance) {
|
5669
|
+
obj.$jspbMessageInstance = msg;
|
5670
|
+
}
|
5671
|
+
return obj;
|
5672
|
+
};
|
5673
|
+
}
|
5674
|
+
|
5675
|
+
|
5676
|
+
/**
|
5677
|
+
* Deserializes binary data (in protobuf wire format).
|
5678
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5679
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5680
|
+
*/
|
5681
|
+
proto.cms.BannerGroupResponse.deserializeBinary = function(bytes) {
|
5682
|
+
var reader = new jspb.BinaryReader(bytes);
|
5683
|
+
var msg = new proto.cms.BannerGroupResponse;
|
5684
|
+
return proto.cms.BannerGroupResponse.deserializeBinaryFromReader(msg, reader);
|
5685
|
+
};
|
5686
|
+
|
5687
|
+
|
5688
|
+
/**
|
5689
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5690
|
+
* given reader into the given message object.
|
5691
|
+
* @param {!proto.cms.BannerGroupResponse} msg The message object to deserialize into.
|
5692
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5693
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5694
|
+
*/
|
5695
|
+
proto.cms.BannerGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5696
|
+
while (reader.nextField()) {
|
5697
|
+
if (reader.isEndGroup()) {
|
5698
|
+
break;
|
5699
|
+
}
|
5700
|
+
var field = reader.getFieldNumber();
|
5701
|
+
switch (field) {
|
5702
|
+
case 1:
|
5703
|
+
var value = new proto.cms.BannerGroupItem;
|
5704
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5705
|
+
msg.setData(value);
|
5706
|
+
break;
|
5707
|
+
default:
|
5708
|
+
reader.skipField();
|
5709
|
+
break;
|
5710
|
+
}
|
5711
|
+
}
|
5712
|
+
return msg;
|
5713
|
+
};
|
5714
|
+
|
5715
|
+
|
5716
|
+
/**
|
5717
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5718
|
+
* @return {!Uint8Array}
|
5719
|
+
*/
|
5720
|
+
proto.cms.BannerGroupResponse.prototype.serializeBinary = function() {
|
5721
|
+
var writer = new jspb.BinaryWriter();
|
5722
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter(this, writer);
|
5723
|
+
return writer.getResultBuffer();
|
5724
|
+
};
|
5725
|
+
|
5726
|
+
|
5727
|
+
/**
|
5728
|
+
* Serializes the given message to binary data (in protobuf wire
|
5729
|
+
* format), writing to the given BinaryWriter.
|
5730
|
+
* @param {!proto.cms.BannerGroupResponse} message
|
5731
|
+
* @param {!jspb.BinaryWriter} writer
|
5732
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5733
|
+
*/
|
5734
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
5735
|
+
var f = undefined;
|
5736
|
+
f = message.getData();
|
5737
|
+
if (f != null) {
|
5738
|
+
writer.writeMessage(
|
5739
|
+
1,
|
5740
|
+
f,
|
5741
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5742
|
+
);
|
5743
|
+
}
|
5744
|
+
};
|
5745
|
+
|
5746
|
+
|
5747
|
+
/**
|
5748
|
+
* optional BannerGroupItem data = 1;
|
5749
|
+
* @return {?proto.cms.BannerGroupItem}
|
5750
|
+
*/
|
5751
|
+
proto.cms.BannerGroupResponse.prototype.getData = function() {
|
5752
|
+
return /** @type{?proto.cms.BannerGroupItem} */ (
|
5753
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5754
|
+
};
|
5755
|
+
|
5756
|
+
|
5757
|
+
/**
|
5758
|
+
* @param {?proto.cms.BannerGroupItem|undefined} value
|
5759
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5760
|
+
*/
|
5761
|
+
proto.cms.BannerGroupResponse.prototype.setData = function(value) {
|
5762
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
5763
|
+
};
|
5764
|
+
|
5765
|
+
|
5766
|
+
/**
|
5767
|
+
* Clears the message field making it undefined.
|
5768
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5769
|
+
*/
|
5770
|
+
proto.cms.BannerGroupResponse.prototype.clearData = function() {
|
5771
|
+
return this.setData(undefined);
|
5772
|
+
};
|
5773
|
+
|
5774
|
+
|
5775
|
+
/**
|
5776
|
+
* Returns whether this field is set.
|
5777
|
+
* @return {boolean}
|
5778
|
+
*/
|
5779
|
+
proto.cms.BannerGroupResponse.prototype.hasData = function() {
|
5780
|
+
return jspb.Message.getField(this, 1) != null;
|
5781
|
+
};
|
5782
|
+
|
5783
|
+
|
5784
|
+
|
5785
|
+
/**
|
5786
|
+
* List of repeated fields within this message type.
|
5787
|
+
* @private {!Array<number>}
|
5788
|
+
* @const
|
5789
|
+
*/
|
5790
|
+
proto.cms.BannerGroupItemsResponse.repeatedFields_ = [1];
|
5791
|
+
|
5792
|
+
|
5793
|
+
|
5794
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5795
|
+
/**
|
5796
|
+
* Creates an object representation of this proto.
|
5797
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5798
|
+
* Optional fields that are not set will be set to undefined.
|
5799
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5800
|
+
* For the list of reserved names please see:
|
5801
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5802
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5803
|
+
* JSPB instance for transitional soy proto support:
|
5804
|
+
* http://goto/soy-param-migration
|
5805
|
+
* @return {!Object}
|
5806
|
+
*/
|
5807
|
+
proto.cms.BannerGroupItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
5808
|
+
return proto.cms.BannerGroupItemsResponse.toObject(opt_includeInstance, this);
|
5809
|
+
};
|
5810
|
+
|
5811
|
+
|
5812
|
+
/**
|
5813
|
+
* Static version of the {@see toObject} method.
|
5814
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5815
|
+
* the JSPB instance for transitional soy proto support:
|
5816
|
+
* http://goto/soy-param-migration
|
5817
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The msg instance to transform.
|
5818
|
+
* @return {!Object}
|
5819
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5820
|
+
*/
|
5821
|
+
proto.cms.BannerGroupItemsResponse.toObject = function(includeInstance, msg) {
|
5822
|
+
var f, obj = {
|
5823
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5824
|
+
proto.cms.BannerGroupItem.toObject, includeInstance),
|
5825
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5826
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
5827
|
+
};
|
5828
|
+
|
5829
|
+
if (includeInstance) {
|
5830
|
+
obj.$jspbMessageInstance = msg;
|
5831
|
+
}
|
5832
|
+
return obj;
|
5833
|
+
};
|
5834
|
+
}
|
5835
|
+
|
5836
|
+
|
5837
|
+
/**
|
5838
|
+
* Deserializes binary data (in protobuf wire format).
|
5839
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5840
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5841
|
+
*/
|
5842
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinary = function(bytes) {
|
5843
|
+
var reader = new jspb.BinaryReader(bytes);
|
5844
|
+
var msg = new proto.cms.BannerGroupItemsResponse;
|
5845
|
+
return proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader(msg, reader);
|
5846
|
+
};
|
5847
|
+
|
5848
|
+
|
5849
|
+
/**
|
5850
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5851
|
+
* given reader into the given message object.
|
5852
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The message object to deserialize into.
|
5853
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5854
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5855
|
+
*/
|
5856
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5857
|
+
while (reader.nextField()) {
|
5858
|
+
if (reader.isEndGroup()) {
|
5859
|
+
break;
|
5860
|
+
}
|
5861
|
+
var field = reader.getFieldNumber();
|
5862
|
+
switch (field) {
|
5863
|
+
case 1:
|
5864
|
+
var value = new proto.cms.BannerGroupItem;
|
5865
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5866
|
+
msg.addItems(value);
|
5867
|
+
break;
|
5868
|
+
case 2:
|
5869
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5870
|
+
msg.setTotalPages(value);
|
5871
|
+
break;
|
5872
|
+
case 3:
|
5873
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5874
|
+
msg.setTotalItems(value);
|
5875
|
+
break;
|
5876
|
+
default:
|
5877
|
+
reader.skipField();
|
5878
|
+
break;
|
5879
|
+
}
|
5880
|
+
}
|
5881
|
+
return msg;
|
5882
|
+
};
|
5883
|
+
|
5884
|
+
|
5885
|
+
/**
|
5886
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5887
|
+
* @return {!Uint8Array}
|
5888
|
+
*/
|
5889
|
+
proto.cms.BannerGroupItemsResponse.prototype.serializeBinary = function() {
|
5890
|
+
var writer = new jspb.BinaryWriter();
|
5891
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter(this, writer);
|
5892
|
+
return writer.getResultBuffer();
|
5893
|
+
};
|
5894
|
+
|
5895
|
+
|
5896
|
+
/**
|
5897
|
+
* Serializes the given message to binary data (in protobuf wire
|
5898
|
+
* format), writing to the given BinaryWriter.
|
5899
|
+
* @param {!proto.cms.BannerGroupItemsResponse} message
|
5900
|
+
* @param {!jspb.BinaryWriter} writer
|
5901
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5902
|
+
*/
|
5903
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
5904
|
+
var f = undefined;
|
5905
|
+
f = message.getItemsList();
|
5906
|
+
if (f.length > 0) {
|
5907
|
+
writer.writeRepeatedMessage(
|
5908
|
+
1,
|
5909
|
+
f,
|
5910
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5911
|
+
);
|
5912
|
+
}
|
5913
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5914
|
+
if (f != null) {
|
5915
|
+
writer.writeInt32(
|
5916
|
+
2,
|
5917
|
+
f
|
5918
|
+
);
|
5919
|
+
}
|
5920
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5921
|
+
if (f != null) {
|
5922
|
+
writer.writeInt32(
|
5923
|
+
3,
|
5924
|
+
f
|
5925
|
+
);
|
5926
|
+
}
|
5927
|
+
};
|
5928
|
+
|
5929
|
+
|
5930
|
+
/**
|
5931
|
+
* repeated BannerGroupItem items = 1;
|
5932
|
+
* @return {!Array<!proto.cms.BannerGroupItem>}
|
5933
|
+
*/
|
5934
|
+
proto.cms.BannerGroupItemsResponse.prototype.getItemsList = function() {
|
5935
|
+
return /** @type{!Array<!proto.cms.BannerGroupItem>} */ (
|
5936
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5937
|
+
};
|
5938
|
+
|
5939
|
+
|
5940
|
+
/**
|
5941
|
+
* @param {!Array<!proto.cms.BannerGroupItem>} value
|
5942
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5943
|
+
*/
|
5944
|
+
proto.cms.BannerGroupItemsResponse.prototype.setItemsList = function(value) {
|
5945
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
5946
|
+
};
|
5947
|
+
|
5948
|
+
|
5949
|
+
/**
|
5950
|
+
* @param {!proto.cms.BannerGroupItem=} opt_value
|
5951
|
+
* @param {number=} opt_index
|
5952
|
+
* @return {!proto.cms.BannerGroupItem}
|
5953
|
+
*/
|
5954
|
+
proto.cms.BannerGroupItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
5955
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerGroupItem, opt_index);
|
5956
|
+
};
|
5957
|
+
|
5958
|
+
|
5959
|
+
/**
|
5960
|
+
* Clears the list making it empty but non-null.
|
5961
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5962
|
+
*/
|
5963
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearItemsList = function() {
|
5964
|
+
return this.setItemsList([]);
|
5965
|
+
};
|
5966
|
+
|
5967
|
+
|
5968
|
+
/**
|
5969
|
+
* optional int32 total_pages = 2;
|
5970
|
+
* @return {number}
|
5971
|
+
*/
|
5972
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalPages = function() {
|
5973
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5974
|
+
};
|
5975
|
+
|
5976
|
+
|
5977
|
+
/**
|
5978
|
+
* @param {number} value
|
5979
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5980
|
+
*/
|
5981
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalPages = function(value) {
|
5982
|
+
return jspb.Message.setField(this, 2, value);
|
5983
|
+
};
|
5984
|
+
|
5985
|
+
|
5986
|
+
/**
|
5987
|
+
* Clears the field making it undefined.
|
5988
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5989
|
+
*/
|
5990
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalPages = function() {
|
5991
|
+
return jspb.Message.setField(this, 2, undefined);
|
5992
|
+
};
|
5993
|
+
|
5994
|
+
|
5995
|
+
/**
|
5996
|
+
* Returns whether this field is set.
|
5997
|
+
* @return {boolean}
|
5998
|
+
*/
|
5999
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalPages = function() {
|
6000
|
+
return jspb.Message.getField(this, 2) != null;
|
6001
|
+
};
|
6002
|
+
|
6003
|
+
|
6004
|
+
/**
|
6005
|
+
* optional int32 total_items = 3;
|
6006
|
+
* @return {number}
|
6007
|
+
*/
|
6008
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalItems = function() {
|
6009
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6010
|
+
};
|
6011
|
+
|
6012
|
+
|
6013
|
+
/**
|
6014
|
+
* @param {number} value
|
6015
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6016
|
+
*/
|
6017
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalItems = function(value) {
|
6018
|
+
return jspb.Message.setField(this, 3, value);
|
6019
|
+
};
|
6020
|
+
|
6021
|
+
|
6022
|
+
/**
|
6023
|
+
* Clears the field making it undefined.
|
6024
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6025
|
+
*/
|
6026
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalItems = function() {
|
6027
|
+
return jspb.Message.setField(this, 3, undefined);
|
6028
|
+
};
|
6029
|
+
|
6030
|
+
|
6031
|
+
/**
|
6032
|
+
* Returns whether this field is set.
|
6033
|
+
* @return {boolean}
|
6034
|
+
*/
|
6035
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
|
6036
|
+
return jspb.Message.getField(this, 3) != null;
|
6037
|
+
};
|
6038
|
+
|
6039
|
+
|
5589
6040
|
goog.object.extend(exports, proto.cms);
|