protobuf-platform 1.2.347 → 1.2.349

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
@@ -36,6 +36,12 @@ goog.exportSymbol('proto.cms.BannerStatusResponse', null, global);
36
36
  goog.exportSymbol('proto.cms.BannerTexts', null, global);
37
37
  goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
38
38
  goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
39
+ goog.exportSymbol('proto.cms.CustomWidgetItem', null, global);
40
+ goog.exportSymbol('proto.cms.CustomWidgetRequest', null, global);
41
+ goog.exportSymbol('proto.cms.CustomWidgetResponse', null, global);
42
+ goog.exportSymbol('proto.cms.CustomWidgetRow', null, global);
43
+ goog.exportSymbol('proto.cms.CustomWidgetStatusResponse', null, global);
44
+ goog.exportSymbol('proto.cms.CustomWidgetsItemsResponse', null, global);
39
45
  goog.exportSymbol('proto.cms.DeleteFooterPartnersMediaRequest', null, global);
40
46
  goog.exportSymbol('proto.cms.DeleteFooterSocialNetworksMediaRequest', null, global);
41
47
  goog.exportSymbol('proto.cms.File', null, global);
@@ -105,6 +111,8 @@ goog.exportSymbol('proto.cms.GameWidgetsItemsResponse', null, global);
105
111
  goog.exportSymbol('proto.cms.GetBannerGroupRequest', null, global);
106
112
  goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
107
113
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
114
+ goog.exportSymbol('proto.cms.GetCustomWidgetForUserRequest', null, global);
115
+ goog.exportSymbol('proto.cms.GetCustomWidgetRequest', null, global);
108
116
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
109
117
  goog.exportSymbol('proto.cms.GetFooterApplicationsRequest', null, global);
110
118
  goog.exportSymbol('proto.cms.GetFooterBrandCoreRequest', null, global);
@@ -2046,6 +2054,174 @@ if (goog.DEBUG && !COMPILED) {
2046
2054
  */
2047
2055
  proto.cms.TokenWidgetsItemsResponse.displayName = 'proto.cms.TokenWidgetsItemsResponse';
2048
2056
  }
2057
+ /**
2058
+ * Generated by JsPbCodeGenerator.
2059
+ * @param {Array=} opt_data Optional initial data array, typically from a
2060
+ * server response, or constructed directly in Javascript. The array is used
2061
+ * in place and becomes part of the constructed object. It is not cloned.
2062
+ * If no data is provided, the constructed object will be empty, but still
2063
+ * valid.
2064
+ * @extends {jspb.Message}
2065
+ * @constructor
2066
+ */
2067
+ proto.cms.CustomWidgetRequest = function(opt_data) {
2068
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.CustomWidgetRequest.repeatedFields_, null);
2069
+ };
2070
+ goog.inherits(proto.cms.CustomWidgetRequest, jspb.Message);
2071
+ if (goog.DEBUG && !COMPILED) {
2072
+ /**
2073
+ * @public
2074
+ * @override
2075
+ */
2076
+ proto.cms.CustomWidgetRequest.displayName = 'proto.cms.CustomWidgetRequest';
2077
+ }
2078
+ /**
2079
+ * Generated by JsPbCodeGenerator.
2080
+ * @param {Array=} opt_data Optional initial data array, typically from a
2081
+ * server response, or constructed directly in Javascript. The array is used
2082
+ * in place and becomes part of the constructed object. It is not cloned.
2083
+ * If no data is provided, the constructed object will be empty, but still
2084
+ * valid.
2085
+ * @extends {jspb.Message}
2086
+ * @constructor
2087
+ */
2088
+ proto.cms.CustomWidgetRow = function(opt_data) {
2089
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2090
+ };
2091
+ goog.inherits(proto.cms.CustomWidgetRow, jspb.Message);
2092
+ if (goog.DEBUG && !COMPILED) {
2093
+ /**
2094
+ * @public
2095
+ * @override
2096
+ */
2097
+ proto.cms.CustomWidgetRow.displayName = 'proto.cms.CustomWidgetRow';
2098
+ }
2099
+ /**
2100
+ * Generated by JsPbCodeGenerator.
2101
+ * @param {Array=} opt_data Optional initial data array, typically from a
2102
+ * server response, or constructed directly in Javascript. The array is used
2103
+ * in place and becomes part of the constructed object. It is not cloned.
2104
+ * If no data is provided, the constructed object will be empty, but still
2105
+ * valid.
2106
+ * @extends {jspb.Message}
2107
+ * @constructor
2108
+ */
2109
+ proto.cms.CustomWidgetItem = function(opt_data) {
2110
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.CustomWidgetItem.repeatedFields_, null);
2111
+ };
2112
+ goog.inherits(proto.cms.CustomWidgetItem, jspb.Message);
2113
+ if (goog.DEBUG && !COMPILED) {
2114
+ /**
2115
+ * @public
2116
+ * @override
2117
+ */
2118
+ proto.cms.CustomWidgetItem.displayName = 'proto.cms.CustomWidgetItem';
2119
+ }
2120
+ /**
2121
+ * Generated by JsPbCodeGenerator.
2122
+ * @param {Array=} opt_data Optional initial data array, typically from a
2123
+ * server response, or constructed directly in Javascript. The array is used
2124
+ * in place and becomes part of the constructed object. It is not cloned.
2125
+ * If no data is provided, the constructed object will be empty, but still
2126
+ * valid.
2127
+ * @extends {jspb.Message}
2128
+ * @constructor
2129
+ */
2130
+ proto.cms.CustomWidgetResponse = function(opt_data) {
2131
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2132
+ };
2133
+ goog.inherits(proto.cms.CustomWidgetResponse, jspb.Message);
2134
+ if (goog.DEBUG && !COMPILED) {
2135
+ /**
2136
+ * @public
2137
+ * @override
2138
+ */
2139
+ proto.cms.CustomWidgetResponse.displayName = 'proto.cms.CustomWidgetResponse';
2140
+ }
2141
+ /**
2142
+ * Generated by JsPbCodeGenerator.
2143
+ * @param {Array=} opt_data Optional initial data array, typically from a
2144
+ * server response, or constructed directly in Javascript. The array is used
2145
+ * in place and becomes part of the constructed object. It is not cloned.
2146
+ * If no data is provided, the constructed object will be empty, but still
2147
+ * valid.
2148
+ * @extends {jspb.Message}
2149
+ * @constructor
2150
+ */
2151
+ proto.cms.GetCustomWidgetRequest = function(opt_data) {
2152
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2153
+ };
2154
+ goog.inherits(proto.cms.GetCustomWidgetRequest, jspb.Message);
2155
+ if (goog.DEBUG && !COMPILED) {
2156
+ /**
2157
+ * @public
2158
+ * @override
2159
+ */
2160
+ proto.cms.GetCustomWidgetRequest.displayName = 'proto.cms.GetCustomWidgetRequest';
2161
+ }
2162
+ /**
2163
+ * Generated by JsPbCodeGenerator.
2164
+ * @param {Array=} opt_data Optional initial data array, typically from a
2165
+ * server response, or constructed directly in Javascript. The array is used
2166
+ * in place and becomes part of the constructed object. It is not cloned.
2167
+ * If no data is provided, the constructed object will be empty, but still
2168
+ * valid.
2169
+ * @extends {jspb.Message}
2170
+ * @constructor
2171
+ */
2172
+ proto.cms.GetCustomWidgetForUserRequest = function(opt_data) {
2173
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2174
+ };
2175
+ goog.inherits(proto.cms.GetCustomWidgetForUserRequest, jspb.Message);
2176
+ if (goog.DEBUG && !COMPILED) {
2177
+ /**
2178
+ * @public
2179
+ * @override
2180
+ */
2181
+ proto.cms.GetCustomWidgetForUserRequest.displayName = 'proto.cms.GetCustomWidgetForUserRequest';
2182
+ }
2183
+ /**
2184
+ * Generated by JsPbCodeGenerator.
2185
+ * @param {Array=} opt_data Optional initial data array, typically from a
2186
+ * server response, or constructed directly in Javascript. The array is used
2187
+ * in place and becomes part of the constructed object. It is not cloned.
2188
+ * If no data is provided, the constructed object will be empty, but still
2189
+ * valid.
2190
+ * @extends {jspb.Message}
2191
+ * @constructor
2192
+ */
2193
+ proto.cms.CustomWidgetsItemsResponse = function(opt_data) {
2194
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.CustomWidgetsItemsResponse.repeatedFields_, null);
2195
+ };
2196
+ goog.inherits(proto.cms.CustomWidgetsItemsResponse, jspb.Message);
2197
+ if (goog.DEBUG && !COMPILED) {
2198
+ /**
2199
+ * @public
2200
+ * @override
2201
+ */
2202
+ proto.cms.CustomWidgetsItemsResponse.displayName = 'proto.cms.CustomWidgetsItemsResponse';
2203
+ }
2204
+ /**
2205
+ * Generated by JsPbCodeGenerator.
2206
+ * @param {Array=} opt_data Optional initial data array, typically from a
2207
+ * server response, or constructed directly in Javascript. The array is used
2208
+ * in place and becomes part of the constructed object. It is not cloned.
2209
+ * If no data is provided, the constructed object will be empty, but still
2210
+ * valid.
2211
+ * @extends {jspb.Message}
2212
+ * @constructor
2213
+ */
2214
+ proto.cms.CustomWidgetStatusResponse = function(opt_data) {
2215
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2216
+ };
2217
+ goog.inherits(proto.cms.CustomWidgetStatusResponse, jspb.Message);
2218
+ if (goog.DEBUG && !COMPILED) {
2219
+ /**
2220
+ * @public
2221
+ * @override
2222
+ */
2223
+ proto.cms.CustomWidgetStatusResponse.displayName = 'proto.cms.CustomWidgetStatusResponse';
2224
+ }
2049
2225
  /**
2050
2226
  * Generated by JsPbCodeGenerator.
2051
2227
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -27323,6 +27499,2137 @@ proto.cms.TokenWidgetsItemsResponse.prototype.hasTotalItems = function() {
27323
27499
 
27324
27500
 
27325
27501
 
27502
+ /**
27503
+ * List of repeated fields within this message type.
27504
+ * @private {!Array<number>}
27505
+ * @const
27506
+ */
27507
+ proto.cms.CustomWidgetRequest.repeatedFields_ = [5,6];
27508
+
27509
+
27510
+
27511
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27512
+ /**
27513
+ * Creates an object representation of this proto.
27514
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27515
+ * Optional fields that are not set will be set to undefined.
27516
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27517
+ * For the list of reserved names please see:
27518
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27519
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27520
+ * JSPB instance for transitional soy proto support:
27521
+ * http://goto/soy-param-migration
27522
+ * @return {!Object}
27523
+ */
27524
+ proto.cms.CustomWidgetRequest.prototype.toObject = function(opt_includeInstance) {
27525
+ return proto.cms.CustomWidgetRequest.toObject(opt_includeInstance, this);
27526
+ };
27527
+
27528
+
27529
+ /**
27530
+ * Static version of the {@see toObject} method.
27531
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27532
+ * the JSPB instance for transitional soy proto support:
27533
+ * http://goto/soy-param-migration
27534
+ * @param {!proto.cms.CustomWidgetRequest} msg The msg instance to transform.
27535
+ * @return {!Object}
27536
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27537
+ */
27538
+ proto.cms.CustomWidgetRequest.toObject = function(includeInstance, msg) {
27539
+ var f, obj = {
27540
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
27541
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
27542
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
27543
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
27544
+ geoList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
27545
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
27546
+ proto.cms.CustomWidgetRow.toObject, includeInstance)
27547
+ };
27548
+
27549
+ if (includeInstance) {
27550
+ obj.$jspbMessageInstance = msg;
27551
+ }
27552
+ return obj;
27553
+ };
27554
+ }
27555
+
27556
+
27557
+ /**
27558
+ * Deserializes binary data (in protobuf wire format).
27559
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27560
+ * @return {!proto.cms.CustomWidgetRequest}
27561
+ */
27562
+ proto.cms.CustomWidgetRequest.deserializeBinary = function(bytes) {
27563
+ var reader = new jspb.BinaryReader(bytes);
27564
+ var msg = new proto.cms.CustomWidgetRequest;
27565
+ return proto.cms.CustomWidgetRequest.deserializeBinaryFromReader(msg, reader);
27566
+ };
27567
+
27568
+
27569
+ /**
27570
+ * Deserializes binary data (in protobuf wire format) from the
27571
+ * given reader into the given message object.
27572
+ * @param {!proto.cms.CustomWidgetRequest} msg The message object to deserialize into.
27573
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27574
+ * @return {!proto.cms.CustomWidgetRequest}
27575
+ */
27576
+ proto.cms.CustomWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
27577
+ while (reader.nextField()) {
27578
+ if (reader.isEndGroup()) {
27579
+ break;
27580
+ }
27581
+ var field = reader.getFieldNumber();
27582
+ switch (field) {
27583
+ case 1:
27584
+ var value = /** @type {number} */ (reader.readInt32());
27585
+ msg.setId(value);
27586
+ break;
27587
+ case 2:
27588
+ var value = /** @type {string} */ (reader.readString());
27589
+ msg.setTitle(value);
27590
+ break;
27591
+ case 3:
27592
+ var value = /** @type {string} */ (reader.readString());
27593
+ msg.setSlug(value);
27594
+ break;
27595
+ case 4:
27596
+ var value = /** @type {number} */ (reader.readInt32());
27597
+ msg.setIsActive(value);
27598
+ break;
27599
+ case 5:
27600
+ var value = /** @type {string} */ (reader.readString());
27601
+ msg.addGeo(value);
27602
+ break;
27603
+ case 6:
27604
+ var value = new proto.cms.CustomWidgetRow;
27605
+ reader.readMessage(value,proto.cms.CustomWidgetRow.deserializeBinaryFromReader);
27606
+ msg.addItems(value);
27607
+ break;
27608
+ default:
27609
+ reader.skipField();
27610
+ break;
27611
+ }
27612
+ }
27613
+ return msg;
27614
+ };
27615
+
27616
+
27617
+ /**
27618
+ * Serializes the message to binary data (in protobuf wire format).
27619
+ * @return {!Uint8Array}
27620
+ */
27621
+ proto.cms.CustomWidgetRequest.prototype.serializeBinary = function() {
27622
+ var writer = new jspb.BinaryWriter();
27623
+ proto.cms.CustomWidgetRequest.serializeBinaryToWriter(this, writer);
27624
+ return writer.getResultBuffer();
27625
+ };
27626
+
27627
+
27628
+ /**
27629
+ * Serializes the given message to binary data (in protobuf wire
27630
+ * format), writing to the given BinaryWriter.
27631
+ * @param {!proto.cms.CustomWidgetRequest} message
27632
+ * @param {!jspb.BinaryWriter} writer
27633
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27634
+ */
27635
+ proto.cms.CustomWidgetRequest.serializeBinaryToWriter = function(message, writer) {
27636
+ var f = undefined;
27637
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
27638
+ if (f != null) {
27639
+ writer.writeInt32(
27640
+ 1,
27641
+ f
27642
+ );
27643
+ }
27644
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
27645
+ if (f != null) {
27646
+ writer.writeString(
27647
+ 2,
27648
+ f
27649
+ );
27650
+ }
27651
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
27652
+ if (f != null) {
27653
+ writer.writeString(
27654
+ 3,
27655
+ f
27656
+ );
27657
+ }
27658
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
27659
+ if (f != null) {
27660
+ writer.writeInt32(
27661
+ 4,
27662
+ f
27663
+ );
27664
+ }
27665
+ f = message.getGeoList();
27666
+ if (f.length > 0) {
27667
+ writer.writeRepeatedString(
27668
+ 5,
27669
+ f
27670
+ );
27671
+ }
27672
+ f = message.getItemsList();
27673
+ if (f.length > 0) {
27674
+ writer.writeRepeatedMessage(
27675
+ 6,
27676
+ f,
27677
+ proto.cms.CustomWidgetRow.serializeBinaryToWriter
27678
+ );
27679
+ }
27680
+ };
27681
+
27682
+
27683
+ /**
27684
+ * optional int32 id = 1;
27685
+ * @return {number}
27686
+ */
27687
+ proto.cms.CustomWidgetRequest.prototype.getId = function() {
27688
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
27689
+ };
27690
+
27691
+
27692
+ /**
27693
+ * @param {number} value
27694
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27695
+ */
27696
+ proto.cms.CustomWidgetRequest.prototype.setId = function(value) {
27697
+ return jspb.Message.setField(this, 1, value);
27698
+ };
27699
+
27700
+
27701
+ /**
27702
+ * Clears the field making it undefined.
27703
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27704
+ */
27705
+ proto.cms.CustomWidgetRequest.prototype.clearId = function() {
27706
+ return jspb.Message.setField(this, 1, undefined);
27707
+ };
27708
+
27709
+
27710
+ /**
27711
+ * Returns whether this field is set.
27712
+ * @return {boolean}
27713
+ */
27714
+ proto.cms.CustomWidgetRequest.prototype.hasId = function() {
27715
+ return jspb.Message.getField(this, 1) != null;
27716
+ };
27717
+
27718
+
27719
+ /**
27720
+ * optional string title = 2;
27721
+ * @return {string}
27722
+ */
27723
+ proto.cms.CustomWidgetRequest.prototype.getTitle = function() {
27724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
27725
+ };
27726
+
27727
+
27728
+ /**
27729
+ * @param {string} value
27730
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27731
+ */
27732
+ proto.cms.CustomWidgetRequest.prototype.setTitle = function(value) {
27733
+ return jspb.Message.setField(this, 2, value);
27734
+ };
27735
+
27736
+
27737
+ /**
27738
+ * Clears the field making it undefined.
27739
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27740
+ */
27741
+ proto.cms.CustomWidgetRequest.prototype.clearTitle = function() {
27742
+ return jspb.Message.setField(this, 2, undefined);
27743
+ };
27744
+
27745
+
27746
+ /**
27747
+ * Returns whether this field is set.
27748
+ * @return {boolean}
27749
+ */
27750
+ proto.cms.CustomWidgetRequest.prototype.hasTitle = function() {
27751
+ return jspb.Message.getField(this, 2) != null;
27752
+ };
27753
+
27754
+
27755
+ /**
27756
+ * optional string slug = 3;
27757
+ * @return {string}
27758
+ */
27759
+ proto.cms.CustomWidgetRequest.prototype.getSlug = function() {
27760
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
27761
+ };
27762
+
27763
+
27764
+ /**
27765
+ * @param {string} value
27766
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27767
+ */
27768
+ proto.cms.CustomWidgetRequest.prototype.setSlug = function(value) {
27769
+ return jspb.Message.setField(this, 3, value);
27770
+ };
27771
+
27772
+
27773
+ /**
27774
+ * Clears the field making it undefined.
27775
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27776
+ */
27777
+ proto.cms.CustomWidgetRequest.prototype.clearSlug = function() {
27778
+ return jspb.Message.setField(this, 3, undefined);
27779
+ };
27780
+
27781
+
27782
+ /**
27783
+ * Returns whether this field is set.
27784
+ * @return {boolean}
27785
+ */
27786
+ proto.cms.CustomWidgetRequest.prototype.hasSlug = function() {
27787
+ return jspb.Message.getField(this, 3) != null;
27788
+ };
27789
+
27790
+
27791
+ /**
27792
+ * optional int32 is_active = 4;
27793
+ * @return {number}
27794
+ */
27795
+ proto.cms.CustomWidgetRequest.prototype.getIsActive = function() {
27796
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
27797
+ };
27798
+
27799
+
27800
+ /**
27801
+ * @param {number} value
27802
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27803
+ */
27804
+ proto.cms.CustomWidgetRequest.prototype.setIsActive = function(value) {
27805
+ return jspb.Message.setField(this, 4, value);
27806
+ };
27807
+
27808
+
27809
+ /**
27810
+ * Clears the field making it undefined.
27811
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27812
+ */
27813
+ proto.cms.CustomWidgetRequest.prototype.clearIsActive = function() {
27814
+ return jspb.Message.setField(this, 4, undefined);
27815
+ };
27816
+
27817
+
27818
+ /**
27819
+ * Returns whether this field is set.
27820
+ * @return {boolean}
27821
+ */
27822
+ proto.cms.CustomWidgetRequest.prototype.hasIsActive = function() {
27823
+ return jspb.Message.getField(this, 4) != null;
27824
+ };
27825
+
27826
+
27827
+ /**
27828
+ * repeated string geo = 5;
27829
+ * @return {!Array<string>}
27830
+ */
27831
+ proto.cms.CustomWidgetRequest.prototype.getGeoList = function() {
27832
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
27833
+ };
27834
+
27835
+
27836
+ /**
27837
+ * @param {!Array<string>} value
27838
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27839
+ */
27840
+ proto.cms.CustomWidgetRequest.prototype.setGeoList = function(value) {
27841
+ return jspb.Message.setField(this, 5, value || []);
27842
+ };
27843
+
27844
+
27845
+ /**
27846
+ * @param {string} value
27847
+ * @param {number=} opt_index
27848
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27849
+ */
27850
+ proto.cms.CustomWidgetRequest.prototype.addGeo = function(value, opt_index) {
27851
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
27852
+ };
27853
+
27854
+
27855
+ /**
27856
+ * Clears the list making it empty but non-null.
27857
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27858
+ */
27859
+ proto.cms.CustomWidgetRequest.prototype.clearGeoList = function() {
27860
+ return this.setGeoList([]);
27861
+ };
27862
+
27863
+
27864
+ /**
27865
+ * repeated CustomWidgetRow items = 6;
27866
+ * @return {!Array<!proto.cms.CustomWidgetRow>}
27867
+ */
27868
+ proto.cms.CustomWidgetRequest.prototype.getItemsList = function() {
27869
+ return /** @type{!Array<!proto.cms.CustomWidgetRow>} */ (
27870
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.CustomWidgetRow, 6));
27871
+ };
27872
+
27873
+
27874
+ /**
27875
+ * @param {!Array<!proto.cms.CustomWidgetRow>} value
27876
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27877
+ */
27878
+ proto.cms.CustomWidgetRequest.prototype.setItemsList = function(value) {
27879
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
27880
+ };
27881
+
27882
+
27883
+ /**
27884
+ * @param {!proto.cms.CustomWidgetRow=} opt_value
27885
+ * @param {number=} opt_index
27886
+ * @return {!proto.cms.CustomWidgetRow}
27887
+ */
27888
+ proto.cms.CustomWidgetRequest.prototype.addItems = function(opt_value, opt_index) {
27889
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cms.CustomWidgetRow, opt_index);
27890
+ };
27891
+
27892
+
27893
+ /**
27894
+ * Clears the list making it empty but non-null.
27895
+ * @return {!proto.cms.CustomWidgetRequest} returns this
27896
+ */
27897
+ proto.cms.CustomWidgetRequest.prototype.clearItemsList = function() {
27898
+ return this.setItemsList([]);
27899
+ };
27900
+
27901
+
27902
+
27903
+
27904
+
27905
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27906
+ /**
27907
+ * Creates an object representation of this proto.
27908
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27909
+ * Optional fields that are not set will be set to undefined.
27910
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27911
+ * For the list of reserved names please see:
27912
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27913
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27914
+ * JSPB instance for transitional soy proto support:
27915
+ * http://goto/soy-param-migration
27916
+ * @return {!Object}
27917
+ */
27918
+ proto.cms.CustomWidgetRow.prototype.toObject = function(opt_includeInstance) {
27919
+ return proto.cms.CustomWidgetRow.toObject(opt_includeInstance, this);
27920
+ };
27921
+
27922
+
27923
+ /**
27924
+ * Static version of the {@see toObject} method.
27925
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27926
+ * the JSPB instance for transitional soy proto support:
27927
+ * http://goto/soy-param-migration
27928
+ * @param {!proto.cms.CustomWidgetRow} msg The msg instance to transform.
27929
+ * @return {!Object}
27930
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27931
+ */
27932
+ proto.cms.CustomWidgetRow.toObject = function(includeInstance, msg) {
27933
+ var f, obj = {
27934
+ itemType: jspb.Message.getFieldWithDefault(msg, 1, ""),
27935
+ priorityOrder: jspb.Message.getFieldWithDefault(msg, 2, 0),
27936
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
27937
+ };
27938
+
27939
+ if (includeInstance) {
27940
+ obj.$jspbMessageInstance = msg;
27941
+ }
27942
+ return obj;
27943
+ };
27944
+ }
27945
+
27946
+
27947
+ /**
27948
+ * Deserializes binary data (in protobuf wire format).
27949
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27950
+ * @return {!proto.cms.CustomWidgetRow}
27951
+ */
27952
+ proto.cms.CustomWidgetRow.deserializeBinary = function(bytes) {
27953
+ var reader = new jspb.BinaryReader(bytes);
27954
+ var msg = new proto.cms.CustomWidgetRow;
27955
+ return proto.cms.CustomWidgetRow.deserializeBinaryFromReader(msg, reader);
27956
+ };
27957
+
27958
+
27959
+ /**
27960
+ * Deserializes binary data (in protobuf wire format) from the
27961
+ * given reader into the given message object.
27962
+ * @param {!proto.cms.CustomWidgetRow} msg The message object to deserialize into.
27963
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27964
+ * @return {!proto.cms.CustomWidgetRow}
27965
+ */
27966
+ proto.cms.CustomWidgetRow.deserializeBinaryFromReader = function(msg, reader) {
27967
+ while (reader.nextField()) {
27968
+ if (reader.isEndGroup()) {
27969
+ break;
27970
+ }
27971
+ var field = reader.getFieldNumber();
27972
+ switch (field) {
27973
+ case 1:
27974
+ var value = /** @type {string} */ (reader.readString());
27975
+ msg.setItemType(value);
27976
+ break;
27977
+ case 2:
27978
+ var value = /** @type {number} */ (reader.readInt32());
27979
+ msg.setPriorityOrder(value);
27980
+ break;
27981
+ case 3:
27982
+ var value = /** @type {string} */ (reader.readString());
27983
+ msg.setConfig(value);
27984
+ break;
27985
+ default:
27986
+ reader.skipField();
27987
+ break;
27988
+ }
27989
+ }
27990
+ return msg;
27991
+ };
27992
+
27993
+
27994
+ /**
27995
+ * Serializes the message to binary data (in protobuf wire format).
27996
+ * @return {!Uint8Array}
27997
+ */
27998
+ proto.cms.CustomWidgetRow.prototype.serializeBinary = function() {
27999
+ var writer = new jspb.BinaryWriter();
28000
+ proto.cms.CustomWidgetRow.serializeBinaryToWriter(this, writer);
28001
+ return writer.getResultBuffer();
28002
+ };
28003
+
28004
+
28005
+ /**
28006
+ * Serializes the given message to binary data (in protobuf wire
28007
+ * format), writing to the given BinaryWriter.
28008
+ * @param {!proto.cms.CustomWidgetRow} message
28009
+ * @param {!jspb.BinaryWriter} writer
28010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28011
+ */
28012
+ proto.cms.CustomWidgetRow.serializeBinaryToWriter = function(message, writer) {
28013
+ var f = undefined;
28014
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
28015
+ if (f != null) {
28016
+ writer.writeString(
28017
+ 1,
28018
+ f
28019
+ );
28020
+ }
28021
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
28022
+ if (f != null) {
28023
+ writer.writeInt32(
28024
+ 2,
28025
+ f
28026
+ );
28027
+ }
28028
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
28029
+ if (f != null) {
28030
+ writer.writeString(
28031
+ 3,
28032
+ f
28033
+ );
28034
+ }
28035
+ };
28036
+
28037
+
28038
+ /**
28039
+ * optional string item_type = 1;
28040
+ * @return {string}
28041
+ */
28042
+ proto.cms.CustomWidgetRow.prototype.getItemType = function() {
28043
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28044
+ };
28045
+
28046
+
28047
+ /**
28048
+ * @param {string} value
28049
+ * @return {!proto.cms.CustomWidgetRow} returns this
28050
+ */
28051
+ proto.cms.CustomWidgetRow.prototype.setItemType = function(value) {
28052
+ return jspb.Message.setField(this, 1, value);
28053
+ };
28054
+
28055
+
28056
+ /**
28057
+ * Clears the field making it undefined.
28058
+ * @return {!proto.cms.CustomWidgetRow} returns this
28059
+ */
28060
+ proto.cms.CustomWidgetRow.prototype.clearItemType = function() {
28061
+ return jspb.Message.setField(this, 1, undefined);
28062
+ };
28063
+
28064
+
28065
+ /**
28066
+ * Returns whether this field is set.
28067
+ * @return {boolean}
28068
+ */
28069
+ proto.cms.CustomWidgetRow.prototype.hasItemType = function() {
28070
+ return jspb.Message.getField(this, 1) != null;
28071
+ };
28072
+
28073
+
28074
+ /**
28075
+ * optional int32 priority_order = 2;
28076
+ * @return {number}
28077
+ */
28078
+ proto.cms.CustomWidgetRow.prototype.getPriorityOrder = function() {
28079
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
28080
+ };
28081
+
28082
+
28083
+ /**
28084
+ * @param {number} value
28085
+ * @return {!proto.cms.CustomWidgetRow} returns this
28086
+ */
28087
+ proto.cms.CustomWidgetRow.prototype.setPriorityOrder = function(value) {
28088
+ return jspb.Message.setField(this, 2, value);
28089
+ };
28090
+
28091
+
28092
+ /**
28093
+ * Clears the field making it undefined.
28094
+ * @return {!proto.cms.CustomWidgetRow} returns this
28095
+ */
28096
+ proto.cms.CustomWidgetRow.prototype.clearPriorityOrder = function() {
28097
+ return jspb.Message.setField(this, 2, undefined);
28098
+ };
28099
+
28100
+
28101
+ /**
28102
+ * Returns whether this field is set.
28103
+ * @return {boolean}
28104
+ */
28105
+ proto.cms.CustomWidgetRow.prototype.hasPriorityOrder = function() {
28106
+ return jspb.Message.getField(this, 2) != null;
28107
+ };
28108
+
28109
+
28110
+ /**
28111
+ * optional string config = 3;
28112
+ * @return {string}
28113
+ */
28114
+ proto.cms.CustomWidgetRow.prototype.getConfig = function() {
28115
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28116
+ };
28117
+
28118
+
28119
+ /**
28120
+ * @param {string} value
28121
+ * @return {!proto.cms.CustomWidgetRow} returns this
28122
+ */
28123
+ proto.cms.CustomWidgetRow.prototype.setConfig = function(value) {
28124
+ return jspb.Message.setField(this, 3, value);
28125
+ };
28126
+
28127
+
28128
+ /**
28129
+ * Clears the field making it undefined.
28130
+ * @return {!proto.cms.CustomWidgetRow} returns this
28131
+ */
28132
+ proto.cms.CustomWidgetRow.prototype.clearConfig = function() {
28133
+ return jspb.Message.setField(this, 3, undefined);
28134
+ };
28135
+
28136
+
28137
+ /**
28138
+ * Returns whether this field is set.
28139
+ * @return {boolean}
28140
+ */
28141
+ proto.cms.CustomWidgetRow.prototype.hasConfig = function() {
28142
+ return jspb.Message.getField(this, 3) != null;
28143
+ };
28144
+
28145
+
28146
+
28147
+ /**
28148
+ * List of repeated fields within this message type.
28149
+ * @private {!Array<number>}
28150
+ * @const
28151
+ */
28152
+ proto.cms.CustomWidgetItem.repeatedFields_ = [5,6];
28153
+
28154
+
28155
+
28156
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28157
+ /**
28158
+ * Creates an object representation of this proto.
28159
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28160
+ * Optional fields that are not set will be set to undefined.
28161
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28162
+ * For the list of reserved names please see:
28163
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28164
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28165
+ * JSPB instance for transitional soy proto support:
28166
+ * http://goto/soy-param-migration
28167
+ * @return {!Object}
28168
+ */
28169
+ proto.cms.CustomWidgetItem.prototype.toObject = function(opt_includeInstance) {
28170
+ return proto.cms.CustomWidgetItem.toObject(opt_includeInstance, this);
28171
+ };
28172
+
28173
+
28174
+ /**
28175
+ * Static version of the {@see toObject} method.
28176
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28177
+ * the JSPB instance for transitional soy proto support:
28178
+ * http://goto/soy-param-migration
28179
+ * @param {!proto.cms.CustomWidgetItem} msg The msg instance to transform.
28180
+ * @return {!Object}
28181
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28182
+ */
28183
+ proto.cms.CustomWidgetItem.toObject = function(includeInstance, msg) {
28184
+ var f, obj = {
28185
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
28186
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
28187
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
28188
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
28189
+ geoList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
28190
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
28191
+ proto.cms.CustomWidgetRow.toObject, includeInstance),
28192
+ createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
28193
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 8, "")
28194
+ };
28195
+
28196
+ if (includeInstance) {
28197
+ obj.$jspbMessageInstance = msg;
28198
+ }
28199
+ return obj;
28200
+ };
28201
+ }
28202
+
28203
+
28204
+ /**
28205
+ * Deserializes binary data (in protobuf wire format).
28206
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28207
+ * @return {!proto.cms.CustomWidgetItem}
28208
+ */
28209
+ proto.cms.CustomWidgetItem.deserializeBinary = function(bytes) {
28210
+ var reader = new jspb.BinaryReader(bytes);
28211
+ var msg = new proto.cms.CustomWidgetItem;
28212
+ return proto.cms.CustomWidgetItem.deserializeBinaryFromReader(msg, reader);
28213
+ };
28214
+
28215
+
28216
+ /**
28217
+ * Deserializes binary data (in protobuf wire format) from the
28218
+ * given reader into the given message object.
28219
+ * @param {!proto.cms.CustomWidgetItem} msg The message object to deserialize into.
28220
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28221
+ * @return {!proto.cms.CustomWidgetItem}
28222
+ */
28223
+ proto.cms.CustomWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
28224
+ while (reader.nextField()) {
28225
+ if (reader.isEndGroup()) {
28226
+ break;
28227
+ }
28228
+ var field = reader.getFieldNumber();
28229
+ switch (field) {
28230
+ case 1:
28231
+ var value = /** @type {number} */ (reader.readInt32());
28232
+ msg.setId(value);
28233
+ break;
28234
+ case 2:
28235
+ var value = /** @type {string} */ (reader.readString());
28236
+ msg.setTitle(value);
28237
+ break;
28238
+ case 3:
28239
+ var value = /** @type {string} */ (reader.readString());
28240
+ msg.setSlug(value);
28241
+ break;
28242
+ case 4:
28243
+ var value = /** @type {number} */ (reader.readInt32());
28244
+ msg.setIsActive(value);
28245
+ break;
28246
+ case 5:
28247
+ var value = /** @type {string} */ (reader.readString());
28248
+ msg.addGeo(value);
28249
+ break;
28250
+ case 6:
28251
+ var value = new proto.cms.CustomWidgetRow;
28252
+ reader.readMessage(value,proto.cms.CustomWidgetRow.deserializeBinaryFromReader);
28253
+ msg.addItems(value);
28254
+ break;
28255
+ case 7:
28256
+ var value = /** @type {string} */ (reader.readString());
28257
+ msg.setCreatedAt(value);
28258
+ break;
28259
+ case 8:
28260
+ var value = /** @type {string} */ (reader.readString());
28261
+ msg.setUpdatedAt(value);
28262
+ break;
28263
+ default:
28264
+ reader.skipField();
28265
+ break;
28266
+ }
28267
+ }
28268
+ return msg;
28269
+ };
28270
+
28271
+
28272
+ /**
28273
+ * Serializes the message to binary data (in protobuf wire format).
28274
+ * @return {!Uint8Array}
28275
+ */
28276
+ proto.cms.CustomWidgetItem.prototype.serializeBinary = function() {
28277
+ var writer = new jspb.BinaryWriter();
28278
+ proto.cms.CustomWidgetItem.serializeBinaryToWriter(this, writer);
28279
+ return writer.getResultBuffer();
28280
+ };
28281
+
28282
+
28283
+ /**
28284
+ * Serializes the given message to binary data (in protobuf wire
28285
+ * format), writing to the given BinaryWriter.
28286
+ * @param {!proto.cms.CustomWidgetItem} message
28287
+ * @param {!jspb.BinaryWriter} writer
28288
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28289
+ */
28290
+ proto.cms.CustomWidgetItem.serializeBinaryToWriter = function(message, writer) {
28291
+ var f = undefined;
28292
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
28293
+ if (f != null) {
28294
+ writer.writeInt32(
28295
+ 1,
28296
+ f
28297
+ );
28298
+ }
28299
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
28300
+ if (f != null) {
28301
+ writer.writeString(
28302
+ 2,
28303
+ f
28304
+ );
28305
+ }
28306
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
28307
+ if (f != null) {
28308
+ writer.writeString(
28309
+ 3,
28310
+ f
28311
+ );
28312
+ }
28313
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
28314
+ if (f != null) {
28315
+ writer.writeInt32(
28316
+ 4,
28317
+ f
28318
+ );
28319
+ }
28320
+ f = message.getGeoList();
28321
+ if (f.length > 0) {
28322
+ writer.writeRepeatedString(
28323
+ 5,
28324
+ f
28325
+ );
28326
+ }
28327
+ f = message.getItemsList();
28328
+ if (f.length > 0) {
28329
+ writer.writeRepeatedMessage(
28330
+ 6,
28331
+ f,
28332
+ proto.cms.CustomWidgetRow.serializeBinaryToWriter
28333
+ );
28334
+ }
28335
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
28336
+ if (f != null) {
28337
+ writer.writeString(
28338
+ 7,
28339
+ f
28340
+ );
28341
+ }
28342
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
28343
+ if (f != null) {
28344
+ writer.writeString(
28345
+ 8,
28346
+ f
28347
+ );
28348
+ }
28349
+ };
28350
+
28351
+
28352
+ /**
28353
+ * optional int32 id = 1;
28354
+ * @return {number}
28355
+ */
28356
+ proto.cms.CustomWidgetItem.prototype.getId = function() {
28357
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28358
+ };
28359
+
28360
+
28361
+ /**
28362
+ * @param {number} value
28363
+ * @return {!proto.cms.CustomWidgetItem} returns this
28364
+ */
28365
+ proto.cms.CustomWidgetItem.prototype.setId = function(value) {
28366
+ return jspb.Message.setField(this, 1, value);
28367
+ };
28368
+
28369
+
28370
+ /**
28371
+ * Clears the field making it undefined.
28372
+ * @return {!proto.cms.CustomWidgetItem} returns this
28373
+ */
28374
+ proto.cms.CustomWidgetItem.prototype.clearId = function() {
28375
+ return jspb.Message.setField(this, 1, undefined);
28376
+ };
28377
+
28378
+
28379
+ /**
28380
+ * Returns whether this field is set.
28381
+ * @return {boolean}
28382
+ */
28383
+ proto.cms.CustomWidgetItem.prototype.hasId = function() {
28384
+ return jspb.Message.getField(this, 1) != null;
28385
+ };
28386
+
28387
+
28388
+ /**
28389
+ * optional string title = 2;
28390
+ * @return {string}
28391
+ */
28392
+ proto.cms.CustomWidgetItem.prototype.getTitle = function() {
28393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28394
+ };
28395
+
28396
+
28397
+ /**
28398
+ * @param {string} value
28399
+ * @return {!proto.cms.CustomWidgetItem} returns this
28400
+ */
28401
+ proto.cms.CustomWidgetItem.prototype.setTitle = function(value) {
28402
+ return jspb.Message.setField(this, 2, value);
28403
+ };
28404
+
28405
+
28406
+ /**
28407
+ * Clears the field making it undefined.
28408
+ * @return {!proto.cms.CustomWidgetItem} returns this
28409
+ */
28410
+ proto.cms.CustomWidgetItem.prototype.clearTitle = function() {
28411
+ return jspb.Message.setField(this, 2, undefined);
28412
+ };
28413
+
28414
+
28415
+ /**
28416
+ * Returns whether this field is set.
28417
+ * @return {boolean}
28418
+ */
28419
+ proto.cms.CustomWidgetItem.prototype.hasTitle = function() {
28420
+ return jspb.Message.getField(this, 2) != null;
28421
+ };
28422
+
28423
+
28424
+ /**
28425
+ * optional string slug = 3;
28426
+ * @return {string}
28427
+ */
28428
+ proto.cms.CustomWidgetItem.prototype.getSlug = function() {
28429
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28430
+ };
28431
+
28432
+
28433
+ /**
28434
+ * @param {string} value
28435
+ * @return {!proto.cms.CustomWidgetItem} returns this
28436
+ */
28437
+ proto.cms.CustomWidgetItem.prototype.setSlug = function(value) {
28438
+ return jspb.Message.setField(this, 3, value);
28439
+ };
28440
+
28441
+
28442
+ /**
28443
+ * Clears the field making it undefined.
28444
+ * @return {!proto.cms.CustomWidgetItem} returns this
28445
+ */
28446
+ proto.cms.CustomWidgetItem.prototype.clearSlug = function() {
28447
+ return jspb.Message.setField(this, 3, undefined);
28448
+ };
28449
+
28450
+
28451
+ /**
28452
+ * Returns whether this field is set.
28453
+ * @return {boolean}
28454
+ */
28455
+ proto.cms.CustomWidgetItem.prototype.hasSlug = function() {
28456
+ return jspb.Message.getField(this, 3) != null;
28457
+ };
28458
+
28459
+
28460
+ /**
28461
+ * optional int32 is_active = 4;
28462
+ * @return {number}
28463
+ */
28464
+ proto.cms.CustomWidgetItem.prototype.getIsActive = function() {
28465
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
28466
+ };
28467
+
28468
+
28469
+ /**
28470
+ * @param {number} value
28471
+ * @return {!proto.cms.CustomWidgetItem} returns this
28472
+ */
28473
+ proto.cms.CustomWidgetItem.prototype.setIsActive = function(value) {
28474
+ return jspb.Message.setField(this, 4, value);
28475
+ };
28476
+
28477
+
28478
+ /**
28479
+ * Clears the field making it undefined.
28480
+ * @return {!proto.cms.CustomWidgetItem} returns this
28481
+ */
28482
+ proto.cms.CustomWidgetItem.prototype.clearIsActive = function() {
28483
+ return jspb.Message.setField(this, 4, undefined);
28484
+ };
28485
+
28486
+
28487
+ /**
28488
+ * Returns whether this field is set.
28489
+ * @return {boolean}
28490
+ */
28491
+ proto.cms.CustomWidgetItem.prototype.hasIsActive = function() {
28492
+ return jspb.Message.getField(this, 4) != null;
28493
+ };
28494
+
28495
+
28496
+ /**
28497
+ * repeated string geo = 5;
28498
+ * @return {!Array<string>}
28499
+ */
28500
+ proto.cms.CustomWidgetItem.prototype.getGeoList = function() {
28501
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
28502
+ };
28503
+
28504
+
28505
+ /**
28506
+ * @param {!Array<string>} value
28507
+ * @return {!proto.cms.CustomWidgetItem} returns this
28508
+ */
28509
+ proto.cms.CustomWidgetItem.prototype.setGeoList = function(value) {
28510
+ return jspb.Message.setField(this, 5, value || []);
28511
+ };
28512
+
28513
+
28514
+ /**
28515
+ * @param {string} value
28516
+ * @param {number=} opt_index
28517
+ * @return {!proto.cms.CustomWidgetItem} returns this
28518
+ */
28519
+ proto.cms.CustomWidgetItem.prototype.addGeo = function(value, opt_index) {
28520
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
28521
+ };
28522
+
28523
+
28524
+ /**
28525
+ * Clears the list making it empty but non-null.
28526
+ * @return {!proto.cms.CustomWidgetItem} returns this
28527
+ */
28528
+ proto.cms.CustomWidgetItem.prototype.clearGeoList = function() {
28529
+ return this.setGeoList([]);
28530
+ };
28531
+
28532
+
28533
+ /**
28534
+ * repeated CustomWidgetRow items = 6;
28535
+ * @return {!Array<!proto.cms.CustomWidgetRow>}
28536
+ */
28537
+ proto.cms.CustomWidgetItem.prototype.getItemsList = function() {
28538
+ return /** @type{!Array<!proto.cms.CustomWidgetRow>} */ (
28539
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.CustomWidgetRow, 6));
28540
+ };
28541
+
28542
+
28543
+ /**
28544
+ * @param {!Array<!proto.cms.CustomWidgetRow>} value
28545
+ * @return {!proto.cms.CustomWidgetItem} returns this
28546
+ */
28547
+ proto.cms.CustomWidgetItem.prototype.setItemsList = function(value) {
28548
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
28549
+ };
28550
+
28551
+
28552
+ /**
28553
+ * @param {!proto.cms.CustomWidgetRow=} opt_value
28554
+ * @param {number=} opt_index
28555
+ * @return {!proto.cms.CustomWidgetRow}
28556
+ */
28557
+ proto.cms.CustomWidgetItem.prototype.addItems = function(opt_value, opt_index) {
28558
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cms.CustomWidgetRow, opt_index);
28559
+ };
28560
+
28561
+
28562
+ /**
28563
+ * Clears the list making it empty but non-null.
28564
+ * @return {!proto.cms.CustomWidgetItem} returns this
28565
+ */
28566
+ proto.cms.CustomWidgetItem.prototype.clearItemsList = function() {
28567
+ return this.setItemsList([]);
28568
+ };
28569
+
28570
+
28571
+ /**
28572
+ * optional string created_at = 7;
28573
+ * @return {string}
28574
+ */
28575
+ proto.cms.CustomWidgetItem.prototype.getCreatedAt = function() {
28576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
28577
+ };
28578
+
28579
+
28580
+ /**
28581
+ * @param {string} value
28582
+ * @return {!proto.cms.CustomWidgetItem} returns this
28583
+ */
28584
+ proto.cms.CustomWidgetItem.prototype.setCreatedAt = function(value) {
28585
+ return jspb.Message.setField(this, 7, value);
28586
+ };
28587
+
28588
+
28589
+ /**
28590
+ * Clears the field making it undefined.
28591
+ * @return {!proto.cms.CustomWidgetItem} returns this
28592
+ */
28593
+ proto.cms.CustomWidgetItem.prototype.clearCreatedAt = function() {
28594
+ return jspb.Message.setField(this, 7, undefined);
28595
+ };
28596
+
28597
+
28598
+ /**
28599
+ * Returns whether this field is set.
28600
+ * @return {boolean}
28601
+ */
28602
+ proto.cms.CustomWidgetItem.prototype.hasCreatedAt = function() {
28603
+ return jspb.Message.getField(this, 7) != null;
28604
+ };
28605
+
28606
+
28607
+ /**
28608
+ * optional string updated_at = 8;
28609
+ * @return {string}
28610
+ */
28611
+ proto.cms.CustomWidgetItem.prototype.getUpdatedAt = function() {
28612
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
28613
+ };
28614
+
28615
+
28616
+ /**
28617
+ * @param {string} value
28618
+ * @return {!proto.cms.CustomWidgetItem} returns this
28619
+ */
28620
+ proto.cms.CustomWidgetItem.prototype.setUpdatedAt = function(value) {
28621
+ return jspb.Message.setField(this, 8, value);
28622
+ };
28623
+
28624
+
28625
+ /**
28626
+ * Clears the field making it undefined.
28627
+ * @return {!proto.cms.CustomWidgetItem} returns this
28628
+ */
28629
+ proto.cms.CustomWidgetItem.prototype.clearUpdatedAt = function() {
28630
+ return jspb.Message.setField(this, 8, undefined);
28631
+ };
28632
+
28633
+
28634
+ /**
28635
+ * Returns whether this field is set.
28636
+ * @return {boolean}
28637
+ */
28638
+ proto.cms.CustomWidgetItem.prototype.hasUpdatedAt = function() {
28639
+ return jspb.Message.getField(this, 8) != null;
28640
+ };
28641
+
28642
+
28643
+
28644
+
28645
+
28646
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28647
+ /**
28648
+ * Creates an object representation of this proto.
28649
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28650
+ * Optional fields that are not set will be set to undefined.
28651
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28652
+ * For the list of reserved names please see:
28653
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28654
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28655
+ * JSPB instance for transitional soy proto support:
28656
+ * http://goto/soy-param-migration
28657
+ * @return {!Object}
28658
+ */
28659
+ proto.cms.CustomWidgetResponse.prototype.toObject = function(opt_includeInstance) {
28660
+ return proto.cms.CustomWidgetResponse.toObject(opt_includeInstance, this);
28661
+ };
28662
+
28663
+
28664
+ /**
28665
+ * Static version of the {@see toObject} method.
28666
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28667
+ * the JSPB instance for transitional soy proto support:
28668
+ * http://goto/soy-param-migration
28669
+ * @param {!proto.cms.CustomWidgetResponse} msg The msg instance to transform.
28670
+ * @return {!Object}
28671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28672
+ */
28673
+ proto.cms.CustomWidgetResponse.toObject = function(includeInstance, msg) {
28674
+ var f, obj = {
28675
+ data: (f = msg.getData()) && proto.cms.CustomWidgetItem.toObject(includeInstance, f)
28676
+ };
28677
+
28678
+ if (includeInstance) {
28679
+ obj.$jspbMessageInstance = msg;
28680
+ }
28681
+ return obj;
28682
+ };
28683
+ }
28684
+
28685
+
28686
+ /**
28687
+ * Deserializes binary data (in protobuf wire format).
28688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28689
+ * @return {!proto.cms.CustomWidgetResponse}
28690
+ */
28691
+ proto.cms.CustomWidgetResponse.deserializeBinary = function(bytes) {
28692
+ var reader = new jspb.BinaryReader(bytes);
28693
+ var msg = new proto.cms.CustomWidgetResponse;
28694
+ return proto.cms.CustomWidgetResponse.deserializeBinaryFromReader(msg, reader);
28695
+ };
28696
+
28697
+
28698
+ /**
28699
+ * Deserializes binary data (in protobuf wire format) from the
28700
+ * given reader into the given message object.
28701
+ * @param {!proto.cms.CustomWidgetResponse} msg The message object to deserialize into.
28702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28703
+ * @return {!proto.cms.CustomWidgetResponse}
28704
+ */
28705
+ proto.cms.CustomWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
28706
+ while (reader.nextField()) {
28707
+ if (reader.isEndGroup()) {
28708
+ break;
28709
+ }
28710
+ var field = reader.getFieldNumber();
28711
+ switch (field) {
28712
+ case 1:
28713
+ var value = new proto.cms.CustomWidgetItem;
28714
+ reader.readMessage(value,proto.cms.CustomWidgetItem.deserializeBinaryFromReader);
28715
+ msg.setData(value);
28716
+ break;
28717
+ default:
28718
+ reader.skipField();
28719
+ break;
28720
+ }
28721
+ }
28722
+ return msg;
28723
+ };
28724
+
28725
+
28726
+ /**
28727
+ * Serializes the message to binary data (in protobuf wire format).
28728
+ * @return {!Uint8Array}
28729
+ */
28730
+ proto.cms.CustomWidgetResponse.prototype.serializeBinary = function() {
28731
+ var writer = new jspb.BinaryWriter();
28732
+ proto.cms.CustomWidgetResponse.serializeBinaryToWriter(this, writer);
28733
+ return writer.getResultBuffer();
28734
+ };
28735
+
28736
+
28737
+ /**
28738
+ * Serializes the given message to binary data (in protobuf wire
28739
+ * format), writing to the given BinaryWriter.
28740
+ * @param {!proto.cms.CustomWidgetResponse} message
28741
+ * @param {!jspb.BinaryWriter} writer
28742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28743
+ */
28744
+ proto.cms.CustomWidgetResponse.serializeBinaryToWriter = function(message, writer) {
28745
+ var f = undefined;
28746
+ f = message.getData();
28747
+ if (f != null) {
28748
+ writer.writeMessage(
28749
+ 1,
28750
+ f,
28751
+ proto.cms.CustomWidgetItem.serializeBinaryToWriter
28752
+ );
28753
+ }
28754
+ };
28755
+
28756
+
28757
+ /**
28758
+ * optional CustomWidgetItem data = 1;
28759
+ * @return {?proto.cms.CustomWidgetItem}
28760
+ */
28761
+ proto.cms.CustomWidgetResponse.prototype.getData = function() {
28762
+ return /** @type{?proto.cms.CustomWidgetItem} */ (
28763
+ jspb.Message.getWrapperField(this, proto.cms.CustomWidgetItem, 1));
28764
+ };
28765
+
28766
+
28767
+ /**
28768
+ * @param {?proto.cms.CustomWidgetItem|undefined} value
28769
+ * @return {!proto.cms.CustomWidgetResponse} returns this
28770
+ */
28771
+ proto.cms.CustomWidgetResponse.prototype.setData = function(value) {
28772
+ return jspb.Message.setWrapperField(this, 1, value);
28773
+ };
28774
+
28775
+
28776
+ /**
28777
+ * Clears the message field making it undefined.
28778
+ * @return {!proto.cms.CustomWidgetResponse} returns this
28779
+ */
28780
+ proto.cms.CustomWidgetResponse.prototype.clearData = function() {
28781
+ return this.setData(undefined);
28782
+ };
28783
+
28784
+
28785
+ /**
28786
+ * Returns whether this field is set.
28787
+ * @return {boolean}
28788
+ */
28789
+ proto.cms.CustomWidgetResponse.prototype.hasData = function() {
28790
+ return jspb.Message.getField(this, 1) != null;
28791
+ };
28792
+
28793
+
28794
+
28795
+
28796
+
28797
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28798
+ /**
28799
+ * Creates an object representation of this proto.
28800
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28801
+ * Optional fields that are not set will be set to undefined.
28802
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28803
+ * For the list of reserved names please see:
28804
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28805
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28806
+ * JSPB instance for transitional soy proto support:
28807
+ * http://goto/soy-param-migration
28808
+ * @return {!Object}
28809
+ */
28810
+ proto.cms.GetCustomWidgetRequest.prototype.toObject = function(opt_includeInstance) {
28811
+ return proto.cms.GetCustomWidgetRequest.toObject(opt_includeInstance, this);
28812
+ };
28813
+
28814
+
28815
+ /**
28816
+ * Static version of the {@see toObject} method.
28817
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28818
+ * the JSPB instance for transitional soy proto support:
28819
+ * http://goto/soy-param-migration
28820
+ * @param {!proto.cms.GetCustomWidgetRequest} msg The msg instance to transform.
28821
+ * @return {!Object}
28822
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28823
+ */
28824
+ proto.cms.GetCustomWidgetRequest.toObject = function(includeInstance, msg) {
28825
+ var f, obj = {
28826
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
28827
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
28828
+ };
28829
+
28830
+ if (includeInstance) {
28831
+ obj.$jspbMessageInstance = msg;
28832
+ }
28833
+ return obj;
28834
+ };
28835
+ }
28836
+
28837
+
28838
+ /**
28839
+ * Deserializes binary data (in protobuf wire format).
28840
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28841
+ * @return {!proto.cms.GetCustomWidgetRequest}
28842
+ */
28843
+ proto.cms.GetCustomWidgetRequest.deserializeBinary = function(bytes) {
28844
+ var reader = new jspb.BinaryReader(bytes);
28845
+ var msg = new proto.cms.GetCustomWidgetRequest;
28846
+ return proto.cms.GetCustomWidgetRequest.deserializeBinaryFromReader(msg, reader);
28847
+ };
28848
+
28849
+
28850
+ /**
28851
+ * Deserializes binary data (in protobuf wire format) from the
28852
+ * given reader into the given message object.
28853
+ * @param {!proto.cms.GetCustomWidgetRequest} msg The message object to deserialize into.
28854
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28855
+ * @return {!proto.cms.GetCustomWidgetRequest}
28856
+ */
28857
+ proto.cms.GetCustomWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
28858
+ while (reader.nextField()) {
28859
+ if (reader.isEndGroup()) {
28860
+ break;
28861
+ }
28862
+ var field = reader.getFieldNumber();
28863
+ switch (field) {
28864
+ case 1:
28865
+ var value = /** @type {number} */ (reader.readInt32());
28866
+ msg.setId(value);
28867
+ break;
28868
+ case 2:
28869
+ var value = /** @type {boolean} */ (reader.readBool());
28870
+ msg.setAdminSide(value);
28871
+ break;
28872
+ default:
28873
+ reader.skipField();
28874
+ break;
28875
+ }
28876
+ }
28877
+ return msg;
28878
+ };
28879
+
28880
+
28881
+ /**
28882
+ * Serializes the message to binary data (in protobuf wire format).
28883
+ * @return {!Uint8Array}
28884
+ */
28885
+ proto.cms.GetCustomWidgetRequest.prototype.serializeBinary = function() {
28886
+ var writer = new jspb.BinaryWriter();
28887
+ proto.cms.GetCustomWidgetRequest.serializeBinaryToWriter(this, writer);
28888
+ return writer.getResultBuffer();
28889
+ };
28890
+
28891
+
28892
+ /**
28893
+ * Serializes the given message to binary data (in protobuf wire
28894
+ * format), writing to the given BinaryWriter.
28895
+ * @param {!proto.cms.GetCustomWidgetRequest} message
28896
+ * @param {!jspb.BinaryWriter} writer
28897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28898
+ */
28899
+ proto.cms.GetCustomWidgetRequest.serializeBinaryToWriter = function(message, writer) {
28900
+ var f = undefined;
28901
+ f = message.getId();
28902
+ if (f !== 0) {
28903
+ writer.writeInt32(
28904
+ 1,
28905
+ f
28906
+ );
28907
+ }
28908
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
28909
+ if (f != null) {
28910
+ writer.writeBool(
28911
+ 2,
28912
+ f
28913
+ );
28914
+ }
28915
+ };
28916
+
28917
+
28918
+ /**
28919
+ * optional int32 id = 1;
28920
+ * @return {number}
28921
+ */
28922
+ proto.cms.GetCustomWidgetRequest.prototype.getId = function() {
28923
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28924
+ };
28925
+
28926
+
28927
+ /**
28928
+ * @param {number} value
28929
+ * @return {!proto.cms.GetCustomWidgetRequest} returns this
28930
+ */
28931
+ proto.cms.GetCustomWidgetRequest.prototype.setId = function(value) {
28932
+ return jspb.Message.setProto3IntField(this, 1, value);
28933
+ };
28934
+
28935
+
28936
+ /**
28937
+ * optional bool admin_side = 2;
28938
+ * @return {boolean}
28939
+ */
28940
+ proto.cms.GetCustomWidgetRequest.prototype.getAdminSide = function() {
28941
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
28942
+ };
28943
+
28944
+
28945
+ /**
28946
+ * @param {boolean} value
28947
+ * @return {!proto.cms.GetCustomWidgetRequest} returns this
28948
+ */
28949
+ proto.cms.GetCustomWidgetRequest.prototype.setAdminSide = function(value) {
28950
+ return jspb.Message.setField(this, 2, value);
28951
+ };
28952
+
28953
+
28954
+ /**
28955
+ * Clears the field making it undefined.
28956
+ * @return {!proto.cms.GetCustomWidgetRequest} returns this
28957
+ */
28958
+ proto.cms.GetCustomWidgetRequest.prototype.clearAdminSide = function() {
28959
+ return jspb.Message.setField(this, 2, undefined);
28960
+ };
28961
+
28962
+
28963
+ /**
28964
+ * Returns whether this field is set.
28965
+ * @return {boolean}
28966
+ */
28967
+ proto.cms.GetCustomWidgetRequest.prototype.hasAdminSide = function() {
28968
+ return jspb.Message.getField(this, 2) != null;
28969
+ };
28970
+
28971
+
28972
+
28973
+
28974
+
28975
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28976
+ /**
28977
+ * Creates an object representation of this proto.
28978
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28979
+ * Optional fields that are not set will be set to undefined.
28980
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28981
+ * For the list of reserved names please see:
28982
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28983
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28984
+ * JSPB instance for transitional soy proto support:
28985
+ * http://goto/soy-param-migration
28986
+ * @return {!Object}
28987
+ */
28988
+ proto.cms.GetCustomWidgetForUserRequest.prototype.toObject = function(opt_includeInstance) {
28989
+ return proto.cms.GetCustomWidgetForUserRequest.toObject(opt_includeInstance, this);
28990
+ };
28991
+
28992
+
28993
+ /**
28994
+ * Static version of the {@see toObject} method.
28995
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28996
+ * the JSPB instance for transitional soy proto support:
28997
+ * http://goto/soy-param-migration
28998
+ * @param {!proto.cms.GetCustomWidgetForUserRequest} msg The msg instance to transform.
28999
+ * @return {!Object}
29000
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29001
+ */
29002
+ proto.cms.GetCustomWidgetForUserRequest.toObject = function(includeInstance, msg) {
29003
+ var f, obj = {
29004
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
29005
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
29006
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
29007
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
29008
+ };
29009
+
29010
+ if (includeInstance) {
29011
+ obj.$jspbMessageInstance = msg;
29012
+ }
29013
+ return obj;
29014
+ };
29015
+ }
29016
+
29017
+
29018
+ /**
29019
+ * Deserializes binary data (in protobuf wire format).
29020
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29021
+ * @return {!proto.cms.GetCustomWidgetForUserRequest}
29022
+ */
29023
+ proto.cms.GetCustomWidgetForUserRequest.deserializeBinary = function(bytes) {
29024
+ var reader = new jspb.BinaryReader(bytes);
29025
+ var msg = new proto.cms.GetCustomWidgetForUserRequest;
29026
+ return proto.cms.GetCustomWidgetForUserRequest.deserializeBinaryFromReader(msg, reader);
29027
+ };
29028
+
29029
+
29030
+ /**
29031
+ * Deserializes binary data (in protobuf wire format) from the
29032
+ * given reader into the given message object.
29033
+ * @param {!proto.cms.GetCustomWidgetForUserRequest} msg The message object to deserialize into.
29034
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29035
+ * @return {!proto.cms.GetCustomWidgetForUserRequest}
29036
+ */
29037
+ proto.cms.GetCustomWidgetForUserRequest.deserializeBinaryFromReader = function(msg, reader) {
29038
+ while (reader.nextField()) {
29039
+ if (reader.isEndGroup()) {
29040
+ break;
29041
+ }
29042
+ var field = reader.getFieldNumber();
29043
+ switch (field) {
29044
+ case 1:
29045
+ var value = /** @type {number} */ (reader.readInt32());
29046
+ msg.setId(value);
29047
+ break;
29048
+ case 2:
29049
+ var value = /** @type {string} */ (reader.readString());
29050
+ msg.setGeo(value);
29051
+ break;
29052
+ case 3:
29053
+ var value = /** @type {string} */ (reader.readString());
29054
+ msg.setLocale(value);
29055
+ break;
29056
+ case 4:
29057
+ var value = /** @type {boolean} */ (reader.readBool());
29058
+ msg.setIsMobile(value);
29059
+ break;
29060
+ default:
29061
+ reader.skipField();
29062
+ break;
29063
+ }
29064
+ }
29065
+ return msg;
29066
+ };
29067
+
29068
+
29069
+ /**
29070
+ * Serializes the message to binary data (in protobuf wire format).
29071
+ * @return {!Uint8Array}
29072
+ */
29073
+ proto.cms.GetCustomWidgetForUserRequest.prototype.serializeBinary = function() {
29074
+ var writer = new jspb.BinaryWriter();
29075
+ proto.cms.GetCustomWidgetForUserRequest.serializeBinaryToWriter(this, writer);
29076
+ return writer.getResultBuffer();
29077
+ };
29078
+
29079
+
29080
+ /**
29081
+ * Serializes the given message to binary data (in protobuf wire
29082
+ * format), writing to the given BinaryWriter.
29083
+ * @param {!proto.cms.GetCustomWidgetForUserRequest} message
29084
+ * @param {!jspb.BinaryWriter} writer
29085
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29086
+ */
29087
+ proto.cms.GetCustomWidgetForUserRequest.serializeBinaryToWriter = function(message, writer) {
29088
+ var f = undefined;
29089
+ f = message.getId();
29090
+ if (f !== 0) {
29091
+ writer.writeInt32(
29092
+ 1,
29093
+ f
29094
+ );
29095
+ }
29096
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
29097
+ if (f != null) {
29098
+ writer.writeString(
29099
+ 2,
29100
+ f
29101
+ );
29102
+ }
29103
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
29104
+ if (f != null) {
29105
+ writer.writeString(
29106
+ 3,
29107
+ f
29108
+ );
29109
+ }
29110
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
29111
+ if (f != null) {
29112
+ writer.writeBool(
29113
+ 4,
29114
+ f
29115
+ );
29116
+ }
29117
+ };
29118
+
29119
+
29120
+ /**
29121
+ * optional int32 id = 1;
29122
+ * @return {number}
29123
+ */
29124
+ proto.cms.GetCustomWidgetForUserRequest.prototype.getId = function() {
29125
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
29126
+ };
29127
+
29128
+
29129
+ /**
29130
+ * @param {number} value
29131
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29132
+ */
29133
+ proto.cms.GetCustomWidgetForUserRequest.prototype.setId = function(value) {
29134
+ return jspb.Message.setProto3IntField(this, 1, value);
29135
+ };
29136
+
29137
+
29138
+ /**
29139
+ * optional string geo = 2;
29140
+ * @return {string}
29141
+ */
29142
+ proto.cms.GetCustomWidgetForUserRequest.prototype.getGeo = function() {
29143
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29144
+ };
29145
+
29146
+
29147
+ /**
29148
+ * @param {string} value
29149
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29150
+ */
29151
+ proto.cms.GetCustomWidgetForUserRequest.prototype.setGeo = function(value) {
29152
+ return jspb.Message.setField(this, 2, value);
29153
+ };
29154
+
29155
+
29156
+ /**
29157
+ * Clears the field making it undefined.
29158
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29159
+ */
29160
+ proto.cms.GetCustomWidgetForUserRequest.prototype.clearGeo = function() {
29161
+ return jspb.Message.setField(this, 2, undefined);
29162
+ };
29163
+
29164
+
29165
+ /**
29166
+ * Returns whether this field is set.
29167
+ * @return {boolean}
29168
+ */
29169
+ proto.cms.GetCustomWidgetForUserRequest.prototype.hasGeo = function() {
29170
+ return jspb.Message.getField(this, 2) != null;
29171
+ };
29172
+
29173
+
29174
+ /**
29175
+ * optional string locale = 3;
29176
+ * @return {string}
29177
+ */
29178
+ proto.cms.GetCustomWidgetForUserRequest.prototype.getLocale = function() {
29179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
29180
+ };
29181
+
29182
+
29183
+ /**
29184
+ * @param {string} value
29185
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29186
+ */
29187
+ proto.cms.GetCustomWidgetForUserRequest.prototype.setLocale = function(value) {
29188
+ return jspb.Message.setField(this, 3, value);
29189
+ };
29190
+
29191
+
29192
+ /**
29193
+ * Clears the field making it undefined.
29194
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29195
+ */
29196
+ proto.cms.GetCustomWidgetForUserRequest.prototype.clearLocale = function() {
29197
+ return jspb.Message.setField(this, 3, undefined);
29198
+ };
29199
+
29200
+
29201
+ /**
29202
+ * Returns whether this field is set.
29203
+ * @return {boolean}
29204
+ */
29205
+ proto.cms.GetCustomWidgetForUserRequest.prototype.hasLocale = function() {
29206
+ return jspb.Message.getField(this, 3) != null;
29207
+ };
29208
+
29209
+
29210
+ /**
29211
+ * optional bool is_mobile = 4;
29212
+ * @return {boolean}
29213
+ */
29214
+ proto.cms.GetCustomWidgetForUserRequest.prototype.getIsMobile = function() {
29215
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
29216
+ };
29217
+
29218
+
29219
+ /**
29220
+ * @param {boolean} value
29221
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29222
+ */
29223
+ proto.cms.GetCustomWidgetForUserRequest.prototype.setIsMobile = function(value) {
29224
+ return jspb.Message.setField(this, 4, value);
29225
+ };
29226
+
29227
+
29228
+ /**
29229
+ * Clears the field making it undefined.
29230
+ * @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
29231
+ */
29232
+ proto.cms.GetCustomWidgetForUserRequest.prototype.clearIsMobile = function() {
29233
+ return jspb.Message.setField(this, 4, undefined);
29234
+ };
29235
+
29236
+
29237
+ /**
29238
+ * Returns whether this field is set.
29239
+ * @return {boolean}
29240
+ */
29241
+ proto.cms.GetCustomWidgetForUserRequest.prototype.hasIsMobile = function() {
29242
+ return jspb.Message.getField(this, 4) != null;
29243
+ };
29244
+
29245
+
29246
+
29247
+ /**
29248
+ * List of repeated fields within this message type.
29249
+ * @private {!Array<number>}
29250
+ * @const
29251
+ */
29252
+ proto.cms.CustomWidgetsItemsResponse.repeatedFields_ = [1];
29253
+
29254
+
29255
+
29256
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29257
+ /**
29258
+ * Creates an object representation of this proto.
29259
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29260
+ * Optional fields that are not set will be set to undefined.
29261
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29262
+ * For the list of reserved names please see:
29263
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29264
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29265
+ * JSPB instance for transitional soy proto support:
29266
+ * http://goto/soy-param-migration
29267
+ * @return {!Object}
29268
+ */
29269
+ proto.cms.CustomWidgetsItemsResponse.prototype.toObject = function(opt_includeInstance) {
29270
+ return proto.cms.CustomWidgetsItemsResponse.toObject(opt_includeInstance, this);
29271
+ };
29272
+
29273
+
29274
+ /**
29275
+ * Static version of the {@see toObject} method.
29276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29277
+ * the JSPB instance for transitional soy proto support:
29278
+ * http://goto/soy-param-migration
29279
+ * @param {!proto.cms.CustomWidgetsItemsResponse} msg The msg instance to transform.
29280
+ * @return {!Object}
29281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29282
+ */
29283
+ proto.cms.CustomWidgetsItemsResponse.toObject = function(includeInstance, msg) {
29284
+ var f, obj = {
29285
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
29286
+ proto.cms.CustomWidgetItem.toObject, includeInstance),
29287
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
29288
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
29289
+ };
29290
+
29291
+ if (includeInstance) {
29292
+ obj.$jspbMessageInstance = msg;
29293
+ }
29294
+ return obj;
29295
+ };
29296
+ }
29297
+
29298
+
29299
+ /**
29300
+ * Deserializes binary data (in protobuf wire format).
29301
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29302
+ * @return {!proto.cms.CustomWidgetsItemsResponse}
29303
+ */
29304
+ proto.cms.CustomWidgetsItemsResponse.deserializeBinary = function(bytes) {
29305
+ var reader = new jspb.BinaryReader(bytes);
29306
+ var msg = new proto.cms.CustomWidgetsItemsResponse;
29307
+ return proto.cms.CustomWidgetsItemsResponse.deserializeBinaryFromReader(msg, reader);
29308
+ };
29309
+
29310
+
29311
+ /**
29312
+ * Deserializes binary data (in protobuf wire format) from the
29313
+ * given reader into the given message object.
29314
+ * @param {!proto.cms.CustomWidgetsItemsResponse} msg The message object to deserialize into.
29315
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29316
+ * @return {!proto.cms.CustomWidgetsItemsResponse}
29317
+ */
29318
+ proto.cms.CustomWidgetsItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
29319
+ while (reader.nextField()) {
29320
+ if (reader.isEndGroup()) {
29321
+ break;
29322
+ }
29323
+ var field = reader.getFieldNumber();
29324
+ switch (field) {
29325
+ case 1:
29326
+ var value = new proto.cms.CustomWidgetItem;
29327
+ reader.readMessage(value,proto.cms.CustomWidgetItem.deserializeBinaryFromReader);
29328
+ msg.addItems(value);
29329
+ break;
29330
+ case 2:
29331
+ var value = /** @type {number} */ (reader.readInt32());
29332
+ msg.setTotalPages(value);
29333
+ break;
29334
+ case 3:
29335
+ var value = /** @type {number} */ (reader.readInt32());
29336
+ msg.setTotalItems(value);
29337
+ break;
29338
+ default:
29339
+ reader.skipField();
29340
+ break;
29341
+ }
29342
+ }
29343
+ return msg;
29344
+ };
29345
+
29346
+
29347
+ /**
29348
+ * Serializes the message to binary data (in protobuf wire format).
29349
+ * @return {!Uint8Array}
29350
+ */
29351
+ proto.cms.CustomWidgetsItemsResponse.prototype.serializeBinary = function() {
29352
+ var writer = new jspb.BinaryWriter();
29353
+ proto.cms.CustomWidgetsItemsResponse.serializeBinaryToWriter(this, writer);
29354
+ return writer.getResultBuffer();
29355
+ };
29356
+
29357
+
29358
+ /**
29359
+ * Serializes the given message to binary data (in protobuf wire
29360
+ * format), writing to the given BinaryWriter.
29361
+ * @param {!proto.cms.CustomWidgetsItemsResponse} message
29362
+ * @param {!jspb.BinaryWriter} writer
29363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29364
+ */
29365
+ proto.cms.CustomWidgetsItemsResponse.serializeBinaryToWriter = function(message, writer) {
29366
+ var f = undefined;
29367
+ f = message.getItemsList();
29368
+ if (f.length > 0) {
29369
+ writer.writeRepeatedMessage(
29370
+ 1,
29371
+ f,
29372
+ proto.cms.CustomWidgetItem.serializeBinaryToWriter
29373
+ );
29374
+ }
29375
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
29376
+ if (f != null) {
29377
+ writer.writeInt32(
29378
+ 2,
29379
+ f
29380
+ );
29381
+ }
29382
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
29383
+ if (f != null) {
29384
+ writer.writeInt32(
29385
+ 3,
29386
+ f
29387
+ );
29388
+ }
29389
+ };
29390
+
29391
+
29392
+ /**
29393
+ * repeated CustomWidgetItem items = 1;
29394
+ * @return {!Array<!proto.cms.CustomWidgetItem>}
29395
+ */
29396
+ proto.cms.CustomWidgetsItemsResponse.prototype.getItemsList = function() {
29397
+ return /** @type{!Array<!proto.cms.CustomWidgetItem>} */ (
29398
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.CustomWidgetItem, 1));
29399
+ };
29400
+
29401
+
29402
+ /**
29403
+ * @param {!Array<!proto.cms.CustomWidgetItem>} value
29404
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29405
+ */
29406
+ proto.cms.CustomWidgetsItemsResponse.prototype.setItemsList = function(value) {
29407
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
29408
+ };
29409
+
29410
+
29411
+ /**
29412
+ * @param {!proto.cms.CustomWidgetItem=} opt_value
29413
+ * @param {number=} opt_index
29414
+ * @return {!proto.cms.CustomWidgetItem}
29415
+ */
29416
+ proto.cms.CustomWidgetsItemsResponse.prototype.addItems = function(opt_value, opt_index) {
29417
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.CustomWidgetItem, opt_index);
29418
+ };
29419
+
29420
+
29421
+ /**
29422
+ * Clears the list making it empty but non-null.
29423
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29424
+ */
29425
+ proto.cms.CustomWidgetsItemsResponse.prototype.clearItemsList = function() {
29426
+ return this.setItemsList([]);
29427
+ };
29428
+
29429
+
29430
+ /**
29431
+ * optional int32 total_pages = 2;
29432
+ * @return {number}
29433
+ */
29434
+ proto.cms.CustomWidgetsItemsResponse.prototype.getTotalPages = function() {
29435
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
29436
+ };
29437
+
29438
+
29439
+ /**
29440
+ * @param {number} value
29441
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29442
+ */
29443
+ proto.cms.CustomWidgetsItemsResponse.prototype.setTotalPages = function(value) {
29444
+ return jspb.Message.setField(this, 2, value);
29445
+ };
29446
+
29447
+
29448
+ /**
29449
+ * Clears the field making it undefined.
29450
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29451
+ */
29452
+ proto.cms.CustomWidgetsItemsResponse.prototype.clearTotalPages = function() {
29453
+ return jspb.Message.setField(this, 2, undefined);
29454
+ };
29455
+
29456
+
29457
+ /**
29458
+ * Returns whether this field is set.
29459
+ * @return {boolean}
29460
+ */
29461
+ proto.cms.CustomWidgetsItemsResponse.prototype.hasTotalPages = function() {
29462
+ return jspb.Message.getField(this, 2) != null;
29463
+ };
29464
+
29465
+
29466
+ /**
29467
+ * optional int32 total_items = 3;
29468
+ * @return {number}
29469
+ */
29470
+ proto.cms.CustomWidgetsItemsResponse.prototype.getTotalItems = function() {
29471
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
29472
+ };
29473
+
29474
+
29475
+ /**
29476
+ * @param {number} value
29477
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29478
+ */
29479
+ proto.cms.CustomWidgetsItemsResponse.prototype.setTotalItems = function(value) {
29480
+ return jspb.Message.setField(this, 3, value);
29481
+ };
29482
+
29483
+
29484
+ /**
29485
+ * Clears the field making it undefined.
29486
+ * @return {!proto.cms.CustomWidgetsItemsResponse} returns this
29487
+ */
29488
+ proto.cms.CustomWidgetsItemsResponse.prototype.clearTotalItems = function() {
29489
+ return jspb.Message.setField(this, 3, undefined);
29490
+ };
29491
+
29492
+
29493
+ /**
29494
+ * Returns whether this field is set.
29495
+ * @return {boolean}
29496
+ */
29497
+ proto.cms.CustomWidgetsItemsResponse.prototype.hasTotalItems = function() {
29498
+ return jspb.Message.getField(this, 3) != null;
29499
+ };
29500
+
29501
+
29502
+
29503
+
29504
+
29505
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29506
+ /**
29507
+ * Creates an object representation of this proto.
29508
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29509
+ * Optional fields that are not set will be set to undefined.
29510
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29511
+ * For the list of reserved names please see:
29512
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29513
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29514
+ * JSPB instance for transitional soy proto support:
29515
+ * http://goto/soy-param-migration
29516
+ * @return {!Object}
29517
+ */
29518
+ proto.cms.CustomWidgetStatusResponse.prototype.toObject = function(opt_includeInstance) {
29519
+ return proto.cms.CustomWidgetStatusResponse.toObject(opt_includeInstance, this);
29520
+ };
29521
+
29522
+
29523
+ /**
29524
+ * Static version of the {@see toObject} method.
29525
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29526
+ * the JSPB instance for transitional soy proto support:
29527
+ * http://goto/soy-param-migration
29528
+ * @param {!proto.cms.CustomWidgetStatusResponse} msg The msg instance to transform.
29529
+ * @return {!Object}
29530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29531
+ */
29532
+ proto.cms.CustomWidgetStatusResponse.toObject = function(includeInstance, msg) {
29533
+ var f, obj = {
29534
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
29535
+ };
29536
+
29537
+ if (includeInstance) {
29538
+ obj.$jspbMessageInstance = msg;
29539
+ }
29540
+ return obj;
29541
+ };
29542
+ }
29543
+
29544
+
29545
+ /**
29546
+ * Deserializes binary data (in protobuf wire format).
29547
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29548
+ * @return {!proto.cms.CustomWidgetStatusResponse}
29549
+ */
29550
+ proto.cms.CustomWidgetStatusResponse.deserializeBinary = function(bytes) {
29551
+ var reader = new jspb.BinaryReader(bytes);
29552
+ var msg = new proto.cms.CustomWidgetStatusResponse;
29553
+ return proto.cms.CustomWidgetStatusResponse.deserializeBinaryFromReader(msg, reader);
29554
+ };
29555
+
29556
+
29557
+ /**
29558
+ * Deserializes binary data (in protobuf wire format) from the
29559
+ * given reader into the given message object.
29560
+ * @param {!proto.cms.CustomWidgetStatusResponse} msg The message object to deserialize into.
29561
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29562
+ * @return {!proto.cms.CustomWidgetStatusResponse}
29563
+ */
29564
+ proto.cms.CustomWidgetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
29565
+ while (reader.nextField()) {
29566
+ if (reader.isEndGroup()) {
29567
+ break;
29568
+ }
29569
+ var field = reader.getFieldNumber();
29570
+ switch (field) {
29571
+ case 1:
29572
+ var value = /** @type {string} */ (reader.readString());
29573
+ msg.setStatus(value);
29574
+ break;
29575
+ default:
29576
+ reader.skipField();
29577
+ break;
29578
+ }
29579
+ }
29580
+ return msg;
29581
+ };
29582
+
29583
+
29584
+ /**
29585
+ * Serializes the message to binary data (in protobuf wire format).
29586
+ * @return {!Uint8Array}
29587
+ */
29588
+ proto.cms.CustomWidgetStatusResponse.prototype.serializeBinary = function() {
29589
+ var writer = new jspb.BinaryWriter();
29590
+ proto.cms.CustomWidgetStatusResponse.serializeBinaryToWriter(this, writer);
29591
+ return writer.getResultBuffer();
29592
+ };
29593
+
29594
+
29595
+ /**
29596
+ * Serializes the given message to binary data (in protobuf wire
29597
+ * format), writing to the given BinaryWriter.
29598
+ * @param {!proto.cms.CustomWidgetStatusResponse} message
29599
+ * @param {!jspb.BinaryWriter} writer
29600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29601
+ */
29602
+ proto.cms.CustomWidgetStatusResponse.serializeBinaryToWriter = function(message, writer) {
29603
+ var f = undefined;
29604
+ f = message.getStatus();
29605
+ if (f.length > 0) {
29606
+ writer.writeString(
29607
+ 1,
29608
+ f
29609
+ );
29610
+ }
29611
+ };
29612
+
29613
+
29614
+ /**
29615
+ * optional string status = 1;
29616
+ * @return {string}
29617
+ */
29618
+ proto.cms.CustomWidgetStatusResponse.prototype.getStatus = function() {
29619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29620
+ };
29621
+
29622
+
29623
+ /**
29624
+ * @param {string} value
29625
+ * @return {!proto.cms.CustomWidgetStatusResponse} returns this
29626
+ */
29627
+ proto.cms.CustomWidgetStatusResponse.prototype.setStatus = function(value) {
29628
+ return jspb.Message.setProto3StringField(this, 1, value);
29629
+ };
29630
+
29631
+
29632
+
27326
29633
 
27327
29634
 
27328
29635
  if (jspb.Message.GENERATE_TO_OBJECT) {