protobuf-platform 1.0.189 → 1.0.191

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_pb.js CHANGED
@@ -21,12 +21,23 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.cms.BannerItem', null, global);
25
+ goog.exportSymbol('proto.cms.BannerItemRequest', null, global);
26
+ goog.exportSymbol('proto.cms.BannerItemsResponse', null, global);
27
+ goog.exportSymbol('proto.cms.BannerRequest', null, global);
28
+ goog.exportSymbol('proto.cms.BannerRequest.RequestCase', null, global);
29
+ goog.exportSymbol('proto.cms.BannerResponse', null, global);
30
+ goog.exportSymbol('proto.cms.BannerStatusResponse', null, global);
24
31
  goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
25
32
  goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
33
+ goog.exportSymbol('proto.cms.File', null, global);
34
+ goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
26
35
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
36
+ goog.exportSymbol('proto.cms.GetFileRequest', null, global);
27
37
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
28
38
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
29
39
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
40
+ goog.exportSymbol('proto.cms.PaginationRequest', null, global);
30
41
  goog.exportSymbol('proto.cms.PingRequest', null, global);
31
42
  goog.exportSymbol('proto.cms.PongResponse', null, global);
32
43
  /**
@@ -71,6 +82,69 @@ if (goog.DEBUG && !COMPILED) {
71
82
  */
72
83
  proto.cms.PongResponse.displayName = 'proto.cms.PongResponse';
73
84
  }
85
+ /**
86
+ * Generated by JsPbCodeGenerator.
87
+ * @param {Array=} opt_data Optional initial data array, typically from a
88
+ * server response, or constructed directly in Javascript. The array is used
89
+ * in place and becomes part of the constructed object. It is not cloned.
90
+ * If no data is provided, the constructed object will be empty, but still
91
+ * valid.
92
+ * @extends {jspb.Message}
93
+ * @constructor
94
+ */
95
+ proto.cms.PaginationRequest = function(opt_data) {
96
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
97
+ };
98
+ goog.inherits(proto.cms.PaginationRequest, jspb.Message);
99
+ if (goog.DEBUG && !COMPILED) {
100
+ /**
101
+ * @public
102
+ * @override
103
+ */
104
+ proto.cms.PaginationRequest.displayName = 'proto.cms.PaginationRequest';
105
+ }
106
+ /**
107
+ * Generated by JsPbCodeGenerator.
108
+ * @param {Array=} opt_data Optional initial data array, typically from a
109
+ * server response, or constructed directly in Javascript. The array is used
110
+ * in place and becomes part of the constructed object. It is not cloned.
111
+ * If no data is provided, the constructed object will be empty, but still
112
+ * valid.
113
+ * @extends {jspb.Message}
114
+ * @constructor
115
+ */
116
+ proto.cms.File = function(opt_data) {
117
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
118
+ };
119
+ goog.inherits(proto.cms.File, jspb.Message);
120
+ if (goog.DEBUG && !COMPILED) {
121
+ /**
122
+ * @public
123
+ * @override
124
+ */
125
+ proto.cms.File.displayName = 'proto.cms.File';
126
+ }
127
+ /**
128
+ * Generated by JsPbCodeGenerator.
129
+ * @param {Array=} opt_data Optional initial data array, typically from a
130
+ * server response, or constructed directly in Javascript. The array is used
131
+ * in place and becomes part of the constructed object. It is not cloned.
132
+ * If no data is provided, the constructed object will be empty, but still
133
+ * valid.
134
+ * @extends {jspb.Message}
135
+ * @constructor
136
+ */
137
+ proto.cms.GetFileRequest = function(opt_data) {
138
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
139
+ };
140
+ goog.inherits(proto.cms.GetFileRequest, jspb.Message);
141
+ if (goog.DEBUG && !COMPILED) {
142
+ /**
143
+ * @public
144
+ * @override
145
+ */
146
+ proto.cms.GetFileRequest.displayName = 'proto.cms.GetFileRequest';
147
+ }
74
148
  /**
75
149
  * Generated by JsPbCodeGenerator.
76
150
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -197,6 +271,153 @@ if (goog.DEBUG && !COMPILED) {
197
271
  */
198
272
  proto.cms.BurgerMenuWidgetItem.displayName = 'proto.cms.BurgerMenuWidgetItem';
199
273
  }
274
+ /**
275
+ * Generated by JsPbCodeGenerator.
276
+ * @param {Array=} opt_data Optional initial data array, typically from a
277
+ * server response, or constructed directly in Javascript. The array is used
278
+ * in place and becomes part of the constructed object. It is not cloned.
279
+ * If no data is provided, the constructed object will be empty, but still
280
+ * valid.
281
+ * @extends {jspb.Message}
282
+ * @constructor
283
+ */
284
+ proto.cms.BannerRequest = function(opt_data) {
285
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cms.BannerRequest.oneofGroups_);
286
+ };
287
+ goog.inherits(proto.cms.BannerRequest, jspb.Message);
288
+ if (goog.DEBUG && !COMPILED) {
289
+ /**
290
+ * @public
291
+ * @override
292
+ */
293
+ proto.cms.BannerRequest.displayName = 'proto.cms.BannerRequest';
294
+ }
295
+ /**
296
+ * Generated by JsPbCodeGenerator.
297
+ * @param {Array=} opt_data Optional initial data array, typically from a
298
+ * server response, or constructed directly in Javascript. The array is used
299
+ * in place and becomes part of the constructed object. It is not cloned.
300
+ * If no data is provided, the constructed object will be empty, but still
301
+ * valid.
302
+ * @extends {jspb.Message}
303
+ * @constructor
304
+ */
305
+ proto.cms.BannerItemRequest = function(opt_data) {
306
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
307
+ };
308
+ goog.inherits(proto.cms.BannerItemRequest, jspb.Message);
309
+ if (goog.DEBUG && !COMPILED) {
310
+ /**
311
+ * @public
312
+ * @override
313
+ */
314
+ proto.cms.BannerItemRequest.displayName = 'proto.cms.BannerItemRequest';
315
+ }
316
+ /**
317
+ * Generated by JsPbCodeGenerator.
318
+ * @param {Array=} opt_data Optional initial data array, typically from a
319
+ * server response, or constructed directly in Javascript. The array is used
320
+ * in place and becomes part of the constructed object. It is not cloned.
321
+ * If no data is provided, the constructed object will be empty, but still
322
+ * valid.
323
+ * @extends {jspb.Message}
324
+ * @constructor
325
+ */
326
+ proto.cms.BannerItem = function(opt_data) {
327
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
328
+ };
329
+ goog.inherits(proto.cms.BannerItem, jspb.Message);
330
+ if (goog.DEBUG && !COMPILED) {
331
+ /**
332
+ * @public
333
+ * @override
334
+ */
335
+ proto.cms.BannerItem.displayName = 'proto.cms.BannerItem';
336
+ }
337
+ /**
338
+ * Generated by JsPbCodeGenerator.
339
+ * @param {Array=} opt_data Optional initial data array, typically from a
340
+ * server response, or constructed directly in Javascript. The array is used
341
+ * in place and becomes part of the constructed object. It is not cloned.
342
+ * If no data is provided, the constructed object will be empty, but still
343
+ * valid.
344
+ * @extends {jspb.Message}
345
+ * @constructor
346
+ */
347
+ proto.cms.BannerResponse = function(opt_data) {
348
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
349
+ };
350
+ goog.inherits(proto.cms.BannerResponse, jspb.Message);
351
+ if (goog.DEBUG && !COMPILED) {
352
+ /**
353
+ * @public
354
+ * @override
355
+ */
356
+ proto.cms.BannerResponse.displayName = 'proto.cms.BannerResponse';
357
+ }
358
+ /**
359
+ * Generated by JsPbCodeGenerator.
360
+ * @param {Array=} opt_data Optional initial data array, typically from a
361
+ * server response, or constructed directly in Javascript. The array is used
362
+ * in place and becomes part of the constructed object. It is not cloned.
363
+ * If no data is provided, the constructed object will be empty, but still
364
+ * valid.
365
+ * @extends {jspb.Message}
366
+ * @constructor
367
+ */
368
+ proto.cms.GetBannerRequest = function(opt_data) {
369
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
370
+ };
371
+ goog.inherits(proto.cms.GetBannerRequest, jspb.Message);
372
+ if (goog.DEBUG && !COMPILED) {
373
+ /**
374
+ * @public
375
+ * @override
376
+ */
377
+ proto.cms.GetBannerRequest.displayName = 'proto.cms.GetBannerRequest';
378
+ }
379
+ /**
380
+ * Generated by JsPbCodeGenerator.
381
+ * @param {Array=} opt_data Optional initial data array, typically from a
382
+ * server response, or constructed directly in Javascript. The array is used
383
+ * in place and becomes part of the constructed object. It is not cloned.
384
+ * If no data is provided, the constructed object will be empty, but still
385
+ * valid.
386
+ * @extends {jspb.Message}
387
+ * @constructor
388
+ */
389
+ proto.cms.BannerStatusResponse = function(opt_data) {
390
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
391
+ };
392
+ goog.inherits(proto.cms.BannerStatusResponse, jspb.Message);
393
+ if (goog.DEBUG && !COMPILED) {
394
+ /**
395
+ * @public
396
+ * @override
397
+ */
398
+ proto.cms.BannerStatusResponse.displayName = 'proto.cms.BannerStatusResponse';
399
+ }
400
+ /**
401
+ * Generated by JsPbCodeGenerator.
402
+ * @param {Array=} opt_data Optional initial data array, typically from a
403
+ * server response, or constructed directly in Javascript. The array is used
404
+ * in place and becomes part of the constructed object. It is not cloned.
405
+ * If no data is provided, the constructed object will be empty, but still
406
+ * valid.
407
+ * @extends {jspb.Message}
408
+ * @constructor
409
+ */
410
+ proto.cms.BannerItemsResponse = function(opt_data) {
411
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerItemsResponse.repeatedFields_, null);
412
+ };
413
+ goog.inherits(proto.cms.BannerItemsResponse, jspb.Message);
414
+ if (goog.DEBUG && !COMPILED) {
415
+ /**
416
+ * @public
417
+ * @override
418
+ */
419
+ proto.cms.BannerItemsResponse.displayName = 'proto.cms.BannerItemsResponse';
420
+ }
200
421
 
201
422
 
202
423
 
@@ -473,8 +694,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
473
694
  * http://goto/soy-param-migration
474
695
  * @return {!Object}
475
696
  */
476
- proto.cms.CommonWidgetRequest.prototype.toObject = function(opt_includeInstance) {
477
- return proto.cms.CommonWidgetRequest.toObject(opt_includeInstance, this);
697
+ proto.cms.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
698
+ return proto.cms.PaginationRequest.toObject(opt_includeInstance, this);
478
699
  };
479
700
 
480
701
 
@@ -483,15 +704,14 @@ proto.cms.CommonWidgetRequest.prototype.toObject = function(opt_includeInstance)
483
704
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
484
705
  * the JSPB instance for transitional soy proto support:
485
706
  * http://goto/soy-param-migration
486
- * @param {!proto.cms.CommonWidgetRequest} msg The msg instance to transform.
707
+ * @param {!proto.cms.PaginationRequest} msg The msg instance to transform.
487
708
  * @return {!Object}
488
709
  * @suppress {unusedLocalVariables} f is only used for nested messages
489
710
  */
490
- proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
711
+ proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
491
712
  var f, obj = {
492
- geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
493
- content: jspb.Message.getFieldWithDefault(msg, 2, ""),
494
- type: jspb.Message.getFieldWithDefault(msg, 3, "")
713
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
714
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
495
715
  };
496
716
 
497
717
  if (includeInstance) {
@@ -505,23 +725,23 @@ proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
505
725
  /**
506
726
  * Deserializes binary data (in protobuf wire format).
507
727
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
508
- * @return {!proto.cms.CommonWidgetRequest}
728
+ * @return {!proto.cms.PaginationRequest}
509
729
  */
510
- proto.cms.CommonWidgetRequest.deserializeBinary = function(bytes) {
730
+ proto.cms.PaginationRequest.deserializeBinary = function(bytes) {
511
731
  var reader = new jspb.BinaryReader(bytes);
512
- var msg = new proto.cms.CommonWidgetRequest;
513
- return proto.cms.CommonWidgetRequest.deserializeBinaryFromReader(msg, reader);
732
+ var msg = new proto.cms.PaginationRequest;
733
+ return proto.cms.PaginationRequest.deserializeBinaryFromReader(msg, reader);
514
734
  };
515
735
 
516
736
 
517
737
  /**
518
738
  * Deserializes binary data (in protobuf wire format) from the
519
739
  * given reader into the given message object.
520
- * @param {!proto.cms.CommonWidgetRequest} msg The message object to deserialize into.
740
+ * @param {!proto.cms.PaginationRequest} msg The message object to deserialize into.
521
741
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
522
- * @return {!proto.cms.CommonWidgetRequest}
742
+ * @return {!proto.cms.PaginationRequest}
523
743
  */
524
- proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
744
+ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
525
745
  while (reader.nextField()) {
526
746
  if (reader.isEndGroup()) {
527
747
  break;
@@ -529,16 +749,12 @@ proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader
529
749
  var field = reader.getFieldNumber();
530
750
  switch (field) {
531
751
  case 1:
532
- var value = /** @type {string} */ (reader.readString());
533
- msg.setGeo(value);
752
+ var value = /** @type {number} */ (reader.readInt32());
753
+ msg.setLimit(value);
534
754
  break;
535
755
  case 2:
536
- var value = /** @type {string} */ (reader.readString());
537
- msg.setContent(value);
538
- break;
539
- case 3:
540
- var value = /** @type {string} */ (reader.readString());
541
- msg.setType(value);
756
+ var value = /** @type {number} */ (reader.readInt32());
757
+ msg.setOffset(value);
542
758
  break;
543
759
  default:
544
760
  reader.skipField();
@@ -553,9 +769,9 @@ proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader
553
769
  * Serializes the message to binary data (in protobuf wire format).
554
770
  * @return {!Uint8Array}
555
771
  */
556
- proto.cms.CommonWidgetRequest.prototype.serializeBinary = function() {
772
+ proto.cms.PaginationRequest.prototype.serializeBinary = function() {
557
773
  var writer = new jspb.BinaryWriter();
558
- proto.cms.CommonWidgetRequest.serializeBinaryToWriter(this, writer);
774
+ proto.cms.PaginationRequest.serializeBinaryToWriter(this, writer);
559
775
  return writer.getResultBuffer();
560
776
  };
561
777
 
@@ -563,87 +779,62 @@ proto.cms.CommonWidgetRequest.prototype.serializeBinary = function() {
563
779
  /**
564
780
  * Serializes the given message to binary data (in protobuf wire
565
781
  * format), writing to the given BinaryWriter.
566
- * @param {!proto.cms.CommonWidgetRequest} message
782
+ * @param {!proto.cms.PaginationRequest} message
567
783
  * @param {!jspb.BinaryWriter} writer
568
784
  * @suppress {unusedLocalVariables} f is only used for nested messages
569
785
  */
570
- proto.cms.CommonWidgetRequest.serializeBinaryToWriter = function(message, writer) {
786
+ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
571
787
  var f = undefined;
572
- f = message.getGeo();
573
- if (f.length > 0) {
574
- writer.writeString(
788
+ f = message.getLimit();
789
+ if (f !== 0) {
790
+ writer.writeInt32(
575
791
  1,
576
792
  f
577
793
  );
578
794
  }
579
- f = message.getContent();
580
- if (f.length > 0) {
581
- writer.writeString(
795
+ f = message.getOffset();
796
+ if (f !== 0) {
797
+ writer.writeInt32(
582
798
  2,
583
799
  f
584
800
  );
585
801
  }
586
- f = message.getType();
587
- if (f.length > 0) {
588
- writer.writeString(
589
- 3,
590
- f
591
- );
592
- }
593
- };
594
-
595
-
596
- /**
597
- * optional string geo = 1;
598
- * @return {string}
599
- */
600
- proto.cms.CommonWidgetRequest.prototype.getGeo = function() {
601
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
602
- };
603
-
604
-
605
- /**
606
- * @param {string} value
607
- * @return {!proto.cms.CommonWidgetRequest} returns this
608
- */
609
- proto.cms.CommonWidgetRequest.prototype.setGeo = function(value) {
610
- return jspb.Message.setProto3StringField(this, 1, value);
611
802
  };
612
803
 
613
804
 
614
805
  /**
615
- * optional string content = 2;
616
- * @return {string}
806
+ * optional int32 limit = 1;
807
+ * @return {number}
617
808
  */
618
- proto.cms.CommonWidgetRequest.prototype.getContent = function() {
619
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
809
+ proto.cms.PaginationRequest.prototype.getLimit = function() {
810
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
620
811
  };
621
812
 
622
813
 
623
814
  /**
624
- * @param {string} value
625
- * @return {!proto.cms.CommonWidgetRequest} returns this
815
+ * @param {number} value
816
+ * @return {!proto.cms.PaginationRequest} returns this
626
817
  */
627
- proto.cms.CommonWidgetRequest.prototype.setContent = function(value) {
628
- return jspb.Message.setProto3StringField(this, 2, value);
818
+ proto.cms.PaginationRequest.prototype.setLimit = function(value) {
819
+ return jspb.Message.setProto3IntField(this, 1, value);
629
820
  };
630
821
 
631
822
 
632
823
  /**
633
- * optional string type = 3;
634
- * @return {string}
824
+ * optional int32 offset = 2;
825
+ * @return {number}
635
826
  */
636
- proto.cms.CommonWidgetRequest.prototype.getType = function() {
637
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
827
+ proto.cms.PaginationRequest.prototype.getOffset = function() {
828
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
638
829
  };
639
830
 
640
831
 
641
832
  /**
642
- * @param {string} value
643
- * @return {!proto.cms.CommonWidgetRequest} returns this
833
+ * @param {number} value
834
+ * @return {!proto.cms.PaginationRequest} returns this
644
835
  */
645
- proto.cms.CommonWidgetRequest.prototype.setType = function(value) {
646
- return jspb.Message.setProto3StringField(this, 3, value);
836
+ proto.cms.PaginationRequest.prototype.setOffset = function(value) {
837
+ return jspb.Message.setProto3IntField(this, 2, value);
647
838
  };
648
839
 
649
840
 
@@ -663,8 +854,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
663
854
  * http://goto/soy-param-migration
664
855
  * @return {!Object}
665
856
  */
666
- proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInstance) {
667
- return proto.cms.GetMainPageWidgetRequest.toObject(opt_includeInstance, this);
857
+ proto.cms.File.prototype.toObject = function(opt_includeInstance) {
858
+ return proto.cms.File.toObject(opt_includeInstance, this);
668
859
  };
669
860
 
670
861
 
@@ -673,15 +864,15 @@ proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInst
673
864
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
674
865
  * the JSPB instance for transitional soy proto support:
675
866
  * http://goto/soy-param-migration
676
- * @param {!proto.cms.GetMainPageWidgetRequest} msg The msg instance to transform.
867
+ * @param {!proto.cms.File} msg The msg instance to transform.
677
868
  * @return {!Object}
678
869
  * @suppress {unusedLocalVariables} f is only used for nested messages
679
870
  */
680
- proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
871
+ proto.cms.File.toObject = function(includeInstance, msg) {
681
872
  var f, obj = {
682
- geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
683
- isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
684
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
873
+ media: msg.getMedia_asB64(),
874
+ fileName: jspb.Message.getFieldWithDefault(msg, 2, ""),
875
+ fileType: jspb.Message.getFieldWithDefault(msg, 3, "")
685
876
  };
686
877
 
687
878
  if (includeInstance) {
@@ -695,23 +886,23 @@ proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
695
886
  /**
696
887
  * Deserializes binary data (in protobuf wire format).
697
888
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
- * @return {!proto.cms.GetMainPageWidgetRequest}
889
+ * @return {!proto.cms.File}
699
890
  */
700
- proto.cms.GetMainPageWidgetRequest.deserializeBinary = function(bytes) {
891
+ proto.cms.File.deserializeBinary = function(bytes) {
701
892
  var reader = new jspb.BinaryReader(bytes);
702
- var msg = new proto.cms.GetMainPageWidgetRequest;
703
- return proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader(msg, reader);
893
+ var msg = new proto.cms.File;
894
+ return proto.cms.File.deserializeBinaryFromReader(msg, reader);
704
895
  };
705
896
 
706
897
 
707
898
  /**
708
899
  * Deserializes binary data (in protobuf wire format) from the
709
900
  * given reader into the given message object.
710
- * @param {!proto.cms.GetMainPageWidgetRequest} msg The message object to deserialize into.
901
+ * @param {!proto.cms.File} msg The message object to deserialize into.
711
902
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
- * @return {!proto.cms.GetMainPageWidgetRequest}
903
+ * @return {!proto.cms.File}
713
904
  */
714
- proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
905
+ proto.cms.File.deserializeBinaryFromReader = function(msg, reader) {
715
906
  while (reader.nextField()) {
716
907
  if (reader.isEndGroup()) {
717
908
  break;
@@ -719,16 +910,16 @@ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, r
719
910
  var field = reader.getFieldNumber();
720
911
  switch (field) {
721
912
  case 1:
722
- var value = /** @type {string} */ (reader.readString());
723
- msg.setGeo(value);
913
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
914
+ msg.setMedia(value);
724
915
  break;
725
916
  case 2:
726
- var value = /** @type {boolean} */ (reader.readBool());
727
- msg.setIsMobile(value);
917
+ var value = /** @type {string} */ (reader.readString());
918
+ msg.setFileName(value);
728
919
  break;
729
920
  case 3:
730
- var value = /** @type {boolean} */ (reader.readBool());
731
- msg.setAdminSide(value);
921
+ var value = /** @type {string} */ (reader.readString());
922
+ msg.setFileType(value);
732
923
  break;
733
924
  default:
734
925
  reader.skipField();
@@ -743,9 +934,9 @@ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, r
743
934
  * Serializes the message to binary data (in protobuf wire format).
744
935
  * @return {!Uint8Array}
745
936
  */
746
- proto.cms.GetMainPageWidgetRequest.prototype.serializeBinary = function() {
937
+ proto.cms.File.prototype.serializeBinary = function() {
747
938
  var writer = new jspb.BinaryWriter();
748
- proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter(this, writer);
939
+ proto.cms.File.serializeBinaryToWriter(this, writer);
749
940
  return writer.getResultBuffer();
750
941
  };
751
942
 
@@ -753,29 +944,29 @@ proto.cms.GetMainPageWidgetRequest.prototype.serializeBinary = function() {
753
944
  /**
754
945
  * Serializes the given message to binary data (in protobuf wire
755
946
  * format), writing to the given BinaryWriter.
756
- * @param {!proto.cms.GetMainPageWidgetRequest} message
947
+ * @param {!proto.cms.File} message
757
948
  * @param {!jspb.BinaryWriter} writer
758
949
  * @suppress {unusedLocalVariables} f is only used for nested messages
759
950
  */
760
- proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, writer) {
951
+ proto.cms.File.serializeBinaryToWriter = function(message, writer) {
761
952
  var f = undefined;
762
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
763
- if (f != null) {
764
- writer.writeString(
953
+ f = message.getMedia_asU8();
954
+ if (f.length > 0) {
955
+ writer.writeBytes(
765
956
  1,
766
957
  f
767
958
  );
768
959
  }
769
- f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
960
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
770
961
  if (f != null) {
771
- writer.writeBool(
962
+ writer.writeString(
772
963
  2,
773
964
  f
774
965
  );
775
966
  }
776
- f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
967
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
777
968
  if (f != null) {
778
- writer.writeBool(
969
+ writer.writeString(
779
970
  3,
780
971
  f
781
972
  );
@@ -784,64 +975,70 @@ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, w
784
975
 
785
976
 
786
977
  /**
787
- * optional string geo = 1;
788
- * @return {string}
978
+ * optional bytes media = 1;
979
+ * @return {!(string|Uint8Array)}
789
980
  */
790
- proto.cms.GetMainPageWidgetRequest.prototype.getGeo = function() {
791
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
981
+ proto.cms.File.prototype.getMedia = function() {
982
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
792
983
  };
793
984
 
794
985
 
795
986
  /**
796
- * @param {string} value
797
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
987
+ * optional bytes media = 1;
988
+ * This is a type-conversion wrapper around `getMedia()`
989
+ * @return {string}
798
990
  */
799
- proto.cms.GetMainPageWidgetRequest.prototype.setGeo = function(value) {
800
- return jspb.Message.setField(this, 1, value);
991
+ proto.cms.File.prototype.getMedia_asB64 = function() {
992
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
993
+ this.getMedia()));
801
994
  };
802
995
 
803
996
 
804
997
  /**
805
- * Clears the field making it undefined.
806
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
998
+ * optional bytes media = 1;
999
+ * Note that Uint8Array is not supported on all browsers.
1000
+ * @see http://caniuse.com/Uint8Array
1001
+ * This is a type-conversion wrapper around `getMedia()`
1002
+ * @return {!Uint8Array}
807
1003
  */
808
- proto.cms.GetMainPageWidgetRequest.prototype.clearGeo = function() {
809
- return jspb.Message.setField(this, 1, undefined);
1004
+ proto.cms.File.prototype.getMedia_asU8 = function() {
1005
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1006
+ this.getMedia()));
810
1007
  };
811
1008
 
812
1009
 
813
1010
  /**
814
- * Returns whether this field is set.
815
- * @return {boolean}
1011
+ * @param {!(string|Uint8Array)} value
1012
+ * @return {!proto.cms.File} returns this
816
1013
  */
817
- proto.cms.GetMainPageWidgetRequest.prototype.hasGeo = function() {
818
- return jspb.Message.getField(this, 1) != null;
1014
+ proto.cms.File.prototype.setMedia = function(value) {
1015
+ return jspb.Message.setProto3BytesField(this, 1, value);
819
1016
  };
820
1017
 
821
1018
 
822
1019
  /**
823
- * optional bool is_mobile = 2;
824
- * @return {boolean}
1020
+ * optional string file_name = 2;
1021
+ * @return {string}
825
1022
  */
826
- proto.cms.GetMainPageWidgetRequest.prototype.getIsMobile = function() {
827
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1023
+ proto.cms.File.prototype.getFileName = function() {
1024
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
828
1025
  };
829
1026
 
830
1027
 
831
1028
  /**
832
- * @param {boolean} value
833
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1029
+ * @param {string} value
1030
+ * @return {!proto.cms.File} returns this
834
1031
  */
835
- proto.cms.GetMainPageWidgetRequest.prototype.setIsMobile = function(value) {
1032
+ proto.cms.File.prototype.setFileName = function(value) {
836
1033
  return jspb.Message.setField(this, 2, value);
837
1034
  };
838
1035
 
839
1036
 
840
1037
  /**
841
1038
  * Clears the field making it undefined.
842
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1039
+ * @return {!proto.cms.File} returns this
843
1040
  */
844
- proto.cms.GetMainPageWidgetRequest.prototype.clearIsMobile = function() {
1041
+ proto.cms.File.prototype.clearFileName = function() {
845
1042
  return jspb.Message.setField(this, 2, undefined);
846
1043
  };
847
1044
 
@@ -850,34 +1047,34 @@ proto.cms.GetMainPageWidgetRequest.prototype.clearIsMobile = function() {
850
1047
  * Returns whether this field is set.
851
1048
  * @return {boolean}
852
1049
  */
853
- proto.cms.GetMainPageWidgetRequest.prototype.hasIsMobile = function() {
1050
+ proto.cms.File.prototype.hasFileName = function() {
854
1051
  return jspb.Message.getField(this, 2) != null;
855
1052
  };
856
1053
 
857
1054
 
858
1055
  /**
859
- * optional bool admin_side = 3;
860
- * @return {boolean}
1056
+ * optional string file_type = 3;
1057
+ * @return {string}
861
1058
  */
862
- proto.cms.GetMainPageWidgetRequest.prototype.getAdminSide = function() {
863
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1059
+ proto.cms.File.prototype.getFileType = function() {
1060
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
864
1061
  };
865
1062
 
866
1063
 
867
1064
  /**
868
- * @param {boolean} value
869
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1065
+ * @param {string} value
1066
+ * @return {!proto.cms.File} returns this
870
1067
  */
871
- proto.cms.GetMainPageWidgetRequest.prototype.setAdminSide = function(value) {
1068
+ proto.cms.File.prototype.setFileType = function(value) {
872
1069
  return jspb.Message.setField(this, 3, value);
873
1070
  };
874
1071
 
875
1072
 
876
1073
  /**
877
1074
  * Clears the field making it undefined.
878
- * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1075
+ * @return {!proto.cms.File} returns this
879
1076
  */
880
- proto.cms.GetMainPageWidgetRequest.prototype.clearAdminSide = function() {
1077
+ proto.cms.File.prototype.clearFileType = function() {
881
1078
  return jspb.Message.setField(this, 3, undefined);
882
1079
  };
883
1080
 
@@ -886,7 +1083,7 @@ proto.cms.GetMainPageWidgetRequest.prototype.clearAdminSide = function() {
886
1083
  * Returns whether this field is set.
887
1084
  * @return {boolean}
888
1085
  */
889
- proto.cms.GetMainPageWidgetRequest.prototype.hasAdminSide = function() {
1086
+ proto.cms.File.prototype.hasFileType = function() {
890
1087
  return jspb.Message.getField(this, 3) != null;
891
1088
  };
892
1089
 
@@ -907,8 +1104,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
907
1104
  * http://goto/soy-param-migration
908
1105
  * @return {!Object}
909
1106
  */
910
- proto.cms.MainPageWidgetItem.prototype.toObject = function(opt_includeInstance) {
911
- return proto.cms.MainPageWidgetItem.toObject(opt_includeInstance, this);
1107
+ proto.cms.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
1108
+ return proto.cms.GetFileRequest.toObject(opt_includeInstance, this);
912
1109
  };
913
1110
 
914
1111
 
@@ -917,14 +1114,14 @@ proto.cms.MainPageWidgetItem.prototype.toObject = function(opt_includeInstance)
917
1114
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
918
1115
  * the JSPB instance for transitional soy proto support:
919
1116
  * http://goto/soy-param-migration
920
- * @param {!proto.cms.MainPageWidgetItem} msg The msg instance to transform.
1117
+ * @param {!proto.cms.GetFileRequest} msg The msg instance to transform.
921
1118
  * @return {!Object}
922
1119
  * @suppress {unusedLocalVariables} f is only used for nested messages
923
1120
  */
924
- proto.cms.MainPageWidgetItem.toObject = function(includeInstance, msg) {
1121
+ proto.cms.GetFileRequest.toObject = function(includeInstance, msg) {
925
1122
  var f, obj = {
926
- geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
927
- content: jspb.Message.getFieldWithDefault(msg, 2, "")
1123
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1124
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
928
1125
  };
929
1126
 
930
1127
  if (includeInstance) {
@@ -938,23 +1135,23 @@ proto.cms.MainPageWidgetItem.toObject = function(includeInstance, msg) {
938
1135
  /**
939
1136
  * Deserializes binary data (in protobuf wire format).
940
1137
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
941
- * @return {!proto.cms.MainPageWidgetItem}
1138
+ * @return {!proto.cms.GetFileRequest}
942
1139
  */
943
- proto.cms.MainPageWidgetItem.deserializeBinary = function(bytes) {
1140
+ proto.cms.GetFileRequest.deserializeBinary = function(bytes) {
944
1141
  var reader = new jspb.BinaryReader(bytes);
945
- var msg = new proto.cms.MainPageWidgetItem;
946
- return proto.cms.MainPageWidgetItem.deserializeBinaryFromReader(msg, reader);
1142
+ var msg = new proto.cms.GetFileRequest;
1143
+ return proto.cms.GetFileRequest.deserializeBinaryFromReader(msg, reader);
947
1144
  };
948
1145
 
949
1146
 
950
1147
  /**
951
1148
  * Deserializes binary data (in protobuf wire format) from the
952
1149
  * given reader into the given message object.
953
- * @param {!proto.cms.MainPageWidgetItem} msg The message object to deserialize into.
1150
+ * @param {!proto.cms.GetFileRequest} msg The message object to deserialize into.
954
1151
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
955
- * @return {!proto.cms.MainPageWidgetItem}
1152
+ * @return {!proto.cms.GetFileRequest}
956
1153
  */
957
- proto.cms.MainPageWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
1154
+ proto.cms.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
958
1155
  while (reader.nextField()) {
959
1156
  if (reader.isEndGroup()) {
960
1157
  break;
@@ -963,11 +1160,11 @@ proto.cms.MainPageWidgetItem.deserializeBinaryFromReader = function(msg, reader)
963
1160
  switch (field) {
964
1161
  case 1:
965
1162
  var value = /** @type {string} */ (reader.readString());
966
- msg.setGeo(value);
1163
+ msg.setFileName(value);
967
1164
  break;
968
1165
  case 2:
969
1166
  var value = /** @type {string} */ (reader.readString());
970
- msg.setContent(value);
1167
+ msg.setInstanceType(value);
971
1168
  break;
972
1169
  default:
973
1170
  reader.skipField();
@@ -982,9 +1179,9 @@ proto.cms.MainPageWidgetItem.deserializeBinaryFromReader = function(msg, reader)
982
1179
  * Serializes the message to binary data (in protobuf wire format).
983
1180
  * @return {!Uint8Array}
984
1181
  */
985
- proto.cms.MainPageWidgetItem.prototype.serializeBinary = function() {
1182
+ proto.cms.GetFileRequest.prototype.serializeBinary = function() {
986
1183
  var writer = new jspb.BinaryWriter();
987
- proto.cms.MainPageWidgetItem.serializeBinaryToWriter(this, writer);
1184
+ proto.cms.GetFileRequest.serializeBinaryToWriter(this, writer);
988
1185
  return writer.getResultBuffer();
989
1186
  };
990
1187
 
@@ -992,20 +1189,20 @@ proto.cms.MainPageWidgetItem.prototype.serializeBinary = function() {
992
1189
  /**
993
1190
  * Serializes the given message to binary data (in protobuf wire
994
1191
  * format), writing to the given BinaryWriter.
995
- * @param {!proto.cms.MainPageWidgetItem} message
1192
+ * @param {!proto.cms.GetFileRequest} message
996
1193
  * @param {!jspb.BinaryWriter} writer
997
1194
  * @suppress {unusedLocalVariables} f is only used for nested messages
998
1195
  */
999
- proto.cms.MainPageWidgetItem.serializeBinaryToWriter = function(message, writer) {
1196
+ proto.cms.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
1000
1197
  var f = undefined;
1001
- f = message.getGeo();
1198
+ f = message.getFileName();
1002
1199
  if (f.length > 0) {
1003
1200
  writer.writeString(
1004
1201
  1,
1005
1202
  f
1006
1203
  );
1007
1204
  }
1008
- f = message.getContent();
1205
+ f = message.getInstanceType();
1009
1206
  if (f.length > 0) {
1010
1207
  writer.writeString(
1011
1208
  2,
@@ -1016,49 +1213,42 @@ proto.cms.MainPageWidgetItem.serializeBinaryToWriter = function(message, writer)
1016
1213
 
1017
1214
 
1018
1215
  /**
1019
- * optional string geo = 1;
1216
+ * optional string file_name = 1;
1020
1217
  * @return {string}
1021
1218
  */
1022
- proto.cms.MainPageWidgetItem.prototype.getGeo = function() {
1219
+ proto.cms.GetFileRequest.prototype.getFileName = function() {
1023
1220
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1024
1221
  };
1025
1222
 
1026
1223
 
1027
1224
  /**
1028
1225
  * @param {string} value
1029
- * @return {!proto.cms.MainPageWidgetItem} returns this
1226
+ * @return {!proto.cms.GetFileRequest} returns this
1030
1227
  */
1031
- proto.cms.MainPageWidgetItem.prototype.setGeo = function(value) {
1228
+ proto.cms.GetFileRequest.prototype.setFileName = function(value) {
1032
1229
  return jspb.Message.setProto3StringField(this, 1, value);
1033
1230
  };
1034
1231
 
1035
1232
 
1036
1233
  /**
1037
- * optional string content = 2;
1234
+ * optional string instance_type = 2;
1038
1235
  * @return {string}
1039
1236
  */
1040
- proto.cms.MainPageWidgetItem.prototype.getContent = function() {
1237
+ proto.cms.GetFileRequest.prototype.getInstanceType = function() {
1041
1238
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1042
1239
  };
1043
1240
 
1044
1241
 
1045
1242
  /**
1046
1243
  * @param {string} value
1047
- * @return {!proto.cms.MainPageWidgetItem} returns this
1244
+ * @return {!proto.cms.GetFileRequest} returns this
1048
1245
  */
1049
- proto.cms.MainPageWidgetItem.prototype.setContent = function(value) {
1246
+ proto.cms.GetFileRequest.prototype.setInstanceType = function(value) {
1050
1247
  return jspb.Message.setProto3StringField(this, 2, value);
1051
1248
  };
1052
1249
 
1053
1250
 
1054
1251
 
1055
- /**
1056
- * List of repeated fields within this message type.
1057
- * @private {!Array<number>}
1058
- * @const
1059
- */
1060
- proto.cms.MainPageWidgetResponse.repeatedFields_ = [1];
1061
-
1062
1252
 
1063
1253
 
1064
1254
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1074,8 +1264,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1074
1264
  * http://goto/soy-param-migration
1075
1265
  * @return {!Object}
1076
1266
  */
1077
- proto.cms.MainPageWidgetResponse.prototype.toObject = function(opt_includeInstance) {
1078
- return proto.cms.MainPageWidgetResponse.toObject(opt_includeInstance, this);
1267
+ proto.cms.CommonWidgetRequest.prototype.toObject = function(opt_includeInstance) {
1268
+ return proto.cms.CommonWidgetRequest.toObject(opt_includeInstance, this);
1079
1269
  };
1080
1270
 
1081
1271
 
@@ -1084,14 +1274,15 @@ proto.cms.MainPageWidgetResponse.prototype.toObject = function(opt_includeInstan
1084
1274
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1085
1275
  * the JSPB instance for transitional soy proto support:
1086
1276
  * http://goto/soy-param-migration
1087
- * @param {!proto.cms.MainPageWidgetResponse} msg The msg instance to transform.
1277
+ * @param {!proto.cms.CommonWidgetRequest} msg The msg instance to transform.
1088
1278
  * @return {!Object}
1089
1279
  * @suppress {unusedLocalVariables} f is only used for nested messages
1090
1280
  */
1091
- proto.cms.MainPageWidgetResponse.toObject = function(includeInstance, msg) {
1281
+ proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
1092
1282
  var f, obj = {
1093
- itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1094
- proto.cms.MainPageWidgetItem.toObject, includeInstance)
1283
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
1284
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
1285
+ type: jspb.Message.getFieldWithDefault(msg, 3, "")
1095
1286
  };
1096
1287
 
1097
1288
  if (includeInstance) {
@@ -1105,23 +1296,23 @@ proto.cms.MainPageWidgetResponse.toObject = function(includeInstance, msg) {
1105
1296
  /**
1106
1297
  * Deserializes binary data (in protobuf wire format).
1107
1298
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1108
- * @return {!proto.cms.MainPageWidgetResponse}
1299
+ * @return {!proto.cms.CommonWidgetRequest}
1109
1300
  */
1110
- proto.cms.MainPageWidgetResponse.deserializeBinary = function(bytes) {
1301
+ proto.cms.CommonWidgetRequest.deserializeBinary = function(bytes) {
1111
1302
  var reader = new jspb.BinaryReader(bytes);
1112
- var msg = new proto.cms.MainPageWidgetResponse;
1113
- return proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader(msg, reader);
1303
+ var msg = new proto.cms.CommonWidgetRequest;
1304
+ return proto.cms.CommonWidgetRequest.deserializeBinaryFromReader(msg, reader);
1114
1305
  };
1115
1306
 
1116
1307
 
1117
1308
  /**
1118
1309
  * Deserializes binary data (in protobuf wire format) from the
1119
1310
  * given reader into the given message object.
1120
- * @param {!proto.cms.MainPageWidgetResponse} msg The message object to deserialize into.
1311
+ * @param {!proto.cms.CommonWidgetRequest} msg The message object to deserialize into.
1121
1312
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1122
- * @return {!proto.cms.MainPageWidgetResponse}
1313
+ * @return {!proto.cms.CommonWidgetRequest}
1123
1314
  */
1124
- proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
1315
+ proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
1125
1316
  while (reader.nextField()) {
1126
1317
  if (reader.isEndGroup()) {
1127
1318
  break;
@@ -1129,9 +1320,16 @@ proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader = function(msg, rea
1129
1320
  var field = reader.getFieldNumber();
1130
1321
  switch (field) {
1131
1322
  case 1:
1132
- var value = new proto.cms.MainPageWidgetItem;
1133
- reader.readMessage(value,proto.cms.MainPageWidgetItem.deserializeBinaryFromReader);
1134
- msg.addItems(value);
1323
+ var value = /** @type {string} */ (reader.readString());
1324
+ msg.setGeo(value);
1325
+ break;
1326
+ case 2:
1327
+ var value = /** @type {string} */ (reader.readString());
1328
+ msg.setContent(value);
1329
+ break;
1330
+ case 3:
1331
+ var value = /** @type {string} */ (reader.readString());
1332
+ msg.setType(value);
1135
1333
  break;
1136
1334
  default:
1137
1335
  reader.skipField();
@@ -1146,9 +1344,9 @@ proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader = function(msg, rea
1146
1344
  * Serializes the message to binary data (in protobuf wire format).
1147
1345
  * @return {!Uint8Array}
1148
1346
  */
1149
- proto.cms.MainPageWidgetResponse.prototype.serializeBinary = function() {
1347
+ proto.cms.CommonWidgetRequest.prototype.serializeBinary = function() {
1150
1348
  var writer = new jspb.BinaryWriter();
1151
- proto.cms.MainPageWidgetResponse.serializeBinaryToWriter(this, writer);
1349
+ proto.cms.CommonWidgetRequest.serializeBinaryToWriter(this, writer);
1152
1350
  return writer.getResultBuffer();
1153
1351
  };
1154
1352
 
@@ -1156,58 +1354,87 @@ proto.cms.MainPageWidgetResponse.prototype.serializeBinary = function() {
1156
1354
  /**
1157
1355
  * Serializes the given message to binary data (in protobuf wire
1158
1356
  * format), writing to the given BinaryWriter.
1159
- * @param {!proto.cms.MainPageWidgetResponse} message
1357
+ * @param {!proto.cms.CommonWidgetRequest} message
1160
1358
  * @param {!jspb.BinaryWriter} writer
1161
1359
  * @suppress {unusedLocalVariables} f is only used for nested messages
1162
1360
  */
1163
- proto.cms.MainPageWidgetResponse.serializeBinaryToWriter = function(message, writer) {
1361
+ proto.cms.CommonWidgetRequest.serializeBinaryToWriter = function(message, writer) {
1164
1362
  var f = undefined;
1165
- f = message.getItemsList();
1363
+ f = message.getGeo();
1166
1364
  if (f.length > 0) {
1167
- writer.writeRepeatedMessage(
1365
+ writer.writeString(
1168
1366
  1,
1169
- f,
1170
- proto.cms.MainPageWidgetItem.serializeBinaryToWriter
1367
+ f
1368
+ );
1369
+ }
1370
+ f = message.getContent();
1371
+ if (f.length > 0) {
1372
+ writer.writeString(
1373
+ 2,
1374
+ f
1375
+ );
1376
+ }
1377
+ f = message.getType();
1378
+ if (f.length > 0) {
1379
+ writer.writeString(
1380
+ 3,
1381
+ f
1171
1382
  );
1172
1383
  }
1173
1384
  };
1174
1385
 
1175
1386
 
1176
1387
  /**
1177
- * repeated MainPageWidgetItem items = 1;
1178
- * @return {!Array<!proto.cms.MainPageWidgetItem>}
1388
+ * optional string geo = 1;
1389
+ * @return {string}
1179
1390
  */
1180
- proto.cms.MainPageWidgetResponse.prototype.getItemsList = function() {
1181
- return /** @type{!Array<!proto.cms.MainPageWidgetItem>} */ (
1182
- jspb.Message.getRepeatedWrapperField(this, proto.cms.MainPageWidgetItem, 1));
1391
+ proto.cms.CommonWidgetRequest.prototype.getGeo = function() {
1392
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1183
1393
  };
1184
1394
 
1185
1395
 
1186
1396
  /**
1187
- * @param {!Array<!proto.cms.MainPageWidgetItem>} value
1188
- * @return {!proto.cms.MainPageWidgetResponse} returns this
1189
- */
1190
- proto.cms.MainPageWidgetResponse.prototype.setItemsList = function(value) {
1191
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1397
+ * @param {string} value
1398
+ * @return {!proto.cms.CommonWidgetRequest} returns this
1399
+ */
1400
+ proto.cms.CommonWidgetRequest.prototype.setGeo = function(value) {
1401
+ return jspb.Message.setProto3StringField(this, 1, value);
1192
1402
  };
1193
1403
 
1194
1404
 
1195
1405
  /**
1196
- * @param {!proto.cms.MainPageWidgetItem=} opt_value
1197
- * @param {number=} opt_index
1198
- * @return {!proto.cms.MainPageWidgetItem}
1406
+ * optional string content = 2;
1407
+ * @return {string}
1199
1408
  */
1200
- proto.cms.MainPageWidgetResponse.prototype.addItems = function(opt_value, opt_index) {
1201
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.MainPageWidgetItem, opt_index);
1409
+ proto.cms.CommonWidgetRequest.prototype.getContent = function() {
1410
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1202
1411
  };
1203
1412
 
1204
1413
 
1205
1414
  /**
1206
- * Clears the list making it empty but non-null.
1207
- * @return {!proto.cms.MainPageWidgetResponse} returns this
1415
+ * @param {string} value
1416
+ * @return {!proto.cms.CommonWidgetRequest} returns this
1208
1417
  */
1209
- proto.cms.MainPageWidgetResponse.prototype.clearItemsList = function() {
1210
- return this.setItemsList([]);
1418
+ proto.cms.CommonWidgetRequest.prototype.setContent = function(value) {
1419
+ return jspb.Message.setProto3StringField(this, 2, value);
1420
+ };
1421
+
1422
+
1423
+ /**
1424
+ * optional string type = 3;
1425
+ * @return {string}
1426
+ */
1427
+ proto.cms.CommonWidgetRequest.prototype.getType = function() {
1428
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * @param {string} value
1434
+ * @return {!proto.cms.CommonWidgetRequest} returns this
1435
+ */
1436
+ proto.cms.CommonWidgetRequest.prototype.setType = function(value) {
1437
+ return jspb.Message.setProto3StringField(this, 3, value);
1211
1438
  };
1212
1439
 
1213
1440
 
@@ -1227,8 +1454,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1227
1454
  * http://goto/soy-param-migration
1228
1455
  * @return {!Object}
1229
1456
  */
1230
- proto.cms.GetBurgerMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
1231
- return proto.cms.GetBurgerMenuWidgetRequest.toObject(opt_includeInstance, this);
1457
+ proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInstance) {
1458
+ return proto.cms.GetMainPageWidgetRequest.toObject(opt_includeInstance, this);
1232
1459
  };
1233
1460
 
1234
1461
 
@@ -1237,16 +1464,15 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.toObject = function(opt_includeIn
1237
1464
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1238
1465
  * the JSPB instance for transitional soy proto support:
1239
1466
  * http://goto/soy-param-migration
1240
- * @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The msg instance to transform.
1467
+ * @param {!proto.cms.GetMainPageWidgetRequest} msg The msg instance to transform.
1241
1468
  * @return {!Object}
1242
1469
  * @suppress {unusedLocalVariables} f is only used for nested messages
1243
1470
  */
1244
- proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
1471
+ proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
1245
1472
  var f, obj = {
1246
1473
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
1247
1474
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1248
- locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
1249
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
1475
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1250
1476
  };
1251
1477
 
1252
1478
  if (includeInstance) {
@@ -1260,23 +1486,23 @@ proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
1260
1486
  /**
1261
1487
  * Deserializes binary data (in protobuf wire format).
1262
1488
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1263
- * @return {!proto.cms.GetBurgerMenuWidgetRequest}
1489
+ * @return {!proto.cms.GetMainPageWidgetRequest}
1264
1490
  */
1265
- proto.cms.GetBurgerMenuWidgetRequest.deserializeBinary = function(bytes) {
1491
+ proto.cms.GetMainPageWidgetRequest.deserializeBinary = function(bytes) {
1266
1492
  var reader = new jspb.BinaryReader(bytes);
1267
- var msg = new proto.cms.GetBurgerMenuWidgetRequest;
1268
- return proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
1493
+ var msg = new proto.cms.GetMainPageWidgetRequest;
1494
+ return proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader(msg, reader);
1269
1495
  };
1270
1496
 
1271
1497
 
1272
1498
  /**
1273
1499
  * Deserializes binary data (in protobuf wire format) from the
1274
1500
  * given reader into the given message object.
1275
- * @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The message object to deserialize into.
1501
+ * @param {!proto.cms.GetMainPageWidgetRequest} msg The message object to deserialize into.
1276
1502
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1277
- * @return {!proto.cms.GetBurgerMenuWidgetRequest}
1503
+ * @return {!proto.cms.GetMainPageWidgetRequest}
1278
1504
  */
1279
- proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
1505
+ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
1280
1506
  while (reader.nextField()) {
1281
1507
  if (reader.isEndGroup()) {
1282
1508
  break;
@@ -1292,10 +1518,6 @@ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg,
1292
1518
  msg.setIsMobile(value);
1293
1519
  break;
1294
1520
  case 3:
1295
- var value = /** @type {string} */ (reader.readString());
1296
- msg.setLocale(value);
1297
- break;
1298
- case 4:
1299
1521
  var value = /** @type {boolean} */ (reader.readBool());
1300
1522
  msg.setAdminSide(value);
1301
1523
  break;
@@ -1312,9 +1534,9 @@ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg,
1312
1534
  * Serializes the message to binary data (in protobuf wire format).
1313
1535
  * @return {!Uint8Array}
1314
1536
  */
1315
- proto.cms.GetBurgerMenuWidgetRequest.prototype.serializeBinary = function() {
1537
+ proto.cms.GetMainPageWidgetRequest.prototype.serializeBinary = function() {
1316
1538
  var writer = new jspb.BinaryWriter();
1317
- proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter(this, writer);
1539
+ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter(this, writer);
1318
1540
  return writer.getResultBuffer();
1319
1541
  };
1320
1542
 
@@ -1322,11 +1544,11 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.serializeBinary = function() {
1322
1544
  /**
1323
1545
  * Serializes the given message to binary data (in protobuf wire
1324
1546
  * format), writing to the given BinaryWriter.
1325
- * @param {!proto.cms.GetBurgerMenuWidgetRequest} message
1547
+ * @param {!proto.cms.GetMainPageWidgetRequest} message
1326
1548
  * @param {!jspb.BinaryWriter} writer
1327
1549
  * @suppress {unusedLocalVariables} f is only used for nested messages
1328
1550
  */
1329
- proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
1551
+ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, writer) {
1330
1552
  var f = undefined;
1331
1553
  f = /** @type {string} */ (jspb.Message.getField(message, 1));
1332
1554
  if (f != null) {
@@ -1342,17 +1564,10 @@ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message,
1342
1564
  f
1343
1565
  );
1344
1566
  }
1345
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1346
- if (f != null) {
1347
- writer.writeString(
1348
- 3,
1349
- f
1350
- );
1351
- }
1352
- f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
1567
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
1353
1568
  if (f != null) {
1354
1569
  writer.writeBool(
1355
- 4,
1570
+ 3,
1356
1571
  f
1357
1572
  );
1358
1573
  }
@@ -1363,25 +1578,25 @@ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message,
1363
1578
  * optional string geo = 1;
1364
1579
  * @return {string}
1365
1580
  */
1366
- proto.cms.GetBurgerMenuWidgetRequest.prototype.getGeo = function() {
1581
+ proto.cms.GetMainPageWidgetRequest.prototype.getGeo = function() {
1367
1582
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1368
1583
  };
1369
1584
 
1370
1585
 
1371
1586
  /**
1372
1587
  * @param {string} value
1373
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1588
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1374
1589
  */
1375
- proto.cms.GetBurgerMenuWidgetRequest.prototype.setGeo = function(value) {
1590
+ proto.cms.GetMainPageWidgetRequest.prototype.setGeo = function(value) {
1376
1591
  return jspb.Message.setField(this, 1, value);
1377
1592
  };
1378
1593
 
1379
1594
 
1380
1595
  /**
1381
1596
  * Clears the field making it undefined.
1382
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1597
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1383
1598
  */
1384
- proto.cms.GetBurgerMenuWidgetRequest.prototype.clearGeo = function() {
1599
+ proto.cms.GetMainPageWidgetRequest.prototype.clearGeo = function() {
1385
1600
  return jspb.Message.setField(this, 1, undefined);
1386
1601
  };
1387
1602
 
@@ -1390,7 +1605,7 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearGeo = function() {
1390
1605
  * Returns whether this field is set.
1391
1606
  * @return {boolean}
1392
1607
  */
1393
- proto.cms.GetBurgerMenuWidgetRequest.prototype.hasGeo = function() {
1608
+ proto.cms.GetMainPageWidgetRequest.prototype.hasGeo = function() {
1394
1609
  return jspb.Message.getField(this, 1) != null;
1395
1610
  };
1396
1611
 
@@ -1399,25 +1614,25 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasGeo = function() {
1399
1614
  * optional bool is_mobile = 2;
1400
1615
  * @return {boolean}
1401
1616
  */
1402
- proto.cms.GetBurgerMenuWidgetRequest.prototype.getIsMobile = function() {
1617
+ proto.cms.GetMainPageWidgetRequest.prototype.getIsMobile = function() {
1403
1618
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1404
1619
  };
1405
1620
 
1406
1621
 
1407
1622
  /**
1408
1623
  * @param {boolean} value
1409
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1624
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1410
1625
  */
1411
- proto.cms.GetBurgerMenuWidgetRequest.prototype.setIsMobile = function(value) {
1626
+ proto.cms.GetMainPageWidgetRequest.prototype.setIsMobile = function(value) {
1412
1627
  return jspb.Message.setField(this, 2, value);
1413
1628
  };
1414
1629
 
1415
1630
 
1416
1631
  /**
1417
1632
  * Clears the field making it undefined.
1418
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1633
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1419
1634
  */
1420
- proto.cms.GetBurgerMenuWidgetRequest.prototype.clearIsMobile = function() {
1635
+ proto.cms.GetMainPageWidgetRequest.prototype.clearIsMobile = function() {
1421
1636
  return jspb.Message.setField(this, 2, undefined);
1422
1637
  };
1423
1638
 
@@ -1426,34 +1641,34 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearIsMobile = function() {
1426
1641
  * Returns whether this field is set.
1427
1642
  * @return {boolean}
1428
1643
  */
1429
- proto.cms.GetBurgerMenuWidgetRequest.prototype.hasIsMobile = function() {
1644
+ proto.cms.GetMainPageWidgetRequest.prototype.hasIsMobile = function() {
1430
1645
  return jspb.Message.getField(this, 2) != null;
1431
1646
  };
1432
1647
 
1433
1648
 
1434
1649
  /**
1435
- * optional string locale = 3;
1436
- * @return {string}
1650
+ * optional bool admin_side = 3;
1651
+ * @return {boolean}
1437
1652
  */
1438
- proto.cms.GetBurgerMenuWidgetRequest.prototype.getLocale = function() {
1439
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1653
+ proto.cms.GetMainPageWidgetRequest.prototype.getAdminSide = function() {
1654
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1440
1655
  };
1441
1656
 
1442
1657
 
1443
1658
  /**
1444
- * @param {string} value
1445
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1659
+ * @param {boolean} value
1660
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1446
1661
  */
1447
- proto.cms.GetBurgerMenuWidgetRequest.prototype.setLocale = function(value) {
1662
+ proto.cms.GetMainPageWidgetRequest.prototype.setAdminSide = function(value) {
1448
1663
  return jspb.Message.setField(this, 3, value);
1449
1664
  };
1450
1665
 
1451
1666
 
1452
1667
  /**
1453
1668
  * Clears the field making it undefined.
1454
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1669
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
1455
1670
  */
1456
- proto.cms.GetBurgerMenuWidgetRequest.prototype.clearLocale = function() {
1671
+ proto.cms.GetMainPageWidgetRequest.prototype.clearAdminSide = function() {
1457
1672
  return jspb.Message.setField(this, 3, undefined);
1458
1673
  };
1459
1674
 
@@ -1462,47 +1677,11 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearLocale = function() {
1462
1677
  * Returns whether this field is set.
1463
1678
  * @return {boolean}
1464
1679
  */
1465
- proto.cms.GetBurgerMenuWidgetRequest.prototype.hasLocale = function() {
1680
+ proto.cms.GetMainPageWidgetRequest.prototype.hasAdminSide = function() {
1466
1681
  return jspb.Message.getField(this, 3) != null;
1467
1682
  };
1468
1683
 
1469
1684
 
1470
- /**
1471
- * optional bool admin_side = 4;
1472
- * @return {boolean}
1473
- */
1474
- proto.cms.GetBurgerMenuWidgetRequest.prototype.getAdminSide = function() {
1475
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1476
- };
1477
-
1478
-
1479
- /**
1480
- * @param {boolean} value
1481
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1482
- */
1483
- proto.cms.GetBurgerMenuWidgetRequest.prototype.setAdminSide = function(value) {
1484
- return jspb.Message.setField(this, 4, value);
1485
- };
1486
-
1487
-
1488
- /**
1489
- * Clears the field making it undefined.
1490
- * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1491
- */
1492
- proto.cms.GetBurgerMenuWidgetRequest.prototype.clearAdminSide = function() {
1493
- return jspb.Message.setField(this, 4, undefined);
1494
- };
1495
-
1496
-
1497
- /**
1498
- * Returns whether this field is set.
1499
- * @return {boolean}
1500
- */
1501
- proto.cms.GetBurgerMenuWidgetRequest.prototype.hasAdminSide = function() {
1502
- return jspb.Message.getField(this, 4) != null;
1503
- };
1504
-
1505
-
1506
1685
 
1507
1686
 
1508
1687
 
@@ -1519,8 +1698,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1519
1698
  * http://goto/soy-param-migration
1520
1699
  * @return {!Object}
1521
1700
  */
1522
- proto.cms.BurgerMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
1523
- return proto.cms.BurgerMenuWidgetItem.toObject(opt_includeInstance, this);
1701
+ proto.cms.MainPageWidgetItem.prototype.toObject = function(opt_includeInstance) {
1702
+ return proto.cms.MainPageWidgetItem.toObject(opt_includeInstance, this);
1524
1703
  };
1525
1704
 
1526
1705
 
@@ -1529,11 +1708,11 @@ proto.cms.BurgerMenuWidgetItem.prototype.toObject = function(opt_includeInstance
1529
1708
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1530
1709
  * the JSPB instance for transitional soy proto support:
1531
1710
  * http://goto/soy-param-migration
1532
- * @param {!proto.cms.BurgerMenuWidgetItem} msg The msg instance to transform.
1711
+ * @param {!proto.cms.MainPageWidgetItem} msg The msg instance to transform.
1533
1712
  * @return {!Object}
1534
1713
  * @suppress {unusedLocalVariables} f is only used for nested messages
1535
1714
  */
1536
- proto.cms.BurgerMenuWidgetItem.toObject = function(includeInstance, msg) {
1715
+ proto.cms.MainPageWidgetItem.toObject = function(includeInstance, msg) {
1537
1716
  var f, obj = {
1538
1717
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
1539
1718
  content: jspb.Message.getFieldWithDefault(msg, 2, "")
@@ -1550,23 +1729,23 @@ proto.cms.BurgerMenuWidgetItem.toObject = function(includeInstance, msg) {
1550
1729
  /**
1551
1730
  * Deserializes binary data (in protobuf wire format).
1552
1731
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1553
- * @return {!proto.cms.BurgerMenuWidgetItem}
1732
+ * @return {!proto.cms.MainPageWidgetItem}
1554
1733
  */
1555
- proto.cms.BurgerMenuWidgetItem.deserializeBinary = function(bytes) {
1734
+ proto.cms.MainPageWidgetItem.deserializeBinary = function(bytes) {
1556
1735
  var reader = new jspb.BinaryReader(bytes);
1557
- var msg = new proto.cms.BurgerMenuWidgetItem;
1558
- return proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
1736
+ var msg = new proto.cms.MainPageWidgetItem;
1737
+ return proto.cms.MainPageWidgetItem.deserializeBinaryFromReader(msg, reader);
1559
1738
  };
1560
1739
 
1561
1740
 
1562
1741
  /**
1563
1742
  * Deserializes binary data (in protobuf wire format) from the
1564
1743
  * given reader into the given message object.
1565
- * @param {!proto.cms.BurgerMenuWidgetItem} msg The message object to deserialize into.
1744
+ * @param {!proto.cms.MainPageWidgetItem} msg The message object to deserialize into.
1566
1745
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1567
- * @return {!proto.cms.BurgerMenuWidgetItem}
1746
+ * @return {!proto.cms.MainPageWidgetItem}
1568
1747
  */
1569
- proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
1748
+ proto.cms.MainPageWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
1570
1749
  while (reader.nextField()) {
1571
1750
  if (reader.isEndGroup()) {
1572
1751
  break;
@@ -1594,9 +1773,9 @@ proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader = function(msg, reade
1594
1773
  * Serializes the message to binary data (in protobuf wire format).
1595
1774
  * @return {!Uint8Array}
1596
1775
  */
1597
- proto.cms.BurgerMenuWidgetItem.prototype.serializeBinary = function() {
1776
+ proto.cms.MainPageWidgetItem.prototype.serializeBinary = function() {
1598
1777
  var writer = new jspb.BinaryWriter();
1599
- proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter(this, writer);
1778
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter(this, writer);
1600
1779
  return writer.getResultBuffer();
1601
1780
  };
1602
1781
 
@@ -1604,11 +1783,11 @@ proto.cms.BurgerMenuWidgetItem.prototype.serializeBinary = function() {
1604
1783
  /**
1605
1784
  * Serializes the given message to binary data (in protobuf wire
1606
1785
  * format), writing to the given BinaryWriter.
1607
- * @param {!proto.cms.BurgerMenuWidgetItem} message
1786
+ * @param {!proto.cms.MainPageWidgetItem} message
1608
1787
  * @param {!jspb.BinaryWriter} writer
1609
1788
  * @suppress {unusedLocalVariables} f is only used for nested messages
1610
1789
  */
1611
- proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
1790
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter = function(message, writer) {
1612
1791
  var f = undefined;
1613
1792
  f = message.getGeo();
1614
1793
  if (f.length > 0) {
@@ -1631,16 +1810,16 @@ proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter = function(message, write
1631
1810
  * optional string geo = 1;
1632
1811
  * @return {string}
1633
1812
  */
1634
- proto.cms.BurgerMenuWidgetItem.prototype.getGeo = function() {
1813
+ proto.cms.MainPageWidgetItem.prototype.getGeo = function() {
1635
1814
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1636
1815
  };
1637
1816
 
1638
1817
 
1639
1818
  /**
1640
1819
  * @param {string} value
1641
- * @return {!proto.cms.BurgerMenuWidgetItem} returns this
1820
+ * @return {!proto.cms.MainPageWidgetItem} returns this
1642
1821
  */
1643
- proto.cms.BurgerMenuWidgetItem.prototype.setGeo = function(value) {
1822
+ proto.cms.MainPageWidgetItem.prototype.setGeo = function(value) {
1644
1823
  return jspb.Message.setProto3StringField(this, 1, value);
1645
1824
  };
1646
1825
 
@@ -1649,18 +1828,2449 @@ proto.cms.BurgerMenuWidgetItem.prototype.setGeo = function(value) {
1649
1828
  * optional string content = 2;
1650
1829
  * @return {string}
1651
1830
  */
1652
- proto.cms.BurgerMenuWidgetItem.prototype.getContent = function() {
1831
+ proto.cms.MainPageWidgetItem.prototype.getContent = function() {
1653
1832
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1654
1833
  };
1655
1834
 
1656
1835
 
1657
1836
  /**
1658
1837
  * @param {string} value
1659
- * @return {!proto.cms.BurgerMenuWidgetItem} returns this
1838
+ * @return {!proto.cms.MainPageWidgetItem} returns this
1660
1839
  */
1661
- proto.cms.BurgerMenuWidgetItem.prototype.setContent = function(value) {
1840
+ proto.cms.MainPageWidgetItem.prototype.setContent = function(value) {
1662
1841
  return jspb.Message.setProto3StringField(this, 2, value);
1663
1842
  };
1664
1843
 
1665
1844
 
1845
+
1846
+ /**
1847
+ * List of repeated fields within this message type.
1848
+ * @private {!Array<number>}
1849
+ * @const
1850
+ */
1851
+ proto.cms.MainPageWidgetResponse.repeatedFields_ = [1];
1852
+
1853
+
1854
+
1855
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1856
+ /**
1857
+ * Creates an object representation of this proto.
1858
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1859
+ * Optional fields that are not set will be set to undefined.
1860
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1861
+ * For the list of reserved names please see:
1862
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1863
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1864
+ * JSPB instance for transitional soy proto support:
1865
+ * http://goto/soy-param-migration
1866
+ * @return {!Object}
1867
+ */
1868
+ proto.cms.MainPageWidgetResponse.prototype.toObject = function(opt_includeInstance) {
1869
+ return proto.cms.MainPageWidgetResponse.toObject(opt_includeInstance, this);
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * Static version of the {@see toObject} method.
1875
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1876
+ * the JSPB instance for transitional soy proto support:
1877
+ * http://goto/soy-param-migration
1878
+ * @param {!proto.cms.MainPageWidgetResponse} msg The msg instance to transform.
1879
+ * @return {!Object}
1880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1881
+ */
1882
+ proto.cms.MainPageWidgetResponse.toObject = function(includeInstance, msg) {
1883
+ var f, obj = {
1884
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1885
+ proto.cms.MainPageWidgetItem.toObject, includeInstance)
1886
+ };
1887
+
1888
+ if (includeInstance) {
1889
+ obj.$jspbMessageInstance = msg;
1890
+ }
1891
+ return obj;
1892
+ };
1893
+ }
1894
+
1895
+
1896
+ /**
1897
+ * Deserializes binary data (in protobuf wire format).
1898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1899
+ * @return {!proto.cms.MainPageWidgetResponse}
1900
+ */
1901
+ proto.cms.MainPageWidgetResponse.deserializeBinary = function(bytes) {
1902
+ var reader = new jspb.BinaryReader(bytes);
1903
+ var msg = new proto.cms.MainPageWidgetResponse;
1904
+ return proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader(msg, reader);
1905
+ };
1906
+
1907
+
1908
+ /**
1909
+ * Deserializes binary data (in protobuf wire format) from the
1910
+ * given reader into the given message object.
1911
+ * @param {!proto.cms.MainPageWidgetResponse} msg The message object to deserialize into.
1912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1913
+ * @return {!proto.cms.MainPageWidgetResponse}
1914
+ */
1915
+ proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
1916
+ while (reader.nextField()) {
1917
+ if (reader.isEndGroup()) {
1918
+ break;
1919
+ }
1920
+ var field = reader.getFieldNumber();
1921
+ switch (field) {
1922
+ case 1:
1923
+ var value = new proto.cms.MainPageWidgetItem;
1924
+ reader.readMessage(value,proto.cms.MainPageWidgetItem.deserializeBinaryFromReader);
1925
+ msg.addItems(value);
1926
+ break;
1927
+ default:
1928
+ reader.skipField();
1929
+ break;
1930
+ }
1931
+ }
1932
+ return msg;
1933
+ };
1934
+
1935
+
1936
+ /**
1937
+ * Serializes the message to binary data (in protobuf wire format).
1938
+ * @return {!Uint8Array}
1939
+ */
1940
+ proto.cms.MainPageWidgetResponse.prototype.serializeBinary = function() {
1941
+ var writer = new jspb.BinaryWriter();
1942
+ proto.cms.MainPageWidgetResponse.serializeBinaryToWriter(this, writer);
1943
+ return writer.getResultBuffer();
1944
+ };
1945
+
1946
+
1947
+ /**
1948
+ * Serializes the given message to binary data (in protobuf wire
1949
+ * format), writing to the given BinaryWriter.
1950
+ * @param {!proto.cms.MainPageWidgetResponse} message
1951
+ * @param {!jspb.BinaryWriter} writer
1952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1953
+ */
1954
+ proto.cms.MainPageWidgetResponse.serializeBinaryToWriter = function(message, writer) {
1955
+ var f = undefined;
1956
+ f = message.getItemsList();
1957
+ if (f.length > 0) {
1958
+ writer.writeRepeatedMessage(
1959
+ 1,
1960
+ f,
1961
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter
1962
+ );
1963
+ }
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * repeated MainPageWidgetItem items = 1;
1969
+ * @return {!Array<!proto.cms.MainPageWidgetItem>}
1970
+ */
1971
+ proto.cms.MainPageWidgetResponse.prototype.getItemsList = function() {
1972
+ return /** @type{!Array<!proto.cms.MainPageWidgetItem>} */ (
1973
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.MainPageWidgetItem, 1));
1974
+ };
1975
+
1976
+
1977
+ /**
1978
+ * @param {!Array<!proto.cms.MainPageWidgetItem>} value
1979
+ * @return {!proto.cms.MainPageWidgetResponse} returns this
1980
+ */
1981
+ proto.cms.MainPageWidgetResponse.prototype.setItemsList = function(value) {
1982
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1983
+ };
1984
+
1985
+
1986
+ /**
1987
+ * @param {!proto.cms.MainPageWidgetItem=} opt_value
1988
+ * @param {number=} opt_index
1989
+ * @return {!proto.cms.MainPageWidgetItem}
1990
+ */
1991
+ proto.cms.MainPageWidgetResponse.prototype.addItems = function(opt_value, opt_index) {
1992
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.MainPageWidgetItem, opt_index);
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * Clears the list making it empty but non-null.
1998
+ * @return {!proto.cms.MainPageWidgetResponse} returns this
1999
+ */
2000
+ proto.cms.MainPageWidgetResponse.prototype.clearItemsList = function() {
2001
+ return this.setItemsList([]);
2002
+ };
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2009
+ /**
2010
+ * Creates an object representation of this proto.
2011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2012
+ * Optional fields that are not set will be set to undefined.
2013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2014
+ * For the list of reserved names please see:
2015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2017
+ * JSPB instance for transitional soy proto support:
2018
+ * http://goto/soy-param-migration
2019
+ * @return {!Object}
2020
+ */
2021
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
2022
+ return proto.cms.GetBurgerMenuWidgetRequest.toObject(opt_includeInstance, this);
2023
+ };
2024
+
2025
+
2026
+ /**
2027
+ * Static version of the {@see toObject} method.
2028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2029
+ * the JSPB instance for transitional soy proto support:
2030
+ * http://goto/soy-param-migration
2031
+ * @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The msg instance to transform.
2032
+ * @return {!Object}
2033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2034
+ */
2035
+ proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
2036
+ var f, obj = {
2037
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
2038
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
2039
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
2040
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2041
+ };
2042
+
2043
+ if (includeInstance) {
2044
+ obj.$jspbMessageInstance = msg;
2045
+ }
2046
+ return obj;
2047
+ };
2048
+ }
2049
+
2050
+
2051
+ /**
2052
+ * Deserializes binary data (in protobuf wire format).
2053
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2054
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest}
2055
+ */
2056
+ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinary = function(bytes) {
2057
+ var reader = new jspb.BinaryReader(bytes);
2058
+ var msg = new proto.cms.GetBurgerMenuWidgetRequest;
2059
+ return proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Deserializes binary data (in protobuf wire format) from the
2065
+ * given reader into the given message object.
2066
+ * @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The message object to deserialize into.
2067
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2068
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest}
2069
+ */
2070
+ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
2071
+ while (reader.nextField()) {
2072
+ if (reader.isEndGroup()) {
2073
+ break;
2074
+ }
2075
+ var field = reader.getFieldNumber();
2076
+ switch (field) {
2077
+ case 1:
2078
+ var value = /** @type {string} */ (reader.readString());
2079
+ msg.setGeo(value);
2080
+ break;
2081
+ case 2:
2082
+ var value = /** @type {boolean} */ (reader.readBool());
2083
+ msg.setIsMobile(value);
2084
+ break;
2085
+ case 3:
2086
+ var value = /** @type {string} */ (reader.readString());
2087
+ msg.setLocale(value);
2088
+ break;
2089
+ case 4:
2090
+ var value = /** @type {boolean} */ (reader.readBool());
2091
+ msg.setAdminSide(value);
2092
+ break;
2093
+ default:
2094
+ reader.skipField();
2095
+ break;
2096
+ }
2097
+ }
2098
+ return msg;
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Serializes the message to binary data (in protobuf wire format).
2104
+ * @return {!Uint8Array}
2105
+ */
2106
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.serializeBinary = function() {
2107
+ var writer = new jspb.BinaryWriter();
2108
+ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter(this, writer);
2109
+ return writer.getResultBuffer();
2110
+ };
2111
+
2112
+
2113
+ /**
2114
+ * Serializes the given message to binary data (in protobuf wire
2115
+ * format), writing to the given BinaryWriter.
2116
+ * @param {!proto.cms.GetBurgerMenuWidgetRequest} message
2117
+ * @param {!jspb.BinaryWriter} writer
2118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2119
+ */
2120
+ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
2121
+ var f = undefined;
2122
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2123
+ if (f != null) {
2124
+ writer.writeString(
2125
+ 1,
2126
+ f
2127
+ );
2128
+ }
2129
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
2130
+ if (f != null) {
2131
+ writer.writeBool(
2132
+ 2,
2133
+ f
2134
+ );
2135
+ }
2136
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2137
+ if (f != null) {
2138
+ writer.writeString(
2139
+ 3,
2140
+ f
2141
+ );
2142
+ }
2143
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
2144
+ if (f != null) {
2145
+ writer.writeBool(
2146
+ 4,
2147
+ f
2148
+ );
2149
+ }
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * optional string geo = 1;
2155
+ * @return {string}
2156
+ */
2157
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.getGeo = function() {
2158
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * @param {string} value
2164
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2165
+ */
2166
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.setGeo = function(value) {
2167
+ return jspb.Message.setField(this, 1, value);
2168
+ };
2169
+
2170
+
2171
+ /**
2172
+ * Clears the field making it undefined.
2173
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2174
+ */
2175
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearGeo = function() {
2176
+ return jspb.Message.setField(this, 1, undefined);
2177
+ };
2178
+
2179
+
2180
+ /**
2181
+ * Returns whether this field is set.
2182
+ * @return {boolean}
2183
+ */
2184
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasGeo = function() {
2185
+ return jspb.Message.getField(this, 1) != null;
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * optional bool is_mobile = 2;
2191
+ * @return {boolean}
2192
+ */
2193
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.getIsMobile = function() {
2194
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * @param {boolean} value
2200
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2201
+ */
2202
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.setIsMobile = function(value) {
2203
+ return jspb.Message.setField(this, 2, value);
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * Clears the field making it undefined.
2209
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2210
+ */
2211
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearIsMobile = function() {
2212
+ return jspb.Message.setField(this, 2, undefined);
2213
+ };
2214
+
2215
+
2216
+ /**
2217
+ * Returns whether this field is set.
2218
+ * @return {boolean}
2219
+ */
2220
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasIsMobile = function() {
2221
+ return jspb.Message.getField(this, 2) != null;
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * optional string locale = 3;
2227
+ * @return {string}
2228
+ */
2229
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.getLocale = function() {
2230
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2231
+ };
2232
+
2233
+
2234
+ /**
2235
+ * @param {string} value
2236
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2237
+ */
2238
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.setLocale = function(value) {
2239
+ return jspb.Message.setField(this, 3, value);
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * Clears the field making it undefined.
2245
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2246
+ */
2247
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearLocale = function() {
2248
+ return jspb.Message.setField(this, 3, undefined);
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * Returns whether this field is set.
2254
+ * @return {boolean}
2255
+ */
2256
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasLocale = function() {
2257
+ return jspb.Message.getField(this, 3) != null;
2258
+ };
2259
+
2260
+
2261
+ /**
2262
+ * optional bool admin_side = 4;
2263
+ * @return {boolean}
2264
+ */
2265
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.getAdminSide = function() {
2266
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * @param {boolean} value
2272
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2273
+ */
2274
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.setAdminSide = function(value) {
2275
+ return jspb.Message.setField(this, 4, value);
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * Clears the field making it undefined.
2281
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
2282
+ */
2283
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearAdminSide = function() {
2284
+ return jspb.Message.setField(this, 4, undefined);
2285
+ };
2286
+
2287
+
2288
+ /**
2289
+ * Returns whether this field is set.
2290
+ * @return {boolean}
2291
+ */
2292
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasAdminSide = function() {
2293
+ return jspb.Message.getField(this, 4) != null;
2294
+ };
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2301
+ /**
2302
+ * Creates an object representation of this proto.
2303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2304
+ * Optional fields that are not set will be set to undefined.
2305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2306
+ * For the list of reserved names please see:
2307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2309
+ * JSPB instance for transitional soy proto support:
2310
+ * http://goto/soy-param-migration
2311
+ * @return {!Object}
2312
+ */
2313
+ proto.cms.BurgerMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
2314
+ return proto.cms.BurgerMenuWidgetItem.toObject(opt_includeInstance, this);
2315
+ };
2316
+
2317
+
2318
+ /**
2319
+ * Static version of the {@see toObject} method.
2320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2321
+ * the JSPB instance for transitional soy proto support:
2322
+ * http://goto/soy-param-migration
2323
+ * @param {!proto.cms.BurgerMenuWidgetItem} msg The msg instance to transform.
2324
+ * @return {!Object}
2325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2326
+ */
2327
+ proto.cms.BurgerMenuWidgetItem.toObject = function(includeInstance, msg) {
2328
+ var f, obj = {
2329
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
2330
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
2331
+ };
2332
+
2333
+ if (includeInstance) {
2334
+ obj.$jspbMessageInstance = msg;
2335
+ }
2336
+ return obj;
2337
+ };
2338
+ }
2339
+
2340
+
2341
+ /**
2342
+ * Deserializes binary data (in protobuf wire format).
2343
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2344
+ * @return {!proto.cms.BurgerMenuWidgetItem}
2345
+ */
2346
+ proto.cms.BurgerMenuWidgetItem.deserializeBinary = function(bytes) {
2347
+ var reader = new jspb.BinaryReader(bytes);
2348
+ var msg = new proto.cms.BurgerMenuWidgetItem;
2349
+ return proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
2350
+ };
2351
+
2352
+
2353
+ /**
2354
+ * Deserializes binary data (in protobuf wire format) from the
2355
+ * given reader into the given message object.
2356
+ * @param {!proto.cms.BurgerMenuWidgetItem} msg The message object to deserialize into.
2357
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2358
+ * @return {!proto.cms.BurgerMenuWidgetItem}
2359
+ */
2360
+ proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
2361
+ while (reader.nextField()) {
2362
+ if (reader.isEndGroup()) {
2363
+ break;
2364
+ }
2365
+ var field = reader.getFieldNumber();
2366
+ switch (field) {
2367
+ case 1:
2368
+ var value = /** @type {string} */ (reader.readString());
2369
+ msg.setGeo(value);
2370
+ break;
2371
+ case 2:
2372
+ var value = /** @type {string} */ (reader.readString());
2373
+ msg.setContent(value);
2374
+ break;
2375
+ default:
2376
+ reader.skipField();
2377
+ break;
2378
+ }
2379
+ }
2380
+ return msg;
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * Serializes the message to binary data (in protobuf wire format).
2386
+ * @return {!Uint8Array}
2387
+ */
2388
+ proto.cms.BurgerMenuWidgetItem.prototype.serializeBinary = function() {
2389
+ var writer = new jspb.BinaryWriter();
2390
+ proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter(this, writer);
2391
+ return writer.getResultBuffer();
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Serializes the given message to binary data (in protobuf wire
2397
+ * format), writing to the given BinaryWriter.
2398
+ * @param {!proto.cms.BurgerMenuWidgetItem} message
2399
+ * @param {!jspb.BinaryWriter} writer
2400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2401
+ */
2402
+ proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
2403
+ var f = undefined;
2404
+ f = message.getGeo();
2405
+ if (f.length > 0) {
2406
+ writer.writeString(
2407
+ 1,
2408
+ f
2409
+ );
2410
+ }
2411
+ f = message.getContent();
2412
+ if (f.length > 0) {
2413
+ writer.writeString(
2414
+ 2,
2415
+ f
2416
+ );
2417
+ }
2418
+ };
2419
+
2420
+
2421
+ /**
2422
+ * optional string geo = 1;
2423
+ * @return {string}
2424
+ */
2425
+ proto.cms.BurgerMenuWidgetItem.prototype.getGeo = function() {
2426
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2427
+ };
2428
+
2429
+
2430
+ /**
2431
+ * @param {string} value
2432
+ * @return {!proto.cms.BurgerMenuWidgetItem} returns this
2433
+ */
2434
+ proto.cms.BurgerMenuWidgetItem.prototype.setGeo = function(value) {
2435
+ return jspb.Message.setProto3StringField(this, 1, value);
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * optional string content = 2;
2441
+ * @return {string}
2442
+ */
2443
+ proto.cms.BurgerMenuWidgetItem.prototype.getContent = function() {
2444
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * @param {string} value
2450
+ * @return {!proto.cms.BurgerMenuWidgetItem} returns this
2451
+ */
2452
+ proto.cms.BurgerMenuWidgetItem.prototype.setContent = function(value) {
2453
+ return jspb.Message.setProto3StringField(this, 2, value);
2454
+ };
2455
+
2456
+
2457
+
2458
+ /**
2459
+ * Oneof group definitions for this message. Each group defines the field
2460
+ * numbers belonging to that group. When of these fields' value is set, all
2461
+ * other fields in the group are cleared. During deserialization, if multiple
2462
+ * fields are encountered for a group, only the last value seen will be kept.
2463
+ * @private {!Array<!Array<number>>}
2464
+ * @const
2465
+ */
2466
+ proto.cms.BannerRequest.oneofGroups_ = [[1,2,3]];
2467
+
2468
+ /**
2469
+ * @enum {number}
2470
+ */
2471
+ proto.cms.BannerRequest.RequestCase = {
2472
+ REQUEST_NOT_SET: 0,
2473
+ BANNER_DATA: 1,
2474
+ IMAGE_BIG: 2,
2475
+ IMAGE_SMALL: 3
2476
+ };
2477
+
2478
+ /**
2479
+ * @return {proto.cms.BannerRequest.RequestCase}
2480
+ */
2481
+ proto.cms.BannerRequest.prototype.getRequestCase = function() {
2482
+ return /** @type {proto.cms.BannerRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.cms.BannerRequest.oneofGroups_[0]));
2483
+ };
2484
+
2485
+
2486
+
2487
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2488
+ /**
2489
+ * Creates an object representation of this proto.
2490
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2491
+ * Optional fields that are not set will be set to undefined.
2492
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2493
+ * For the list of reserved names please see:
2494
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2495
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2496
+ * JSPB instance for transitional soy proto support:
2497
+ * http://goto/soy-param-migration
2498
+ * @return {!Object}
2499
+ */
2500
+ proto.cms.BannerRequest.prototype.toObject = function(opt_includeInstance) {
2501
+ return proto.cms.BannerRequest.toObject(opt_includeInstance, this);
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * Static version of the {@see toObject} method.
2507
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2508
+ * the JSPB instance for transitional soy proto support:
2509
+ * http://goto/soy-param-migration
2510
+ * @param {!proto.cms.BannerRequest} msg The msg instance to transform.
2511
+ * @return {!Object}
2512
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2513
+ */
2514
+ proto.cms.BannerRequest.toObject = function(includeInstance, msg) {
2515
+ var f, obj = {
2516
+ bannerData: (f = msg.getBannerData()) && proto.cms.BannerItemRequest.toObject(includeInstance, f),
2517
+ imageBig: (f = msg.getImageBig()) && proto.cms.File.toObject(includeInstance, f),
2518
+ imageSmall: (f = msg.getImageSmall()) && proto.cms.File.toObject(includeInstance, f)
2519
+ };
2520
+
2521
+ if (includeInstance) {
2522
+ obj.$jspbMessageInstance = msg;
2523
+ }
2524
+ return obj;
2525
+ };
2526
+ }
2527
+
2528
+
2529
+ /**
2530
+ * Deserializes binary data (in protobuf wire format).
2531
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2532
+ * @return {!proto.cms.BannerRequest}
2533
+ */
2534
+ proto.cms.BannerRequest.deserializeBinary = function(bytes) {
2535
+ var reader = new jspb.BinaryReader(bytes);
2536
+ var msg = new proto.cms.BannerRequest;
2537
+ return proto.cms.BannerRequest.deserializeBinaryFromReader(msg, reader);
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * Deserializes binary data (in protobuf wire format) from the
2543
+ * given reader into the given message object.
2544
+ * @param {!proto.cms.BannerRequest} msg The message object to deserialize into.
2545
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2546
+ * @return {!proto.cms.BannerRequest}
2547
+ */
2548
+ proto.cms.BannerRequest.deserializeBinaryFromReader = function(msg, reader) {
2549
+ while (reader.nextField()) {
2550
+ if (reader.isEndGroup()) {
2551
+ break;
2552
+ }
2553
+ var field = reader.getFieldNumber();
2554
+ switch (field) {
2555
+ case 1:
2556
+ var value = new proto.cms.BannerItemRequest;
2557
+ reader.readMessage(value,proto.cms.BannerItemRequest.deserializeBinaryFromReader);
2558
+ msg.setBannerData(value);
2559
+ break;
2560
+ case 2:
2561
+ var value = new proto.cms.File;
2562
+ reader.readMessage(value,proto.cms.File.deserializeBinaryFromReader);
2563
+ msg.setImageBig(value);
2564
+ break;
2565
+ case 3:
2566
+ var value = new proto.cms.File;
2567
+ reader.readMessage(value,proto.cms.File.deserializeBinaryFromReader);
2568
+ msg.setImageSmall(value);
2569
+ break;
2570
+ default:
2571
+ reader.skipField();
2572
+ break;
2573
+ }
2574
+ }
2575
+ return msg;
2576
+ };
2577
+
2578
+
2579
+ /**
2580
+ * Serializes the message to binary data (in protobuf wire format).
2581
+ * @return {!Uint8Array}
2582
+ */
2583
+ proto.cms.BannerRequest.prototype.serializeBinary = function() {
2584
+ var writer = new jspb.BinaryWriter();
2585
+ proto.cms.BannerRequest.serializeBinaryToWriter(this, writer);
2586
+ return writer.getResultBuffer();
2587
+ };
2588
+
2589
+
2590
+ /**
2591
+ * Serializes the given message to binary data (in protobuf wire
2592
+ * format), writing to the given BinaryWriter.
2593
+ * @param {!proto.cms.BannerRequest} message
2594
+ * @param {!jspb.BinaryWriter} writer
2595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2596
+ */
2597
+ proto.cms.BannerRequest.serializeBinaryToWriter = function(message, writer) {
2598
+ var f = undefined;
2599
+ f = message.getBannerData();
2600
+ if (f != null) {
2601
+ writer.writeMessage(
2602
+ 1,
2603
+ f,
2604
+ proto.cms.BannerItemRequest.serializeBinaryToWriter
2605
+ );
2606
+ }
2607
+ f = message.getImageBig();
2608
+ if (f != null) {
2609
+ writer.writeMessage(
2610
+ 2,
2611
+ f,
2612
+ proto.cms.File.serializeBinaryToWriter
2613
+ );
2614
+ }
2615
+ f = message.getImageSmall();
2616
+ if (f != null) {
2617
+ writer.writeMessage(
2618
+ 3,
2619
+ f,
2620
+ proto.cms.File.serializeBinaryToWriter
2621
+ );
2622
+ }
2623
+ };
2624
+
2625
+
2626
+ /**
2627
+ * optional BannerItemRequest banner_data = 1;
2628
+ * @return {?proto.cms.BannerItemRequest}
2629
+ */
2630
+ proto.cms.BannerRequest.prototype.getBannerData = function() {
2631
+ return /** @type{?proto.cms.BannerItemRequest} */ (
2632
+ jspb.Message.getWrapperField(this, proto.cms.BannerItemRequest, 1));
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * @param {?proto.cms.BannerItemRequest|undefined} value
2638
+ * @return {!proto.cms.BannerRequest} returns this
2639
+ */
2640
+ proto.cms.BannerRequest.prototype.setBannerData = function(value) {
2641
+ return jspb.Message.setOneofWrapperField(this, 1, proto.cms.BannerRequest.oneofGroups_[0], value);
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * Clears the message field making it undefined.
2647
+ * @return {!proto.cms.BannerRequest} returns this
2648
+ */
2649
+ proto.cms.BannerRequest.prototype.clearBannerData = function() {
2650
+ return this.setBannerData(undefined);
2651
+ };
2652
+
2653
+
2654
+ /**
2655
+ * Returns whether this field is set.
2656
+ * @return {boolean}
2657
+ */
2658
+ proto.cms.BannerRequest.prototype.hasBannerData = function() {
2659
+ return jspb.Message.getField(this, 1) != null;
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * optional File image_big = 2;
2665
+ * @return {?proto.cms.File}
2666
+ */
2667
+ proto.cms.BannerRequest.prototype.getImageBig = function() {
2668
+ return /** @type{?proto.cms.File} */ (
2669
+ jspb.Message.getWrapperField(this, proto.cms.File, 2));
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * @param {?proto.cms.File|undefined} value
2675
+ * @return {!proto.cms.BannerRequest} returns this
2676
+ */
2677
+ proto.cms.BannerRequest.prototype.setImageBig = function(value) {
2678
+ return jspb.Message.setOneofWrapperField(this, 2, proto.cms.BannerRequest.oneofGroups_[0], value);
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * Clears the message field making it undefined.
2684
+ * @return {!proto.cms.BannerRequest} returns this
2685
+ */
2686
+ proto.cms.BannerRequest.prototype.clearImageBig = function() {
2687
+ return this.setImageBig(undefined);
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * Returns whether this field is set.
2693
+ * @return {boolean}
2694
+ */
2695
+ proto.cms.BannerRequest.prototype.hasImageBig = function() {
2696
+ return jspb.Message.getField(this, 2) != null;
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * optional File image_small = 3;
2702
+ * @return {?proto.cms.File}
2703
+ */
2704
+ proto.cms.BannerRequest.prototype.getImageSmall = function() {
2705
+ return /** @type{?proto.cms.File} */ (
2706
+ jspb.Message.getWrapperField(this, proto.cms.File, 3));
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * @param {?proto.cms.File|undefined} value
2712
+ * @return {!proto.cms.BannerRequest} returns this
2713
+ */
2714
+ proto.cms.BannerRequest.prototype.setImageSmall = function(value) {
2715
+ return jspb.Message.setOneofWrapperField(this, 3, proto.cms.BannerRequest.oneofGroups_[0], value);
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Clears the message field making it undefined.
2721
+ * @return {!proto.cms.BannerRequest} returns this
2722
+ */
2723
+ proto.cms.BannerRequest.prototype.clearImageSmall = function() {
2724
+ return this.setImageSmall(undefined);
2725
+ };
2726
+
2727
+
2728
+ /**
2729
+ * Returns whether this field is set.
2730
+ * @return {boolean}
2731
+ */
2732
+ proto.cms.BannerRequest.prototype.hasImageSmall = function() {
2733
+ return jspb.Message.getField(this, 3) != null;
2734
+ };
2735
+
2736
+
2737
+
2738
+
2739
+
2740
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2741
+ /**
2742
+ * Creates an object representation of this proto.
2743
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2744
+ * Optional fields that are not set will be set to undefined.
2745
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2746
+ * For the list of reserved names please see:
2747
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2748
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2749
+ * JSPB instance for transitional soy proto support:
2750
+ * http://goto/soy-param-migration
2751
+ * @return {!Object}
2752
+ */
2753
+ proto.cms.BannerItemRequest.prototype.toObject = function(opt_includeInstance) {
2754
+ return proto.cms.BannerItemRequest.toObject(opt_includeInstance, this);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * Static version of the {@see toObject} method.
2760
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2761
+ * the JSPB instance for transitional soy proto support:
2762
+ * http://goto/soy-param-migration
2763
+ * @param {!proto.cms.BannerItemRequest} msg The msg instance to transform.
2764
+ * @return {!Object}
2765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2766
+ */
2767
+ proto.cms.BannerItemRequest.toObject = function(includeInstance, msg) {
2768
+ var f, obj = {
2769
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
2770
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
2771
+ content: jspb.Message.getFieldWithDefault(msg, 3, ""),
2772
+ ctaType: jspb.Message.getFieldWithDefault(msg, 4, ""),
2773
+ ctaText: jspb.Message.getFieldWithDefault(msg, 5, ""),
2774
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
2775
+ };
2776
+
2777
+ if (includeInstance) {
2778
+ obj.$jspbMessageInstance = msg;
2779
+ }
2780
+ return obj;
2781
+ };
2782
+ }
2783
+
2784
+
2785
+ /**
2786
+ * Deserializes binary data (in protobuf wire format).
2787
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2788
+ * @return {!proto.cms.BannerItemRequest}
2789
+ */
2790
+ proto.cms.BannerItemRequest.deserializeBinary = function(bytes) {
2791
+ var reader = new jspb.BinaryReader(bytes);
2792
+ var msg = new proto.cms.BannerItemRequest;
2793
+ return proto.cms.BannerItemRequest.deserializeBinaryFromReader(msg, reader);
2794
+ };
2795
+
2796
+
2797
+ /**
2798
+ * Deserializes binary data (in protobuf wire format) from the
2799
+ * given reader into the given message object.
2800
+ * @param {!proto.cms.BannerItemRequest} msg The message object to deserialize into.
2801
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2802
+ * @return {!proto.cms.BannerItemRequest}
2803
+ */
2804
+ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader) {
2805
+ while (reader.nextField()) {
2806
+ if (reader.isEndGroup()) {
2807
+ break;
2808
+ }
2809
+ var field = reader.getFieldNumber();
2810
+ switch (field) {
2811
+ case 1:
2812
+ var value = /** @type {string} */ (reader.readString());
2813
+ msg.setGeo(value);
2814
+ break;
2815
+ case 2:
2816
+ var value = /** @type {string} */ (reader.readString());
2817
+ msg.setTitle(value);
2818
+ break;
2819
+ case 3:
2820
+ var value = /** @type {string} */ (reader.readString());
2821
+ msg.setContent(value);
2822
+ break;
2823
+ case 4:
2824
+ var value = /** @type {string} */ (reader.readString());
2825
+ msg.setCtaType(value);
2826
+ break;
2827
+ case 5:
2828
+ var value = /** @type {string} */ (reader.readString());
2829
+ msg.setCtaText(value);
2830
+ break;
2831
+ case 6:
2832
+ var value = /** @type {number} */ (reader.readInt32());
2833
+ msg.setIsActive(value);
2834
+ break;
2835
+ default:
2836
+ reader.skipField();
2837
+ break;
2838
+ }
2839
+ }
2840
+ return msg;
2841
+ };
2842
+
2843
+
2844
+ /**
2845
+ * Serializes the message to binary data (in protobuf wire format).
2846
+ * @return {!Uint8Array}
2847
+ */
2848
+ proto.cms.BannerItemRequest.prototype.serializeBinary = function() {
2849
+ var writer = new jspb.BinaryWriter();
2850
+ proto.cms.BannerItemRequest.serializeBinaryToWriter(this, writer);
2851
+ return writer.getResultBuffer();
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * Serializes the given message to binary data (in protobuf wire
2857
+ * format), writing to the given BinaryWriter.
2858
+ * @param {!proto.cms.BannerItemRequest} message
2859
+ * @param {!jspb.BinaryWriter} writer
2860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2861
+ */
2862
+ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer) {
2863
+ var f = undefined;
2864
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2865
+ if (f != null) {
2866
+ writer.writeString(
2867
+ 1,
2868
+ f
2869
+ );
2870
+ }
2871
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2872
+ if (f != null) {
2873
+ writer.writeString(
2874
+ 2,
2875
+ f
2876
+ );
2877
+ }
2878
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2879
+ if (f != null) {
2880
+ writer.writeString(
2881
+ 3,
2882
+ f
2883
+ );
2884
+ }
2885
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2886
+ if (f != null) {
2887
+ writer.writeString(
2888
+ 4,
2889
+ f
2890
+ );
2891
+ }
2892
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
2893
+ if (f != null) {
2894
+ writer.writeString(
2895
+ 5,
2896
+ f
2897
+ );
2898
+ }
2899
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
2900
+ if (f != null) {
2901
+ writer.writeInt32(
2902
+ 6,
2903
+ f
2904
+ );
2905
+ }
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * optional string geo = 1;
2911
+ * @return {string}
2912
+ */
2913
+ proto.cms.BannerItemRequest.prototype.getGeo = function() {
2914
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * @param {string} value
2920
+ * @return {!proto.cms.BannerItemRequest} returns this
2921
+ */
2922
+ proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
2923
+ return jspb.Message.setField(this, 1, value);
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * Clears the field making it undefined.
2929
+ * @return {!proto.cms.BannerItemRequest} returns this
2930
+ */
2931
+ proto.cms.BannerItemRequest.prototype.clearGeo = function() {
2932
+ return jspb.Message.setField(this, 1, undefined);
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * Returns whether this field is set.
2938
+ * @return {boolean}
2939
+ */
2940
+ proto.cms.BannerItemRequest.prototype.hasGeo = function() {
2941
+ return jspb.Message.getField(this, 1) != null;
2942
+ };
2943
+
2944
+
2945
+ /**
2946
+ * optional string title = 2;
2947
+ * @return {string}
2948
+ */
2949
+ proto.cms.BannerItemRequest.prototype.getTitle = function() {
2950
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2951
+ };
2952
+
2953
+
2954
+ /**
2955
+ * @param {string} value
2956
+ * @return {!proto.cms.BannerItemRequest} returns this
2957
+ */
2958
+ proto.cms.BannerItemRequest.prototype.setTitle = function(value) {
2959
+ return jspb.Message.setField(this, 2, value);
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * Clears the field making it undefined.
2965
+ * @return {!proto.cms.BannerItemRequest} returns this
2966
+ */
2967
+ proto.cms.BannerItemRequest.prototype.clearTitle = function() {
2968
+ return jspb.Message.setField(this, 2, undefined);
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * Returns whether this field is set.
2974
+ * @return {boolean}
2975
+ */
2976
+ proto.cms.BannerItemRequest.prototype.hasTitle = function() {
2977
+ return jspb.Message.getField(this, 2) != null;
2978
+ };
2979
+
2980
+
2981
+ /**
2982
+ * optional string content = 3;
2983
+ * @return {string}
2984
+ */
2985
+ proto.cms.BannerItemRequest.prototype.getContent = function() {
2986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2987
+ };
2988
+
2989
+
2990
+ /**
2991
+ * @param {string} value
2992
+ * @return {!proto.cms.BannerItemRequest} returns this
2993
+ */
2994
+ proto.cms.BannerItemRequest.prototype.setContent = function(value) {
2995
+ return jspb.Message.setField(this, 3, value);
2996
+ };
2997
+
2998
+
2999
+ /**
3000
+ * Clears the field making it undefined.
3001
+ * @return {!proto.cms.BannerItemRequest} returns this
3002
+ */
3003
+ proto.cms.BannerItemRequest.prototype.clearContent = function() {
3004
+ return jspb.Message.setField(this, 3, undefined);
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * Returns whether this field is set.
3010
+ * @return {boolean}
3011
+ */
3012
+ proto.cms.BannerItemRequest.prototype.hasContent = function() {
3013
+ return jspb.Message.getField(this, 3) != null;
3014
+ };
3015
+
3016
+
3017
+ /**
3018
+ * optional string cta_type = 4;
3019
+ * @return {string}
3020
+ */
3021
+ proto.cms.BannerItemRequest.prototype.getCtaType = function() {
3022
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * @param {string} value
3028
+ * @return {!proto.cms.BannerItemRequest} returns this
3029
+ */
3030
+ proto.cms.BannerItemRequest.prototype.setCtaType = function(value) {
3031
+ return jspb.Message.setField(this, 4, value);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * Clears the field making it undefined.
3037
+ * @return {!proto.cms.BannerItemRequest} returns this
3038
+ */
3039
+ proto.cms.BannerItemRequest.prototype.clearCtaType = function() {
3040
+ return jspb.Message.setField(this, 4, undefined);
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * Returns whether this field is set.
3046
+ * @return {boolean}
3047
+ */
3048
+ proto.cms.BannerItemRequest.prototype.hasCtaType = function() {
3049
+ return jspb.Message.getField(this, 4) != null;
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * optional string cta_text = 5;
3055
+ * @return {string}
3056
+ */
3057
+ proto.cms.BannerItemRequest.prototype.getCtaText = function() {
3058
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3059
+ };
3060
+
3061
+
3062
+ /**
3063
+ * @param {string} value
3064
+ * @return {!proto.cms.BannerItemRequest} returns this
3065
+ */
3066
+ proto.cms.BannerItemRequest.prototype.setCtaText = function(value) {
3067
+ return jspb.Message.setField(this, 5, value);
3068
+ };
3069
+
3070
+
3071
+ /**
3072
+ * Clears the field making it undefined.
3073
+ * @return {!proto.cms.BannerItemRequest} returns this
3074
+ */
3075
+ proto.cms.BannerItemRequest.prototype.clearCtaText = function() {
3076
+ return jspb.Message.setField(this, 5, undefined);
3077
+ };
3078
+
3079
+
3080
+ /**
3081
+ * Returns whether this field is set.
3082
+ * @return {boolean}
3083
+ */
3084
+ proto.cms.BannerItemRequest.prototype.hasCtaText = function() {
3085
+ return jspb.Message.getField(this, 5) != null;
3086
+ };
3087
+
3088
+
3089
+ /**
3090
+ * optional int32 is_active = 6;
3091
+ * @return {number}
3092
+ */
3093
+ proto.cms.BannerItemRequest.prototype.getIsActive = function() {
3094
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3095
+ };
3096
+
3097
+
3098
+ /**
3099
+ * @param {number} value
3100
+ * @return {!proto.cms.BannerItemRequest} returns this
3101
+ */
3102
+ proto.cms.BannerItemRequest.prototype.setIsActive = function(value) {
3103
+ return jspb.Message.setField(this, 6, value);
3104
+ };
3105
+
3106
+
3107
+ /**
3108
+ * Clears the field making it undefined.
3109
+ * @return {!proto.cms.BannerItemRequest} returns this
3110
+ */
3111
+ proto.cms.BannerItemRequest.prototype.clearIsActive = function() {
3112
+ return jspb.Message.setField(this, 6, undefined);
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * Returns whether this field is set.
3118
+ * @return {boolean}
3119
+ */
3120
+ proto.cms.BannerItemRequest.prototype.hasIsActive = function() {
3121
+ return jspb.Message.getField(this, 6) != null;
3122
+ };
3123
+
3124
+
3125
+
3126
+
3127
+
3128
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3129
+ /**
3130
+ * Creates an object representation of this proto.
3131
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3132
+ * Optional fields that are not set will be set to undefined.
3133
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3134
+ * For the list of reserved names please see:
3135
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3136
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3137
+ * JSPB instance for transitional soy proto support:
3138
+ * http://goto/soy-param-migration
3139
+ * @return {!Object}
3140
+ */
3141
+ proto.cms.BannerItem.prototype.toObject = function(opt_includeInstance) {
3142
+ return proto.cms.BannerItem.toObject(opt_includeInstance, this);
3143
+ };
3144
+
3145
+
3146
+ /**
3147
+ * Static version of the {@see toObject} method.
3148
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3149
+ * the JSPB instance for transitional soy proto support:
3150
+ * http://goto/soy-param-migration
3151
+ * @param {!proto.cms.BannerItem} msg The msg instance to transform.
3152
+ * @return {!Object}
3153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3154
+ */
3155
+ proto.cms.BannerItem.toObject = function(includeInstance, msg) {
3156
+ var f, obj = {
3157
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
3158
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
3159
+ content: jspb.Message.getFieldWithDefault(msg, 3, ""),
3160
+ ctaType: jspb.Message.getFieldWithDefault(msg, 4, ""),
3161
+ ctaText: jspb.Message.getFieldWithDefault(msg, 5, ""),
3162
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
3163
+ imageBig: jspb.Message.getFieldWithDefault(msg, 7, ""),
3164
+ imageSmall: jspb.Message.getFieldWithDefault(msg, 8, "")
3165
+ };
3166
+
3167
+ if (includeInstance) {
3168
+ obj.$jspbMessageInstance = msg;
3169
+ }
3170
+ return obj;
3171
+ };
3172
+ }
3173
+
3174
+
3175
+ /**
3176
+ * Deserializes binary data (in protobuf wire format).
3177
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3178
+ * @return {!proto.cms.BannerItem}
3179
+ */
3180
+ proto.cms.BannerItem.deserializeBinary = function(bytes) {
3181
+ var reader = new jspb.BinaryReader(bytes);
3182
+ var msg = new proto.cms.BannerItem;
3183
+ return proto.cms.BannerItem.deserializeBinaryFromReader(msg, reader);
3184
+ };
3185
+
3186
+
3187
+ /**
3188
+ * Deserializes binary data (in protobuf wire format) from the
3189
+ * given reader into the given message object.
3190
+ * @param {!proto.cms.BannerItem} msg The message object to deserialize into.
3191
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3192
+ * @return {!proto.cms.BannerItem}
3193
+ */
3194
+ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
3195
+ while (reader.nextField()) {
3196
+ if (reader.isEndGroup()) {
3197
+ break;
3198
+ }
3199
+ var field = reader.getFieldNumber();
3200
+ switch (field) {
3201
+ case 1:
3202
+ var value = /** @type {string} */ (reader.readString());
3203
+ msg.setGeo(value);
3204
+ break;
3205
+ case 2:
3206
+ var value = /** @type {string} */ (reader.readString());
3207
+ msg.setTitle(value);
3208
+ break;
3209
+ case 3:
3210
+ var value = /** @type {string} */ (reader.readString());
3211
+ msg.setContent(value);
3212
+ break;
3213
+ case 4:
3214
+ var value = /** @type {string} */ (reader.readString());
3215
+ msg.setCtaType(value);
3216
+ break;
3217
+ case 5:
3218
+ var value = /** @type {string} */ (reader.readString());
3219
+ msg.setCtaText(value);
3220
+ break;
3221
+ case 6:
3222
+ var value = /** @type {number} */ (reader.readInt32());
3223
+ msg.setIsActive(value);
3224
+ break;
3225
+ case 7:
3226
+ var value = /** @type {string} */ (reader.readString());
3227
+ msg.setImageBig(value);
3228
+ break;
3229
+ case 8:
3230
+ var value = /** @type {string} */ (reader.readString());
3231
+ msg.setImageSmall(value);
3232
+ break;
3233
+ default:
3234
+ reader.skipField();
3235
+ break;
3236
+ }
3237
+ }
3238
+ return msg;
3239
+ };
3240
+
3241
+
3242
+ /**
3243
+ * Serializes the message to binary data (in protobuf wire format).
3244
+ * @return {!Uint8Array}
3245
+ */
3246
+ proto.cms.BannerItem.prototype.serializeBinary = function() {
3247
+ var writer = new jspb.BinaryWriter();
3248
+ proto.cms.BannerItem.serializeBinaryToWriter(this, writer);
3249
+ return writer.getResultBuffer();
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * Serializes the given message to binary data (in protobuf wire
3255
+ * format), writing to the given BinaryWriter.
3256
+ * @param {!proto.cms.BannerItem} message
3257
+ * @param {!jspb.BinaryWriter} writer
3258
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3259
+ */
3260
+ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
3261
+ var f = undefined;
3262
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
3263
+ if (f != null) {
3264
+ writer.writeString(
3265
+ 1,
3266
+ f
3267
+ );
3268
+ }
3269
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3270
+ if (f != null) {
3271
+ writer.writeString(
3272
+ 2,
3273
+ f
3274
+ );
3275
+ }
3276
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
3277
+ if (f != null) {
3278
+ writer.writeString(
3279
+ 3,
3280
+ f
3281
+ );
3282
+ }
3283
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3284
+ if (f != null) {
3285
+ writer.writeString(
3286
+ 4,
3287
+ f
3288
+ );
3289
+ }
3290
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3291
+ if (f != null) {
3292
+ writer.writeString(
3293
+ 5,
3294
+ f
3295
+ );
3296
+ }
3297
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
3298
+ if (f != null) {
3299
+ writer.writeInt32(
3300
+ 6,
3301
+ f
3302
+ );
3303
+ }
3304
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3305
+ if (f != null) {
3306
+ writer.writeString(
3307
+ 7,
3308
+ f
3309
+ );
3310
+ }
3311
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
3312
+ if (f != null) {
3313
+ writer.writeString(
3314
+ 8,
3315
+ f
3316
+ );
3317
+ }
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * optional string geo = 1;
3323
+ * @return {string}
3324
+ */
3325
+ proto.cms.BannerItem.prototype.getGeo = function() {
3326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3327
+ };
3328
+
3329
+
3330
+ /**
3331
+ * @param {string} value
3332
+ * @return {!proto.cms.BannerItem} returns this
3333
+ */
3334
+ proto.cms.BannerItem.prototype.setGeo = function(value) {
3335
+ return jspb.Message.setField(this, 1, value);
3336
+ };
3337
+
3338
+
3339
+ /**
3340
+ * Clears the field making it undefined.
3341
+ * @return {!proto.cms.BannerItem} returns this
3342
+ */
3343
+ proto.cms.BannerItem.prototype.clearGeo = function() {
3344
+ return jspb.Message.setField(this, 1, undefined);
3345
+ };
3346
+
3347
+
3348
+ /**
3349
+ * Returns whether this field is set.
3350
+ * @return {boolean}
3351
+ */
3352
+ proto.cms.BannerItem.prototype.hasGeo = function() {
3353
+ return jspb.Message.getField(this, 1) != null;
3354
+ };
3355
+
3356
+
3357
+ /**
3358
+ * optional string title = 2;
3359
+ * @return {string}
3360
+ */
3361
+ proto.cms.BannerItem.prototype.getTitle = function() {
3362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3363
+ };
3364
+
3365
+
3366
+ /**
3367
+ * @param {string} value
3368
+ * @return {!proto.cms.BannerItem} returns this
3369
+ */
3370
+ proto.cms.BannerItem.prototype.setTitle = function(value) {
3371
+ return jspb.Message.setField(this, 2, value);
3372
+ };
3373
+
3374
+
3375
+ /**
3376
+ * Clears the field making it undefined.
3377
+ * @return {!proto.cms.BannerItem} returns this
3378
+ */
3379
+ proto.cms.BannerItem.prototype.clearTitle = function() {
3380
+ return jspb.Message.setField(this, 2, undefined);
3381
+ };
3382
+
3383
+
3384
+ /**
3385
+ * Returns whether this field is set.
3386
+ * @return {boolean}
3387
+ */
3388
+ proto.cms.BannerItem.prototype.hasTitle = function() {
3389
+ return jspb.Message.getField(this, 2) != null;
3390
+ };
3391
+
3392
+
3393
+ /**
3394
+ * optional string content = 3;
3395
+ * @return {string}
3396
+ */
3397
+ proto.cms.BannerItem.prototype.getContent = function() {
3398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3399
+ };
3400
+
3401
+
3402
+ /**
3403
+ * @param {string} value
3404
+ * @return {!proto.cms.BannerItem} returns this
3405
+ */
3406
+ proto.cms.BannerItem.prototype.setContent = function(value) {
3407
+ return jspb.Message.setField(this, 3, value);
3408
+ };
3409
+
3410
+
3411
+ /**
3412
+ * Clears the field making it undefined.
3413
+ * @return {!proto.cms.BannerItem} returns this
3414
+ */
3415
+ proto.cms.BannerItem.prototype.clearContent = function() {
3416
+ return jspb.Message.setField(this, 3, undefined);
3417
+ };
3418
+
3419
+
3420
+ /**
3421
+ * Returns whether this field is set.
3422
+ * @return {boolean}
3423
+ */
3424
+ proto.cms.BannerItem.prototype.hasContent = function() {
3425
+ return jspb.Message.getField(this, 3) != null;
3426
+ };
3427
+
3428
+
3429
+ /**
3430
+ * optional string cta_type = 4;
3431
+ * @return {string}
3432
+ */
3433
+ proto.cms.BannerItem.prototype.getCtaType = function() {
3434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3435
+ };
3436
+
3437
+
3438
+ /**
3439
+ * @param {string} value
3440
+ * @return {!proto.cms.BannerItem} returns this
3441
+ */
3442
+ proto.cms.BannerItem.prototype.setCtaType = function(value) {
3443
+ return jspb.Message.setField(this, 4, value);
3444
+ };
3445
+
3446
+
3447
+ /**
3448
+ * Clears the field making it undefined.
3449
+ * @return {!proto.cms.BannerItem} returns this
3450
+ */
3451
+ proto.cms.BannerItem.prototype.clearCtaType = function() {
3452
+ return jspb.Message.setField(this, 4, undefined);
3453
+ };
3454
+
3455
+
3456
+ /**
3457
+ * Returns whether this field is set.
3458
+ * @return {boolean}
3459
+ */
3460
+ proto.cms.BannerItem.prototype.hasCtaType = function() {
3461
+ return jspb.Message.getField(this, 4) != null;
3462
+ };
3463
+
3464
+
3465
+ /**
3466
+ * optional string cta_text = 5;
3467
+ * @return {string}
3468
+ */
3469
+ proto.cms.BannerItem.prototype.getCtaText = function() {
3470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3471
+ };
3472
+
3473
+
3474
+ /**
3475
+ * @param {string} value
3476
+ * @return {!proto.cms.BannerItem} returns this
3477
+ */
3478
+ proto.cms.BannerItem.prototype.setCtaText = function(value) {
3479
+ return jspb.Message.setField(this, 5, value);
3480
+ };
3481
+
3482
+
3483
+ /**
3484
+ * Clears the field making it undefined.
3485
+ * @return {!proto.cms.BannerItem} returns this
3486
+ */
3487
+ proto.cms.BannerItem.prototype.clearCtaText = function() {
3488
+ return jspb.Message.setField(this, 5, undefined);
3489
+ };
3490
+
3491
+
3492
+ /**
3493
+ * Returns whether this field is set.
3494
+ * @return {boolean}
3495
+ */
3496
+ proto.cms.BannerItem.prototype.hasCtaText = function() {
3497
+ return jspb.Message.getField(this, 5) != null;
3498
+ };
3499
+
3500
+
3501
+ /**
3502
+ * optional int32 is_active = 6;
3503
+ * @return {number}
3504
+ */
3505
+ proto.cms.BannerItem.prototype.getIsActive = function() {
3506
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3507
+ };
3508
+
3509
+
3510
+ /**
3511
+ * @param {number} value
3512
+ * @return {!proto.cms.BannerItem} returns this
3513
+ */
3514
+ proto.cms.BannerItem.prototype.setIsActive = function(value) {
3515
+ return jspb.Message.setField(this, 6, value);
3516
+ };
3517
+
3518
+
3519
+ /**
3520
+ * Clears the field making it undefined.
3521
+ * @return {!proto.cms.BannerItem} returns this
3522
+ */
3523
+ proto.cms.BannerItem.prototype.clearIsActive = function() {
3524
+ return jspb.Message.setField(this, 6, undefined);
3525
+ };
3526
+
3527
+
3528
+ /**
3529
+ * Returns whether this field is set.
3530
+ * @return {boolean}
3531
+ */
3532
+ proto.cms.BannerItem.prototype.hasIsActive = function() {
3533
+ return jspb.Message.getField(this, 6) != null;
3534
+ };
3535
+
3536
+
3537
+ /**
3538
+ * optional string image_big = 7;
3539
+ * @return {string}
3540
+ */
3541
+ proto.cms.BannerItem.prototype.getImageBig = function() {
3542
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3543
+ };
3544
+
3545
+
3546
+ /**
3547
+ * @param {string} value
3548
+ * @return {!proto.cms.BannerItem} returns this
3549
+ */
3550
+ proto.cms.BannerItem.prototype.setImageBig = function(value) {
3551
+ return jspb.Message.setField(this, 7, value);
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * Clears the field making it undefined.
3557
+ * @return {!proto.cms.BannerItem} returns this
3558
+ */
3559
+ proto.cms.BannerItem.prototype.clearImageBig = function() {
3560
+ return jspb.Message.setField(this, 7, undefined);
3561
+ };
3562
+
3563
+
3564
+ /**
3565
+ * Returns whether this field is set.
3566
+ * @return {boolean}
3567
+ */
3568
+ proto.cms.BannerItem.prototype.hasImageBig = function() {
3569
+ return jspb.Message.getField(this, 7) != null;
3570
+ };
3571
+
3572
+
3573
+ /**
3574
+ * optional string image_small = 8;
3575
+ * @return {string}
3576
+ */
3577
+ proto.cms.BannerItem.prototype.getImageSmall = function() {
3578
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3579
+ };
3580
+
3581
+
3582
+ /**
3583
+ * @param {string} value
3584
+ * @return {!proto.cms.BannerItem} returns this
3585
+ */
3586
+ proto.cms.BannerItem.prototype.setImageSmall = function(value) {
3587
+ return jspb.Message.setField(this, 8, value);
3588
+ };
3589
+
3590
+
3591
+ /**
3592
+ * Clears the field making it undefined.
3593
+ * @return {!proto.cms.BannerItem} returns this
3594
+ */
3595
+ proto.cms.BannerItem.prototype.clearImageSmall = function() {
3596
+ return jspb.Message.setField(this, 8, undefined);
3597
+ };
3598
+
3599
+
3600
+ /**
3601
+ * Returns whether this field is set.
3602
+ * @return {boolean}
3603
+ */
3604
+ proto.cms.BannerItem.prototype.hasImageSmall = function() {
3605
+ return jspb.Message.getField(this, 8) != null;
3606
+ };
3607
+
3608
+
3609
+
3610
+
3611
+
3612
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3613
+ /**
3614
+ * Creates an object representation of this proto.
3615
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3616
+ * Optional fields that are not set will be set to undefined.
3617
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3618
+ * For the list of reserved names please see:
3619
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3620
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3621
+ * JSPB instance for transitional soy proto support:
3622
+ * http://goto/soy-param-migration
3623
+ * @return {!Object}
3624
+ */
3625
+ proto.cms.BannerResponse.prototype.toObject = function(opt_includeInstance) {
3626
+ return proto.cms.BannerResponse.toObject(opt_includeInstance, this);
3627
+ };
3628
+
3629
+
3630
+ /**
3631
+ * Static version of the {@see toObject} method.
3632
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3633
+ * the JSPB instance for transitional soy proto support:
3634
+ * http://goto/soy-param-migration
3635
+ * @param {!proto.cms.BannerResponse} msg The msg instance to transform.
3636
+ * @return {!Object}
3637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3638
+ */
3639
+ proto.cms.BannerResponse.toObject = function(includeInstance, msg) {
3640
+ var f, obj = {
3641
+ data: (f = msg.getData()) && proto.cms.BannerItem.toObject(includeInstance, f)
3642
+ };
3643
+
3644
+ if (includeInstance) {
3645
+ obj.$jspbMessageInstance = msg;
3646
+ }
3647
+ return obj;
3648
+ };
3649
+ }
3650
+
3651
+
3652
+ /**
3653
+ * Deserializes binary data (in protobuf wire format).
3654
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3655
+ * @return {!proto.cms.BannerResponse}
3656
+ */
3657
+ proto.cms.BannerResponse.deserializeBinary = function(bytes) {
3658
+ var reader = new jspb.BinaryReader(bytes);
3659
+ var msg = new proto.cms.BannerResponse;
3660
+ return proto.cms.BannerResponse.deserializeBinaryFromReader(msg, reader);
3661
+ };
3662
+
3663
+
3664
+ /**
3665
+ * Deserializes binary data (in protobuf wire format) from the
3666
+ * given reader into the given message object.
3667
+ * @param {!proto.cms.BannerResponse} msg The message object to deserialize into.
3668
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3669
+ * @return {!proto.cms.BannerResponse}
3670
+ */
3671
+ proto.cms.BannerResponse.deserializeBinaryFromReader = function(msg, reader) {
3672
+ while (reader.nextField()) {
3673
+ if (reader.isEndGroup()) {
3674
+ break;
3675
+ }
3676
+ var field = reader.getFieldNumber();
3677
+ switch (field) {
3678
+ case 1:
3679
+ var value = new proto.cms.BannerItem;
3680
+ reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
3681
+ msg.setData(value);
3682
+ break;
3683
+ default:
3684
+ reader.skipField();
3685
+ break;
3686
+ }
3687
+ }
3688
+ return msg;
3689
+ };
3690
+
3691
+
3692
+ /**
3693
+ * Serializes the message to binary data (in protobuf wire format).
3694
+ * @return {!Uint8Array}
3695
+ */
3696
+ proto.cms.BannerResponse.prototype.serializeBinary = function() {
3697
+ var writer = new jspb.BinaryWriter();
3698
+ proto.cms.BannerResponse.serializeBinaryToWriter(this, writer);
3699
+ return writer.getResultBuffer();
3700
+ };
3701
+
3702
+
3703
+ /**
3704
+ * Serializes the given message to binary data (in protobuf wire
3705
+ * format), writing to the given BinaryWriter.
3706
+ * @param {!proto.cms.BannerResponse} message
3707
+ * @param {!jspb.BinaryWriter} writer
3708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3709
+ */
3710
+ proto.cms.BannerResponse.serializeBinaryToWriter = function(message, writer) {
3711
+ var f = undefined;
3712
+ f = message.getData();
3713
+ if (f != null) {
3714
+ writer.writeMessage(
3715
+ 1,
3716
+ f,
3717
+ proto.cms.BannerItem.serializeBinaryToWriter
3718
+ );
3719
+ }
3720
+ };
3721
+
3722
+
3723
+ /**
3724
+ * optional BannerItem data = 1;
3725
+ * @return {?proto.cms.BannerItem}
3726
+ */
3727
+ proto.cms.BannerResponse.prototype.getData = function() {
3728
+ return /** @type{?proto.cms.BannerItem} */ (
3729
+ jspb.Message.getWrapperField(this, proto.cms.BannerItem, 1));
3730
+ };
3731
+
3732
+
3733
+ /**
3734
+ * @param {?proto.cms.BannerItem|undefined} value
3735
+ * @return {!proto.cms.BannerResponse} returns this
3736
+ */
3737
+ proto.cms.BannerResponse.prototype.setData = function(value) {
3738
+ return jspb.Message.setWrapperField(this, 1, value);
3739
+ };
3740
+
3741
+
3742
+ /**
3743
+ * Clears the message field making it undefined.
3744
+ * @return {!proto.cms.BannerResponse} returns this
3745
+ */
3746
+ proto.cms.BannerResponse.prototype.clearData = function() {
3747
+ return this.setData(undefined);
3748
+ };
3749
+
3750
+
3751
+ /**
3752
+ * Returns whether this field is set.
3753
+ * @return {boolean}
3754
+ */
3755
+ proto.cms.BannerResponse.prototype.hasData = function() {
3756
+ return jspb.Message.getField(this, 1) != null;
3757
+ };
3758
+
3759
+
3760
+
3761
+
3762
+
3763
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3764
+ /**
3765
+ * Creates an object representation of this proto.
3766
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3767
+ * Optional fields that are not set will be set to undefined.
3768
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3769
+ * For the list of reserved names please see:
3770
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3771
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3772
+ * JSPB instance for transitional soy proto support:
3773
+ * http://goto/soy-param-migration
3774
+ * @return {!Object}
3775
+ */
3776
+ proto.cms.GetBannerRequest.prototype.toObject = function(opt_includeInstance) {
3777
+ return proto.cms.GetBannerRequest.toObject(opt_includeInstance, this);
3778
+ };
3779
+
3780
+
3781
+ /**
3782
+ * Static version of the {@see toObject} method.
3783
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3784
+ * the JSPB instance for transitional soy proto support:
3785
+ * http://goto/soy-param-migration
3786
+ * @param {!proto.cms.GetBannerRequest} msg The msg instance to transform.
3787
+ * @return {!Object}
3788
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3789
+ */
3790
+ proto.cms.GetBannerRequest.toObject = function(includeInstance, msg) {
3791
+ var f, obj = {
3792
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3793
+ };
3794
+
3795
+ if (includeInstance) {
3796
+ obj.$jspbMessageInstance = msg;
3797
+ }
3798
+ return obj;
3799
+ };
3800
+ }
3801
+
3802
+
3803
+ /**
3804
+ * Deserializes binary data (in protobuf wire format).
3805
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3806
+ * @return {!proto.cms.GetBannerRequest}
3807
+ */
3808
+ proto.cms.GetBannerRequest.deserializeBinary = function(bytes) {
3809
+ var reader = new jspb.BinaryReader(bytes);
3810
+ var msg = new proto.cms.GetBannerRequest;
3811
+ return proto.cms.GetBannerRequest.deserializeBinaryFromReader(msg, reader);
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * Deserializes binary data (in protobuf wire format) from the
3817
+ * given reader into the given message object.
3818
+ * @param {!proto.cms.GetBannerRequest} msg The message object to deserialize into.
3819
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3820
+ * @return {!proto.cms.GetBannerRequest}
3821
+ */
3822
+ proto.cms.GetBannerRequest.deserializeBinaryFromReader = function(msg, reader) {
3823
+ while (reader.nextField()) {
3824
+ if (reader.isEndGroup()) {
3825
+ break;
3826
+ }
3827
+ var field = reader.getFieldNumber();
3828
+ switch (field) {
3829
+ case 1:
3830
+ var value = /** @type {number} */ (reader.readInt32());
3831
+ msg.setId(value);
3832
+ break;
3833
+ default:
3834
+ reader.skipField();
3835
+ break;
3836
+ }
3837
+ }
3838
+ return msg;
3839
+ };
3840
+
3841
+
3842
+ /**
3843
+ * Serializes the message to binary data (in protobuf wire format).
3844
+ * @return {!Uint8Array}
3845
+ */
3846
+ proto.cms.GetBannerRequest.prototype.serializeBinary = function() {
3847
+ var writer = new jspb.BinaryWriter();
3848
+ proto.cms.GetBannerRequest.serializeBinaryToWriter(this, writer);
3849
+ return writer.getResultBuffer();
3850
+ };
3851
+
3852
+
3853
+ /**
3854
+ * Serializes the given message to binary data (in protobuf wire
3855
+ * format), writing to the given BinaryWriter.
3856
+ * @param {!proto.cms.GetBannerRequest} message
3857
+ * @param {!jspb.BinaryWriter} writer
3858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3859
+ */
3860
+ proto.cms.GetBannerRequest.serializeBinaryToWriter = function(message, writer) {
3861
+ var f = undefined;
3862
+ f = message.getId();
3863
+ if (f !== 0) {
3864
+ writer.writeInt32(
3865
+ 1,
3866
+ f
3867
+ );
3868
+ }
3869
+ };
3870
+
3871
+
3872
+ /**
3873
+ * optional int32 id = 1;
3874
+ * @return {number}
3875
+ */
3876
+ proto.cms.GetBannerRequest.prototype.getId = function() {
3877
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3878
+ };
3879
+
3880
+
3881
+ /**
3882
+ * @param {number} value
3883
+ * @return {!proto.cms.GetBannerRequest} returns this
3884
+ */
3885
+ proto.cms.GetBannerRequest.prototype.setId = function(value) {
3886
+ return jspb.Message.setProto3IntField(this, 1, value);
3887
+ };
3888
+
3889
+
3890
+
3891
+
3892
+
3893
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3894
+ /**
3895
+ * Creates an object representation of this proto.
3896
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3897
+ * Optional fields that are not set will be set to undefined.
3898
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3899
+ * For the list of reserved names please see:
3900
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3901
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3902
+ * JSPB instance for transitional soy proto support:
3903
+ * http://goto/soy-param-migration
3904
+ * @return {!Object}
3905
+ */
3906
+ proto.cms.BannerStatusResponse.prototype.toObject = function(opt_includeInstance) {
3907
+ return proto.cms.BannerStatusResponse.toObject(opt_includeInstance, this);
3908
+ };
3909
+
3910
+
3911
+ /**
3912
+ * Static version of the {@see toObject} method.
3913
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3914
+ * the JSPB instance for transitional soy proto support:
3915
+ * http://goto/soy-param-migration
3916
+ * @param {!proto.cms.BannerStatusResponse} msg The msg instance to transform.
3917
+ * @return {!Object}
3918
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3919
+ */
3920
+ proto.cms.BannerStatusResponse.toObject = function(includeInstance, msg) {
3921
+ var f, obj = {
3922
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
3923
+ };
3924
+
3925
+ if (includeInstance) {
3926
+ obj.$jspbMessageInstance = msg;
3927
+ }
3928
+ return obj;
3929
+ };
3930
+ }
3931
+
3932
+
3933
+ /**
3934
+ * Deserializes binary data (in protobuf wire format).
3935
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3936
+ * @return {!proto.cms.BannerStatusResponse}
3937
+ */
3938
+ proto.cms.BannerStatusResponse.deserializeBinary = function(bytes) {
3939
+ var reader = new jspb.BinaryReader(bytes);
3940
+ var msg = new proto.cms.BannerStatusResponse;
3941
+ return proto.cms.BannerStatusResponse.deserializeBinaryFromReader(msg, reader);
3942
+ };
3943
+
3944
+
3945
+ /**
3946
+ * Deserializes binary data (in protobuf wire format) from the
3947
+ * given reader into the given message object.
3948
+ * @param {!proto.cms.BannerStatusResponse} msg The message object to deserialize into.
3949
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3950
+ * @return {!proto.cms.BannerStatusResponse}
3951
+ */
3952
+ proto.cms.BannerStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
3953
+ while (reader.nextField()) {
3954
+ if (reader.isEndGroup()) {
3955
+ break;
3956
+ }
3957
+ var field = reader.getFieldNumber();
3958
+ switch (field) {
3959
+ case 1:
3960
+ var value = /** @type {string} */ (reader.readString());
3961
+ msg.setStatus(value);
3962
+ break;
3963
+ default:
3964
+ reader.skipField();
3965
+ break;
3966
+ }
3967
+ }
3968
+ return msg;
3969
+ };
3970
+
3971
+
3972
+ /**
3973
+ * Serializes the message to binary data (in protobuf wire format).
3974
+ * @return {!Uint8Array}
3975
+ */
3976
+ proto.cms.BannerStatusResponse.prototype.serializeBinary = function() {
3977
+ var writer = new jspb.BinaryWriter();
3978
+ proto.cms.BannerStatusResponse.serializeBinaryToWriter(this, writer);
3979
+ return writer.getResultBuffer();
3980
+ };
3981
+
3982
+
3983
+ /**
3984
+ * Serializes the given message to binary data (in protobuf wire
3985
+ * format), writing to the given BinaryWriter.
3986
+ * @param {!proto.cms.BannerStatusResponse} message
3987
+ * @param {!jspb.BinaryWriter} writer
3988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3989
+ */
3990
+ proto.cms.BannerStatusResponse.serializeBinaryToWriter = function(message, writer) {
3991
+ var f = undefined;
3992
+ f = message.getStatus();
3993
+ if (f.length > 0) {
3994
+ writer.writeString(
3995
+ 1,
3996
+ f
3997
+ );
3998
+ }
3999
+ };
4000
+
4001
+
4002
+ /**
4003
+ * optional string status = 1;
4004
+ * @return {string}
4005
+ */
4006
+ proto.cms.BannerStatusResponse.prototype.getStatus = function() {
4007
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4008
+ };
4009
+
4010
+
4011
+ /**
4012
+ * @param {string} value
4013
+ * @return {!proto.cms.BannerStatusResponse} returns this
4014
+ */
4015
+ proto.cms.BannerStatusResponse.prototype.setStatus = function(value) {
4016
+ return jspb.Message.setProto3StringField(this, 1, value);
4017
+ };
4018
+
4019
+
4020
+
4021
+ /**
4022
+ * List of repeated fields within this message type.
4023
+ * @private {!Array<number>}
4024
+ * @const
4025
+ */
4026
+ proto.cms.BannerItemsResponse.repeatedFields_ = [1];
4027
+
4028
+
4029
+
4030
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4031
+ /**
4032
+ * Creates an object representation of this proto.
4033
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4034
+ * Optional fields that are not set will be set to undefined.
4035
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4036
+ * For the list of reserved names please see:
4037
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4038
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4039
+ * JSPB instance for transitional soy proto support:
4040
+ * http://goto/soy-param-migration
4041
+ * @return {!Object}
4042
+ */
4043
+ proto.cms.BannerItemsResponse.prototype.toObject = function(opt_includeInstance) {
4044
+ return proto.cms.BannerItemsResponse.toObject(opt_includeInstance, this);
4045
+ };
4046
+
4047
+
4048
+ /**
4049
+ * Static version of the {@see toObject} method.
4050
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4051
+ * the JSPB instance for transitional soy proto support:
4052
+ * http://goto/soy-param-migration
4053
+ * @param {!proto.cms.BannerItemsResponse} msg The msg instance to transform.
4054
+ * @return {!Object}
4055
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4056
+ */
4057
+ proto.cms.BannerItemsResponse.toObject = function(includeInstance, msg) {
4058
+ var f, obj = {
4059
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
4060
+ proto.cms.BannerItem.toObject, includeInstance),
4061
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
4062
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
4063
+ };
4064
+
4065
+ if (includeInstance) {
4066
+ obj.$jspbMessageInstance = msg;
4067
+ }
4068
+ return obj;
4069
+ };
4070
+ }
4071
+
4072
+
4073
+ /**
4074
+ * Deserializes binary data (in protobuf wire format).
4075
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4076
+ * @return {!proto.cms.BannerItemsResponse}
4077
+ */
4078
+ proto.cms.BannerItemsResponse.deserializeBinary = function(bytes) {
4079
+ var reader = new jspb.BinaryReader(bytes);
4080
+ var msg = new proto.cms.BannerItemsResponse;
4081
+ return proto.cms.BannerItemsResponse.deserializeBinaryFromReader(msg, reader);
4082
+ };
4083
+
4084
+
4085
+ /**
4086
+ * Deserializes binary data (in protobuf wire format) from the
4087
+ * given reader into the given message object.
4088
+ * @param {!proto.cms.BannerItemsResponse} msg The message object to deserialize into.
4089
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4090
+ * @return {!proto.cms.BannerItemsResponse}
4091
+ */
4092
+ proto.cms.BannerItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
4093
+ while (reader.nextField()) {
4094
+ if (reader.isEndGroup()) {
4095
+ break;
4096
+ }
4097
+ var field = reader.getFieldNumber();
4098
+ switch (field) {
4099
+ case 1:
4100
+ var value = new proto.cms.BannerItem;
4101
+ reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
4102
+ msg.addItems(value);
4103
+ break;
4104
+ case 2:
4105
+ var value = /** @type {number} */ (reader.readInt32());
4106
+ msg.setTotalPages(value);
4107
+ break;
4108
+ case 3:
4109
+ var value = /** @type {number} */ (reader.readInt32());
4110
+ msg.setTotalItems(value);
4111
+ break;
4112
+ default:
4113
+ reader.skipField();
4114
+ break;
4115
+ }
4116
+ }
4117
+ return msg;
4118
+ };
4119
+
4120
+
4121
+ /**
4122
+ * Serializes the message to binary data (in protobuf wire format).
4123
+ * @return {!Uint8Array}
4124
+ */
4125
+ proto.cms.BannerItemsResponse.prototype.serializeBinary = function() {
4126
+ var writer = new jspb.BinaryWriter();
4127
+ proto.cms.BannerItemsResponse.serializeBinaryToWriter(this, writer);
4128
+ return writer.getResultBuffer();
4129
+ };
4130
+
4131
+
4132
+ /**
4133
+ * Serializes the given message to binary data (in protobuf wire
4134
+ * format), writing to the given BinaryWriter.
4135
+ * @param {!proto.cms.BannerItemsResponse} message
4136
+ * @param {!jspb.BinaryWriter} writer
4137
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4138
+ */
4139
+ proto.cms.BannerItemsResponse.serializeBinaryToWriter = function(message, writer) {
4140
+ var f = undefined;
4141
+ f = message.getItemsList();
4142
+ if (f.length > 0) {
4143
+ writer.writeRepeatedMessage(
4144
+ 1,
4145
+ f,
4146
+ proto.cms.BannerItem.serializeBinaryToWriter
4147
+ );
4148
+ }
4149
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
4150
+ if (f != null) {
4151
+ writer.writeInt32(
4152
+ 2,
4153
+ f
4154
+ );
4155
+ }
4156
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
4157
+ if (f != null) {
4158
+ writer.writeInt32(
4159
+ 3,
4160
+ f
4161
+ );
4162
+ }
4163
+ };
4164
+
4165
+
4166
+ /**
4167
+ * repeated BannerItem items = 1;
4168
+ * @return {!Array<!proto.cms.BannerItem>}
4169
+ */
4170
+ proto.cms.BannerItemsResponse.prototype.getItemsList = function() {
4171
+ return /** @type{!Array<!proto.cms.BannerItem>} */ (
4172
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerItem, 1));
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * @param {!Array<!proto.cms.BannerItem>} value
4178
+ * @return {!proto.cms.BannerItemsResponse} returns this
4179
+ */
4180
+ proto.cms.BannerItemsResponse.prototype.setItemsList = function(value) {
4181
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4182
+ };
4183
+
4184
+
4185
+ /**
4186
+ * @param {!proto.cms.BannerItem=} opt_value
4187
+ * @param {number=} opt_index
4188
+ * @return {!proto.cms.BannerItem}
4189
+ */
4190
+ proto.cms.BannerItemsResponse.prototype.addItems = function(opt_value, opt_index) {
4191
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerItem, opt_index);
4192
+ };
4193
+
4194
+
4195
+ /**
4196
+ * Clears the list making it empty but non-null.
4197
+ * @return {!proto.cms.BannerItemsResponse} returns this
4198
+ */
4199
+ proto.cms.BannerItemsResponse.prototype.clearItemsList = function() {
4200
+ return this.setItemsList([]);
4201
+ };
4202
+
4203
+
4204
+ /**
4205
+ * optional int32 total_pages = 2;
4206
+ * @return {number}
4207
+ */
4208
+ proto.cms.BannerItemsResponse.prototype.getTotalPages = function() {
4209
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4210
+ };
4211
+
4212
+
4213
+ /**
4214
+ * @param {number} value
4215
+ * @return {!proto.cms.BannerItemsResponse} returns this
4216
+ */
4217
+ proto.cms.BannerItemsResponse.prototype.setTotalPages = function(value) {
4218
+ return jspb.Message.setField(this, 2, value);
4219
+ };
4220
+
4221
+
4222
+ /**
4223
+ * Clears the field making it undefined.
4224
+ * @return {!proto.cms.BannerItemsResponse} returns this
4225
+ */
4226
+ proto.cms.BannerItemsResponse.prototype.clearTotalPages = function() {
4227
+ return jspb.Message.setField(this, 2, undefined);
4228
+ };
4229
+
4230
+
4231
+ /**
4232
+ * Returns whether this field is set.
4233
+ * @return {boolean}
4234
+ */
4235
+ proto.cms.BannerItemsResponse.prototype.hasTotalPages = function() {
4236
+ return jspb.Message.getField(this, 2) != null;
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * optional int32 total_items = 3;
4242
+ * @return {number}
4243
+ */
4244
+ proto.cms.BannerItemsResponse.prototype.getTotalItems = function() {
4245
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * @param {number} value
4251
+ * @return {!proto.cms.BannerItemsResponse} returns this
4252
+ */
4253
+ proto.cms.BannerItemsResponse.prototype.setTotalItems = function(value) {
4254
+ return jspb.Message.setField(this, 3, value);
4255
+ };
4256
+
4257
+
4258
+ /**
4259
+ * Clears the field making it undefined.
4260
+ * @return {!proto.cms.BannerItemsResponse} returns this
4261
+ */
4262
+ proto.cms.BannerItemsResponse.prototype.clearTotalItems = function() {
4263
+ return jspb.Message.setField(this, 3, undefined);
4264
+ };
4265
+
4266
+
4267
+ /**
4268
+ * Returns whether this field is set.
4269
+ * @return {boolean}
4270
+ */
4271
+ proto.cms.BannerItemsResponse.prototype.hasTotalItems = function() {
4272
+ return jspb.Message.getField(this, 3) != null;
4273
+ };
4274
+
4275
+
1666
4276
  goog.object.extend(exports, proto.cms);