protobuf-platform 1.2.649 → 1.2.651

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
@@ -130,6 +130,8 @@ goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
130
130
  goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
131
131
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
132
132
  goog.exportSymbol('proto.cms.GetMobileMenuWidgetRequest', null, global);
133
+ goog.exportSymbol('proto.cms.GetPageFaqRequest', null, global);
134
+ goog.exportSymbol('proto.cms.GetPageFaqTranslationRequest', null, global);
133
135
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
134
136
  goog.exportSymbol('proto.cms.GetPageSeoAttributesRequest', null, global);
135
137
  goog.exportSymbol('proto.cms.GetPageSeoRequest', null, global);
@@ -149,6 +151,14 @@ goog.exportSymbol('proto.cms.LocaleContentItem', null, global);
149
151
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
150
152
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
151
153
  goog.exportSymbol('proto.cms.MobileMenuWidgetItem', null, global);
154
+ goog.exportSymbol('proto.cms.PageFaqContentItem', null, global);
155
+ goog.exportSymbol('proto.cms.PageFaqItem', null, global);
156
+ goog.exportSymbol('proto.cms.PageFaqItemsResponse', null, global);
157
+ goog.exportSymbol('proto.cms.PageFaqRequest', null, global);
158
+ goog.exportSymbol('proto.cms.PageFaqResponse', null, global);
159
+ goog.exportSymbol('proto.cms.PageFaqStatusResponse', null, global);
160
+ goog.exportSymbol('proto.cms.PageFaqTranslationItem', null, global);
161
+ goog.exportSymbol('proto.cms.PageFaqTranslationResponse', null, global);
152
162
  goog.exportSymbol('proto.cms.PageItem', null, global);
153
163
  goog.exportSymbol('proto.cms.PageRequest', null, global);
154
164
  goog.exportSymbol('proto.cms.PageResponse', null, global);
@@ -188,6 +198,7 @@ goog.exportSymbol('proto.cms.ReadListPresetCashierConfigsRequest', null, global)
188
198
  goog.exportSymbol('proto.cms.ReadListPresetWidgetsRequest', null, global);
189
199
  goog.exportSymbol('proto.cms.ReadPresetCashierConfigRequest', null, global);
190
200
  goog.exportSymbol('proto.cms.ReadPresetWidgetRequest', null, global);
201
+ goog.exportSymbol('proto.cms.SetPageFaqTranslationRequest', null, global);
191
202
  goog.exportSymbol('proto.cms.SetPageSeoAttributesRequest', null, global);
192
203
  goog.exportSymbol('proto.cms.SetPresetCashierConfigRequest', null, global);
193
204
  goog.exportSymbol('proto.cms.SetPresetWidgetRequest', null, global);
@@ -1638,6 +1649,237 @@ if (goog.DEBUG && !COMPILED) {
1638
1649
  */
1639
1650
  proto.cms.PageSeoAttributesResponse.displayName = 'proto.cms.PageSeoAttributesResponse';
1640
1651
  }
1652
+ /**
1653
+ * Generated by JsPbCodeGenerator.
1654
+ * @param {Array=} opt_data Optional initial data array, typically from a
1655
+ * server response, or constructed directly in Javascript. The array is used
1656
+ * in place and becomes part of the constructed object. It is not cloned.
1657
+ * If no data is provided, the constructed object will be empty, but still
1658
+ * valid.
1659
+ * @extends {jspb.Message}
1660
+ * @constructor
1661
+ */
1662
+ proto.cms.PageFaqContentItem = function(opt_data) {
1663
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1664
+ };
1665
+ goog.inherits(proto.cms.PageFaqContentItem, jspb.Message);
1666
+ if (goog.DEBUG && !COMPILED) {
1667
+ /**
1668
+ * @public
1669
+ * @override
1670
+ */
1671
+ proto.cms.PageFaqContentItem.displayName = 'proto.cms.PageFaqContentItem';
1672
+ }
1673
+ /**
1674
+ * Generated by JsPbCodeGenerator.
1675
+ * @param {Array=} opt_data Optional initial data array, typically from a
1676
+ * server response, or constructed directly in Javascript. The array is used
1677
+ * in place and becomes part of the constructed object. It is not cloned.
1678
+ * If no data is provided, the constructed object will be empty, but still
1679
+ * valid.
1680
+ * @extends {jspb.Message}
1681
+ * @constructor
1682
+ */
1683
+ proto.cms.PageFaqRequest = function(opt_data) {
1684
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1685
+ };
1686
+ goog.inherits(proto.cms.PageFaqRequest, jspb.Message);
1687
+ if (goog.DEBUG && !COMPILED) {
1688
+ /**
1689
+ * @public
1690
+ * @override
1691
+ */
1692
+ proto.cms.PageFaqRequest.displayName = 'proto.cms.PageFaqRequest';
1693
+ }
1694
+ /**
1695
+ * Generated by JsPbCodeGenerator.
1696
+ * @param {Array=} opt_data Optional initial data array, typically from a
1697
+ * server response, or constructed directly in Javascript. The array is used
1698
+ * in place and becomes part of the constructed object. It is not cloned.
1699
+ * If no data is provided, the constructed object will be empty, but still
1700
+ * valid.
1701
+ * @extends {jspb.Message}
1702
+ * @constructor
1703
+ */
1704
+ proto.cms.PageFaqItem = function(opt_data) {
1705
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1706
+ };
1707
+ goog.inherits(proto.cms.PageFaqItem, jspb.Message);
1708
+ if (goog.DEBUG && !COMPILED) {
1709
+ /**
1710
+ * @public
1711
+ * @override
1712
+ */
1713
+ proto.cms.PageFaqItem.displayName = 'proto.cms.PageFaqItem';
1714
+ }
1715
+ /**
1716
+ * Generated by JsPbCodeGenerator.
1717
+ * @param {Array=} opt_data Optional initial data array, typically from a
1718
+ * server response, or constructed directly in Javascript. The array is used
1719
+ * in place and becomes part of the constructed object. It is not cloned.
1720
+ * If no data is provided, the constructed object will be empty, but still
1721
+ * valid.
1722
+ * @extends {jspb.Message}
1723
+ * @constructor
1724
+ */
1725
+ proto.cms.PageFaqResponse = function(opt_data) {
1726
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1727
+ };
1728
+ goog.inherits(proto.cms.PageFaqResponse, jspb.Message);
1729
+ if (goog.DEBUG && !COMPILED) {
1730
+ /**
1731
+ * @public
1732
+ * @override
1733
+ */
1734
+ proto.cms.PageFaqResponse.displayName = 'proto.cms.PageFaqResponse';
1735
+ }
1736
+ /**
1737
+ * Generated by JsPbCodeGenerator.
1738
+ * @param {Array=} opt_data Optional initial data array, typically from a
1739
+ * server response, or constructed directly in Javascript. The array is used
1740
+ * in place and becomes part of the constructed object. It is not cloned.
1741
+ * If no data is provided, the constructed object will be empty, but still
1742
+ * valid.
1743
+ * @extends {jspb.Message}
1744
+ * @constructor
1745
+ */
1746
+ proto.cms.GetPageFaqRequest = function(opt_data) {
1747
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1748
+ };
1749
+ goog.inherits(proto.cms.GetPageFaqRequest, jspb.Message);
1750
+ if (goog.DEBUG && !COMPILED) {
1751
+ /**
1752
+ * @public
1753
+ * @override
1754
+ */
1755
+ proto.cms.GetPageFaqRequest.displayName = 'proto.cms.GetPageFaqRequest';
1756
+ }
1757
+ /**
1758
+ * Generated by JsPbCodeGenerator.
1759
+ * @param {Array=} opt_data Optional initial data array, typically from a
1760
+ * server response, or constructed directly in Javascript. The array is used
1761
+ * in place and becomes part of the constructed object. It is not cloned.
1762
+ * If no data is provided, the constructed object will be empty, but still
1763
+ * valid.
1764
+ * @extends {jspb.Message}
1765
+ * @constructor
1766
+ */
1767
+ proto.cms.PageFaqStatusResponse = function(opt_data) {
1768
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1769
+ };
1770
+ goog.inherits(proto.cms.PageFaqStatusResponse, jspb.Message);
1771
+ if (goog.DEBUG && !COMPILED) {
1772
+ /**
1773
+ * @public
1774
+ * @override
1775
+ */
1776
+ proto.cms.PageFaqStatusResponse.displayName = 'proto.cms.PageFaqStatusResponse';
1777
+ }
1778
+ /**
1779
+ * Generated by JsPbCodeGenerator.
1780
+ * @param {Array=} opt_data Optional initial data array, typically from a
1781
+ * server response, or constructed directly in Javascript. The array is used
1782
+ * in place and becomes part of the constructed object. It is not cloned.
1783
+ * If no data is provided, the constructed object will be empty, but still
1784
+ * valid.
1785
+ * @extends {jspb.Message}
1786
+ * @constructor
1787
+ */
1788
+ proto.cms.PageFaqItemsResponse = function(opt_data) {
1789
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PageFaqItemsResponse.repeatedFields_, null);
1790
+ };
1791
+ goog.inherits(proto.cms.PageFaqItemsResponse, jspb.Message);
1792
+ if (goog.DEBUG && !COMPILED) {
1793
+ /**
1794
+ * @public
1795
+ * @override
1796
+ */
1797
+ proto.cms.PageFaqItemsResponse.displayName = 'proto.cms.PageFaqItemsResponse';
1798
+ }
1799
+ /**
1800
+ * Generated by JsPbCodeGenerator.
1801
+ * @param {Array=} opt_data Optional initial data array, typically from a
1802
+ * server response, or constructed directly in Javascript. The array is used
1803
+ * in place and becomes part of the constructed object. It is not cloned.
1804
+ * If no data is provided, the constructed object will be empty, but still
1805
+ * valid.
1806
+ * @extends {jspb.Message}
1807
+ * @constructor
1808
+ */
1809
+ proto.cms.SetPageFaqTranslationRequest = function(opt_data) {
1810
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.SetPageFaqTranslationRequest.repeatedFields_, null);
1811
+ };
1812
+ goog.inherits(proto.cms.SetPageFaqTranslationRequest, jspb.Message);
1813
+ if (goog.DEBUG && !COMPILED) {
1814
+ /**
1815
+ * @public
1816
+ * @override
1817
+ */
1818
+ proto.cms.SetPageFaqTranslationRequest.displayName = 'proto.cms.SetPageFaqTranslationRequest';
1819
+ }
1820
+ /**
1821
+ * Generated by JsPbCodeGenerator.
1822
+ * @param {Array=} opt_data Optional initial data array, typically from a
1823
+ * server response, or constructed directly in Javascript. The array is used
1824
+ * in place and becomes part of the constructed object. It is not cloned.
1825
+ * If no data is provided, the constructed object will be empty, but still
1826
+ * valid.
1827
+ * @extends {jspb.Message}
1828
+ * @constructor
1829
+ */
1830
+ proto.cms.GetPageFaqTranslationRequest = function(opt_data) {
1831
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1832
+ };
1833
+ goog.inherits(proto.cms.GetPageFaqTranslationRequest, jspb.Message);
1834
+ if (goog.DEBUG && !COMPILED) {
1835
+ /**
1836
+ * @public
1837
+ * @override
1838
+ */
1839
+ proto.cms.GetPageFaqTranslationRequest.displayName = 'proto.cms.GetPageFaqTranslationRequest';
1840
+ }
1841
+ /**
1842
+ * Generated by JsPbCodeGenerator.
1843
+ * @param {Array=} opt_data Optional initial data array, typically from a
1844
+ * server response, or constructed directly in Javascript. The array is used
1845
+ * in place and becomes part of the constructed object. It is not cloned.
1846
+ * If no data is provided, the constructed object will be empty, but still
1847
+ * valid.
1848
+ * @extends {jspb.Message}
1849
+ * @constructor
1850
+ */
1851
+ proto.cms.PageFaqTranslationItem = function(opt_data) {
1852
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PageFaqTranslationItem.repeatedFields_, null);
1853
+ };
1854
+ goog.inherits(proto.cms.PageFaqTranslationItem, jspb.Message);
1855
+ if (goog.DEBUG && !COMPILED) {
1856
+ /**
1857
+ * @public
1858
+ * @override
1859
+ */
1860
+ proto.cms.PageFaqTranslationItem.displayName = 'proto.cms.PageFaqTranslationItem';
1861
+ }
1862
+ /**
1863
+ * Generated by JsPbCodeGenerator.
1864
+ * @param {Array=} opt_data Optional initial data array, typically from a
1865
+ * server response, or constructed directly in Javascript. The array is used
1866
+ * in place and becomes part of the constructed object. It is not cloned.
1867
+ * If no data is provided, the constructed object will be empty, but still
1868
+ * valid.
1869
+ * @extends {jspb.Message}
1870
+ * @constructor
1871
+ */
1872
+ proto.cms.PageFaqTranslationResponse = function(opt_data) {
1873
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1874
+ };
1875
+ goog.inherits(proto.cms.PageFaqTranslationResponse, jspb.Message);
1876
+ if (goog.DEBUG && !COMPILED) {
1877
+ /**
1878
+ * @public
1879
+ * @override
1880
+ */
1881
+ proto.cms.PageFaqTranslationResponse.displayName = 'proto.cms.PageFaqTranslationResponse';
1882
+ }
1641
1883
  /**
1642
1884
  * Generated by JsPbCodeGenerator.
1643
1885
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -22558,6 +22800,2486 @@ proto.cms.PageSeoAttributesResponse.prototype.hasData = function() {
22558
22800
 
22559
22801
 
22560
22802
 
22803
+
22804
+
22805
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22806
+ /**
22807
+ * Creates an object representation of this proto.
22808
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22809
+ * Optional fields that are not set will be set to undefined.
22810
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22811
+ * For the list of reserved names please see:
22812
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22813
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22814
+ * JSPB instance for transitional soy proto support:
22815
+ * http://goto/soy-param-migration
22816
+ * @return {!Object}
22817
+ */
22818
+ proto.cms.PageFaqContentItem.prototype.toObject = function(opt_includeInstance) {
22819
+ return proto.cms.PageFaqContentItem.toObject(opt_includeInstance, this);
22820
+ };
22821
+
22822
+
22823
+ /**
22824
+ * Static version of the {@see toObject} method.
22825
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22826
+ * the JSPB instance for transitional soy proto support:
22827
+ * http://goto/soy-param-migration
22828
+ * @param {!proto.cms.PageFaqContentItem} msg The msg instance to transform.
22829
+ * @return {!Object}
22830
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22831
+ */
22832
+ proto.cms.PageFaqContentItem.toObject = function(includeInstance, msg) {
22833
+ var f, obj = {
22834
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
22835
+ description: jspb.Message.getFieldWithDefault(msg, 2, "")
22836
+ };
22837
+
22838
+ if (includeInstance) {
22839
+ obj.$jspbMessageInstance = msg;
22840
+ }
22841
+ return obj;
22842
+ };
22843
+ }
22844
+
22845
+
22846
+ /**
22847
+ * Deserializes binary data (in protobuf wire format).
22848
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22849
+ * @return {!proto.cms.PageFaqContentItem}
22850
+ */
22851
+ proto.cms.PageFaqContentItem.deserializeBinary = function(bytes) {
22852
+ var reader = new jspb.BinaryReader(bytes);
22853
+ var msg = new proto.cms.PageFaqContentItem;
22854
+ return proto.cms.PageFaqContentItem.deserializeBinaryFromReader(msg, reader);
22855
+ };
22856
+
22857
+
22858
+ /**
22859
+ * Deserializes binary data (in protobuf wire format) from the
22860
+ * given reader into the given message object.
22861
+ * @param {!proto.cms.PageFaqContentItem} msg The message object to deserialize into.
22862
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22863
+ * @return {!proto.cms.PageFaqContentItem}
22864
+ */
22865
+ proto.cms.PageFaqContentItem.deserializeBinaryFromReader = function(msg, reader) {
22866
+ while (reader.nextField()) {
22867
+ if (reader.isEndGroup()) {
22868
+ break;
22869
+ }
22870
+ var field = reader.getFieldNumber();
22871
+ switch (field) {
22872
+ case 1:
22873
+ var value = /** @type {string} */ (reader.readString());
22874
+ msg.setTitle(value);
22875
+ break;
22876
+ case 2:
22877
+ var value = /** @type {string} */ (reader.readString());
22878
+ msg.setDescription(value);
22879
+ break;
22880
+ default:
22881
+ reader.skipField();
22882
+ break;
22883
+ }
22884
+ }
22885
+ return msg;
22886
+ };
22887
+
22888
+
22889
+ /**
22890
+ * Serializes the message to binary data (in protobuf wire format).
22891
+ * @return {!Uint8Array}
22892
+ */
22893
+ proto.cms.PageFaqContentItem.prototype.serializeBinary = function() {
22894
+ var writer = new jspb.BinaryWriter();
22895
+ proto.cms.PageFaqContentItem.serializeBinaryToWriter(this, writer);
22896
+ return writer.getResultBuffer();
22897
+ };
22898
+
22899
+
22900
+ /**
22901
+ * Serializes the given message to binary data (in protobuf wire
22902
+ * format), writing to the given BinaryWriter.
22903
+ * @param {!proto.cms.PageFaqContentItem} message
22904
+ * @param {!jspb.BinaryWriter} writer
22905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22906
+ */
22907
+ proto.cms.PageFaqContentItem.serializeBinaryToWriter = function(message, writer) {
22908
+ var f = undefined;
22909
+ f = message.getTitle();
22910
+ if (f.length > 0) {
22911
+ writer.writeString(
22912
+ 1,
22913
+ f
22914
+ );
22915
+ }
22916
+ f = message.getDescription();
22917
+ if (f.length > 0) {
22918
+ writer.writeString(
22919
+ 2,
22920
+ f
22921
+ );
22922
+ }
22923
+ };
22924
+
22925
+
22926
+ /**
22927
+ * optional string title = 1;
22928
+ * @return {string}
22929
+ */
22930
+ proto.cms.PageFaqContentItem.prototype.getTitle = function() {
22931
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
22932
+ };
22933
+
22934
+
22935
+ /**
22936
+ * @param {string} value
22937
+ * @return {!proto.cms.PageFaqContentItem} returns this
22938
+ */
22939
+ proto.cms.PageFaqContentItem.prototype.setTitle = function(value) {
22940
+ return jspb.Message.setProto3StringField(this, 1, value);
22941
+ };
22942
+
22943
+
22944
+ /**
22945
+ * optional string description = 2;
22946
+ * @return {string}
22947
+ */
22948
+ proto.cms.PageFaqContentItem.prototype.getDescription = function() {
22949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
22950
+ };
22951
+
22952
+
22953
+ /**
22954
+ * @param {string} value
22955
+ * @return {!proto.cms.PageFaqContentItem} returns this
22956
+ */
22957
+ proto.cms.PageFaqContentItem.prototype.setDescription = function(value) {
22958
+ return jspb.Message.setProto3StringField(this, 2, value);
22959
+ };
22960
+
22961
+
22962
+
22963
+
22964
+
22965
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22966
+ /**
22967
+ * Creates an object representation of this proto.
22968
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22969
+ * Optional fields that are not set will be set to undefined.
22970
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22971
+ * For the list of reserved names please see:
22972
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22973
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22974
+ * JSPB instance for transitional soy proto support:
22975
+ * http://goto/soy-param-migration
22976
+ * @return {!Object}
22977
+ */
22978
+ proto.cms.PageFaqRequest.prototype.toObject = function(opt_includeInstance) {
22979
+ return proto.cms.PageFaqRequest.toObject(opt_includeInstance, this);
22980
+ };
22981
+
22982
+
22983
+ /**
22984
+ * Static version of the {@see toObject} method.
22985
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22986
+ * the JSPB instance for transitional soy proto support:
22987
+ * http://goto/soy-param-migration
22988
+ * @param {!proto.cms.PageFaqRequest} msg The msg instance to transform.
22989
+ * @return {!Object}
22990
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22991
+ */
22992
+ proto.cms.PageFaqRequest.toObject = function(includeInstance, msg) {
22993
+ var f, obj = {
22994
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
22995
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
22996
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
22997
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
22998
+ };
22999
+
23000
+ if (includeInstance) {
23001
+ obj.$jspbMessageInstance = msg;
23002
+ }
23003
+ return obj;
23004
+ };
23005
+ }
23006
+
23007
+
23008
+ /**
23009
+ * Deserializes binary data (in protobuf wire format).
23010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23011
+ * @return {!proto.cms.PageFaqRequest}
23012
+ */
23013
+ proto.cms.PageFaqRequest.deserializeBinary = function(bytes) {
23014
+ var reader = new jspb.BinaryReader(bytes);
23015
+ var msg = new proto.cms.PageFaqRequest;
23016
+ return proto.cms.PageFaqRequest.deserializeBinaryFromReader(msg, reader);
23017
+ };
23018
+
23019
+
23020
+ /**
23021
+ * Deserializes binary data (in protobuf wire format) from the
23022
+ * given reader into the given message object.
23023
+ * @param {!proto.cms.PageFaqRequest} msg The message object to deserialize into.
23024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23025
+ * @return {!proto.cms.PageFaqRequest}
23026
+ */
23027
+ proto.cms.PageFaqRequest.deserializeBinaryFromReader = function(msg, reader) {
23028
+ while (reader.nextField()) {
23029
+ if (reader.isEndGroup()) {
23030
+ break;
23031
+ }
23032
+ var field = reader.getFieldNumber();
23033
+ switch (field) {
23034
+ case 1:
23035
+ var value = /** @type {number} */ (reader.readInt32());
23036
+ msg.setId(value);
23037
+ break;
23038
+ case 2:
23039
+ var value = /** @type {string} */ (reader.readString());
23040
+ msg.setTitle(value);
23041
+ break;
23042
+ case 3:
23043
+ var value = /** @type {string} */ (reader.readString());
23044
+ msg.setType(value);
23045
+ break;
23046
+ case 4:
23047
+ var value = /** @type {number} */ (reader.readInt32());
23048
+ msg.setIsActive(value);
23049
+ break;
23050
+ default:
23051
+ reader.skipField();
23052
+ break;
23053
+ }
23054
+ }
23055
+ return msg;
23056
+ };
23057
+
23058
+
23059
+ /**
23060
+ * Serializes the message to binary data (in protobuf wire format).
23061
+ * @return {!Uint8Array}
23062
+ */
23063
+ proto.cms.PageFaqRequest.prototype.serializeBinary = function() {
23064
+ var writer = new jspb.BinaryWriter();
23065
+ proto.cms.PageFaqRequest.serializeBinaryToWriter(this, writer);
23066
+ return writer.getResultBuffer();
23067
+ };
23068
+
23069
+
23070
+ /**
23071
+ * Serializes the given message to binary data (in protobuf wire
23072
+ * format), writing to the given BinaryWriter.
23073
+ * @param {!proto.cms.PageFaqRequest} message
23074
+ * @param {!jspb.BinaryWriter} writer
23075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23076
+ */
23077
+ proto.cms.PageFaqRequest.serializeBinaryToWriter = function(message, writer) {
23078
+ var f = undefined;
23079
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
23080
+ if (f != null) {
23081
+ writer.writeInt32(
23082
+ 1,
23083
+ f
23084
+ );
23085
+ }
23086
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
23087
+ if (f != null) {
23088
+ writer.writeString(
23089
+ 2,
23090
+ f
23091
+ );
23092
+ }
23093
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
23094
+ if (f != null) {
23095
+ writer.writeString(
23096
+ 3,
23097
+ f
23098
+ );
23099
+ }
23100
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
23101
+ if (f != null) {
23102
+ writer.writeInt32(
23103
+ 4,
23104
+ f
23105
+ );
23106
+ }
23107
+ };
23108
+
23109
+
23110
+ /**
23111
+ * optional int32 id = 1;
23112
+ * @return {number}
23113
+ */
23114
+ proto.cms.PageFaqRequest.prototype.getId = function() {
23115
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23116
+ };
23117
+
23118
+
23119
+ /**
23120
+ * @param {number} value
23121
+ * @return {!proto.cms.PageFaqRequest} returns this
23122
+ */
23123
+ proto.cms.PageFaqRequest.prototype.setId = function(value) {
23124
+ return jspb.Message.setField(this, 1, value);
23125
+ };
23126
+
23127
+
23128
+ /**
23129
+ * Clears the field making it undefined.
23130
+ * @return {!proto.cms.PageFaqRequest} returns this
23131
+ */
23132
+ proto.cms.PageFaqRequest.prototype.clearId = function() {
23133
+ return jspb.Message.setField(this, 1, undefined);
23134
+ };
23135
+
23136
+
23137
+ /**
23138
+ * Returns whether this field is set.
23139
+ * @return {boolean}
23140
+ */
23141
+ proto.cms.PageFaqRequest.prototype.hasId = function() {
23142
+ return jspb.Message.getField(this, 1) != null;
23143
+ };
23144
+
23145
+
23146
+ /**
23147
+ * optional string title = 2;
23148
+ * @return {string}
23149
+ */
23150
+ proto.cms.PageFaqRequest.prototype.getTitle = function() {
23151
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23152
+ };
23153
+
23154
+
23155
+ /**
23156
+ * @param {string} value
23157
+ * @return {!proto.cms.PageFaqRequest} returns this
23158
+ */
23159
+ proto.cms.PageFaqRequest.prototype.setTitle = function(value) {
23160
+ return jspb.Message.setField(this, 2, value);
23161
+ };
23162
+
23163
+
23164
+ /**
23165
+ * Clears the field making it undefined.
23166
+ * @return {!proto.cms.PageFaqRequest} returns this
23167
+ */
23168
+ proto.cms.PageFaqRequest.prototype.clearTitle = function() {
23169
+ return jspb.Message.setField(this, 2, undefined);
23170
+ };
23171
+
23172
+
23173
+ /**
23174
+ * Returns whether this field is set.
23175
+ * @return {boolean}
23176
+ */
23177
+ proto.cms.PageFaqRequest.prototype.hasTitle = function() {
23178
+ return jspb.Message.getField(this, 2) != null;
23179
+ };
23180
+
23181
+
23182
+ /**
23183
+ * optional string type = 3;
23184
+ * @return {string}
23185
+ */
23186
+ proto.cms.PageFaqRequest.prototype.getType = function() {
23187
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
23188
+ };
23189
+
23190
+
23191
+ /**
23192
+ * @param {string} value
23193
+ * @return {!proto.cms.PageFaqRequest} returns this
23194
+ */
23195
+ proto.cms.PageFaqRequest.prototype.setType = function(value) {
23196
+ return jspb.Message.setField(this, 3, value);
23197
+ };
23198
+
23199
+
23200
+ /**
23201
+ * Clears the field making it undefined.
23202
+ * @return {!proto.cms.PageFaqRequest} returns this
23203
+ */
23204
+ proto.cms.PageFaqRequest.prototype.clearType = function() {
23205
+ return jspb.Message.setField(this, 3, undefined);
23206
+ };
23207
+
23208
+
23209
+ /**
23210
+ * Returns whether this field is set.
23211
+ * @return {boolean}
23212
+ */
23213
+ proto.cms.PageFaqRequest.prototype.hasType = function() {
23214
+ return jspb.Message.getField(this, 3) != null;
23215
+ };
23216
+
23217
+
23218
+ /**
23219
+ * optional int32 is_active = 4;
23220
+ * @return {number}
23221
+ */
23222
+ proto.cms.PageFaqRequest.prototype.getIsActive = function() {
23223
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
23224
+ };
23225
+
23226
+
23227
+ /**
23228
+ * @param {number} value
23229
+ * @return {!proto.cms.PageFaqRequest} returns this
23230
+ */
23231
+ proto.cms.PageFaqRequest.prototype.setIsActive = function(value) {
23232
+ return jspb.Message.setField(this, 4, value);
23233
+ };
23234
+
23235
+
23236
+ /**
23237
+ * Clears the field making it undefined.
23238
+ * @return {!proto.cms.PageFaqRequest} returns this
23239
+ */
23240
+ proto.cms.PageFaqRequest.prototype.clearIsActive = function() {
23241
+ return jspb.Message.setField(this, 4, undefined);
23242
+ };
23243
+
23244
+
23245
+ /**
23246
+ * Returns whether this field is set.
23247
+ * @return {boolean}
23248
+ */
23249
+ proto.cms.PageFaqRequest.prototype.hasIsActive = function() {
23250
+ return jspb.Message.getField(this, 4) != null;
23251
+ };
23252
+
23253
+
23254
+
23255
+
23256
+
23257
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23258
+ /**
23259
+ * Creates an object representation of this proto.
23260
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23261
+ * Optional fields that are not set will be set to undefined.
23262
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23263
+ * For the list of reserved names please see:
23264
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23265
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23266
+ * JSPB instance for transitional soy proto support:
23267
+ * http://goto/soy-param-migration
23268
+ * @return {!Object}
23269
+ */
23270
+ proto.cms.PageFaqItem.prototype.toObject = function(opt_includeInstance) {
23271
+ return proto.cms.PageFaqItem.toObject(opt_includeInstance, this);
23272
+ };
23273
+
23274
+
23275
+ /**
23276
+ * Static version of the {@see toObject} method.
23277
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23278
+ * the JSPB instance for transitional soy proto support:
23279
+ * http://goto/soy-param-migration
23280
+ * @param {!proto.cms.PageFaqItem} msg The msg instance to transform.
23281
+ * @return {!Object}
23282
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23283
+ */
23284
+ proto.cms.PageFaqItem.toObject = function(includeInstance, msg) {
23285
+ var f, obj = {
23286
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23287
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
23288
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
23289
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
23290
+ };
23291
+
23292
+ if (includeInstance) {
23293
+ obj.$jspbMessageInstance = msg;
23294
+ }
23295
+ return obj;
23296
+ };
23297
+ }
23298
+
23299
+
23300
+ /**
23301
+ * Deserializes binary data (in protobuf wire format).
23302
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23303
+ * @return {!proto.cms.PageFaqItem}
23304
+ */
23305
+ proto.cms.PageFaqItem.deserializeBinary = function(bytes) {
23306
+ var reader = new jspb.BinaryReader(bytes);
23307
+ var msg = new proto.cms.PageFaqItem;
23308
+ return proto.cms.PageFaqItem.deserializeBinaryFromReader(msg, reader);
23309
+ };
23310
+
23311
+
23312
+ /**
23313
+ * Deserializes binary data (in protobuf wire format) from the
23314
+ * given reader into the given message object.
23315
+ * @param {!proto.cms.PageFaqItem} msg The message object to deserialize into.
23316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23317
+ * @return {!proto.cms.PageFaqItem}
23318
+ */
23319
+ proto.cms.PageFaqItem.deserializeBinaryFromReader = function(msg, reader) {
23320
+ while (reader.nextField()) {
23321
+ if (reader.isEndGroup()) {
23322
+ break;
23323
+ }
23324
+ var field = reader.getFieldNumber();
23325
+ switch (field) {
23326
+ case 1:
23327
+ var value = /** @type {number} */ (reader.readInt32());
23328
+ msg.setId(value);
23329
+ break;
23330
+ case 2:
23331
+ var value = /** @type {string} */ (reader.readString());
23332
+ msg.setTitle(value);
23333
+ break;
23334
+ case 3:
23335
+ var value = /** @type {string} */ (reader.readString());
23336
+ msg.setType(value);
23337
+ break;
23338
+ case 4:
23339
+ var value = /** @type {number} */ (reader.readInt32());
23340
+ msg.setIsActive(value);
23341
+ break;
23342
+ default:
23343
+ reader.skipField();
23344
+ break;
23345
+ }
23346
+ }
23347
+ return msg;
23348
+ };
23349
+
23350
+
23351
+ /**
23352
+ * Serializes the message to binary data (in protobuf wire format).
23353
+ * @return {!Uint8Array}
23354
+ */
23355
+ proto.cms.PageFaqItem.prototype.serializeBinary = function() {
23356
+ var writer = new jspb.BinaryWriter();
23357
+ proto.cms.PageFaqItem.serializeBinaryToWriter(this, writer);
23358
+ return writer.getResultBuffer();
23359
+ };
23360
+
23361
+
23362
+ /**
23363
+ * Serializes the given message to binary data (in protobuf wire
23364
+ * format), writing to the given BinaryWriter.
23365
+ * @param {!proto.cms.PageFaqItem} message
23366
+ * @param {!jspb.BinaryWriter} writer
23367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23368
+ */
23369
+ proto.cms.PageFaqItem.serializeBinaryToWriter = function(message, writer) {
23370
+ var f = undefined;
23371
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
23372
+ if (f != null) {
23373
+ writer.writeInt32(
23374
+ 1,
23375
+ f
23376
+ );
23377
+ }
23378
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
23379
+ if (f != null) {
23380
+ writer.writeString(
23381
+ 2,
23382
+ f
23383
+ );
23384
+ }
23385
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
23386
+ if (f != null) {
23387
+ writer.writeString(
23388
+ 3,
23389
+ f
23390
+ );
23391
+ }
23392
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
23393
+ if (f != null) {
23394
+ writer.writeInt32(
23395
+ 4,
23396
+ f
23397
+ );
23398
+ }
23399
+ };
23400
+
23401
+
23402
+ /**
23403
+ * optional int32 id = 1;
23404
+ * @return {number}
23405
+ */
23406
+ proto.cms.PageFaqItem.prototype.getId = function() {
23407
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23408
+ };
23409
+
23410
+
23411
+ /**
23412
+ * @param {number} value
23413
+ * @return {!proto.cms.PageFaqItem} returns this
23414
+ */
23415
+ proto.cms.PageFaqItem.prototype.setId = function(value) {
23416
+ return jspb.Message.setField(this, 1, value);
23417
+ };
23418
+
23419
+
23420
+ /**
23421
+ * Clears the field making it undefined.
23422
+ * @return {!proto.cms.PageFaqItem} returns this
23423
+ */
23424
+ proto.cms.PageFaqItem.prototype.clearId = function() {
23425
+ return jspb.Message.setField(this, 1, undefined);
23426
+ };
23427
+
23428
+
23429
+ /**
23430
+ * Returns whether this field is set.
23431
+ * @return {boolean}
23432
+ */
23433
+ proto.cms.PageFaqItem.prototype.hasId = function() {
23434
+ return jspb.Message.getField(this, 1) != null;
23435
+ };
23436
+
23437
+
23438
+ /**
23439
+ * optional string title = 2;
23440
+ * @return {string}
23441
+ */
23442
+ proto.cms.PageFaqItem.prototype.getTitle = function() {
23443
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23444
+ };
23445
+
23446
+
23447
+ /**
23448
+ * @param {string} value
23449
+ * @return {!proto.cms.PageFaqItem} returns this
23450
+ */
23451
+ proto.cms.PageFaqItem.prototype.setTitle = function(value) {
23452
+ return jspb.Message.setField(this, 2, value);
23453
+ };
23454
+
23455
+
23456
+ /**
23457
+ * Clears the field making it undefined.
23458
+ * @return {!proto.cms.PageFaqItem} returns this
23459
+ */
23460
+ proto.cms.PageFaqItem.prototype.clearTitle = function() {
23461
+ return jspb.Message.setField(this, 2, undefined);
23462
+ };
23463
+
23464
+
23465
+ /**
23466
+ * Returns whether this field is set.
23467
+ * @return {boolean}
23468
+ */
23469
+ proto.cms.PageFaqItem.prototype.hasTitle = function() {
23470
+ return jspb.Message.getField(this, 2) != null;
23471
+ };
23472
+
23473
+
23474
+ /**
23475
+ * optional string type = 3;
23476
+ * @return {string}
23477
+ */
23478
+ proto.cms.PageFaqItem.prototype.getType = function() {
23479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
23480
+ };
23481
+
23482
+
23483
+ /**
23484
+ * @param {string} value
23485
+ * @return {!proto.cms.PageFaqItem} returns this
23486
+ */
23487
+ proto.cms.PageFaqItem.prototype.setType = function(value) {
23488
+ return jspb.Message.setField(this, 3, value);
23489
+ };
23490
+
23491
+
23492
+ /**
23493
+ * Clears the field making it undefined.
23494
+ * @return {!proto.cms.PageFaqItem} returns this
23495
+ */
23496
+ proto.cms.PageFaqItem.prototype.clearType = function() {
23497
+ return jspb.Message.setField(this, 3, undefined);
23498
+ };
23499
+
23500
+
23501
+ /**
23502
+ * Returns whether this field is set.
23503
+ * @return {boolean}
23504
+ */
23505
+ proto.cms.PageFaqItem.prototype.hasType = function() {
23506
+ return jspb.Message.getField(this, 3) != null;
23507
+ };
23508
+
23509
+
23510
+ /**
23511
+ * optional int32 is_active = 4;
23512
+ * @return {number}
23513
+ */
23514
+ proto.cms.PageFaqItem.prototype.getIsActive = function() {
23515
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
23516
+ };
23517
+
23518
+
23519
+ /**
23520
+ * @param {number} value
23521
+ * @return {!proto.cms.PageFaqItem} returns this
23522
+ */
23523
+ proto.cms.PageFaqItem.prototype.setIsActive = function(value) {
23524
+ return jspb.Message.setField(this, 4, value);
23525
+ };
23526
+
23527
+
23528
+ /**
23529
+ * Clears the field making it undefined.
23530
+ * @return {!proto.cms.PageFaqItem} returns this
23531
+ */
23532
+ proto.cms.PageFaqItem.prototype.clearIsActive = function() {
23533
+ return jspb.Message.setField(this, 4, undefined);
23534
+ };
23535
+
23536
+
23537
+ /**
23538
+ * Returns whether this field is set.
23539
+ * @return {boolean}
23540
+ */
23541
+ proto.cms.PageFaqItem.prototype.hasIsActive = function() {
23542
+ return jspb.Message.getField(this, 4) != null;
23543
+ };
23544
+
23545
+
23546
+
23547
+
23548
+
23549
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23550
+ /**
23551
+ * Creates an object representation of this proto.
23552
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23553
+ * Optional fields that are not set will be set to undefined.
23554
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23555
+ * For the list of reserved names please see:
23556
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23557
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23558
+ * JSPB instance for transitional soy proto support:
23559
+ * http://goto/soy-param-migration
23560
+ * @return {!Object}
23561
+ */
23562
+ proto.cms.PageFaqResponse.prototype.toObject = function(opt_includeInstance) {
23563
+ return proto.cms.PageFaqResponse.toObject(opt_includeInstance, this);
23564
+ };
23565
+
23566
+
23567
+ /**
23568
+ * Static version of the {@see toObject} method.
23569
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23570
+ * the JSPB instance for transitional soy proto support:
23571
+ * http://goto/soy-param-migration
23572
+ * @param {!proto.cms.PageFaqResponse} msg The msg instance to transform.
23573
+ * @return {!Object}
23574
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23575
+ */
23576
+ proto.cms.PageFaqResponse.toObject = function(includeInstance, msg) {
23577
+ var f, obj = {
23578
+ data: (f = msg.getData()) && proto.cms.PageFaqItem.toObject(includeInstance, f)
23579
+ };
23580
+
23581
+ if (includeInstance) {
23582
+ obj.$jspbMessageInstance = msg;
23583
+ }
23584
+ return obj;
23585
+ };
23586
+ }
23587
+
23588
+
23589
+ /**
23590
+ * Deserializes binary data (in protobuf wire format).
23591
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23592
+ * @return {!proto.cms.PageFaqResponse}
23593
+ */
23594
+ proto.cms.PageFaqResponse.deserializeBinary = function(bytes) {
23595
+ var reader = new jspb.BinaryReader(bytes);
23596
+ var msg = new proto.cms.PageFaqResponse;
23597
+ return proto.cms.PageFaqResponse.deserializeBinaryFromReader(msg, reader);
23598
+ };
23599
+
23600
+
23601
+ /**
23602
+ * Deserializes binary data (in protobuf wire format) from the
23603
+ * given reader into the given message object.
23604
+ * @param {!proto.cms.PageFaqResponse} msg The message object to deserialize into.
23605
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23606
+ * @return {!proto.cms.PageFaqResponse}
23607
+ */
23608
+ proto.cms.PageFaqResponse.deserializeBinaryFromReader = function(msg, reader) {
23609
+ while (reader.nextField()) {
23610
+ if (reader.isEndGroup()) {
23611
+ break;
23612
+ }
23613
+ var field = reader.getFieldNumber();
23614
+ switch (field) {
23615
+ case 1:
23616
+ var value = new proto.cms.PageFaqItem;
23617
+ reader.readMessage(value,proto.cms.PageFaqItem.deserializeBinaryFromReader);
23618
+ msg.setData(value);
23619
+ break;
23620
+ default:
23621
+ reader.skipField();
23622
+ break;
23623
+ }
23624
+ }
23625
+ return msg;
23626
+ };
23627
+
23628
+
23629
+ /**
23630
+ * Serializes the message to binary data (in protobuf wire format).
23631
+ * @return {!Uint8Array}
23632
+ */
23633
+ proto.cms.PageFaqResponse.prototype.serializeBinary = function() {
23634
+ var writer = new jspb.BinaryWriter();
23635
+ proto.cms.PageFaqResponse.serializeBinaryToWriter(this, writer);
23636
+ return writer.getResultBuffer();
23637
+ };
23638
+
23639
+
23640
+ /**
23641
+ * Serializes the given message to binary data (in protobuf wire
23642
+ * format), writing to the given BinaryWriter.
23643
+ * @param {!proto.cms.PageFaqResponse} message
23644
+ * @param {!jspb.BinaryWriter} writer
23645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23646
+ */
23647
+ proto.cms.PageFaqResponse.serializeBinaryToWriter = function(message, writer) {
23648
+ var f = undefined;
23649
+ f = message.getData();
23650
+ if (f != null) {
23651
+ writer.writeMessage(
23652
+ 1,
23653
+ f,
23654
+ proto.cms.PageFaqItem.serializeBinaryToWriter
23655
+ );
23656
+ }
23657
+ };
23658
+
23659
+
23660
+ /**
23661
+ * optional PageFaqItem data = 1;
23662
+ * @return {?proto.cms.PageFaqItem}
23663
+ */
23664
+ proto.cms.PageFaqResponse.prototype.getData = function() {
23665
+ return /** @type{?proto.cms.PageFaqItem} */ (
23666
+ jspb.Message.getWrapperField(this, proto.cms.PageFaqItem, 1));
23667
+ };
23668
+
23669
+
23670
+ /**
23671
+ * @param {?proto.cms.PageFaqItem|undefined} value
23672
+ * @return {!proto.cms.PageFaqResponse} returns this
23673
+ */
23674
+ proto.cms.PageFaqResponse.prototype.setData = function(value) {
23675
+ return jspb.Message.setWrapperField(this, 1, value);
23676
+ };
23677
+
23678
+
23679
+ /**
23680
+ * Clears the message field making it undefined.
23681
+ * @return {!proto.cms.PageFaqResponse} returns this
23682
+ */
23683
+ proto.cms.PageFaqResponse.prototype.clearData = function() {
23684
+ return this.setData(undefined);
23685
+ };
23686
+
23687
+
23688
+ /**
23689
+ * Returns whether this field is set.
23690
+ * @return {boolean}
23691
+ */
23692
+ proto.cms.PageFaqResponse.prototype.hasData = function() {
23693
+ return jspb.Message.getField(this, 1) != null;
23694
+ };
23695
+
23696
+
23697
+
23698
+
23699
+
23700
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23701
+ /**
23702
+ * Creates an object representation of this proto.
23703
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23704
+ * Optional fields that are not set will be set to undefined.
23705
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23706
+ * For the list of reserved names please see:
23707
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23708
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23709
+ * JSPB instance for transitional soy proto support:
23710
+ * http://goto/soy-param-migration
23711
+ * @return {!Object}
23712
+ */
23713
+ proto.cms.GetPageFaqRequest.prototype.toObject = function(opt_includeInstance) {
23714
+ return proto.cms.GetPageFaqRequest.toObject(opt_includeInstance, this);
23715
+ };
23716
+
23717
+
23718
+ /**
23719
+ * Static version of the {@see toObject} method.
23720
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23721
+ * the JSPB instance for transitional soy proto support:
23722
+ * http://goto/soy-param-migration
23723
+ * @param {!proto.cms.GetPageFaqRequest} msg The msg instance to transform.
23724
+ * @return {!Object}
23725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23726
+ */
23727
+ proto.cms.GetPageFaqRequest.toObject = function(includeInstance, msg) {
23728
+ var f, obj = {
23729
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23730
+ type: jspb.Message.getFieldWithDefault(msg, 2, "")
23731
+ };
23732
+
23733
+ if (includeInstance) {
23734
+ obj.$jspbMessageInstance = msg;
23735
+ }
23736
+ return obj;
23737
+ };
23738
+ }
23739
+
23740
+
23741
+ /**
23742
+ * Deserializes binary data (in protobuf wire format).
23743
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23744
+ * @return {!proto.cms.GetPageFaqRequest}
23745
+ */
23746
+ proto.cms.GetPageFaqRequest.deserializeBinary = function(bytes) {
23747
+ var reader = new jspb.BinaryReader(bytes);
23748
+ var msg = new proto.cms.GetPageFaqRequest;
23749
+ return proto.cms.GetPageFaqRequest.deserializeBinaryFromReader(msg, reader);
23750
+ };
23751
+
23752
+
23753
+ /**
23754
+ * Deserializes binary data (in protobuf wire format) from the
23755
+ * given reader into the given message object.
23756
+ * @param {!proto.cms.GetPageFaqRequest} msg The message object to deserialize into.
23757
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23758
+ * @return {!proto.cms.GetPageFaqRequest}
23759
+ */
23760
+ proto.cms.GetPageFaqRequest.deserializeBinaryFromReader = function(msg, reader) {
23761
+ while (reader.nextField()) {
23762
+ if (reader.isEndGroup()) {
23763
+ break;
23764
+ }
23765
+ var field = reader.getFieldNumber();
23766
+ switch (field) {
23767
+ case 1:
23768
+ var value = /** @type {number} */ (reader.readInt32());
23769
+ msg.setId(value);
23770
+ break;
23771
+ case 2:
23772
+ var value = /** @type {string} */ (reader.readString());
23773
+ msg.setType(value);
23774
+ break;
23775
+ default:
23776
+ reader.skipField();
23777
+ break;
23778
+ }
23779
+ }
23780
+ return msg;
23781
+ };
23782
+
23783
+
23784
+ /**
23785
+ * Serializes the message to binary data (in protobuf wire format).
23786
+ * @return {!Uint8Array}
23787
+ */
23788
+ proto.cms.GetPageFaqRequest.prototype.serializeBinary = function() {
23789
+ var writer = new jspb.BinaryWriter();
23790
+ proto.cms.GetPageFaqRequest.serializeBinaryToWriter(this, writer);
23791
+ return writer.getResultBuffer();
23792
+ };
23793
+
23794
+
23795
+ /**
23796
+ * Serializes the given message to binary data (in protobuf wire
23797
+ * format), writing to the given BinaryWriter.
23798
+ * @param {!proto.cms.GetPageFaqRequest} message
23799
+ * @param {!jspb.BinaryWriter} writer
23800
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23801
+ */
23802
+ proto.cms.GetPageFaqRequest.serializeBinaryToWriter = function(message, writer) {
23803
+ var f = undefined;
23804
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
23805
+ if (f != null) {
23806
+ writer.writeInt32(
23807
+ 1,
23808
+ f
23809
+ );
23810
+ }
23811
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
23812
+ if (f != null) {
23813
+ writer.writeString(
23814
+ 2,
23815
+ f
23816
+ );
23817
+ }
23818
+ };
23819
+
23820
+
23821
+ /**
23822
+ * optional int32 id = 1;
23823
+ * @return {number}
23824
+ */
23825
+ proto.cms.GetPageFaqRequest.prototype.getId = function() {
23826
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23827
+ };
23828
+
23829
+
23830
+ /**
23831
+ * @param {number} value
23832
+ * @return {!proto.cms.GetPageFaqRequest} returns this
23833
+ */
23834
+ proto.cms.GetPageFaqRequest.prototype.setId = function(value) {
23835
+ return jspb.Message.setField(this, 1, value);
23836
+ };
23837
+
23838
+
23839
+ /**
23840
+ * Clears the field making it undefined.
23841
+ * @return {!proto.cms.GetPageFaqRequest} returns this
23842
+ */
23843
+ proto.cms.GetPageFaqRequest.prototype.clearId = function() {
23844
+ return jspb.Message.setField(this, 1, undefined);
23845
+ };
23846
+
23847
+
23848
+ /**
23849
+ * Returns whether this field is set.
23850
+ * @return {boolean}
23851
+ */
23852
+ proto.cms.GetPageFaqRequest.prototype.hasId = function() {
23853
+ return jspb.Message.getField(this, 1) != null;
23854
+ };
23855
+
23856
+
23857
+ /**
23858
+ * optional string type = 2;
23859
+ * @return {string}
23860
+ */
23861
+ proto.cms.GetPageFaqRequest.prototype.getType = function() {
23862
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23863
+ };
23864
+
23865
+
23866
+ /**
23867
+ * @param {string} value
23868
+ * @return {!proto.cms.GetPageFaqRequest} returns this
23869
+ */
23870
+ proto.cms.GetPageFaqRequest.prototype.setType = function(value) {
23871
+ return jspb.Message.setField(this, 2, value);
23872
+ };
23873
+
23874
+
23875
+ /**
23876
+ * Clears the field making it undefined.
23877
+ * @return {!proto.cms.GetPageFaqRequest} returns this
23878
+ */
23879
+ proto.cms.GetPageFaqRequest.prototype.clearType = function() {
23880
+ return jspb.Message.setField(this, 2, undefined);
23881
+ };
23882
+
23883
+
23884
+ /**
23885
+ * Returns whether this field is set.
23886
+ * @return {boolean}
23887
+ */
23888
+ proto.cms.GetPageFaqRequest.prototype.hasType = function() {
23889
+ return jspb.Message.getField(this, 2) != null;
23890
+ };
23891
+
23892
+
23893
+
23894
+
23895
+
23896
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23897
+ /**
23898
+ * Creates an object representation of this proto.
23899
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23900
+ * Optional fields that are not set will be set to undefined.
23901
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23902
+ * For the list of reserved names please see:
23903
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23904
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23905
+ * JSPB instance for transitional soy proto support:
23906
+ * http://goto/soy-param-migration
23907
+ * @return {!Object}
23908
+ */
23909
+ proto.cms.PageFaqStatusResponse.prototype.toObject = function(opt_includeInstance) {
23910
+ return proto.cms.PageFaqStatusResponse.toObject(opt_includeInstance, this);
23911
+ };
23912
+
23913
+
23914
+ /**
23915
+ * Static version of the {@see toObject} method.
23916
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23917
+ * the JSPB instance for transitional soy proto support:
23918
+ * http://goto/soy-param-migration
23919
+ * @param {!proto.cms.PageFaqStatusResponse} msg The msg instance to transform.
23920
+ * @return {!Object}
23921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23922
+ */
23923
+ proto.cms.PageFaqStatusResponse.toObject = function(includeInstance, msg) {
23924
+ var f, obj = {
23925
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
23926
+ };
23927
+
23928
+ if (includeInstance) {
23929
+ obj.$jspbMessageInstance = msg;
23930
+ }
23931
+ return obj;
23932
+ };
23933
+ }
23934
+
23935
+
23936
+ /**
23937
+ * Deserializes binary data (in protobuf wire format).
23938
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23939
+ * @return {!proto.cms.PageFaqStatusResponse}
23940
+ */
23941
+ proto.cms.PageFaqStatusResponse.deserializeBinary = function(bytes) {
23942
+ var reader = new jspb.BinaryReader(bytes);
23943
+ var msg = new proto.cms.PageFaqStatusResponse;
23944
+ return proto.cms.PageFaqStatusResponse.deserializeBinaryFromReader(msg, reader);
23945
+ };
23946
+
23947
+
23948
+ /**
23949
+ * Deserializes binary data (in protobuf wire format) from the
23950
+ * given reader into the given message object.
23951
+ * @param {!proto.cms.PageFaqStatusResponse} msg The message object to deserialize into.
23952
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23953
+ * @return {!proto.cms.PageFaqStatusResponse}
23954
+ */
23955
+ proto.cms.PageFaqStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
23956
+ while (reader.nextField()) {
23957
+ if (reader.isEndGroup()) {
23958
+ break;
23959
+ }
23960
+ var field = reader.getFieldNumber();
23961
+ switch (field) {
23962
+ case 1:
23963
+ var value = /** @type {string} */ (reader.readString());
23964
+ msg.setStatus(value);
23965
+ break;
23966
+ default:
23967
+ reader.skipField();
23968
+ break;
23969
+ }
23970
+ }
23971
+ return msg;
23972
+ };
23973
+
23974
+
23975
+ /**
23976
+ * Serializes the message to binary data (in protobuf wire format).
23977
+ * @return {!Uint8Array}
23978
+ */
23979
+ proto.cms.PageFaqStatusResponse.prototype.serializeBinary = function() {
23980
+ var writer = new jspb.BinaryWriter();
23981
+ proto.cms.PageFaqStatusResponse.serializeBinaryToWriter(this, writer);
23982
+ return writer.getResultBuffer();
23983
+ };
23984
+
23985
+
23986
+ /**
23987
+ * Serializes the given message to binary data (in protobuf wire
23988
+ * format), writing to the given BinaryWriter.
23989
+ * @param {!proto.cms.PageFaqStatusResponse} message
23990
+ * @param {!jspb.BinaryWriter} writer
23991
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23992
+ */
23993
+ proto.cms.PageFaqStatusResponse.serializeBinaryToWriter = function(message, writer) {
23994
+ var f = undefined;
23995
+ f = message.getStatus();
23996
+ if (f.length > 0) {
23997
+ writer.writeString(
23998
+ 1,
23999
+ f
24000
+ );
24001
+ }
24002
+ };
24003
+
24004
+
24005
+ /**
24006
+ * optional string status = 1;
24007
+ * @return {string}
24008
+ */
24009
+ proto.cms.PageFaqStatusResponse.prototype.getStatus = function() {
24010
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24011
+ };
24012
+
24013
+
24014
+ /**
24015
+ * @param {string} value
24016
+ * @return {!proto.cms.PageFaqStatusResponse} returns this
24017
+ */
24018
+ proto.cms.PageFaqStatusResponse.prototype.setStatus = function(value) {
24019
+ return jspb.Message.setProto3StringField(this, 1, value);
24020
+ };
24021
+
24022
+
24023
+
24024
+ /**
24025
+ * List of repeated fields within this message type.
24026
+ * @private {!Array<number>}
24027
+ * @const
24028
+ */
24029
+ proto.cms.PageFaqItemsResponse.repeatedFields_ = [1];
24030
+
24031
+
24032
+
24033
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24034
+ /**
24035
+ * Creates an object representation of this proto.
24036
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24037
+ * Optional fields that are not set will be set to undefined.
24038
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24039
+ * For the list of reserved names please see:
24040
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24041
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24042
+ * JSPB instance for transitional soy proto support:
24043
+ * http://goto/soy-param-migration
24044
+ * @return {!Object}
24045
+ */
24046
+ proto.cms.PageFaqItemsResponse.prototype.toObject = function(opt_includeInstance) {
24047
+ return proto.cms.PageFaqItemsResponse.toObject(opt_includeInstance, this);
24048
+ };
24049
+
24050
+
24051
+ /**
24052
+ * Static version of the {@see toObject} method.
24053
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24054
+ * the JSPB instance for transitional soy proto support:
24055
+ * http://goto/soy-param-migration
24056
+ * @param {!proto.cms.PageFaqItemsResponse} msg The msg instance to transform.
24057
+ * @return {!Object}
24058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24059
+ */
24060
+ proto.cms.PageFaqItemsResponse.toObject = function(includeInstance, msg) {
24061
+ var f, obj = {
24062
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
24063
+ proto.cms.PageFaqItem.toObject, includeInstance),
24064
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
24065
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
24066
+ };
24067
+
24068
+ if (includeInstance) {
24069
+ obj.$jspbMessageInstance = msg;
24070
+ }
24071
+ return obj;
24072
+ };
24073
+ }
24074
+
24075
+
24076
+ /**
24077
+ * Deserializes binary data (in protobuf wire format).
24078
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24079
+ * @return {!proto.cms.PageFaqItemsResponse}
24080
+ */
24081
+ proto.cms.PageFaqItemsResponse.deserializeBinary = function(bytes) {
24082
+ var reader = new jspb.BinaryReader(bytes);
24083
+ var msg = new proto.cms.PageFaqItemsResponse;
24084
+ return proto.cms.PageFaqItemsResponse.deserializeBinaryFromReader(msg, reader);
24085
+ };
24086
+
24087
+
24088
+ /**
24089
+ * Deserializes binary data (in protobuf wire format) from the
24090
+ * given reader into the given message object.
24091
+ * @param {!proto.cms.PageFaqItemsResponse} msg The message object to deserialize into.
24092
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24093
+ * @return {!proto.cms.PageFaqItemsResponse}
24094
+ */
24095
+ proto.cms.PageFaqItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
24096
+ while (reader.nextField()) {
24097
+ if (reader.isEndGroup()) {
24098
+ break;
24099
+ }
24100
+ var field = reader.getFieldNumber();
24101
+ switch (field) {
24102
+ case 1:
24103
+ var value = new proto.cms.PageFaqItem;
24104
+ reader.readMessage(value,proto.cms.PageFaqItem.deserializeBinaryFromReader);
24105
+ msg.addItems(value);
24106
+ break;
24107
+ case 2:
24108
+ var value = /** @type {number} */ (reader.readInt32());
24109
+ msg.setTotalPages(value);
24110
+ break;
24111
+ case 3:
24112
+ var value = /** @type {number} */ (reader.readInt32());
24113
+ msg.setTotalItems(value);
24114
+ break;
24115
+ default:
24116
+ reader.skipField();
24117
+ break;
24118
+ }
24119
+ }
24120
+ return msg;
24121
+ };
24122
+
24123
+
24124
+ /**
24125
+ * Serializes the message to binary data (in protobuf wire format).
24126
+ * @return {!Uint8Array}
24127
+ */
24128
+ proto.cms.PageFaqItemsResponse.prototype.serializeBinary = function() {
24129
+ var writer = new jspb.BinaryWriter();
24130
+ proto.cms.PageFaqItemsResponse.serializeBinaryToWriter(this, writer);
24131
+ return writer.getResultBuffer();
24132
+ };
24133
+
24134
+
24135
+ /**
24136
+ * Serializes the given message to binary data (in protobuf wire
24137
+ * format), writing to the given BinaryWriter.
24138
+ * @param {!proto.cms.PageFaqItemsResponse} message
24139
+ * @param {!jspb.BinaryWriter} writer
24140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24141
+ */
24142
+ proto.cms.PageFaqItemsResponse.serializeBinaryToWriter = function(message, writer) {
24143
+ var f = undefined;
24144
+ f = message.getItemsList();
24145
+ if (f.length > 0) {
24146
+ writer.writeRepeatedMessage(
24147
+ 1,
24148
+ f,
24149
+ proto.cms.PageFaqItem.serializeBinaryToWriter
24150
+ );
24151
+ }
24152
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
24153
+ if (f != null) {
24154
+ writer.writeInt32(
24155
+ 2,
24156
+ f
24157
+ );
24158
+ }
24159
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24160
+ if (f != null) {
24161
+ writer.writeInt32(
24162
+ 3,
24163
+ f
24164
+ );
24165
+ }
24166
+ };
24167
+
24168
+
24169
+ /**
24170
+ * repeated PageFaqItem items = 1;
24171
+ * @return {!Array<!proto.cms.PageFaqItem>}
24172
+ */
24173
+ proto.cms.PageFaqItemsResponse.prototype.getItemsList = function() {
24174
+ return /** @type{!Array<!proto.cms.PageFaqItem>} */ (
24175
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PageFaqItem, 1));
24176
+ };
24177
+
24178
+
24179
+ /**
24180
+ * @param {!Array<!proto.cms.PageFaqItem>} value
24181
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24182
+ */
24183
+ proto.cms.PageFaqItemsResponse.prototype.setItemsList = function(value) {
24184
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
24185
+ };
24186
+
24187
+
24188
+ /**
24189
+ * @param {!proto.cms.PageFaqItem=} opt_value
24190
+ * @param {number=} opt_index
24191
+ * @return {!proto.cms.PageFaqItem}
24192
+ */
24193
+ proto.cms.PageFaqItemsResponse.prototype.addItems = function(opt_value, opt_index) {
24194
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.PageFaqItem, opt_index);
24195
+ };
24196
+
24197
+
24198
+ /**
24199
+ * Clears the list making it empty but non-null.
24200
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24201
+ */
24202
+ proto.cms.PageFaqItemsResponse.prototype.clearItemsList = function() {
24203
+ return this.setItemsList([]);
24204
+ };
24205
+
24206
+
24207
+ /**
24208
+ * optional int32 total_pages = 2;
24209
+ * @return {number}
24210
+ */
24211
+ proto.cms.PageFaqItemsResponse.prototype.getTotalPages = function() {
24212
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24213
+ };
24214
+
24215
+
24216
+ /**
24217
+ * @param {number} value
24218
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24219
+ */
24220
+ proto.cms.PageFaqItemsResponse.prototype.setTotalPages = function(value) {
24221
+ return jspb.Message.setField(this, 2, value);
24222
+ };
24223
+
24224
+
24225
+ /**
24226
+ * Clears the field making it undefined.
24227
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24228
+ */
24229
+ proto.cms.PageFaqItemsResponse.prototype.clearTotalPages = function() {
24230
+ return jspb.Message.setField(this, 2, undefined);
24231
+ };
24232
+
24233
+
24234
+ /**
24235
+ * Returns whether this field is set.
24236
+ * @return {boolean}
24237
+ */
24238
+ proto.cms.PageFaqItemsResponse.prototype.hasTotalPages = function() {
24239
+ return jspb.Message.getField(this, 2) != null;
24240
+ };
24241
+
24242
+
24243
+ /**
24244
+ * optional int32 total_items = 3;
24245
+ * @return {number}
24246
+ */
24247
+ proto.cms.PageFaqItemsResponse.prototype.getTotalItems = function() {
24248
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24249
+ };
24250
+
24251
+
24252
+ /**
24253
+ * @param {number} value
24254
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24255
+ */
24256
+ proto.cms.PageFaqItemsResponse.prototype.setTotalItems = function(value) {
24257
+ return jspb.Message.setField(this, 3, value);
24258
+ };
24259
+
24260
+
24261
+ /**
24262
+ * Clears the field making it undefined.
24263
+ * @return {!proto.cms.PageFaqItemsResponse} returns this
24264
+ */
24265
+ proto.cms.PageFaqItemsResponse.prototype.clearTotalItems = function() {
24266
+ return jspb.Message.setField(this, 3, undefined);
24267
+ };
24268
+
24269
+
24270
+ /**
24271
+ * Returns whether this field is set.
24272
+ * @return {boolean}
24273
+ */
24274
+ proto.cms.PageFaqItemsResponse.prototype.hasTotalItems = function() {
24275
+ return jspb.Message.getField(this, 3) != null;
24276
+ };
24277
+
24278
+
24279
+
24280
+ /**
24281
+ * List of repeated fields within this message type.
24282
+ * @private {!Array<number>}
24283
+ * @const
24284
+ */
24285
+ proto.cms.SetPageFaqTranslationRequest.repeatedFields_ = [4];
24286
+
24287
+
24288
+
24289
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24290
+ /**
24291
+ * Creates an object representation of this proto.
24292
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24293
+ * Optional fields that are not set will be set to undefined.
24294
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24295
+ * For the list of reserved names please see:
24296
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24297
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24298
+ * JSPB instance for transitional soy proto support:
24299
+ * http://goto/soy-param-migration
24300
+ * @return {!Object}
24301
+ */
24302
+ proto.cms.SetPageFaqTranslationRequest.prototype.toObject = function(opt_includeInstance) {
24303
+ return proto.cms.SetPageFaqTranslationRequest.toObject(opt_includeInstance, this);
24304
+ };
24305
+
24306
+
24307
+ /**
24308
+ * Static version of the {@see toObject} method.
24309
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24310
+ * the JSPB instance for transitional soy proto support:
24311
+ * http://goto/soy-param-migration
24312
+ * @param {!proto.cms.SetPageFaqTranslationRequest} msg The msg instance to transform.
24313
+ * @return {!Object}
24314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24315
+ */
24316
+ proto.cms.SetPageFaqTranslationRequest.toObject = function(includeInstance, msg) {
24317
+ var f, obj = {
24318
+ pageFaqId: jspb.Message.getFieldWithDefault(msg, 1, 0),
24319
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
24320
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
24321
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
24322
+ proto.cms.PageFaqContentItem.toObject, includeInstance)
24323
+ };
24324
+
24325
+ if (includeInstance) {
24326
+ obj.$jspbMessageInstance = msg;
24327
+ }
24328
+ return obj;
24329
+ };
24330
+ }
24331
+
24332
+
24333
+ /**
24334
+ * Deserializes binary data (in protobuf wire format).
24335
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24336
+ * @return {!proto.cms.SetPageFaqTranslationRequest}
24337
+ */
24338
+ proto.cms.SetPageFaqTranslationRequest.deserializeBinary = function(bytes) {
24339
+ var reader = new jspb.BinaryReader(bytes);
24340
+ var msg = new proto.cms.SetPageFaqTranslationRequest;
24341
+ return proto.cms.SetPageFaqTranslationRequest.deserializeBinaryFromReader(msg, reader);
24342
+ };
24343
+
24344
+
24345
+ /**
24346
+ * Deserializes binary data (in protobuf wire format) from the
24347
+ * given reader into the given message object.
24348
+ * @param {!proto.cms.SetPageFaqTranslationRequest} msg The message object to deserialize into.
24349
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24350
+ * @return {!proto.cms.SetPageFaqTranslationRequest}
24351
+ */
24352
+ proto.cms.SetPageFaqTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
24353
+ while (reader.nextField()) {
24354
+ if (reader.isEndGroup()) {
24355
+ break;
24356
+ }
24357
+ var field = reader.getFieldNumber();
24358
+ switch (field) {
24359
+ case 1:
24360
+ var value = /** @type {number} */ (reader.readInt32());
24361
+ msg.setPageFaqId(value);
24362
+ break;
24363
+ case 2:
24364
+ var value = /** @type {string} */ (reader.readString());
24365
+ msg.setGeo(value);
24366
+ break;
24367
+ case 3:
24368
+ var value = /** @type {string} */ (reader.readString());
24369
+ msg.setLocale(value);
24370
+ break;
24371
+ case 4:
24372
+ var value = new proto.cms.PageFaqContentItem;
24373
+ reader.readMessage(value,proto.cms.PageFaqContentItem.deserializeBinaryFromReader);
24374
+ msg.addItems(value);
24375
+ break;
24376
+ default:
24377
+ reader.skipField();
24378
+ break;
24379
+ }
24380
+ }
24381
+ return msg;
24382
+ };
24383
+
24384
+
24385
+ /**
24386
+ * Serializes the message to binary data (in protobuf wire format).
24387
+ * @return {!Uint8Array}
24388
+ */
24389
+ proto.cms.SetPageFaqTranslationRequest.prototype.serializeBinary = function() {
24390
+ var writer = new jspb.BinaryWriter();
24391
+ proto.cms.SetPageFaqTranslationRequest.serializeBinaryToWriter(this, writer);
24392
+ return writer.getResultBuffer();
24393
+ };
24394
+
24395
+
24396
+ /**
24397
+ * Serializes the given message to binary data (in protobuf wire
24398
+ * format), writing to the given BinaryWriter.
24399
+ * @param {!proto.cms.SetPageFaqTranslationRequest} message
24400
+ * @param {!jspb.BinaryWriter} writer
24401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24402
+ */
24403
+ proto.cms.SetPageFaqTranslationRequest.serializeBinaryToWriter = function(message, writer) {
24404
+ var f = undefined;
24405
+ f = message.getPageFaqId();
24406
+ if (f !== 0) {
24407
+ writer.writeInt32(
24408
+ 1,
24409
+ f
24410
+ );
24411
+ }
24412
+ f = message.getGeo();
24413
+ if (f.length > 0) {
24414
+ writer.writeString(
24415
+ 2,
24416
+ f
24417
+ );
24418
+ }
24419
+ f = message.getLocale();
24420
+ if (f.length > 0) {
24421
+ writer.writeString(
24422
+ 3,
24423
+ f
24424
+ );
24425
+ }
24426
+ f = message.getItemsList();
24427
+ if (f.length > 0) {
24428
+ writer.writeRepeatedMessage(
24429
+ 4,
24430
+ f,
24431
+ proto.cms.PageFaqContentItem.serializeBinaryToWriter
24432
+ );
24433
+ }
24434
+ };
24435
+
24436
+
24437
+ /**
24438
+ * optional int32 page_faq_id = 1;
24439
+ * @return {number}
24440
+ */
24441
+ proto.cms.SetPageFaqTranslationRequest.prototype.getPageFaqId = function() {
24442
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24443
+ };
24444
+
24445
+
24446
+ /**
24447
+ * @param {number} value
24448
+ * @return {!proto.cms.SetPageFaqTranslationRequest} returns this
24449
+ */
24450
+ proto.cms.SetPageFaqTranslationRequest.prototype.setPageFaqId = function(value) {
24451
+ return jspb.Message.setProto3IntField(this, 1, value);
24452
+ };
24453
+
24454
+
24455
+ /**
24456
+ * optional string geo = 2;
24457
+ * @return {string}
24458
+ */
24459
+ proto.cms.SetPageFaqTranslationRequest.prototype.getGeo = function() {
24460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24461
+ };
24462
+
24463
+
24464
+ /**
24465
+ * @param {string} value
24466
+ * @return {!proto.cms.SetPageFaqTranslationRequest} returns this
24467
+ */
24468
+ proto.cms.SetPageFaqTranslationRequest.prototype.setGeo = function(value) {
24469
+ return jspb.Message.setProto3StringField(this, 2, value);
24470
+ };
24471
+
24472
+
24473
+ /**
24474
+ * optional string locale = 3;
24475
+ * @return {string}
24476
+ */
24477
+ proto.cms.SetPageFaqTranslationRequest.prototype.getLocale = function() {
24478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24479
+ };
24480
+
24481
+
24482
+ /**
24483
+ * @param {string} value
24484
+ * @return {!proto.cms.SetPageFaqTranslationRequest} returns this
24485
+ */
24486
+ proto.cms.SetPageFaqTranslationRequest.prototype.setLocale = function(value) {
24487
+ return jspb.Message.setProto3StringField(this, 3, value);
24488
+ };
24489
+
24490
+
24491
+ /**
24492
+ * repeated PageFaqContentItem items = 4;
24493
+ * @return {!Array<!proto.cms.PageFaqContentItem>}
24494
+ */
24495
+ proto.cms.SetPageFaqTranslationRequest.prototype.getItemsList = function() {
24496
+ return /** @type{!Array<!proto.cms.PageFaqContentItem>} */ (
24497
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PageFaqContentItem, 4));
24498
+ };
24499
+
24500
+
24501
+ /**
24502
+ * @param {!Array<!proto.cms.PageFaqContentItem>} value
24503
+ * @return {!proto.cms.SetPageFaqTranslationRequest} returns this
24504
+ */
24505
+ proto.cms.SetPageFaqTranslationRequest.prototype.setItemsList = function(value) {
24506
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
24507
+ };
24508
+
24509
+
24510
+ /**
24511
+ * @param {!proto.cms.PageFaqContentItem=} opt_value
24512
+ * @param {number=} opt_index
24513
+ * @return {!proto.cms.PageFaqContentItem}
24514
+ */
24515
+ proto.cms.SetPageFaqTranslationRequest.prototype.addItems = function(opt_value, opt_index) {
24516
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PageFaqContentItem, opt_index);
24517
+ };
24518
+
24519
+
24520
+ /**
24521
+ * Clears the list making it empty but non-null.
24522
+ * @return {!proto.cms.SetPageFaqTranslationRequest} returns this
24523
+ */
24524
+ proto.cms.SetPageFaqTranslationRequest.prototype.clearItemsList = function() {
24525
+ return this.setItemsList([]);
24526
+ };
24527
+
24528
+
24529
+
24530
+
24531
+
24532
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24533
+ /**
24534
+ * Creates an object representation of this proto.
24535
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24536
+ * Optional fields that are not set will be set to undefined.
24537
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24538
+ * For the list of reserved names please see:
24539
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24540
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24541
+ * JSPB instance for transitional soy proto support:
24542
+ * http://goto/soy-param-migration
24543
+ * @return {!Object}
24544
+ */
24545
+ proto.cms.GetPageFaqTranslationRequest.prototype.toObject = function(opt_includeInstance) {
24546
+ return proto.cms.GetPageFaqTranslationRequest.toObject(opt_includeInstance, this);
24547
+ };
24548
+
24549
+
24550
+ /**
24551
+ * Static version of the {@see toObject} method.
24552
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24553
+ * the JSPB instance for transitional soy proto support:
24554
+ * http://goto/soy-param-migration
24555
+ * @param {!proto.cms.GetPageFaqTranslationRequest} msg The msg instance to transform.
24556
+ * @return {!Object}
24557
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24558
+ */
24559
+ proto.cms.GetPageFaqTranslationRequest.toObject = function(includeInstance, msg) {
24560
+ var f, obj = {
24561
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
24562
+ locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
24563
+ pageFaqId: jspb.Message.getFieldWithDefault(msg, 3, 0),
24564
+ type: jspb.Message.getFieldWithDefault(msg, 4, "")
24565
+ };
24566
+
24567
+ if (includeInstance) {
24568
+ obj.$jspbMessageInstance = msg;
24569
+ }
24570
+ return obj;
24571
+ };
24572
+ }
24573
+
24574
+
24575
+ /**
24576
+ * Deserializes binary data (in protobuf wire format).
24577
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24578
+ * @return {!proto.cms.GetPageFaqTranslationRequest}
24579
+ */
24580
+ proto.cms.GetPageFaqTranslationRequest.deserializeBinary = function(bytes) {
24581
+ var reader = new jspb.BinaryReader(bytes);
24582
+ var msg = new proto.cms.GetPageFaqTranslationRequest;
24583
+ return proto.cms.GetPageFaqTranslationRequest.deserializeBinaryFromReader(msg, reader);
24584
+ };
24585
+
24586
+
24587
+ /**
24588
+ * Deserializes binary data (in protobuf wire format) from the
24589
+ * given reader into the given message object.
24590
+ * @param {!proto.cms.GetPageFaqTranslationRequest} msg The message object to deserialize into.
24591
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24592
+ * @return {!proto.cms.GetPageFaqTranslationRequest}
24593
+ */
24594
+ proto.cms.GetPageFaqTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
24595
+ while (reader.nextField()) {
24596
+ if (reader.isEndGroup()) {
24597
+ break;
24598
+ }
24599
+ var field = reader.getFieldNumber();
24600
+ switch (field) {
24601
+ case 1:
24602
+ var value = /** @type {string} */ (reader.readString());
24603
+ msg.setGeo(value);
24604
+ break;
24605
+ case 2:
24606
+ var value = /** @type {string} */ (reader.readString());
24607
+ msg.setLocale(value);
24608
+ break;
24609
+ case 3:
24610
+ var value = /** @type {number} */ (reader.readInt32());
24611
+ msg.setPageFaqId(value);
24612
+ break;
24613
+ case 4:
24614
+ var value = /** @type {string} */ (reader.readString());
24615
+ msg.setType(value);
24616
+ break;
24617
+ default:
24618
+ reader.skipField();
24619
+ break;
24620
+ }
24621
+ }
24622
+ return msg;
24623
+ };
24624
+
24625
+
24626
+ /**
24627
+ * Serializes the message to binary data (in protobuf wire format).
24628
+ * @return {!Uint8Array}
24629
+ */
24630
+ proto.cms.GetPageFaqTranslationRequest.prototype.serializeBinary = function() {
24631
+ var writer = new jspb.BinaryWriter();
24632
+ proto.cms.GetPageFaqTranslationRequest.serializeBinaryToWriter(this, writer);
24633
+ return writer.getResultBuffer();
24634
+ };
24635
+
24636
+
24637
+ /**
24638
+ * Serializes the given message to binary data (in protobuf wire
24639
+ * format), writing to the given BinaryWriter.
24640
+ * @param {!proto.cms.GetPageFaqTranslationRequest} message
24641
+ * @param {!jspb.BinaryWriter} writer
24642
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24643
+ */
24644
+ proto.cms.GetPageFaqTranslationRequest.serializeBinaryToWriter = function(message, writer) {
24645
+ var f = undefined;
24646
+ f = message.getGeo();
24647
+ if (f.length > 0) {
24648
+ writer.writeString(
24649
+ 1,
24650
+ f
24651
+ );
24652
+ }
24653
+ f = message.getLocale();
24654
+ if (f.length > 0) {
24655
+ writer.writeString(
24656
+ 2,
24657
+ f
24658
+ );
24659
+ }
24660
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24661
+ if (f != null) {
24662
+ writer.writeInt32(
24663
+ 3,
24664
+ f
24665
+ );
24666
+ }
24667
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
24668
+ if (f != null) {
24669
+ writer.writeString(
24670
+ 4,
24671
+ f
24672
+ );
24673
+ }
24674
+ };
24675
+
24676
+
24677
+ /**
24678
+ * optional string geo = 1;
24679
+ * @return {string}
24680
+ */
24681
+ proto.cms.GetPageFaqTranslationRequest.prototype.getGeo = function() {
24682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24683
+ };
24684
+
24685
+
24686
+ /**
24687
+ * @param {string} value
24688
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24689
+ */
24690
+ proto.cms.GetPageFaqTranslationRequest.prototype.setGeo = function(value) {
24691
+ return jspb.Message.setProto3StringField(this, 1, value);
24692
+ };
24693
+
24694
+
24695
+ /**
24696
+ * optional string locale = 2;
24697
+ * @return {string}
24698
+ */
24699
+ proto.cms.GetPageFaqTranslationRequest.prototype.getLocale = function() {
24700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24701
+ };
24702
+
24703
+
24704
+ /**
24705
+ * @param {string} value
24706
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24707
+ */
24708
+ proto.cms.GetPageFaqTranslationRequest.prototype.setLocale = function(value) {
24709
+ return jspb.Message.setProto3StringField(this, 2, value);
24710
+ };
24711
+
24712
+
24713
+ /**
24714
+ * optional int32 page_faq_id = 3;
24715
+ * @return {number}
24716
+ */
24717
+ proto.cms.GetPageFaqTranslationRequest.prototype.getPageFaqId = function() {
24718
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24719
+ };
24720
+
24721
+
24722
+ /**
24723
+ * @param {number} value
24724
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24725
+ */
24726
+ proto.cms.GetPageFaqTranslationRequest.prototype.setPageFaqId = function(value) {
24727
+ return jspb.Message.setField(this, 3, value);
24728
+ };
24729
+
24730
+
24731
+ /**
24732
+ * Clears the field making it undefined.
24733
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24734
+ */
24735
+ proto.cms.GetPageFaqTranslationRequest.prototype.clearPageFaqId = function() {
24736
+ return jspb.Message.setField(this, 3, undefined);
24737
+ };
24738
+
24739
+
24740
+ /**
24741
+ * Returns whether this field is set.
24742
+ * @return {boolean}
24743
+ */
24744
+ proto.cms.GetPageFaqTranslationRequest.prototype.hasPageFaqId = function() {
24745
+ return jspb.Message.getField(this, 3) != null;
24746
+ };
24747
+
24748
+
24749
+ /**
24750
+ * optional string type = 4;
24751
+ * @return {string}
24752
+ */
24753
+ proto.cms.GetPageFaqTranslationRequest.prototype.getType = function() {
24754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24755
+ };
24756
+
24757
+
24758
+ /**
24759
+ * @param {string} value
24760
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24761
+ */
24762
+ proto.cms.GetPageFaqTranslationRequest.prototype.setType = function(value) {
24763
+ return jspb.Message.setField(this, 4, value);
24764
+ };
24765
+
24766
+
24767
+ /**
24768
+ * Clears the field making it undefined.
24769
+ * @return {!proto.cms.GetPageFaqTranslationRequest} returns this
24770
+ */
24771
+ proto.cms.GetPageFaqTranslationRequest.prototype.clearType = function() {
24772
+ return jspb.Message.setField(this, 4, undefined);
24773
+ };
24774
+
24775
+
24776
+ /**
24777
+ * Returns whether this field is set.
24778
+ * @return {boolean}
24779
+ */
24780
+ proto.cms.GetPageFaqTranslationRequest.prototype.hasType = function() {
24781
+ return jspb.Message.getField(this, 4) != null;
24782
+ };
24783
+
24784
+
24785
+
24786
+ /**
24787
+ * List of repeated fields within this message type.
24788
+ * @private {!Array<number>}
24789
+ * @const
24790
+ */
24791
+ proto.cms.PageFaqTranslationItem.repeatedFields_ = [4];
24792
+
24793
+
24794
+
24795
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24796
+ /**
24797
+ * Creates an object representation of this proto.
24798
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24799
+ * Optional fields that are not set will be set to undefined.
24800
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24801
+ * For the list of reserved names please see:
24802
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24803
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24804
+ * JSPB instance for transitional soy proto support:
24805
+ * http://goto/soy-param-migration
24806
+ * @return {!Object}
24807
+ */
24808
+ proto.cms.PageFaqTranslationItem.prototype.toObject = function(opt_includeInstance) {
24809
+ return proto.cms.PageFaqTranslationItem.toObject(opt_includeInstance, this);
24810
+ };
24811
+
24812
+
24813
+ /**
24814
+ * Static version of the {@see toObject} method.
24815
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24816
+ * the JSPB instance for transitional soy proto support:
24817
+ * http://goto/soy-param-migration
24818
+ * @param {!proto.cms.PageFaqTranslationItem} msg The msg instance to transform.
24819
+ * @return {!Object}
24820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24821
+ */
24822
+ proto.cms.PageFaqTranslationItem.toObject = function(includeInstance, msg) {
24823
+ var f, obj = {
24824
+ pageFaqId: jspb.Message.getFieldWithDefault(msg, 1, 0),
24825
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
24826
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
24827
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
24828
+ proto.cms.PageFaqContentItem.toObject, includeInstance),
24829
+ type: jspb.Message.getFieldWithDefault(msg, 5, ""),
24830
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
24831
+ };
24832
+
24833
+ if (includeInstance) {
24834
+ obj.$jspbMessageInstance = msg;
24835
+ }
24836
+ return obj;
24837
+ };
24838
+ }
24839
+
24840
+
24841
+ /**
24842
+ * Deserializes binary data (in protobuf wire format).
24843
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24844
+ * @return {!proto.cms.PageFaqTranslationItem}
24845
+ */
24846
+ proto.cms.PageFaqTranslationItem.deserializeBinary = function(bytes) {
24847
+ var reader = new jspb.BinaryReader(bytes);
24848
+ var msg = new proto.cms.PageFaqTranslationItem;
24849
+ return proto.cms.PageFaqTranslationItem.deserializeBinaryFromReader(msg, reader);
24850
+ };
24851
+
24852
+
24853
+ /**
24854
+ * Deserializes binary data (in protobuf wire format) from the
24855
+ * given reader into the given message object.
24856
+ * @param {!proto.cms.PageFaqTranslationItem} msg The message object to deserialize into.
24857
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24858
+ * @return {!proto.cms.PageFaqTranslationItem}
24859
+ */
24860
+ proto.cms.PageFaqTranslationItem.deserializeBinaryFromReader = function(msg, reader) {
24861
+ while (reader.nextField()) {
24862
+ if (reader.isEndGroup()) {
24863
+ break;
24864
+ }
24865
+ var field = reader.getFieldNumber();
24866
+ switch (field) {
24867
+ case 1:
24868
+ var value = /** @type {number} */ (reader.readInt32());
24869
+ msg.setPageFaqId(value);
24870
+ break;
24871
+ case 2:
24872
+ var value = /** @type {string} */ (reader.readString());
24873
+ msg.setGeo(value);
24874
+ break;
24875
+ case 3:
24876
+ var value = /** @type {string} */ (reader.readString());
24877
+ msg.setLocale(value);
24878
+ break;
24879
+ case 4:
24880
+ var value = new proto.cms.PageFaqContentItem;
24881
+ reader.readMessage(value,proto.cms.PageFaqContentItem.deserializeBinaryFromReader);
24882
+ msg.addItems(value);
24883
+ break;
24884
+ case 5:
24885
+ var value = /** @type {string} */ (reader.readString());
24886
+ msg.setType(value);
24887
+ break;
24888
+ case 6:
24889
+ var value = /** @type {number} */ (reader.readInt32());
24890
+ msg.setIsActive(value);
24891
+ break;
24892
+ default:
24893
+ reader.skipField();
24894
+ break;
24895
+ }
24896
+ }
24897
+ return msg;
24898
+ };
24899
+
24900
+
24901
+ /**
24902
+ * Serializes the message to binary data (in protobuf wire format).
24903
+ * @return {!Uint8Array}
24904
+ */
24905
+ proto.cms.PageFaqTranslationItem.prototype.serializeBinary = function() {
24906
+ var writer = new jspb.BinaryWriter();
24907
+ proto.cms.PageFaqTranslationItem.serializeBinaryToWriter(this, writer);
24908
+ return writer.getResultBuffer();
24909
+ };
24910
+
24911
+
24912
+ /**
24913
+ * Serializes the given message to binary data (in protobuf wire
24914
+ * format), writing to the given BinaryWriter.
24915
+ * @param {!proto.cms.PageFaqTranslationItem} message
24916
+ * @param {!jspb.BinaryWriter} writer
24917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24918
+ */
24919
+ proto.cms.PageFaqTranslationItem.serializeBinaryToWriter = function(message, writer) {
24920
+ var f = undefined;
24921
+ f = message.getPageFaqId();
24922
+ if (f !== 0) {
24923
+ writer.writeInt32(
24924
+ 1,
24925
+ f
24926
+ );
24927
+ }
24928
+ f = message.getGeo();
24929
+ if (f.length > 0) {
24930
+ writer.writeString(
24931
+ 2,
24932
+ f
24933
+ );
24934
+ }
24935
+ f = message.getLocale();
24936
+ if (f.length > 0) {
24937
+ writer.writeString(
24938
+ 3,
24939
+ f
24940
+ );
24941
+ }
24942
+ f = message.getItemsList();
24943
+ if (f.length > 0) {
24944
+ writer.writeRepeatedMessage(
24945
+ 4,
24946
+ f,
24947
+ proto.cms.PageFaqContentItem.serializeBinaryToWriter
24948
+ );
24949
+ }
24950
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
24951
+ if (f != null) {
24952
+ writer.writeString(
24953
+ 5,
24954
+ f
24955
+ );
24956
+ }
24957
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
24958
+ if (f != null) {
24959
+ writer.writeInt32(
24960
+ 6,
24961
+ f
24962
+ );
24963
+ }
24964
+ };
24965
+
24966
+
24967
+ /**
24968
+ * optional int32 page_faq_id = 1;
24969
+ * @return {number}
24970
+ */
24971
+ proto.cms.PageFaqTranslationItem.prototype.getPageFaqId = function() {
24972
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24973
+ };
24974
+
24975
+
24976
+ /**
24977
+ * @param {number} value
24978
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
24979
+ */
24980
+ proto.cms.PageFaqTranslationItem.prototype.setPageFaqId = function(value) {
24981
+ return jspb.Message.setProto3IntField(this, 1, value);
24982
+ };
24983
+
24984
+
24985
+ /**
24986
+ * optional string geo = 2;
24987
+ * @return {string}
24988
+ */
24989
+ proto.cms.PageFaqTranslationItem.prototype.getGeo = function() {
24990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24991
+ };
24992
+
24993
+
24994
+ /**
24995
+ * @param {string} value
24996
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
24997
+ */
24998
+ proto.cms.PageFaqTranslationItem.prototype.setGeo = function(value) {
24999
+ return jspb.Message.setProto3StringField(this, 2, value);
25000
+ };
25001
+
25002
+
25003
+ /**
25004
+ * optional string locale = 3;
25005
+ * @return {string}
25006
+ */
25007
+ proto.cms.PageFaqTranslationItem.prototype.getLocale = function() {
25008
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
25009
+ };
25010
+
25011
+
25012
+ /**
25013
+ * @param {string} value
25014
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25015
+ */
25016
+ proto.cms.PageFaqTranslationItem.prototype.setLocale = function(value) {
25017
+ return jspb.Message.setProto3StringField(this, 3, value);
25018
+ };
25019
+
25020
+
25021
+ /**
25022
+ * repeated PageFaqContentItem items = 4;
25023
+ * @return {!Array<!proto.cms.PageFaqContentItem>}
25024
+ */
25025
+ proto.cms.PageFaqTranslationItem.prototype.getItemsList = function() {
25026
+ return /** @type{!Array<!proto.cms.PageFaqContentItem>} */ (
25027
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PageFaqContentItem, 4));
25028
+ };
25029
+
25030
+
25031
+ /**
25032
+ * @param {!Array<!proto.cms.PageFaqContentItem>} value
25033
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25034
+ */
25035
+ proto.cms.PageFaqTranslationItem.prototype.setItemsList = function(value) {
25036
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
25037
+ };
25038
+
25039
+
25040
+ /**
25041
+ * @param {!proto.cms.PageFaqContentItem=} opt_value
25042
+ * @param {number=} opt_index
25043
+ * @return {!proto.cms.PageFaqContentItem}
25044
+ */
25045
+ proto.cms.PageFaqTranslationItem.prototype.addItems = function(opt_value, opt_index) {
25046
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PageFaqContentItem, opt_index);
25047
+ };
25048
+
25049
+
25050
+ /**
25051
+ * Clears the list making it empty but non-null.
25052
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25053
+ */
25054
+ proto.cms.PageFaqTranslationItem.prototype.clearItemsList = function() {
25055
+ return this.setItemsList([]);
25056
+ };
25057
+
25058
+
25059
+ /**
25060
+ * optional string type = 5;
25061
+ * @return {string}
25062
+ */
25063
+ proto.cms.PageFaqTranslationItem.prototype.getType = function() {
25064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
25065
+ };
25066
+
25067
+
25068
+ /**
25069
+ * @param {string} value
25070
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25071
+ */
25072
+ proto.cms.PageFaqTranslationItem.prototype.setType = function(value) {
25073
+ return jspb.Message.setField(this, 5, value);
25074
+ };
25075
+
25076
+
25077
+ /**
25078
+ * Clears the field making it undefined.
25079
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25080
+ */
25081
+ proto.cms.PageFaqTranslationItem.prototype.clearType = function() {
25082
+ return jspb.Message.setField(this, 5, undefined);
25083
+ };
25084
+
25085
+
25086
+ /**
25087
+ * Returns whether this field is set.
25088
+ * @return {boolean}
25089
+ */
25090
+ proto.cms.PageFaqTranslationItem.prototype.hasType = function() {
25091
+ return jspb.Message.getField(this, 5) != null;
25092
+ };
25093
+
25094
+
25095
+ /**
25096
+ * optional int32 is_active = 6;
25097
+ * @return {number}
25098
+ */
25099
+ proto.cms.PageFaqTranslationItem.prototype.getIsActive = function() {
25100
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
25101
+ };
25102
+
25103
+
25104
+ /**
25105
+ * @param {number} value
25106
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25107
+ */
25108
+ proto.cms.PageFaqTranslationItem.prototype.setIsActive = function(value) {
25109
+ return jspb.Message.setField(this, 6, value);
25110
+ };
25111
+
25112
+
25113
+ /**
25114
+ * Clears the field making it undefined.
25115
+ * @return {!proto.cms.PageFaqTranslationItem} returns this
25116
+ */
25117
+ proto.cms.PageFaqTranslationItem.prototype.clearIsActive = function() {
25118
+ return jspb.Message.setField(this, 6, undefined);
25119
+ };
25120
+
25121
+
25122
+ /**
25123
+ * Returns whether this field is set.
25124
+ * @return {boolean}
25125
+ */
25126
+ proto.cms.PageFaqTranslationItem.prototype.hasIsActive = function() {
25127
+ return jspb.Message.getField(this, 6) != null;
25128
+ };
25129
+
25130
+
25131
+
25132
+
25133
+
25134
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25135
+ /**
25136
+ * Creates an object representation of this proto.
25137
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25138
+ * Optional fields that are not set will be set to undefined.
25139
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25140
+ * For the list of reserved names please see:
25141
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25142
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25143
+ * JSPB instance for transitional soy proto support:
25144
+ * http://goto/soy-param-migration
25145
+ * @return {!Object}
25146
+ */
25147
+ proto.cms.PageFaqTranslationResponse.prototype.toObject = function(opt_includeInstance) {
25148
+ return proto.cms.PageFaqTranslationResponse.toObject(opt_includeInstance, this);
25149
+ };
25150
+
25151
+
25152
+ /**
25153
+ * Static version of the {@see toObject} method.
25154
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25155
+ * the JSPB instance for transitional soy proto support:
25156
+ * http://goto/soy-param-migration
25157
+ * @param {!proto.cms.PageFaqTranslationResponse} msg The msg instance to transform.
25158
+ * @return {!Object}
25159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25160
+ */
25161
+ proto.cms.PageFaqTranslationResponse.toObject = function(includeInstance, msg) {
25162
+ var f, obj = {
25163
+ data: (f = msg.getData()) && proto.cms.PageFaqTranslationItem.toObject(includeInstance, f)
25164
+ };
25165
+
25166
+ if (includeInstance) {
25167
+ obj.$jspbMessageInstance = msg;
25168
+ }
25169
+ return obj;
25170
+ };
25171
+ }
25172
+
25173
+
25174
+ /**
25175
+ * Deserializes binary data (in protobuf wire format).
25176
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25177
+ * @return {!proto.cms.PageFaqTranslationResponse}
25178
+ */
25179
+ proto.cms.PageFaqTranslationResponse.deserializeBinary = function(bytes) {
25180
+ var reader = new jspb.BinaryReader(bytes);
25181
+ var msg = new proto.cms.PageFaqTranslationResponse;
25182
+ return proto.cms.PageFaqTranslationResponse.deserializeBinaryFromReader(msg, reader);
25183
+ };
25184
+
25185
+
25186
+ /**
25187
+ * Deserializes binary data (in protobuf wire format) from the
25188
+ * given reader into the given message object.
25189
+ * @param {!proto.cms.PageFaqTranslationResponse} msg The message object to deserialize into.
25190
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25191
+ * @return {!proto.cms.PageFaqTranslationResponse}
25192
+ */
25193
+ proto.cms.PageFaqTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
25194
+ while (reader.nextField()) {
25195
+ if (reader.isEndGroup()) {
25196
+ break;
25197
+ }
25198
+ var field = reader.getFieldNumber();
25199
+ switch (field) {
25200
+ case 1:
25201
+ var value = new proto.cms.PageFaqTranslationItem;
25202
+ reader.readMessage(value,proto.cms.PageFaqTranslationItem.deserializeBinaryFromReader);
25203
+ msg.setData(value);
25204
+ break;
25205
+ default:
25206
+ reader.skipField();
25207
+ break;
25208
+ }
25209
+ }
25210
+ return msg;
25211
+ };
25212
+
25213
+
25214
+ /**
25215
+ * Serializes the message to binary data (in protobuf wire format).
25216
+ * @return {!Uint8Array}
25217
+ */
25218
+ proto.cms.PageFaqTranslationResponse.prototype.serializeBinary = function() {
25219
+ var writer = new jspb.BinaryWriter();
25220
+ proto.cms.PageFaqTranslationResponse.serializeBinaryToWriter(this, writer);
25221
+ return writer.getResultBuffer();
25222
+ };
25223
+
25224
+
25225
+ /**
25226
+ * Serializes the given message to binary data (in protobuf wire
25227
+ * format), writing to the given BinaryWriter.
25228
+ * @param {!proto.cms.PageFaqTranslationResponse} message
25229
+ * @param {!jspb.BinaryWriter} writer
25230
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25231
+ */
25232
+ proto.cms.PageFaqTranslationResponse.serializeBinaryToWriter = function(message, writer) {
25233
+ var f = undefined;
25234
+ f = message.getData();
25235
+ if (f != null) {
25236
+ writer.writeMessage(
25237
+ 1,
25238
+ f,
25239
+ proto.cms.PageFaqTranslationItem.serializeBinaryToWriter
25240
+ );
25241
+ }
25242
+ };
25243
+
25244
+
25245
+ /**
25246
+ * optional PageFaqTranslationItem data = 1;
25247
+ * @return {?proto.cms.PageFaqTranslationItem}
25248
+ */
25249
+ proto.cms.PageFaqTranslationResponse.prototype.getData = function() {
25250
+ return /** @type{?proto.cms.PageFaqTranslationItem} */ (
25251
+ jspb.Message.getWrapperField(this, proto.cms.PageFaqTranslationItem, 1));
25252
+ };
25253
+
25254
+
25255
+ /**
25256
+ * @param {?proto.cms.PageFaqTranslationItem|undefined} value
25257
+ * @return {!proto.cms.PageFaqTranslationResponse} returns this
25258
+ */
25259
+ proto.cms.PageFaqTranslationResponse.prototype.setData = function(value) {
25260
+ return jspb.Message.setWrapperField(this, 1, value);
25261
+ };
25262
+
25263
+
25264
+ /**
25265
+ * Clears the message field making it undefined.
25266
+ * @return {!proto.cms.PageFaqTranslationResponse} returns this
25267
+ */
25268
+ proto.cms.PageFaqTranslationResponse.prototype.clearData = function() {
25269
+ return this.setData(undefined);
25270
+ };
25271
+
25272
+
25273
+ /**
25274
+ * Returns whether this field is set.
25275
+ * @return {boolean}
25276
+ */
25277
+ proto.cms.PageFaqTranslationResponse.prototype.hasData = function() {
25278
+ return jspb.Message.getField(this, 1) != null;
25279
+ };
25280
+
25281
+
25282
+
22561
25283
  /**
22562
25284
  * Oneof group definitions for this message. Each group defines the field
22563
25285
  * numbers belonging to that group. When of these fields' value is set, all