protobuf-platform 1.0.275 → 1.0.277

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
@@ -41,9 +41,15 @@ goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
41
41
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
42
42
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
43
43
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
44
+ goog.exportSymbol('proto.cms.GetPageRequest', null, global);
44
45
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
45
46
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
46
47
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
48
+ goog.exportSymbol('proto.cms.PageItem', null, global);
49
+ goog.exportSymbol('proto.cms.PageRequest', null, global);
50
+ goog.exportSymbol('proto.cms.PageResponse', null, global);
51
+ goog.exportSymbol('proto.cms.PageStatusResponse', null, global);
52
+ goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
47
53
  goog.exportSymbol('proto.cms.PaginationRequest', null, global);
48
54
  goog.exportSymbol('proto.cms.PingRequest', null, global);
49
55
  goog.exportSymbol('proto.cms.PongResponse', null, global);
@@ -638,6 +644,132 @@ if (goog.DEBUG && !COMPILED) {
638
644
  */
639
645
  proto.cms.UserBannerGroupResponse.displayName = 'proto.cms.UserBannerGroupResponse';
640
646
  }
647
+ /**
648
+ * Generated by JsPbCodeGenerator.
649
+ * @param {Array=} opt_data Optional initial data array, typically from a
650
+ * server response, or constructed directly in Javascript. The array is used
651
+ * in place and becomes part of the constructed object. It is not cloned.
652
+ * If no data is provided, the constructed object will be empty, but still
653
+ * valid.
654
+ * @extends {jspb.Message}
655
+ * @constructor
656
+ */
657
+ proto.cms.PageRequest = function(opt_data) {
658
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
659
+ };
660
+ goog.inherits(proto.cms.PageRequest, jspb.Message);
661
+ if (goog.DEBUG && !COMPILED) {
662
+ /**
663
+ * @public
664
+ * @override
665
+ */
666
+ proto.cms.PageRequest.displayName = 'proto.cms.PageRequest';
667
+ }
668
+ /**
669
+ * Generated by JsPbCodeGenerator.
670
+ * @param {Array=} opt_data Optional initial data array, typically from a
671
+ * server response, or constructed directly in Javascript. The array is used
672
+ * in place and becomes part of the constructed object. It is not cloned.
673
+ * If no data is provided, the constructed object will be empty, but still
674
+ * valid.
675
+ * @extends {jspb.Message}
676
+ * @constructor
677
+ */
678
+ proto.cms.PageItem = function(opt_data) {
679
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
680
+ };
681
+ goog.inherits(proto.cms.PageItem, jspb.Message);
682
+ if (goog.DEBUG && !COMPILED) {
683
+ /**
684
+ * @public
685
+ * @override
686
+ */
687
+ proto.cms.PageItem.displayName = 'proto.cms.PageItem';
688
+ }
689
+ /**
690
+ * Generated by JsPbCodeGenerator.
691
+ * @param {Array=} opt_data Optional initial data array, typically from a
692
+ * server response, or constructed directly in Javascript. The array is used
693
+ * in place and becomes part of the constructed object. It is not cloned.
694
+ * If no data is provided, the constructed object will be empty, but still
695
+ * valid.
696
+ * @extends {jspb.Message}
697
+ * @constructor
698
+ */
699
+ proto.cms.PageResponse = function(opt_data) {
700
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
701
+ };
702
+ goog.inherits(proto.cms.PageResponse, jspb.Message);
703
+ if (goog.DEBUG && !COMPILED) {
704
+ /**
705
+ * @public
706
+ * @override
707
+ */
708
+ proto.cms.PageResponse.displayName = 'proto.cms.PageResponse';
709
+ }
710
+ /**
711
+ * Generated by JsPbCodeGenerator.
712
+ * @param {Array=} opt_data Optional initial data array, typically from a
713
+ * server response, or constructed directly in Javascript. The array is used
714
+ * in place and becomes part of the constructed object. It is not cloned.
715
+ * If no data is provided, the constructed object will be empty, but still
716
+ * valid.
717
+ * @extends {jspb.Message}
718
+ * @constructor
719
+ */
720
+ proto.cms.PagesItemsResponse = function(opt_data) {
721
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PagesItemsResponse.repeatedFields_, null);
722
+ };
723
+ goog.inherits(proto.cms.PagesItemsResponse, jspb.Message);
724
+ if (goog.DEBUG && !COMPILED) {
725
+ /**
726
+ * @public
727
+ * @override
728
+ */
729
+ proto.cms.PagesItemsResponse.displayName = 'proto.cms.PagesItemsResponse';
730
+ }
731
+ /**
732
+ * Generated by JsPbCodeGenerator.
733
+ * @param {Array=} opt_data Optional initial data array, typically from a
734
+ * server response, or constructed directly in Javascript. The array is used
735
+ * in place and becomes part of the constructed object. It is not cloned.
736
+ * If no data is provided, the constructed object will be empty, but still
737
+ * valid.
738
+ * @extends {jspb.Message}
739
+ * @constructor
740
+ */
741
+ proto.cms.GetPageRequest = function(opt_data) {
742
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
743
+ };
744
+ goog.inherits(proto.cms.GetPageRequest, jspb.Message);
745
+ if (goog.DEBUG && !COMPILED) {
746
+ /**
747
+ * @public
748
+ * @override
749
+ */
750
+ proto.cms.GetPageRequest.displayName = 'proto.cms.GetPageRequest';
751
+ }
752
+ /**
753
+ * Generated by JsPbCodeGenerator.
754
+ * @param {Array=} opt_data Optional initial data array, typically from a
755
+ * server response, or constructed directly in Javascript. The array is used
756
+ * in place and becomes part of the constructed object. It is not cloned.
757
+ * If no data is provided, the constructed object will be empty, but still
758
+ * valid.
759
+ * @extends {jspb.Message}
760
+ * @constructor
761
+ */
762
+ proto.cms.PageStatusResponse = function(opt_data) {
763
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
764
+ };
765
+ goog.inherits(proto.cms.PageStatusResponse, jspb.Message);
766
+ if (goog.DEBUG && !COMPILED) {
767
+ /**
768
+ * @public
769
+ * @override
770
+ */
771
+ proto.cms.PageStatusResponse.displayName = 'proto.cms.PageStatusResponse';
772
+ }
641
773
 
642
774
 
643
775
 
@@ -7461,4 +7593,1363 @@ proto.cms.UserBannerGroupResponse.prototype.clearItemsList = function() {
7461
7593
  };
7462
7594
 
7463
7595
 
7596
+
7597
+
7598
+
7599
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7600
+ /**
7601
+ * Creates an object representation of this proto.
7602
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7603
+ * Optional fields that are not set will be set to undefined.
7604
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7605
+ * For the list of reserved names please see:
7606
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7607
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7608
+ * JSPB instance for transitional soy proto support:
7609
+ * http://goto/soy-param-migration
7610
+ * @return {!Object}
7611
+ */
7612
+ proto.cms.PageRequest.prototype.toObject = function(opt_includeInstance) {
7613
+ return proto.cms.PageRequest.toObject(opt_includeInstance, this);
7614
+ };
7615
+
7616
+
7617
+ /**
7618
+ * Static version of the {@see toObject} method.
7619
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7620
+ * the JSPB instance for transitional soy proto support:
7621
+ * http://goto/soy-param-migration
7622
+ * @param {!proto.cms.PageRequest} msg The msg instance to transform.
7623
+ * @return {!Object}
7624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7625
+ */
7626
+ proto.cms.PageRequest.toObject = function(includeInstance, msg) {
7627
+ var f, obj = {
7628
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7629
+ slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
7630
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
7631
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
7632
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
7633
+ };
7634
+
7635
+ if (includeInstance) {
7636
+ obj.$jspbMessageInstance = msg;
7637
+ }
7638
+ return obj;
7639
+ };
7640
+ }
7641
+
7642
+
7643
+ /**
7644
+ * Deserializes binary data (in protobuf wire format).
7645
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7646
+ * @return {!proto.cms.PageRequest}
7647
+ */
7648
+ proto.cms.PageRequest.deserializeBinary = function(bytes) {
7649
+ var reader = new jspb.BinaryReader(bytes);
7650
+ var msg = new proto.cms.PageRequest;
7651
+ return proto.cms.PageRequest.deserializeBinaryFromReader(msg, reader);
7652
+ };
7653
+
7654
+
7655
+ /**
7656
+ * Deserializes binary data (in protobuf wire format) from the
7657
+ * given reader into the given message object.
7658
+ * @param {!proto.cms.PageRequest} msg The message object to deserialize into.
7659
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7660
+ * @return {!proto.cms.PageRequest}
7661
+ */
7662
+ proto.cms.PageRequest.deserializeBinaryFromReader = function(msg, reader) {
7663
+ while (reader.nextField()) {
7664
+ if (reader.isEndGroup()) {
7665
+ break;
7666
+ }
7667
+ var field = reader.getFieldNumber();
7668
+ switch (field) {
7669
+ case 1:
7670
+ var value = /** @type {number} */ (reader.readInt32());
7671
+ msg.setId(value);
7672
+ break;
7673
+ case 2:
7674
+ var value = /** @type {string} */ (reader.readString());
7675
+ msg.setSlug(value);
7676
+ break;
7677
+ case 3:
7678
+ var value = /** @type {string} */ (reader.readString());
7679
+ msg.setTitle(value);
7680
+ break;
7681
+ case 4:
7682
+ var value = /** @type {string} */ (reader.readString());
7683
+ msg.setContent(value);
7684
+ break;
7685
+ case 5:
7686
+ var value = /** @type {number} */ (reader.readInt32());
7687
+ msg.setIsActive(value);
7688
+ break;
7689
+ default:
7690
+ reader.skipField();
7691
+ break;
7692
+ }
7693
+ }
7694
+ return msg;
7695
+ };
7696
+
7697
+
7698
+ /**
7699
+ * Serializes the message to binary data (in protobuf wire format).
7700
+ * @return {!Uint8Array}
7701
+ */
7702
+ proto.cms.PageRequest.prototype.serializeBinary = function() {
7703
+ var writer = new jspb.BinaryWriter();
7704
+ proto.cms.PageRequest.serializeBinaryToWriter(this, writer);
7705
+ return writer.getResultBuffer();
7706
+ };
7707
+
7708
+
7709
+ /**
7710
+ * Serializes the given message to binary data (in protobuf wire
7711
+ * format), writing to the given BinaryWriter.
7712
+ * @param {!proto.cms.PageRequest} message
7713
+ * @param {!jspb.BinaryWriter} writer
7714
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7715
+ */
7716
+ proto.cms.PageRequest.serializeBinaryToWriter = function(message, writer) {
7717
+ var f = undefined;
7718
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
7719
+ if (f != null) {
7720
+ writer.writeInt32(
7721
+ 1,
7722
+ f
7723
+ );
7724
+ }
7725
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7726
+ if (f != null) {
7727
+ writer.writeString(
7728
+ 2,
7729
+ f
7730
+ );
7731
+ }
7732
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7733
+ if (f != null) {
7734
+ writer.writeString(
7735
+ 3,
7736
+ f
7737
+ );
7738
+ }
7739
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7740
+ if (f != null) {
7741
+ writer.writeString(
7742
+ 4,
7743
+ f
7744
+ );
7745
+ }
7746
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
7747
+ if (f != null) {
7748
+ writer.writeInt32(
7749
+ 5,
7750
+ f
7751
+ );
7752
+ }
7753
+ };
7754
+
7755
+
7756
+ /**
7757
+ * optional int32 id = 1;
7758
+ * @return {number}
7759
+ */
7760
+ proto.cms.PageRequest.prototype.getId = function() {
7761
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7762
+ };
7763
+
7764
+
7765
+ /**
7766
+ * @param {number} value
7767
+ * @return {!proto.cms.PageRequest} returns this
7768
+ */
7769
+ proto.cms.PageRequest.prototype.setId = function(value) {
7770
+ return jspb.Message.setField(this, 1, value);
7771
+ };
7772
+
7773
+
7774
+ /**
7775
+ * Clears the field making it undefined.
7776
+ * @return {!proto.cms.PageRequest} returns this
7777
+ */
7778
+ proto.cms.PageRequest.prototype.clearId = function() {
7779
+ return jspb.Message.setField(this, 1, undefined);
7780
+ };
7781
+
7782
+
7783
+ /**
7784
+ * Returns whether this field is set.
7785
+ * @return {boolean}
7786
+ */
7787
+ proto.cms.PageRequest.prototype.hasId = function() {
7788
+ return jspb.Message.getField(this, 1) != null;
7789
+ };
7790
+
7791
+
7792
+ /**
7793
+ * optional string slug = 2;
7794
+ * @return {string}
7795
+ */
7796
+ proto.cms.PageRequest.prototype.getSlug = function() {
7797
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7798
+ };
7799
+
7800
+
7801
+ /**
7802
+ * @param {string} value
7803
+ * @return {!proto.cms.PageRequest} returns this
7804
+ */
7805
+ proto.cms.PageRequest.prototype.setSlug = function(value) {
7806
+ return jspb.Message.setField(this, 2, value);
7807
+ };
7808
+
7809
+
7810
+ /**
7811
+ * Clears the field making it undefined.
7812
+ * @return {!proto.cms.PageRequest} returns this
7813
+ */
7814
+ proto.cms.PageRequest.prototype.clearSlug = function() {
7815
+ return jspb.Message.setField(this, 2, undefined);
7816
+ };
7817
+
7818
+
7819
+ /**
7820
+ * Returns whether this field is set.
7821
+ * @return {boolean}
7822
+ */
7823
+ proto.cms.PageRequest.prototype.hasSlug = function() {
7824
+ return jspb.Message.getField(this, 2) != null;
7825
+ };
7826
+
7827
+
7828
+ /**
7829
+ * optional string title = 3;
7830
+ * @return {string}
7831
+ */
7832
+ proto.cms.PageRequest.prototype.getTitle = function() {
7833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7834
+ };
7835
+
7836
+
7837
+ /**
7838
+ * @param {string} value
7839
+ * @return {!proto.cms.PageRequest} returns this
7840
+ */
7841
+ proto.cms.PageRequest.prototype.setTitle = function(value) {
7842
+ return jspb.Message.setField(this, 3, value);
7843
+ };
7844
+
7845
+
7846
+ /**
7847
+ * Clears the field making it undefined.
7848
+ * @return {!proto.cms.PageRequest} returns this
7849
+ */
7850
+ proto.cms.PageRequest.prototype.clearTitle = function() {
7851
+ return jspb.Message.setField(this, 3, undefined);
7852
+ };
7853
+
7854
+
7855
+ /**
7856
+ * Returns whether this field is set.
7857
+ * @return {boolean}
7858
+ */
7859
+ proto.cms.PageRequest.prototype.hasTitle = function() {
7860
+ return jspb.Message.getField(this, 3) != null;
7861
+ };
7862
+
7863
+
7864
+ /**
7865
+ * optional string content = 4;
7866
+ * @return {string}
7867
+ */
7868
+ proto.cms.PageRequest.prototype.getContent = function() {
7869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7870
+ };
7871
+
7872
+
7873
+ /**
7874
+ * @param {string} value
7875
+ * @return {!proto.cms.PageRequest} returns this
7876
+ */
7877
+ proto.cms.PageRequest.prototype.setContent = function(value) {
7878
+ return jspb.Message.setField(this, 4, value);
7879
+ };
7880
+
7881
+
7882
+ /**
7883
+ * Clears the field making it undefined.
7884
+ * @return {!proto.cms.PageRequest} returns this
7885
+ */
7886
+ proto.cms.PageRequest.prototype.clearContent = function() {
7887
+ return jspb.Message.setField(this, 4, undefined);
7888
+ };
7889
+
7890
+
7891
+ /**
7892
+ * Returns whether this field is set.
7893
+ * @return {boolean}
7894
+ */
7895
+ proto.cms.PageRequest.prototype.hasContent = function() {
7896
+ return jspb.Message.getField(this, 4) != null;
7897
+ };
7898
+
7899
+
7900
+ /**
7901
+ * optional int32 is_active = 5;
7902
+ * @return {number}
7903
+ */
7904
+ proto.cms.PageRequest.prototype.getIsActive = function() {
7905
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7906
+ };
7907
+
7908
+
7909
+ /**
7910
+ * @param {number} value
7911
+ * @return {!proto.cms.PageRequest} returns this
7912
+ */
7913
+ proto.cms.PageRequest.prototype.setIsActive = function(value) {
7914
+ return jspb.Message.setField(this, 5, value);
7915
+ };
7916
+
7917
+
7918
+ /**
7919
+ * Clears the field making it undefined.
7920
+ * @return {!proto.cms.PageRequest} returns this
7921
+ */
7922
+ proto.cms.PageRequest.prototype.clearIsActive = function() {
7923
+ return jspb.Message.setField(this, 5, undefined);
7924
+ };
7925
+
7926
+
7927
+ /**
7928
+ * Returns whether this field is set.
7929
+ * @return {boolean}
7930
+ */
7931
+ proto.cms.PageRequest.prototype.hasIsActive = function() {
7932
+ return jspb.Message.getField(this, 5) != null;
7933
+ };
7934
+
7935
+
7936
+
7937
+
7938
+
7939
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7940
+ /**
7941
+ * Creates an object representation of this proto.
7942
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7943
+ * Optional fields that are not set will be set to undefined.
7944
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7945
+ * For the list of reserved names please see:
7946
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7947
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7948
+ * JSPB instance for transitional soy proto support:
7949
+ * http://goto/soy-param-migration
7950
+ * @return {!Object}
7951
+ */
7952
+ proto.cms.PageItem.prototype.toObject = function(opt_includeInstance) {
7953
+ return proto.cms.PageItem.toObject(opt_includeInstance, this);
7954
+ };
7955
+
7956
+
7957
+ /**
7958
+ * Static version of the {@see toObject} method.
7959
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7960
+ * the JSPB instance for transitional soy proto support:
7961
+ * http://goto/soy-param-migration
7962
+ * @param {!proto.cms.PageItem} msg The msg instance to transform.
7963
+ * @return {!Object}
7964
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7965
+ */
7966
+ proto.cms.PageItem.toObject = function(includeInstance, msg) {
7967
+ var f, obj = {
7968
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7969
+ slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
7970
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
7971
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
7972
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
7973
+ };
7974
+
7975
+ if (includeInstance) {
7976
+ obj.$jspbMessageInstance = msg;
7977
+ }
7978
+ return obj;
7979
+ };
7980
+ }
7981
+
7982
+
7983
+ /**
7984
+ * Deserializes binary data (in protobuf wire format).
7985
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7986
+ * @return {!proto.cms.PageItem}
7987
+ */
7988
+ proto.cms.PageItem.deserializeBinary = function(bytes) {
7989
+ var reader = new jspb.BinaryReader(bytes);
7990
+ var msg = new proto.cms.PageItem;
7991
+ return proto.cms.PageItem.deserializeBinaryFromReader(msg, reader);
7992
+ };
7993
+
7994
+
7995
+ /**
7996
+ * Deserializes binary data (in protobuf wire format) from the
7997
+ * given reader into the given message object.
7998
+ * @param {!proto.cms.PageItem} msg The message object to deserialize into.
7999
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8000
+ * @return {!proto.cms.PageItem}
8001
+ */
8002
+ proto.cms.PageItem.deserializeBinaryFromReader = function(msg, reader) {
8003
+ while (reader.nextField()) {
8004
+ if (reader.isEndGroup()) {
8005
+ break;
8006
+ }
8007
+ var field = reader.getFieldNumber();
8008
+ switch (field) {
8009
+ case 1:
8010
+ var value = /** @type {number} */ (reader.readInt32());
8011
+ msg.setId(value);
8012
+ break;
8013
+ case 2:
8014
+ var value = /** @type {string} */ (reader.readString());
8015
+ msg.setSlug(value);
8016
+ break;
8017
+ case 3:
8018
+ var value = /** @type {string} */ (reader.readString());
8019
+ msg.setTitle(value);
8020
+ break;
8021
+ case 4:
8022
+ var value = /** @type {string} */ (reader.readString());
8023
+ msg.setContent(value);
8024
+ break;
8025
+ case 5:
8026
+ var value = /** @type {number} */ (reader.readInt32());
8027
+ msg.setIsActive(value);
8028
+ break;
8029
+ default:
8030
+ reader.skipField();
8031
+ break;
8032
+ }
8033
+ }
8034
+ return msg;
8035
+ };
8036
+
8037
+
8038
+ /**
8039
+ * Serializes the message to binary data (in protobuf wire format).
8040
+ * @return {!Uint8Array}
8041
+ */
8042
+ proto.cms.PageItem.prototype.serializeBinary = function() {
8043
+ var writer = new jspb.BinaryWriter();
8044
+ proto.cms.PageItem.serializeBinaryToWriter(this, writer);
8045
+ return writer.getResultBuffer();
8046
+ };
8047
+
8048
+
8049
+ /**
8050
+ * Serializes the given message to binary data (in protobuf wire
8051
+ * format), writing to the given BinaryWriter.
8052
+ * @param {!proto.cms.PageItem} message
8053
+ * @param {!jspb.BinaryWriter} writer
8054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8055
+ */
8056
+ proto.cms.PageItem.serializeBinaryToWriter = function(message, writer) {
8057
+ var f = undefined;
8058
+ f = message.getId();
8059
+ if (f !== 0) {
8060
+ writer.writeInt32(
8061
+ 1,
8062
+ f
8063
+ );
8064
+ }
8065
+ f = message.getSlug();
8066
+ if (f.length > 0) {
8067
+ writer.writeString(
8068
+ 2,
8069
+ f
8070
+ );
8071
+ }
8072
+ f = message.getTitle();
8073
+ if (f.length > 0) {
8074
+ writer.writeString(
8075
+ 3,
8076
+ f
8077
+ );
8078
+ }
8079
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
8080
+ if (f != null) {
8081
+ writer.writeString(
8082
+ 4,
8083
+ f
8084
+ );
8085
+ }
8086
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
8087
+ if (f != null) {
8088
+ writer.writeInt32(
8089
+ 5,
8090
+ f
8091
+ );
8092
+ }
8093
+ };
8094
+
8095
+
8096
+ /**
8097
+ * optional int32 id = 1;
8098
+ * @return {number}
8099
+ */
8100
+ proto.cms.PageItem.prototype.getId = function() {
8101
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8102
+ };
8103
+
8104
+
8105
+ /**
8106
+ * @param {number} value
8107
+ * @return {!proto.cms.PageItem} returns this
8108
+ */
8109
+ proto.cms.PageItem.prototype.setId = function(value) {
8110
+ return jspb.Message.setProto3IntField(this, 1, value);
8111
+ };
8112
+
8113
+
8114
+ /**
8115
+ * optional string slug = 2;
8116
+ * @return {string}
8117
+ */
8118
+ proto.cms.PageItem.prototype.getSlug = function() {
8119
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8120
+ };
8121
+
8122
+
8123
+ /**
8124
+ * @param {string} value
8125
+ * @return {!proto.cms.PageItem} returns this
8126
+ */
8127
+ proto.cms.PageItem.prototype.setSlug = function(value) {
8128
+ return jspb.Message.setProto3StringField(this, 2, value);
8129
+ };
8130
+
8131
+
8132
+ /**
8133
+ * optional string title = 3;
8134
+ * @return {string}
8135
+ */
8136
+ proto.cms.PageItem.prototype.getTitle = function() {
8137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8138
+ };
8139
+
8140
+
8141
+ /**
8142
+ * @param {string} value
8143
+ * @return {!proto.cms.PageItem} returns this
8144
+ */
8145
+ proto.cms.PageItem.prototype.setTitle = function(value) {
8146
+ return jspb.Message.setProto3StringField(this, 3, value);
8147
+ };
8148
+
8149
+
8150
+ /**
8151
+ * optional string content = 4;
8152
+ * @return {string}
8153
+ */
8154
+ proto.cms.PageItem.prototype.getContent = function() {
8155
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8156
+ };
8157
+
8158
+
8159
+ /**
8160
+ * @param {string} value
8161
+ * @return {!proto.cms.PageItem} returns this
8162
+ */
8163
+ proto.cms.PageItem.prototype.setContent = function(value) {
8164
+ return jspb.Message.setField(this, 4, value);
8165
+ };
8166
+
8167
+
8168
+ /**
8169
+ * Clears the field making it undefined.
8170
+ * @return {!proto.cms.PageItem} returns this
8171
+ */
8172
+ proto.cms.PageItem.prototype.clearContent = function() {
8173
+ return jspb.Message.setField(this, 4, undefined);
8174
+ };
8175
+
8176
+
8177
+ /**
8178
+ * Returns whether this field is set.
8179
+ * @return {boolean}
8180
+ */
8181
+ proto.cms.PageItem.prototype.hasContent = function() {
8182
+ return jspb.Message.getField(this, 4) != null;
8183
+ };
8184
+
8185
+
8186
+ /**
8187
+ * optional int32 is_active = 5;
8188
+ * @return {number}
8189
+ */
8190
+ proto.cms.PageItem.prototype.getIsActive = function() {
8191
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
8192
+ };
8193
+
8194
+
8195
+ /**
8196
+ * @param {number} value
8197
+ * @return {!proto.cms.PageItem} returns this
8198
+ */
8199
+ proto.cms.PageItem.prototype.setIsActive = function(value) {
8200
+ return jspb.Message.setField(this, 5, value);
8201
+ };
8202
+
8203
+
8204
+ /**
8205
+ * Clears the field making it undefined.
8206
+ * @return {!proto.cms.PageItem} returns this
8207
+ */
8208
+ proto.cms.PageItem.prototype.clearIsActive = function() {
8209
+ return jspb.Message.setField(this, 5, undefined);
8210
+ };
8211
+
8212
+
8213
+ /**
8214
+ * Returns whether this field is set.
8215
+ * @return {boolean}
8216
+ */
8217
+ proto.cms.PageItem.prototype.hasIsActive = function() {
8218
+ return jspb.Message.getField(this, 5) != null;
8219
+ };
8220
+
8221
+
8222
+
8223
+
8224
+
8225
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8226
+ /**
8227
+ * Creates an object representation of this proto.
8228
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8229
+ * Optional fields that are not set will be set to undefined.
8230
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8231
+ * For the list of reserved names please see:
8232
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8233
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8234
+ * JSPB instance for transitional soy proto support:
8235
+ * http://goto/soy-param-migration
8236
+ * @return {!Object}
8237
+ */
8238
+ proto.cms.PageResponse.prototype.toObject = function(opt_includeInstance) {
8239
+ return proto.cms.PageResponse.toObject(opt_includeInstance, this);
8240
+ };
8241
+
8242
+
8243
+ /**
8244
+ * Static version of the {@see toObject} method.
8245
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8246
+ * the JSPB instance for transitional soy proto support:
8247
+ * http://goto/soy-param-migration
8248
+ * @param {!proto.cms.PageResponse} msg The msg instance to transform.
8249
+ * @return {!Object}
8250
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8251
+ */
8252
+ proto.cms.PageResponse.toObject = function(includeInstance, msg) {
8253
+ var f, obj = {
8254
+ data: (f = msg.getData()) && proto.cms.PageItem.toObject(includeInstance, f)
8255
+ };
8256
+
8257
+ if (includeInstance) {
8258
+ obj.$jspbMessageInstance = msg;
8259
+ }
8260
+ return obj;
8261
+ };
8262
+ }
8263
+
8264
+
8265
+ /**
8266
+ * Deserializes binary data (in protobuf wire format).
8267
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8268
+ * @return {!proto.cms.PageResponse}
8269
+ */
8270
+ proto.cms.PageResponse.deserializeBinary = function(bytes) {
8271
+ var reader = new jspb.BinaryReader(bytes);
8272
+ var msg = new proto.cms.PageResponse;
8273
+ return proto.cms.PageResponse.deserializeBinaryFromReader(msg, reader);
8274
+ };
8275
+
8276
+
8277
+ /**
8278
+ * Deserializes binary data (in protobuf wire format) from the
8279
+ * given reader into the given message object.
8280
+ * @param {!proto.cms.PageResponse} msg The message object to deserialize into.
8281
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8282
+ * @return {!proto.cms.PageResponse}
8283
+ */
8284
+ proto.cms.PageResponse.deserializeBinaryFromReader = function(msg, reader) {
8285
+ while (reader.nextField()) {
8286
+ if (reader.isEndGroup()) {
8287
+ break;
8288
+ }
8289
+ var field = reader.getFieldNumber();
8290
+ switch (field) {
8291
+ case 1:
8292
+ var value = new proto.cms.PageItem;
8293
+ reader.readMessage(value,proto.cms.PageItem.deserializeBinaryFromReader);
8294
+ msg.setData(value);
8295
+ break;
8296
+ default:
8297
+ reader.skipField();
8298
+ break;
8299
+ }
8300
+ }
8301
+ return msg;
8302
+ };
8303
+
8304
+
8305
+ /**
8306
+ * Serializes the message to binary data (in protobuf wire format).
8307
+ * @return {!Uint8Array}
8308
+ */
8309
+ proto.cms.PageResponse.prototype.serializeBinary = function() {
8310
+ var writer = new jspb.BinaryWriter();
8311
+ proto.cms.PageResponse.serializeBinaryToWriter(this, writer);
8312
+ return writer.getResultBuffer();
8313
+ };
8314
+
8315
+
8316
+ /**
8317
+ * Serializes the given message to binary data (in protobuf wire
8318
+ * format), writing to the given BinaryWriter.
8319
+ * @param {!proto.cms.PageResponse} message
8320
+ * @param {!jspb.BinaryWriter} writer
8321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8322
+ */
8323
+ proto.cms.PageResponse.serializeBinaryToWriter = function(message, writer) {
8324
+ var f = undefined;
8325
+ f = message.getData();
8326
+ if (f != null) {
8327
+ writer.writeMessage(
8328
+ 1,
8329
+ f,
8330
+ proto.cms.PageItem.serializeBinaryToWriter
8331
+ );
8332
+ }
8333
+ };
8334
+
8335
+
8336
+ /**
8337
+ * optional PageItem data = 1;
8338
+ * @return {?proto.cms.PageItem}
8339
+ */
8340
+ proto.cms.PageResponse.prototype.getData = function() {
8341
+ return /** @type{?proto.cms.PageItem} */ (
8342
+ jspb.Message.getWrapperField(this, proto.cms.PageItem, 1));
8343
+ };
8344
+
8345
+
8346
+ /**
8347
+ * @param {?proto.cms.PageItem|undefined} value
8348
+ * @return {!proto.cms.PageResponse} returns this
8349
+ */
8350
+ proto.cms.PageResponse.prototype.setData = function(value) {
8351
+ return jspb.Message.setWrapperField(this, 1, value);
8352
+ };
8353
+
8354
+
8355
+ /**
8356
+ * Clears the message field making it undefined.
8357
+ * @return {!proto.cms.PageResponse} returns this
8358
+ */
8359
+ proto.cms.PageResponse.prototype.clearData = function() {
8360
+ return this.setData(undefined);
8361
+ };
8362
+
8363
+
8364
+ /**
8365
+ * Returns whether this field is set.
8366
+ * @return {boolean}
8367
+ */
8368
+ proto.cms.PageResponse.prototype.hasData = function() {
8369
+ return jspb.Message.getField(this, 1) != null;
8370
+ };
8371
+
8372
+
8373
+
8374
+ /**
8375
+ * List of repeated fields within this message type.
8376
+ * @private {!Array<number>}
8377
+ * @const
8378
+ */
8379
+ proto.cms.PagesItemsResponse.repeatedFields_ = [1];
8380
+
8381
+
8382
+
8383
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8384
+ /**
8385
+ * Creates an object representation of this proto.
8386
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8387
+ * Optional fields that are not set will be set to undefined.
8388
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8389
+ * For the list of reserved names please see:
8390
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8391
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8392
+ * JSPB instance for transitional soy proto support:
8393
+ * http://goto/soy-param-migration
8394
+ * @return {!Object}
8395
+ */
8396
+ proto.cms.PagesItemsResponse.prototype.toObject = function(opt_includeInstance) {
8397
+ return proto.cms.PagesItemsResponse.toObject(opt_includeInstance, this);
8398
+ };
8399
+
8400
+
8401
+ /**
8402
+ * Static version of the {@see toObject} method.
8403
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8404
+ * the JSPB instance for transitional soy proto support:
8405
+ * http://goto/soy-param-migration
8406
+ * @param {!proto.cms.PagesItemsResponse} msg The msg instance to transform.
8407
+ * @return {!Object}
8408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8409
+ */
8410
+ proto.cms.PagesItemsResponse.toObject = function(includeInstance, msg) {
8411
+ var f, obj = {
8412
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
8413
+ proto.cms.PageItem.toObject, includeInstance),
8414
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
8415
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
8416
+ };
8417
+
8418
+ if (includeInstance) {
8419
+ obj.$jspbMessageInstance = msg;
8420
+ }
8421
+ return obj;
8422
+ };
8423
+ }
8424
+
8425
+
8426
+ /**
8427
+ * Deserializes binary data (in protobuf wire format).
8428
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8429
+ * @return {!proto.cms.PagesItemsResponse}
8430
+ */
8431
+ proto.cms.PagesItemsResponse.deserializeBinary = function(bytes) {
8432
+ var reader = new jspb.BinaryReader(bytes);
8433
+ var msg = new proto.cms.PagesItemsResponse;
8434
+ return proto.cms.PagesItemsResponse.deserializeBinaryFromReader(msg, reader);
8435
+ };
8436
+
8437
+
8438
+ /**
8439
+ * Deserializes binary data (in protobuf wire format) from the
8440
+ * given reader into the given message object.
8441
+ * @param {!proto.cms.PagesItemsResponse} msg The message object to deserialize into.
8442
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8443
+ * @return {!proto.cms.PagesItemsResponse}
8444
+ */
8445
+ proto.cms.PagesItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
8446
+ while (reader.nextField()) {
8447
+ if (reader.isEndGroup()) {
8448
+ break;
8449
+ }
8450
+ var field = reader.getFieldNumber();
8451
+ switch (field) {
8452
+ case 1:
8453
+ var value = new proto.cms.PageItem;
8454
+ reader.readMessage(value,proto.cms.PageItem.deserializeBinaryFromReader);
8455
+ msg.addItems(value);
8456
+ break;
8457
+ case 2:
8458
+ var value = /** @type {number} */ (reader.readInt32());
8459
+ msg.setTotalPages(value);
8460
+ break;
8461
+ case 3:
8462
+ var value = /** @type {number} */ (reader.readInt32());
8463
+ msg.setTotalItems(value);
8464
+ break;
8465
+ default:
8466
+ reader.skipField();
8467
+ break;
8468
+ }
8469
+ }
8470
+ return msg;
8471
+ };
8472
+
8473
+
8474
+ /**
8475
+ * Serializes the message to binary data (in protobuf wire format).
8476
+ * @return {!Uint8Array}
8477
+ */
8478
+ proto.cms.PagesItemsResponse.prototype.serializeBinary = function() {
8479
+ var writer = new jspb.BinaryWriter();
8480
+ proto.cms.PagesItemsResponse.serializeBinaryToWriter(this, writer);
8481
+ return writer.getResultBuffer();
8482
+ };
8483
+
8484
+
8485
+ /**
8486
+ * Serializes the given message to binary data (in protobuf wire
8487
+ * format), writing to the given BinaryWriter.
8488
+ * @param {!proto.cms.PagesItemsResponse} message
8489
+ * @param {!jspb.BinaryWriter} writer
8490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8491
+ */
8492
+ proto.cms.PagesItemsResponse.serializeBinaryToWriter = function(message, writer) {
8493
+ var f = undefined;
8494
+ f = message.getItemsList();
8495
+ if (f.length > 0) {
8496
+ writer.writeRepeatedMessage(
8497
+ 1,
8498
+ f,
8499
+ proto.cms.PageItem.serializeBinaryToWriter
8500
+ );
8501
+ }
8502
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
8503
+ if (f != null) {
8504
+ writer.writeInt32(
8505
+ 2,
8506
+ f
8507
+ );
8508
+ }
8509
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
8510
+ if (f != null) {
8511
+ writer.writeInt32(
8512
+ 3,
8513
+ f
8514
+ );
8515
+ }
8516
+ };
8517
+
8518
+
8519
+ /**
8520
+ * repeated PageItem items = 1;
8521
+ * @return {!Array<!proto.cms.PageItem>}
8522
+ */
8523
+ proto.cms.PagesItemsResponse.prototype.getItemsList = function() {
8524
+ return /** @type{!Array<!proto.cms.PageItem>} */ (
8525
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PageItem, 1));
8526
+ };
8527
+
8528
+
8529
+ /**
8530
+ * @param {!Array<!proto.cms.PageItem>} value
8531
+ * @return {!proto.cms.PagesItemsResponse} returns this
8532
+ */
8533
+ proto.cms.PagesItemsResponse.prototype.setItemsList = function(value) {
8534
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
8535
+ };
8536
+
8537
+
8538
+ /**
8539
+ * @param {!proto.cms.PageItem=} opt_value
8540
+ * @param {number=} opt_index
8541
+ * @return {!proto.cms.PageItem}
8542
+ */
8543
+ proto.cms.PagesItemsResponse.prototype.addItems = function(opt_value, opt_index) {
8544
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.PageItem, opt_index);
8545
+ };
8546
+
8547
+
8548
+ /**
8549
+ * Clears the list making it empty but non-null.
8550
+ * @return {!proto.cms.PagesItemsResponse} returns this
8551
+ */
8552
+ proto.cms.PagesItemsResponse.prototype.clearItemsList = function() {
8553
+ return this.setItemsList([]);
8554
+ };
8555
+
8556
+
8557
+ /**
8558
+ * optional int32 total_pages = 2;
8559
+ * @return {number}
8560
+ */
8561
+ proto.cms.PagesItemsResponse.prototype.getTotalPages = function() {
8562
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8563
+ };
8564
+
8565
+
8566
+ /**
8567
+ * @param {number} value
8568
+ * @return {!proto.cms.PagesItemsResponse} returns this
8569
+ */
8570
+ proto.cms.PagesItemsResponse.prototype.setTotalPages = function(value) {
8571
+ return jspb.Message.setField(this, 2, value);
8572
+ };
8573
+
8574
+
8575
+ /**
8576
+ * Clears the field making it undefined.
8577
+ * @return {!proto.cms.PagesItemsResponse} returns this
8578
+ */
8579
+ proto.cms.PagesItemsResponse.prototype.clearTotalPages = function() {
8580
+ return jspb.Message.setField(this, 2, undefined);
8581
+ };
8582
+
8583
+
8584
+ /**
8585
+ * Returns whether this field is set.
8586
+ * @return {boolean}
8587
+ */
8588
+ proto.cms.PagesItemsResponse.prototype.hasTotalPages = function() {
8589
+ return jspb.Message.getField(this, 2) != null;
8590
+ };
8591
+
8592
+
8593
+ /**
8594
+ * optional int32 total_items = 3;
8595
+ * @return {number}
8596
+ */
8597
+ proto.cms.PagesItemsResponse.prototype.getTotalItems = function() {
8598
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8599
+ };
8600
+
8601
+
8602
+ /**
8603
+ * @param {number} value
8604
+ * @return {!proto.cms.PagesItemsResponse} returns this
8605
+ */
8606
+ proto.cms.PagesItemsResponse.prototype.setTotalItems = function(value) {
8607
+ return jspb.Message.setField(this, 3, value);
8608
+ };
8609
+
8610
+
8611
+ /**
8612
+ * Clears the field making it undefined.
8613
+ * @return {!proto.cms.PagesItemsResponse} returns this
8614
+ */
8615
+ proto.cms.PagesItemsResponse.prototype.clearTotalItems = function() {
8616
+ return jspb.Message.setField(this, 3, undefined);
8617
+ };
8618
+
8619
+
8620
+ /**
8621
+ * Returns whether this field is set.
8622
+ * @return {boolean}
8623
+ */
8624
+ proto.cms.PagesItemsResponse.prototype.hasTotalItems = function() {
8625
+ return jspb.Message.getField(this, 3) != null;
8626
+ };
8627
+
8628
+
8629
+
8630
+
8631
+
8632
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8633
+ /**
8634
+ * Creates an object representation of this proto.
8635
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8636
+ * Optional fields that are not set will be set to undefined.
8637
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8638
+ * For the list of reserved names please see:
8639
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8640
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8641
+ * JSPB instance for transitional soy proto support:
8642
+ * http://goto/soy-param-migration
8643
+ * @return {!Object}
8644
+ */
8645
+ proto.cms.GetPageRequest.prototype.toObject = function(opt_includeInstance) {
8646
+ return proto.cms.GetPageRequest.toObject(opt_includeInstance, this);
8647
+ };
8648
+
8649
+
8650
+ /**
8651
+ * Static version of the {@see toObject} method.
8652
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8653
+ * the JSPB instance for transitional soy proto support:
8654
+ * http://goto/soy-param-migration
8655
+ * @param {!proto.cms.GetPageRequest} msg The msg instance to transform.
8656
+ * @return {!Object}
8657
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8658
+ */
8659
+ proto.cms.GetPageRequest.toObject = function(includeInstance, msg) {
8660
+ var f, obj = {
8661
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
8662
+ slug: jspb.Message.getFieldWithDefault(msg, 2, "")
8663
+ };
8664
+
8665
+ if (includeInstance) {
8666
+ obj.$jspbMessageInstance = msg;
8667
+ }
8668
+ return obj;
8669
+ };
8670
+ }
8671
+
8672
+
8673
+ /**
8674
+ * Deserializes binary data (in protobuf wire format).
8675
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8676
+ * @return {!proto.cms.GetPageRequest}
8677
+ */
8678
+ proto.cms.GetPageRequest.deserializeBinary = function(bytes) {
8679
+ var reader = new jspb.BinaryReader(bytes);
8680
+ var msg = new proto.cms.GetPageRequest;
8681
+ return proto.cms.GetPageRequest.deserializeBinaryFromReader(msg, reader);
8682
+ };
8683
+
8684
+
8685
+ /**
8686
+ * Deserializes binary data (in protobuf wire format) from the
8687
+ * given reader into the given message object.
8688
+ * @param {!proto.cms.GetPageRequest} msg The message object to deserialize into.
8689
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8690
+ * @return {!proto.cms.GetPageRequest}
8691
+ */
8692
+ proto.cms.GetPageRequest.deserializeBinaryFromReader = function(msg, reader) {
8693
+ while (reader.nextField()) {
8694
+ if (reader.isEndGroup()) {
8695
+ break;
8696
+ }
8697
+ var field = reader.getFieldNumber();
8698
+ switch (field) {
8699
+ case 1:
8700
+ var value = /** @type {number} */ (reader.readInt32());
8701
+ msg.setId(value);
8702
+ break;
8703
+ case 2:
8704
+ var value = /** @type {string} */ (reader.readString());
8705
+ msg.setSlug(value);
8706
+ break;
8707
+ default:
8708
+ reader.skipField();
8709
+ break;
8710
+ }
8711
+ }
8712
+ return msg;
8713
+ };
8714
+
8715
+
8716
+ /**
8717
+ * Serializes the message to binary data (in protobuf wire format).
8718
+ * @return {!Uint8Array}
8719
+ */
8720
+ proto.cms.GetPageRequest.prototype.serializeBinary = function() {
8721
+ var writer = new jspb.BinaryWriter();
8722
+ proto.cms.GetPageRequest.serializeBinaryToWriter(this, writer);
8723
+ return writer.getResultBuffer();
8724
+ };
8725
+
8726
+
8727
+ /**
8728
+ * Serializes the given message to binary data (in protobuf wire
8729
+ * format), writing to the given BinaryWriter.
8730
+ * @param {!proto.cms.GetPageRequest} message
8731
+ * @param {!jspb.BinaryWriter} writer
8732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8733
+ */
8734
+ proto.cms.GetPageRequest.serializeBinaryToWriter = function(message, writer) {
8735
+ var f = undefined;
8736
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
8737
+ if (f != null) {
8738
+ writer.writeInt32(
8739
+ 1,
8740
+ f
8741
+ );
8742
+ }
8743
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
8744
+ if (f != null) {
8745
+ writer.writeString(
8746
+ 2,
8747
+ f
8748
+ );
8749
+ }
8750
+ };
8751
+
8752
+
8753
+ /**
8754
+ * optional int32 id = 1;
8755
+ * @return {number}
8756
+ */
8757
+ proto.cms.GetPageRequest.prototype.getId = function() {
8758
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8759
+ };
8760
+
8761
+
8762
+ /**
8763
+ * @param {number} value
8764
+ * @return {!proto.cms.GetPageRequest} returns this
8765
+ */
8766
+ proto.cms.GetPageRequest.prototype.setId = function(value) {
8767
+ return jspb.Message.setField(this, 1, value);
8768
+ };
8769
+
8770
+
8771
+ /**
8772
+ * Clears the field making it undefined.
8773
+ * @return {!proto.cms.GetPageRequest} returns this
8774
+ */
8775
+ proto.cms.GetPageRequest.prototype.clearId = function() {
8776
+ return jspb.Message.setField(this, 1, undefined);
8777
+ };
8778
+
8779
+
8780
+ /**
8781
+ * Returns whether this field is set.
8782
+ * @return {boolean}
8783
+ */
8784
+ proto.cms.GetPageRequest.prototype.hasId = function() {
8785
+ return jspb.Message.getField(this, 1) != null;
8786
+ };
8787
+
8788
+
8789
+ /**
8790
+ * optional string slug = 2;
8791
+ * @return {string}
8792
+ */
8793
+ proto.cms.GetPageRequest.prototype.getSlug = function() {
8794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8795
+ };
8796
+
8797
+
8798
+ /**
8799
+ * @param {string} value
8800
+ * @return {!proto.cms.GetPageRequest} returns this
8801
+ */
8802
+ proto.cms.GetPageRequest.prototype.setSlug = function(value) {
8803
+ return jspb.Message.setField(this, 2, value);
8804
+ };
8805
+
8806
+
8807
+ /**
8808
+ * Clears the field making it undefined.
8809
+ * @return {!proto.cms.GetPageRequest} returns this
8810
+ */
8811
+ proto.cms.GetPageRequest.prototype.clearSlug = function() {
8812
+ return jspb.Message.setField(this, 2, undefined);
8813
+ };
8814
+
8815
+
8816
+ /**
8817
+ * Returns whether this field is set.
8818
+ * @return {boolean}
8819
+ */
8820
+ proto.cms.GetPageRequest.prototype.hasSlug = function() {
8821
+ return jspb.Message.getField(this, 2) != null;
8822
+ };
8823
+
8824
+
8825
+
8826
+
8827
+
8828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8829
+ /**
8830
+ * Creates an object representation of this proto.
8831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8832
+ * Optional fields that are not set will be set to undefined.
8833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8834
+ * For the list of reserved names please see:
8835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8837
+ * JSPB instance for transitional soy proto support:
8838
+ * http://goto/soy-param-migration
8839
+ * @return {!Object}
8840
+ */
8841
+ proto.cms.PageStatusResponse.prototype.toObject = function(opt_includeInstance) {
8842
+ return proto.cms.PageStatusResponse.toObject(opt_includeInstance, this);
8843
+ };
8844
+
8845
+
8846
+ /**
8847
+ * Static version of the {@see toObject} method.
8848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8849
+ * the JSPB instance for transitional soy proto support:
8850
+ * http://goto/soy-param-migration
8851
+ * @param {!proto.cms.PageStatusResponse} msg The msg instance to transform.
8852
+ * @return {!Object}
8853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8854
+ */
8855
+ proto.cms.PageStatusResponse.toObject = function(includeInstance, msg) {
8856
+ var f, obj = {
8857
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
8858
+ };
8859
+
8860
+ if (includeInstance) {
8861
+ obj.$jspbMessageInstance = msg;
8862
+ }
8863
+ return obj;
8864
+ };
8865
+ }
8866
+
8867
+
8868
+ /**
8869
+ * Deserializes binary data (in protobuf wire format).
8870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8871
+ * @return {!proto.cms.PageStatusResponse}
8872
+ */
8873
+ proto.cms.PageStatusResponse.deserializeBinary = function(bytes) {
8874
+ var reader = new jspb.BinaryReader(bytes);
8875
+ var msg = new proto.cms.PageStatusResponse;
8876
+ return proto.cms.PageStatusResponse.deserializeBinaryFromReader(msg, reader);
8877
+ };
8878
+
8879
+
8880
+ /**
8881
+ * Deserializes binary data (in protobuf wire format) from the
8882
+ * given reader into the given message object.
8883
+ * @param {!proto.cms.PageStatusResponse} msg The message object to deserialize into.
8884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8885
+ * @return {!proto.cms.PageStatusResponse}
8886
+ */
8887
+ proto.cms.PageStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
8888
+ while (reader.nextField()) {
8889
+ if (reader.isEndGroup()) {
8890
+ break;
8891
+ }
8892
+ var field = reader.getFieldNumber();
8893
+ switch (field) {
8894
+ case 1:
8895
+ var value = /** @type {string} */ (reader.readString());
8896
+ msg.setStatus(value);
8897
+ break;
8898
+ default:
8899
+ reader.skipField();
8900
+ break;
8901
+ }
8902
+ }
8903
+ return msg;
8904
+ };
8905
+
8906
+
8907
+ /**
8908
+ * Serializes the message to binary data (in protobuf wire format).
8909
+ * @return {!Uint8Array}
8910
+ */
8911
+ proto.cms.PageStatusResponse.prototype.serializeBinary = function() {
8912
+ var writer = new jspb.BinaryWriter();
8913
+ proto.cms.PageStatusResponse.serializeBinaryToWriter(this, writer);
8914
+ return writer.getResultBuffer();
8915
+ };
8916
+
8917
+
8918
+ /**
8919
+ * Serializes the given message to binary data (in protobuf wire
8920
+ * format), writing to the given BinaryWriter.
8921
+ * @param {!proto.cms.PageStatusResponse} message
8922
+ * @param {!jspb.BinaryWriter} writer
8923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8924
+ */
8925
+ proto.cms.PageStatusResponse.serializeBinaryToWriter = function(message, writer) {
8926
+ var f = undefined;
8927
+ f = message.getStatus();
8928
+ if (f.length > 0) {
8929
+ writer.writeString(
8930
+ 1,
8931
+ f
8932
+ );
8933
+ }
8934
+ };
8935
+
8936
+
8937
+ /**
8938
+ * optional string status = 1;
8939
+ * @return {string}
8940
+ */
8941
+ proto.cms.PageStatusResponse.prototype.getStatus = function() {
8942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8943
+ };
8944
+
8945
+
8946
+ /**
8947
+ * @param {string} value
8948
+ * @return {!proto.cms.PageStatusResponse} returns this
8949
+ */
8950
+ proto.cms.PageStatusResponse.prototype.setStatus = function(value) {
8951
+ return jspb.Message.setProto3StringField(this, 1, value);
8952
+ };
8953
+
8954
+
7464
8955
  goog.object.extend(exports, proto.cms);