protobuf-platform 1.0.200 → 1.0.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cms/cms.proto CHANGED
@@ -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; }
@@ -138,4 +139,17 @@ message BannerGroupItemsResponse {
138
139
  repeated BannerGroupItem items = 1;
139
140
  optional int32 total_pages = 2;
140
141
  optional int32 total_items = 3;
142
+ }
143
+ message UserBannerItem {
144
+ optional string title = 1;
145
+ optional string content = 2;
146
+ optional string image_big = 3;
147
+ optional string image_small = 4;
148
+ optional string anchor = 5;
149
+ optional string cta_type = 6;
150
+ optional string cta_text = 7;
151
+ optional string note = 8;
152
+ }
153
+ message UserBannerGroupResponse {
154
+ repeated UserBannerItem items = 1;
141
155
  }
@@ -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
 
@@ -6229,4 +6273,648 @@ proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
6229
6273
  };
6230
6274
 
6231
6275
 
6276
+
6277
+
6278
+
6279
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6280
+ /**
6281
+ * Creates an object representation of this proto.
6282
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6283
+ * Optional fields that are not set will be set to undefined.
6284
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6285
+ * For the list of reserved names please see:
6286
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6287
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6288
+ * JSPB instance for transitional soy proto support:
6289
+ * http://goto/soy-param-migration
6290
+ * @return {!Object}
6291
+ */
6292
+ proto.cms.UserBannerItem.prototype.toObject = function(opt_includeInstance) {
6293
+ return proto.cms.UserBannerItem.toObject(opt_includeInstance, this);
6294
+ };
6295
+
6296
+
6297
+ /**
6298
+ * Static version of the {@see toObject} method.
6299
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6300
+ * the JSPB instance for transitional soy proto support:
6301
+ * http://goto/soy-param-migration
6302
+ * @param {!proto.cms.UserBannerItem} msg The msg instance to transform.
6303
+ * @return {!Object}
6304
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6305
+ */
6306
+ proto.cms.UserBannerItem.toObject = function(includeInstance, msg) {
6307
+ var f, obj = {
6308
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
6309
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
6310
+ imageBig: jspb.Message.getFieldWithDefault(msg, 3, ""),
6311
+ imageSmall: jspb.Message.getFieldWithDefault(msg, 4, ""),
6312
+ anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
6313
+ ctaType: jspb.Message.getFieldWithDefault(msg, 6, ""),
6314
+ ctaText: jspb.Message.getFieldWithDefault(msg, 7, ""),
6315
+ note: jspb.Message.getFieldWithDefault(msg, 8, "")
6316
+ };
6317
+
6318
+ if (includeInstance) {
6319
+ obj.$jspbMessageInstance = msg;
6320
+ }
6321
+ return obj;
6322
+ };
6323
+ }
6324
+
6325
+
6326
+ /**
6327
+ * Deserializes binary data (in protobuf wire format).
6328
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6329
+ * @return {!proto.cms.UserBannerItem}
6330
+ */
6331
+ proto.cms.UserBannerItem.deserializeBinary = function(bytes) {
6332
+ var reader = new jspb.BinaryReader(bytes);
6333
+ var msg = new proto.cms.UserBannerItem;
6334
+ return proto.cms.UserBannerItem.deserializeBinaryFromReader(msg, reader);
6335
+ };
6336
+
6337
+
6338
+ /**
6339
+ * Deserializes binary data (in protobuf wire format) from the
6340
+ * given reader into the given message object.
6341
+ * @param {!proto.cms.UserBannerItem} msg The message object to deserialize into.
6342
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6343
+ * @return {!proto.cms.UserBannerItem}
6344
+ */
6345
+ proto.cms.UserBannerItem.deserializeBinaryFromReader = function(msg, reader) {
6346
+ while (reader.nextField()) {
6347
+ if (reader.isEndGroup()) {
6348
+ break;
6349
+ }
6350
+ var field = reader.getFieldNumber();
6351
+ switch (field) {
6352
+ case 1:
6353
+ var value = /** @type {string} */ (reader.readString());
6354
+ msg.setTitle(value);
6355
+ break;
6356
+ case 2:
6357
+ var value = /** @type {string} */ (reader.readString());
6358
+ msg.setContent(value);
6359
+ break;
6360
+ case 3:
6361
+ var value = /** @type {string} */ (reader.readString());
6362
+ msg.setImageBig(value);
6363
+ break;
6364
+ case 4:
6365
+ var value = /** @type {string} */ (reader.readString());
6366
+ msg.setImageSmall(value);
6367
+ break;
6368
+ case 5:
6369
+ var value = /** @type {string} */ (reader.readString());
6370
+ msg.setAnchor(value);
6371
+ break;
6372
+ case 6:
6373
+ var value = /** @type {string} */ (reader.readString());
6374
+ msg.setCtaType(value);
6375
+ break;
6376
+ case 7:
6377
+ var value = /** @type {string} */ (reader.readString());
6378
+ msg.setCtaText(value);
6379
+ break;
6380
+ case 8:
6381
+ var value = /** @type {string} */ (reader.readString());
6382
+ msg.setNote(value);
6383
+ break;
6384
+ default:
6385
+ reader.skipField();
6386
+ break;
6387
+ }
6388
+ }
6389
+ return msg;
6390
+ };
6391
+
6392
+
6393
+ /**
6394
+ * Serializes the message to binary data (in protobuf wire format).
6395
+ * @return {!Uint8Array}
6396
+ */
6397
+ proto.cms.UserBannerItem.prototype.serializeBinary = function() {
6398
+ var writer = new jspb.BinaryWriter();
6399
+ proto.cms.UserBannerItem.serializeBinaryToWriter(this, writer);
6400
+ return writer.getResultBuffer();
6401
+ };
6402
+
6403
+
6404
+ /**
6405
+ * Serializes the given message to binary data (in protobuf wire
6406
+ * format), writing to the given BinaryWriter.
6407
+ * @param {!proto.cms.UserBannerItem} message
6408
+ * @param {!jspb.BinaryWriter} writer
6409
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6410
+ */
6411
+ proto.cms.UserBannerItem.serializeBinaryToWriter = function(message, writer) {
6412
+ var f = undefined;
6413
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
6414
+ if (f != null) {
6415
+ writer.writeString(
6416
+ 1,
6417
+ f
6418
+ );
6419
+ }
6420
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
6421
+ if (f != null) {
6422
+ writer.writeString(
6423
+ 2,
6424
+ f
6425
+ );
6426
+ }
6427
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6428
+ if (f != null) {
6429
+ writer.writeString(
6430
+ 3,
6431
+ f
6432
+ );
6433
+ }
6434
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
6435
+ if (f != null) {
6436
+ writer.writeString(
6437
+ 4,
6438
+ f
6439
+ );
6440
+ }
6441
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
6442
+ if (f != null) {
6443
+ writer.writeString(
6444
+ 5,
6445
+ f
6446
+ );
6447
+ }
6448
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
6449
+ if (f != null) {
6450
+ writer.writeString(
6451
+ 6,
6452
+ f
6453
+ );
6454
+ }
6455
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
6456
+ if (f != null) {
6457
+ writer.writeString(
6458
+ 7,
6459
+ f
6460
+ );
6461
+ }
6462
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
6463
+ if (f != null) {
6464
+ writer.writeString(
6465
+ 8,
6466
+ f
6467
+ );
6468
+ }
6469
+ };
6470
+
6471
+
6472
+ /**
6473
+ * optional string title = 1;
6474
+ * @return {string}
6475
+ */
6476
+ proto.cms.UserBannerItem.prototype.getTitle = function() {
6477
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6478
+ };
6479
+
6480
+
6481
+ /**
6482
+ * @param {string} value
6483
+ * @return {!proto.cms.UserBannerItem} returns this
6484
+ */
6485
+ proto.cms.UserBannerItem.prototype.setTitle = function(value) {
6486
+ return jspb.Message.setField(this, 1, value);
6487
+ };
6488
+
6489
+
6490
+ /**
6491
+ * Clears the field making it undefined.
6492
+ * @return {!proto.cms.UserBannerItem} returns this
6493
+ */
6494
+ proto.cms.UserBannerItem.prototype.clearTitle = function() {
6495
+ return jspb.Message.setField(this, 1, undefined);
6496
+ };
6497
+
6498
+
6499
+ /**
6500
+ * Returns whether this field is set.
6501
+ * @return {boolean}
6502
+ */
6503
+ proto.cms.UserBannerItem.prototype.hasTitle = function() {
6504
+ return jspb.Message.getField(this, 1) != null;
6505
+ };
6506
+
6507
+
6508
+ /**
6509
+ * optional string content = 2;
6510
+ * @return {string}
6511
+ */
6512
+ proto.cms.UserBannerItem.prototype.getContent = function() {
6513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6514
+ };
6515
+
6516
+
6517
+ /**
6518
+ * @param {string} value
6519
+ * @return {!proto.cms.UserBannerItem} returns this
6520
+ */
6521
+ proto.cms.UserBannerItem.prototype.setContent = function(value) {
6522
+ return jspb.Message.setField(this, 2, value);
6523
+ };
6524
+
6525
+
6526
+ /**
6527
+ * Clears the field making it undefined.
6528
+ * @return {!proto.cms.UserBannerItem} returns this
6529
+ */
6530
+ proto.cms.UserBannerItem.prototype.clearContent = function() {
6531
+ return jspb.Message.setField(this, 2, undefined);
6532
+ };
6533
+
6534
+
6535
+ /**
6536
+ * Returns whether this field is set.
6537
+ * @return {boolean}
6538
+ */
6539
+ proto.cms.UserBannerItem.prototype.hasContent = function() {
6540
+ return jspb.Message.getField(this, 2) != null;
6541
+ };
6542
+
6543
+
6544
+ /**
6545
+ * optional string image_big = 3;
6546
+ * @return {string}
6547
+ */
6548
+ proto.cms.UserBannerItem.prototype.getImageBig = function() {
6549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6550
+ };
6551
+
6552
+
6553
+ /**
6554
+ * @param {string} value
6555
+ * @return {!proto.cms.UserBannerItem} returns this
6556
+ */
6557
+ proto.cms.UserBannerItem.prototype.setImageBig = function(value) {
6558
+ return jspb.Message.setField(this, 3, value);
6559
+ };
6560
+
6561
+
6562
+ /**
6563
+ * Clears the field making it undefined.
6564
+ * @return {!proto.cms.UserBannerItem} returns this
6565
+ */
6566
+ proto.cms.UserBannerItem.prototype.clearImageBig = function() {
6567
+ return jspb.Message.setField(this, 3, undefined);
6568
+ };
6569
+
6570
+
6571
+ /**
6572
+ * Returns whether this field is set.
6573
+ * @return {boolean}
6574
+ */
6575
+ proto.cms.UserBannerItem.prototype.hasImageBig = function() {
6576
+ return jspb.Message.getField(this, 3) != null;
6577
+ };
6578
+
6579
+
6580
+ /**
6581
+ * optional string image_small = 4;
6582
+ * @return {string}
6583
+ */
6584
+ proto.cms.UserBannerItem.prototype.getImageSmall = function() {
6585
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6586
+ };
6587
+
6588
+
6589
+ /**
6590
+ * @param {string} value
6591
+ * @return {!proto.cms.UserBannerItem} returns this
6592
+ */
6593
+ proto.cms.UserBannerItem.prototype.setImageSmall = function(value) {
6594
+ return jspb.Message.setField(this, 4, value);
6595
+ };
6596
+
6597
+
6598
+ /**
6599
+ * Clears the field making it undefined.
6600
+ * @return {!proto.cms.UserBannerItem} returns this
6601
+ */
6602
+ proto.cms.UserBannerItem.prototype.clearImageSmall = function() {
6603
+ return jspb.Message.setField(this, 4, undefined);
6604
+ };
6605
+
6606
+
6607
+ /**
6608
+ * Returns whether this field is set.
6609
+ * @return {boolean}
6610
+ */
6611
+ proto.cms.UserBannerItem.prototype.hasImageSmall = function() {
6612
+ return jspb.Message.getField(this, 4) != null;
6613
+ };
6614
+
6615
+
6616
+ /**
6617
+ * optional string anchor = 5;
6618
+ * @return {string}
6619
+ */
6620
+ proto.cms.UserBannerItem.prototype.getAnchor = function() {
6621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6622
+ };
6623
+
6624
+
6625
+ /**
6626
+ * @param {string} value
6627
+ * @return {!proto.cms.UserBannerItem} returns this
6628
+ */
6629
+ proto.cms.UserBannerItem.prototype.setAnchor = function(value) {
6630
+ return jspb.Message.setField(this, 5, value);
6631
+ };
6632
+
6633
+
6634
+ /**
6635
+ * Clears the field making it undefined.
6636
+ * @return {!proto.cms.UserBannerItem} returns this
6637
+ */
6638
+ proto.cms.UserBannerItem.prototype.clearAnchor = function() {
6639
+ return jspb.Message.setField(this, 5, undefined);
6640
+ };
6641
+
6642
+
6643
+ /**
6644
+ * Returns whether this field is set.
6645
+ * @return {boolean}
6646
+ */
6647
+ proto.cms.UserBannerItem.prototype.hasAnchor = function() {
6648
+ return jspb.Message.getField(this, 5) != null;
6649
+ };
6650
+
6651
+
6652
+ /**
6653
+ * optional string cta_type = 6;
6654
+ * @return {string}
6655
+ */
6656
+ proto.cms.UserBannerItem.prototype.getCtaType = function() {
6657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6658
+ };
6659
+
6660
+
6661
+ /**
6662
+ * @param {string} value
6663
+ * @return {!proto.cms.UserBannerItem} returns this
6664
+ */
6665
+ proto.cms.UserBannerItem.prototype.setCtaType = function(value) {
6666
+ return jspb.Message.setField(this, 6, value);
6667
+ };
6668
+
6669
+
6670
+ /**
6671
+ * Clears the field making it undefined.
6672
+ * @return {!proto.cms.UserBannerItem} returns this
6673
+ */
6674
+ proto.cms.UserBannerItem.prototype.clearCtaType = function() {
6675
+ return jspb.Message.setField(this, 6, undefined);
6676
+ };
6677
+
6678
+
6679
+ /**
6680
+ * Returns whether this field is set.
6681
+ * @return {boolean}
6682
+ */
6683
+ proto.cms.UserBannerItem.prototype.hasCtaType = function() {
6684
+ return jspb.Message.getField(this, 6) != null;
6685
+ };
6686
+
6687
+
6688
+ /**
6689
+ * optional string cta_text = 7;
6690
+ * @return {string}
6691
+ */
6692
+ proto.cms.UserBannerItem.prototype.getCtaText = function() {
6693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6694
+ };
6695
+
6696
+
6697
+ /**
6698
+ * @param {string} value
6699
+ * @return {!proto.cms.UserBannerItem} returns this
6700
+ */
6701
+ proto.cms.UserBannerItem.prototype.setCtaText = function(value) {
6702
+ return jspb.Message.setField(this, 7, value);
6703
+ };
6704
+
6705
+
6706
+ /**
6707
+ * Clears the field making it undefined.
6708
+ * @return {!proto.cms.UserBannerItem} returns this
6709
+ */
6710
+ proto.cms.UserBannerItem.prototype.clearCtaText = function() {
6711
+ return jspb.Message.setField(this, 7, undefined);
6712
+ };
6713
+
6714
+
6715
+ /**
6716
+ * Returns whether this field is set.
6717
+ * @return {boolean}
6718
+ */
6719
+ proto.cms.UserBannerItem.prototype.hasCtaText = function() {
6720
+ return jspb.Message.getField(this, 7) != null;
6721
+ };
6722
+
6723
+
6724
+ /**
6725
+ * optional string note = 8;
6726
+ * @return {string}
6727
+ */
6728
+ proto.cms.UserBannerItem.prototype.getNote = function() {
6729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6730
+ };
6731
+
6732
+
6733
+ /**
6734
+ * @param {string} value
6735
+ * @return {!proto.cms.UserBannerItem} returns this
6736
+ */
6737
+ proto.cms.UserBannerItem.prototype.setNote = function(value) {
6738
+ return jspb.Message.setField(this, 8, value);
6739
+ };
6740
+
6741
+
6742
+ /**
6743
+ * Clears the field making it undefined.
6744
+ * @return {!proto.cms.UserBannerItem} returns this
6745
+ */
6746
+ proto.cms.UserBannerItem.prototype.clearNote = function() {
6747
+ return jspb.Message.setField(this, 8, undefined);
6748
+ };
6749
+
6750
+
6751
+ /**
6752
+ * Returns whether this field is set.
6753
+ * @return {boolean}
6754
+ */
6755
+ proto.cms.UserBannerItem.prototype.hasNote = function() {
6756
+ return jspb.Message.getField(this, 8) != null;
6757
+ };
6758
+
6759
+
6760
+
6761
+ /**
6762
+ * List of repeated fields within this message type.
6763
+ * @private {!Array<number>}
6764
+ * @const
6765
+ */
6766
+ proto.cms.UserBannerGroupResponse.repeatedFields_ = [1];
6767
+
6768
+
6769
+
6770
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6771
+ /**
6772
+ * Creates an object representation of this proto.
6773
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6774
+ * Optional fields that are not set will be set to undefined.
6775
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6776
+ * For the list of reserved names please see:
6777
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6778
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6779
+ * JSPB instance for transitional soy proto support:
6780
+ * http://goto/soy-param-migration
6781
+ * @return {!Object}
6782
+ */
6783
+ proto.cms.UserBannerGroupResponse.prototype.toObject = function(opt_includeInstance) {
6784
+ return proto.cms.UserBannerGroupResponse.toObject(opt_includeInstance, this);
6785
+ };
6786
+
6787
+
6788
+ /**
6789
+ * Static version of the {@see toObject} method.
6790
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6791
+ * the JSPB instance for transitional soy proto support:
6792
+ * http://goto/soy-param-migration
6793
+ * @param {!proto.cms.UserBannerGroupResponse} msg The msg instance to transform.
6794
+ * @return {!Object}
6795
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6796
+ */
6797
+ proto.cms.UserBannerGroupResponse.toObject = function(includeInstance, msg) {
6798
+ var f, obj = {
6799
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6800
+ proto.cms.UserBannerItem.toObject, includeInstance)
6801
+ };
6802
+
6803
+ if (includeInstance) {
6804
+ obj.$jspbMessageInstance = msg;
6805
+ }
6806
+ return obj;
6807
+ };
6808
+ }
6809
+
6810
+
6811
+ /**
6812
+ * Deserializes binary data (in protobuf wire format).
6813
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6814
+ * @return {!proto.cms.UserBannerGroupResponse}
6815
+ */
6816
+ proto.cms.UserBannerGroupResponse.deserializeBinary = function(bytes) {
6817
+ var reader = new jspb.BinaryReader(bytes);
6818
+ var msg = new proto.cms.UserBannerGroupResponse;
6819
+ return proto.cms.UserBannerGroupResponse.deserializeBinaryFromReader(msg, reader);
6820
+ };
6821
+
6822
+
6823
+ /**
6824
+ * Deserializes binary data (in protobuf wire format) from the
6825
+ * given reader into the given message object.
6826
+ * @param {!proto.cms.UserBannerGroupResponse} msg The message object to deserialize into.
6827
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6828
+ * @return {!proto.cms.UserBannerGroupResponse}
6829
+ */
6830
+ proto.cms.UserBannerGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
6831
+ while (reader.nextField()) {
6832
+ if (reader.isEndGroup()) {
6833
+ break;
6834
+ }
6835
+ var field = reader.getFieldNumber();
6836
+ switch (field) {
6837
+ case 1:
6838
+ var value = new proto.cms.UserBannerItem;
6839
+ reader.readMessage(value,proto.cms.UserBannerItem.deserializeBinaryFromReader);
6840
+ msg.addItems(value);
6841
+ break;
6842
+ default:
6843
+ reader.skipField();
6844
+ break;
6845
+ }
6846
+ }
6847
+ return msg;
6848
+ };
6849
+
6850
+
6851
+ /**
6852
+ * Serializes the message to binary data (in protobuf wire format).
6853
+ * @return {!Uint8Array}
6854
+ */
6855
+ proto.cms.UserBannerGroupResponse.prototype.serializeBinary = function() {
6856
+ var writer = new jspb.BinaryWriter();
6857
+ proto.cms.UserBannerGroupResponse.serializeBinaryToWriter(this, writer);
6858
+ return writer.getResultBuffer();
6859
+ };
6860
+
6861
+
6862
+ /**
6863
+ * Serializes the given message to binary data (in protobuf wire
6864
+ * format), writing to the given BinaryWriter.
6865
+ * @param {!proto.cms.UserBannerGroupResponse} message
6866
+ * @param {!jspb.BinaryWriter} writer
6867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6868
+ */
6869
+ proto.cms.UserBannerGroupResponse.serializeBinaryToWriter = function(message, writer) {
6870
+ var f = undefined;
6871
+ f = message.getItemsList();
6872
+ if (f.length > 0) {
6873
+ writer.writeRepeatedMessage(
6874
+ 1,
6875
+ f,
6876
+ proto.cms.UserBannerItem.serializeBinaryToWriter
6877
+ );
6878
+ }
6879
+ };
6880
+
6881
+
6882
+ /**
6883
+ * repeated UserBannerItem items = 1;
6884
+ * @return {!Array<!proto.cms.UserBannerItem>}
6885
+ */
6886
+ proto.cms.UserBannerGroupResponse.prototype.getItemsList = function() {
6887
+ return /** @type{!Array<!proto.cms.UserBannerItem>} */ (
6888
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.UserBannerItem, 1));
6889
+ };
6890
+
6891
+
6892
+ /**
6893
+ * @param {!Array<!proto.cms.UserBannerItem>} value
6894
+ * @return {!proto.cms.UserBannerGroupResponse} returns this
6895
+ */
6896
+ proto.cms.UserBannerGroupResponse.prototype.setItemsList = function(value) {
6897
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6898
+ };
6899
+
6900
+
6901
+ /**
6902
+ * @param {!proto.cms.UserBannerItem=} opt_value
6903
+ * @param {number=} opt_index
6904
+ * @return {!proto.cms.UserBannerItem}
6905
+ */
6906
+ proto.cms.UserBannerGroupResponse.prototype.addItems = function(opt_value, opt_index) {
6907
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.UserBannerItem, opt_index);
6908
+ };
6909
+
6910
+
6911
+ /**
6912
+ * Clears the list making it empty but non-null.
6913
+ * @return {!proto.cms.UserBannerGroupResponse} returns this
6914
+ */
6915
+ proto.cms.UserBannerGroupResponse.prototype.clearItemsList = function() {
6916
+ return this.setItemsList([]);
6917
+ };
6918
+
6919
+
6232
6920
  goog.object.extend(exports, proto.cms);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {