protobuf-platform 1.2.37 → 1.2.38

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,10 +36,18 @@ goog.exportSymbol('proto.cms.BannerTexts', null, global);
36
36
  goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
37
37
  goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
38
38
  goog.exportSymbol('proto.cms.File', null, global);
39
+ goog.exportSymbol('proto.cms.GameWidgetItem', null, global);
40
+ goog.exportSymbol('proto.cms.GameWidgetItemRequest', null, global);
41
+ goog.exportSymbol('proto.cms.GameWidgetRequest', null, global);
42
+ goog.exportSymbol('proto.cms.GameWidgetRequest.RequestCase', null, global);
43
+ goog.exportSymbol('proto.cms.GameWidgetResponse', null, global);
44
+ goog.exportSymbol('proto.cms.GameWidgetStatusResponse', null, global);
45
+ goog.exportSymbol('proto.cms.GameWidgetsItemsResponse', null, global);
39
46
  goog.exportSymbol('proto.cms.GetBannerGroupRequest', null, global);
40
47
  goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
41
48
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
42
49
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
50
+ goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
43
51
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
44
52
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
45
53
  goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
@@ -1057,6 +1065,153 @@ if (goog.DEBUG && !COMPILED) {
1057
1065
  */
1058
1066
  proto.cms.PromoTranslationResponse.displayName = 'proto.cms.PromoTranslationResponse';
1059
1067
  }
1068
+ /**
1069
+ * Generated by JsPbCodeGenerator.
1070
+ * @param {Array=} opt_data Optional initial data array, typically from a
1071
+ * server response, or constructed directly in Javascript. The array is used
1072
+ * in place and becomes part of the constructed object. It is not cloned.
1073
+ * If no data is provided, the constructed object will be empty, but still
1074
+ * valid.
1075
+ * @extends {jspb.Message}
1076
+ * @constructor
1077
+ */
1078
+ proto.cms.GameWidgetRequest = function(opt_data) {
1079
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cms.GameWidgetRequest.oneofGroups_);
1080
+ };
1081
+ goog.inherits(proto.cms.GameWidgetRequest, jspb.Message);
1082
+ if (goog.DEBUG && !COMPILED) {
1083
+ /**
1084
+ * @public
1085
+ * @override
1086
+ */
1087
+ proto.cms.GameWidgetRequest.displayName = 'proto.cms.GameWidgetRequest';
1088
+ }
1089
+ /**
1090
+ * Generated by JsPbCodeGenerator.
1091
+ * @param {Array=} opt_data Optional initial data array, typically from a
1092
+ * server response, or constructed directly in Javascript. The array is used
1093
+ * in place and becomes part of the constructed object. It is not cloned.
1094
+ * If no data is provided, the constructed object will be empty, but still
1095
+ * valid.
1096
+ * @extends {jspb.Message}
1097
+ * @constructor
1098
+ */
1099
+ proto.cms.GameWidgetItemRequest = function(opt_data) {
1100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1101
+ };
1102
+ goog.inherits(proto.cms.GameWidgetItemRequest, jspb.Message);
1103
+ if (goog.DEBUG && !COMPILED) {
1104
+ /**
1105
+ * @public
1106
+ * @override
1107
+ */
1108
+ proto.cms.GameWidgetItemRequest.displayName = 'proto.cms.GameWidgetItemRequest';
1109
+ }
1110
+ /**
1111
+ * Generated by JsPbCodeGenerator.
1112
+ * @param {Array=} opt_data Optional initial data array, typically from a
1113
+ * server response, or constructed directly in Javascript. The array is used
1114
+ * in place and becomes part of the constructed object. It is not cloned.
1115
+ * If no data is provided, the constructed object will be empty, but still
1116
+ * valid.
1117
+ * @extends {jspb.Message}
1118
+ * @constructor
1119
+ */
1120
+ proto.cms.GameWidgetItem = function(opt_data) {
1121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1122
+ };
1123
+ goog.inherits(proto.cms.GameWidgetItem, jspb.Message);
1124
+ if (goog.DEBUG && !COMPILED) {
1125
+ /**
1126
+ * @public
1127
+ * @override
1128
+ */
1129
+ proto.cms.GameWidgetItem.displayName = 'proto.cms.GameWidgetItem';
1130
+ }
1131
+ /**
1132
+ * Generated by JsPbCodeGenerator.
1133
+ * @param {Array=} opt_data Optional initial data array, typically from a
1134
+ * server response, or constructed directly in Javascript. The array is used
1135
+ * in place and becomes part of the constructed object. It is not cloned.
1136
+ * If no data is provided, the constructed object will be empty, but still
1137
+ * valid.
1138
+ * @extends {jspb.Message}
1139
+ * @constructor
1140
+ */
1141
+ proto.cms.GameWidgetResponse = function(opt_data) {
1142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1143
+ };
1144
+ goog.inherits(proto.cms.GameWidgetResponse, jspb.Message);
1145
+ if (goog.DEBUG && !COMPILED) {
1146
+ /**
1147
+ * @public
1148
+ * @override
1149
+ */
1150
+ proto.cms.GameWidgetResponse.displayName = 'proto.cms.GameWidgetResponse';
1151
+ }
1152
+ /**
1153
+ * Generated by JsPbCodeGenerator.
1154
+ * @param {Array=} opt_data Optional initial data array, typically from a
1155
+ * server response, or constructed directly in Javascript. The array is used
1156
+ * in place and becomes part of the constructed object. It is not cloned.
1157
+ * If no data is provided, the constructed object will be empty, but still
1158
+ * valid.
1159
+ * @extends {jspb.Message}
1160
+ * @constructor
1161
+ */
1162
+ proto.cms.GetGameWidgetRequest = function(opt_data) {
1163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1164
+ };
1165
+ goog.inherits(proto.cms.GetGameWidgetRequest, jspb.Message);
1166
+ if (goog.DEBUG && !COMPILED) {
1167
+ /**
1168
+ * @public
1169
+ * @override
1170
+ */
1171
+ proto.cms.GetGameWidgetRequest.displayName = 'proto.cms.GetGameWidgetRequest';
1172
+ }
1173
+ /**
1174
+ * Generated by JsPbCodeGenerator.
1175
+ * @param {Array=} opt_data Optional initial data array, typically from a
1176
+ * server response, or constructed directly in Javascript. The array is used
1177
+ * in place and becomes part of the constructed object. It is not cloned.
1178
+ * If no data is provided, the constructed object will be empty, but still
1179
+ * valid.
1180
+ * @extends {jspb.Message}
1181
+ * @constructor
1182
+ */
1183
+ proto.cms.GameWidgetStatusResponse = function(opt_data) {
1184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1185
+ };
1186
+ goog.inherits(proto.cms.GameWidgetStatusResponse, jspb.Message);
1187
+ if (goog.DEBUG && !COMPILED) {
1188
+ /**
1189
+ * @public
1190
+ * @override
1191
+ */
1192
+ proto.cms.GameWidgetStatusResponse.displayName = 'proto.cms.GameWidgetStatusResponse';
1193
+ }
1194
+ /**
1195
+ * Generated by JsPbCodeGenerator.
1196
+ * @param {Array=} opt_data Optional initial data array, typically from a
1197
+ * server response, or constructed directly in Javascript. The array is used
1198
+ * in place and becomes part of the constructed object. It is not cloned.
1199
+ * If no data is provided, the constructed object will be empty, but still
1200
+ * valid.
1201
+ * @extends {jspb.Message}
1202
+ * @constructor
1203
+ */
1204
+ proto.cms.GameWidgetsItemsResponse = function(opt_data) {
1205
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.GameWidgetsItemsResponse.repeatedFields_, null);
1206
+ };
1207
+ goog.inherits(proto.cms.GameWidgetsItemsResponse, jspb.Message);
1208
+ if (goog.DEBUG && !COMPILED) {
1209
+ /**
1210
+ * @public
1211
+ * @override
1212
+ */
1213
+ proto.cms.GameWidgetsItemsResponse.displayName = 'proto.cms.GameWidgetsItemsResponse';
1214
+ }
1060
1215
 
1061
1216
 
1062
1217
 
@@ -12786,4 +12941,1579 @@ proto.cms.PromoTranslationResponse.prototype.hasContent = function() {
12786
12941
  };
12787
12942
 
12788
12943
 
12944
+
12945
+ /**
12946
+ * Oneof group definitions for this message. Each group defines the field
12947
+ * numbers belonging to that group. When of these fields' value is set, all
12948
+ * other fields in the group are cleared. During deserialization, if multiple
12949
+ * fields are encountered for a group, only the last value seen will be kept.
12950
+ * @private {!Array<!Array<number>>}
12951
+ * @const
12952
+ */
12953
+ proto.cms.GameWidgetRequest.oneofGroups_ = [[1,2]];
12954
+
12955
+ /**
12956
+ * @enum {number}
12957
+ */
12958
+ proto.cms.GameWidgetRequest.RequestCase = {
12959
+ REQUEST_NOT_SET: 0,
12960
+ GAME_WIDGET_DATA: 1,
12961
+ IMAGE_SMALL: 2
12962
+ };
12963
+
12964
+ /**
12965
+ * @return {proto.cms.GameWidgetRequest.RequestCase}
12966
+ */
12967
+ proto.cms.GameWidgetRequest.prototype.getRequestCase = function() {
12968
+ return /** @type {proto.cms.GameWidgetRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.cms.GameWidgetRequest.oneofGroups_[0]));
12969
+ };
12970
+
12971
+
12972
+
12973
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12974
+ /**
12975
+ * Creates an object representation of this proto.
12976
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12977
+ * Optional fields that are not set will be set to undefined.
12978
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12979
+ * For the list of reserved names please see:
12980
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12981
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12982
+ * JSPB instance for transitional soy proto support:
12983
+ * http://goto/soy-param-migration
12984
+ * @return {!Object}
12985
+ */
12986
+ proto.cms.GameWidgetRequest.prototype.toObject = function(opt_includeInstance) {
12987
+ return proto.cms.GameWidgetRequest.toObject(opt_includeInstance, this);
12988
+ };
12989
+
12990
+
12991
+ /**
12992
+ * Static version of the {@see toObject} method.
12993
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12994
+ * the JSPB instance for transitional soy proto support:
12995
+ * http://goto/soy-param-migration
12996
+ * @param {!proto.cms.GameWidgetRequest} msg The msg instance to transform.
12997
+ * @return {!Object}
12998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12999
+ */
13000
+ proto.cms.GameWidgetRequest.toObject = function(includeInstance, msg) {
13001
+ var f, obj = {
13002
+ gameWidgetData: (f = msg.getGameWidgetData()) && proto.cms.PromoItemRequest.toObject(includeInstance, f),
13003
+ imageSmall: (f = msg.getImageSmall()) && proto.cms.File.toObject(includeInstance, f)
13004
+ };
13005
+
13006
+ if (includeInstance) {
13007
+ obj.$jspbMessageInstance = msg;
13008
+ }
13009
+ return obj;
13010
+ };
13011
+ }
13012
+
13013
+
13014
+ /**
13015
+ * Deserializes binary data (in protobuf wire format).
13016
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13017
+ * @return {!proto.cms.GameWidgetRequest}
13018
+ */
13019
+ proto.cms.GameWidgetRequest.deserializeBinary = function(bytes) {
13020
+ var reader = new jspb.BinaryReader(bytes);
13021
+ var msg = new proto.cms.GameWidgetRequest;
13022
+ return proto.cms.GameWidgetRequest.deserializeBinaryFromReader(msg, reader);
13023
+ };
13024
+
13025
+
13026
+ /**
13027
+ * Deserializes binary data (in protobuf wire format) from the
13028
+ * given reader into the given message object.
13029
+ * @param {!proto.cms.GameWidgetRequest} msg The message object to deserialize into.
13030
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13031
+ * @return {!proto.cms.GameWidgetRequest}
13032
+ */
13033
+ proto.cms.GameWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
13034
+ while (reader.nextField()) {
13035
+ if (reader.isEndGroup()) {
13036
+ break;
13037
+ }
13038
+ var field = reader.getFieldNumber();
13039
+ switch (field) {
13040
+ case 1:
13041
+ var value = new proto.cms.PromoItemRequest;
13042
+ reader.readMessage(value,proto.cms.PromoItemRequest.deserializeBinaryFromReader);
13043
+ msg.setGameWidgetData(value);
13044
+ break;
13045
+ case 2:
13046
+ var value = new proto.cms.File;
13047
+ reader.readMessage(value,proto.cms.File.deserializeBinaryFromReader);
13048
+ msg.setImageSmall(value);
13049
+ break;
13050
+ default:
13051
+ reader.skipField();
13052
+ break;
13053
+ }
13054
+ }
13055
+ return msg;
13056
+ };
13057
+
13058
+
13059
+ /**
13060
+ * Serializes the message to binary data (in protobuf wire format).
13061
+ * @return {!Uint8Array}
13062
+ */
13063
+ proto.cms.GameWidgetRequest.prototype.serializeBinary = function() {
13064
+ var writer = new jspb.BinaryWriter();
13065
+ proto.cms.GameWidgetRequest.serializeBinaryToWriter(this, writer);
13066
+ return writer.getResultBuffer();
13067
+ };
13068
+
13069
+
13070
+ /**
13071
+ * Serializes the given message to binary data (in protobuf wire
13072
+ * format), writing to the given BinaryWriter.
13073
+ * @param {!proto.cms.GameWidgetRequest} message
13074
+ * @param {!jspb.BinaryWriter} writer
13075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13076
+ */
13077
+ proto.cms.GameWidgetRequest.serializeBinaryToWriter = function(message, writer) {
13078
+ var f = undefined;
13079
+ f = message.getGameWidgetData();
13080
+ if (f != null) {
13081
+ writer.writeMessage(
13082
+ 1,
13083
+ f,
13084
+ proto.cms.PromoItemRequest.serializeBinaryToWriter
13085
+ );
13086
+ }
13087
+ f = message.getImageSmall();
13088
+ if (f != null) {
13089
+ writer.writeMessage(
13090
+ 2,
13091
+ f,
13092
+ proto.cms.File.serializeBinaryToWriter
13093
+ );
13094
+ }
13095
+ };
13096
+
13097
+
13098
+ /**
13099
+ * optional PromoItemRequest game_widget_data = 1;
13100
+ * @return {?proto.cms.PromoItemRequest}
13101
+ */
13102
+ proto.cms.GameWidgetRequest.prototype.getGameWidgetData = function() {
13103
+ return /** @type{?proto.cms.PromoItemRequest} */ (
13104
+ jspb.Message.getWrapperField(this, proto.cms.PromoItemRequest, 1));
13105
+ };
13106
+
13107
+
13108
+ /**
13109
+ * @param {?proto.cms.PromoItemRequest|undefined} value
13110
+ * @return {!proto.cms.GameWidgetRequest} returns this
13111
+ */
13112
+ proto.cms.GameWidgetRequest.prototype.setGameWidgetData = function(value) {
13113
+ return jspb.Message.setOneofWrapperField(this, 1, proto.cms.GameWidgetRequest.oneofGroups_[0], value);
13114
+ };
13115
+
13116
+
13117
+ /**
13118
+ * Clears the message field making it undefined.
13119
+ * @return {!proto.cms.GameWidgetRequest} returns this
13120
+ */
13121
+ proto.cms.GameWidgetRequest.prototype.clearGameWidgetData = function() {
13122
+ return this.setGameWidgetData(undefined);
13123
+ };
13124
+
13125
+
13126
+ /**
13127
+ * Returns whether this field is set.
13128
+ * @return {boolean}
13129
+ */
13130
+ proto.cms.GameWidgetRequest.prototype.hasGameWidgetData = function() {
13131
+ return jspb.Message.getField(this, 1) != null;
13132
+ };
13133
+
13134
+
13135
+ /**
13136
+ * optional File image_small = 2;
13137
+ * @return {?proto.cms.File}
13138
+ */
13139
+ proto.cms.GameWidgetRequest.prototype.getImageSmall = function() {
13140
+ return /** @type{?proto.cms.File} */ (
13141
+ jspb.Message.getWrapperField(this, proto.cms.File, 2));
13142
+ };
13143
+
13144
+
13145
+ /**
13146
+ * @param {?proto.cms.File|undefined} value
13147
+ * @return {!proto.cms.GameWidgetRequest} returns this
13148
+ */
13149
+ proto.cms.GameWidgetRequest.prototype.setImageSmall = function(value) {
13150
+ return jspb.Message.setOneofWrapperField(this, 2, proto.cms.GameWidgetRequest.oneofGroups_[0], value);
13151
+ };
13152
+
13153
+
13154
+ /**
13155
+ * Clears the message field making it undefined.
13156
+ * @return {!proto.cms.GameWidgetRequest} returns this
13157
+ */
13158
+ proto.cms.GameWidgetRequest.prototype.clearImageSmall = function() {
13159
+ return this.setImageSmall(undefined);
13160
+ };
13161
+
13162
+
13163
+ /**
13164
+ * Returns whether this field is set.
13165
+ * @return {boolean}
13166
+ */
13167
+ proto.cms.GameWidgetRequest.prototype.hasImageSmall = function() {
13168
+ return jspb.Message.getField(this, 2) != null;
13169
+ };
13170
+
13171
+
13172
+
13173
+
13174
+
13175
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13176
+ /**
13177
+ * Creates an object representation of this proto.
13178
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13179
+ * Optional fields that are not set will be set to undefined.
13180
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13181
+ * For the list of reserved names please see:
13182
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13183
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13184
+ * JSPB instance for transitional soy proto support:
13185
+ * http://goto/soy-param-migration
13186
+ * @return {!Object}
13187
+ */
13188
+ proto.cms.GameWidgetItemRequest.prototype.toObject = function(opt_includeInstance) {
13189
+ return proto.cms.GameWidgetItemRequest.toObject(opt_includeInstance, this);
13190
+ };
13191
+
13192
+
13193
+ /**
13194
+ * Static version of the {@see toObject} method.
13195
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13196
+ * the JSPB instance for transitional soy proto support:
13197
+ * http://goto/soy-param-migration
13198
+ * @param {!proto.cms.GameWidgetItemRequest} msg The msg instance to transform.
13199
+ * @return {!Object}
13200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13201
+ */
13202
+ proto.cms.GameWidgetItemRequest.toObject = function(includeInstance, msg) {
13203
+ var f, obj = {
13204
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
13205
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
13206
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
13207
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
13208
+ };
13209
+
13210
+ if (includeInstance) {
13211
+ obj.$jspbMessageInstance = msg;
13212
+ }
13213
+ return obj;
13214
+ };
13215
+ }
13216
+
13217
+
13218
+ /**
13219
+ * Deserializes binary data (in protobuf wire format).
13220
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13221
+ * @return {!proto.cms.GameWidgetItemRequest}
13222
+ */
13223
+ proto.cms.GameWidgetItemRequest.deserializeBinary = function(bytes) {
13224
+ var reader = new jspb.BinaryReader(bytes);
13225
+ var msg = new proto.cms.GameWidgetItemRequest;
13226
+ return proto.cms.GameWidgetItemRequest.deserializeBinaryFromReader(msg, reader);
13227
+ };
13228
+
13229
+
13230
+ /**
13231
+ * Deserializes binary data (in protobuf wire format) from the
13232
+ * given reader into the given message object.
13233
+ * @param {!proto.cms.GameWidgetItemRequest} msg The message object to deserialize into.
13234
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13235
+ * @return {!proto.cms.GameWidgetItemRequest}
13236
+ */
13237
+ proto.cms.GameWidgetItemRequest.deserializeBinaryFromReader = function(msg, reader) {
13238
+ while (reader.nextField()) {
13239
+ if (reader.isEndGroup()) {
13240
+ break;
13241
+ }
13242
+ var field = reader.getFieldNumber();
13243
+ switch (field) {
13244
+ case 1:
13245
+ var value = /** @type {number} */ (reader.readInt32());
13246
+ msg.setId(value);
13247
+ break;
13248
+ case 2:
13249
+ var value = /** @type {string} */ (reader.readString());
13250
+ msg.setTitle(value);
13251
+ break;
13252
+ case 3:
13253
+ var value = /** @type {string} */ (reader.readString());
13254
+ msg.setType(value);
13255
+ break;
13256
+ case 4:
13257
+ var value = /** @type {number} */ (reader.readInt32());
13258
+ msg.setIsActive(value);
13259
+ break;
13260
+ default:
13261
+ reader.skipField();
13262
+ break;
13263
+ }
13264
+ }
13265
+ return msg;
13266
+ };
13267
+
13268
+
13269
+ /**
13270
+ * Serializes the message to binary data (in protobuf wire format).
13271
+ * @return {!Uint8Array}
13272
+ */
13273
+ proto.cms.GameWidgetItemRequest.prototype.serializeBinary = function() {
13274
+ var writer = new jspb.BinaryWriter();
13275
+ proto.cms.GameWidgetItemRequest.serializeBinaryToWriter(this, writer);
13276
+ return writer.getResultBuffer();
13277
+ };
13278
+
13279
+
13280
+ /**
13281
+ * Serializes the given message to binary data (in protobuf wire
13282
+ * format), writing to the given BinaryWriter.
13283
+ * @param {!proto.cms.GameWidgetItemRequest} message
13284
+ * @param {!jspb.BinaryWriter} writer
13285
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13286
+ */
13287
+ proto.cms.GameWidgetItemRequest.serializeBinaryToWriter = function(message, writer) {
13288
+ var f = undefined;
13289
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
13290
+ if (f != null) {
13291
+ writer.writeInt32(
13292
+ 1,
13293
+ f
13294
+ );
13295
+ }
13296
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
13297
+ if (f != null) {
13298
+ writer.writeString(
13299
+ 2,
13300
+ f
13301
+ );
13302
+ }
13303
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
13304
+ if (f != null) {
13305
+ writer.writeString(
13306
+ 3,
13307
+ f
13308
+ );
13309
+ }
13310
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
13311
+ if (f != null) {
13312
+ writer.writeInt32(
13313
+ 4,
13314
+ f
13315
+ );
13316
+ }
13317
+ };
13318
+
13319
+
13320
+ /**
13321
+ * optional int32 id = 1;
13322
+ * @return {number}
13323
+ */
13324
+ proto.cms.GameWidgetItemRequest.prototype.getId = function() {
13325
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13326
+ };
13327
+
13328
+
13329
+ /**
13330
+ * @param {number} value
13331
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13332
+ */
13333
+ proto.cms.GameWidgetItemRequest.prototype.setId = function(value) {
13334
+ return jspb.Message.setField(this, 1, value);
13335
+ };
13336
+
13337
+
13338
+ /**
13339
+ * Clears the field making it undefined.
13340
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13341
+ */
13342
+ proto.cms.GameWidgetItemRequest.prototype.clearId = function() {
13343
+ return jspb.Message.setField(this, 1, undefined);
13344
+ };
13345
+
13346
+
13347
+ /**
13348
+ * Returns whether this field is set.
13349
+ * @return {boolean}
13350
+ */
13351
+ proto.cms.GameWidgetItemRequest.prototype.hasId = function() {
13352
+ return jspb.Message.getField(this, 1) != null;
13353
+ };
13354
+
13355
+
13356
+ /**
13357
+ * optional string title = 2;
13358
+ * @return {string}
13359
+ */
13360
+ proto.cms.GameWidgetItemRequest.prototype.getTitle = function() {
13361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13362
+ };
13363
+
13364
+
13365
+ /**
13366
+ * @param {string} value
13367
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13368
+ */
13369
+ proto.cms.GameWidgetItemRequest.prototype.setTitle = function(value) {
13370
+ return jspb.Message.setField(this, 2, value);
13371
+ };
13372
+
13373
+
13374
+ /**
13375
+ * Clears the field making it undefined.
13376
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13377
+ */
13378
+ proto.cms.GameWidgetItemRequest.prototype.clearTitle = function() {
13379
+ return jspb.Message.setField(this, 2, undefined);
13380
+ };
13381
+
13382
+
13383
+ /**
13384
+ * Returns whether this field is set.
13385
+ * @return {boolean}
13386
+ */
13387
+ proto.cms.GameWidgetItemRequest.prototype.hasTitle = function() {
13388
+ return jspb.Message.getField(this, 2) != null;
13389
+ };
13390
+
13391
+
13392
+ /**
13393
+ * optional string type = 3;
13394
+ * @return {string}
13395
+ */
13396
+ proto.cms.GameWidgetItemRequest.prototype.getType = function() {
13397
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13398
+ };
13399
+
13400
+
13401
+ /**
13402
+ * @param {string} value
13403
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13404
+ */
13405
+ proto.cms.GameWidgetItemRequest.prototype.setType = function(value) {
13406
+ return jspb.Message.setField(this, 3, value);
13407
+ };
13408
+
13409
+
13410
+ /**
13411
+ * Clears the field making it undefined.
13412
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13413
+ */
13414
+ proto.cms.GameWidgetItemRequest.prototype.clearType = function() {
13415
+ return jspb.Message.setField(this, 3, undefined);
13416
+ };
13417
+
13418
+
13419
+ /**
13420
+ * Returns whether this field is set.
13421
+ * @return {boolean}
13422
+ */
13423
+ proto.cms.GameWidgetItemRequest.prototype.hasType = function() {
13424
+ return jspb.Message.getField(this, 3) != null;
13425
+ };
13426
+
13427
+
13428
+ /**
13429
+ * optional int32 is_active = 4;
13430
+ * @return {number}
13431
+ */
13432
+ proto.cms.GameWidgetItemRequest.prototype.getIsActive = function() {
13433
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
13434
+ };
13435
+
13436
+
13437
+ /**
13438
+ * @param {number} value
13439
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13440
+ */
13441
+ proto.cms.GameWidgetItemRequest.prototype.setIsActive = function(value) {
13442
+ return jspb.Message.setField(this, 4, value);
13443
+ };
13444
+
13445
+
13446
+ /**
13447
+ * Clears the field making it undefined.
13448
+ * @return {!proto.cms.GameWidgetItemRequest} returns this
13449
+ */
13450
+ proto.cms.GameWidgetItemRequest.prototype.clearIsActive = function() {
13451
+ return jspb.Message.setField(this, 4, undefined);
13452
+ };
13453
+
13454
+
13455
+ /**
13456
+ * Returns whether this field is set.
13457
+ * @return {boolean}
13458
+ */
13459
+ proto.cms.GameWidgetItemRequest.prototype.hasIsActive = function() {
13460
+ return jspb.Message.getField(this, 4) != null;
13461
+ };
13462
+
13463
+
13464
+
13465
+
13466
+
13467
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13468
+ /**
13469
+ * Creates an object representation of this proto.
13470
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13471
+ * Optional fields that are not set will be set to undefined.
13472
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13473
+ * For the list of reserved names please see:
13474
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13475
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13476
+ * JSPB instance for transitional soy proto support:
13477
+ * http://goto/soy-param-migration
13478
+ * @return {!Object}
13479
+ */
13480
+ proto.cms.GameWidgetItem.prototype.toObject = function(opt_includeInstance) {
13481
+ return proto.cms.GameWidgetItem.toObject(opt_includeInstance, this);
13482
+ };
13483
+
13484
+
13485
+ /**
13486
+ * Static version of the {@see toObject} method.
13487
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13488
+ * the JSPB instance for transitional soy proto support:
13489
+ * http://goto/soy-param-migration
13490
+ * @param {!proto.cms.GameWidgetItem} msg The msg instance to transform.
13491
+ * @return {!Object}
13492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13493
+ */
13494
+ proto.cms.GameWidgetItem.toObject = function(includeInstance, msg) {
13495
+ var f, obj = {
13496
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
13497
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
13498
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
13499
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
13500
+ image: jspb.Message.getFieldWithDefault(msg, 5, "")
13501
+ };
13502
+
13503
+ if (includeInstance) {
13504
+ obj.$jspbMessageInstance = msg;
13505
+ }
13506
+ return obj;
13507
+ };
13508
+ }
13509
+
13510
+
13511
+ /**
13512
+ * Deserializes binary data (in protobuf wire format).
13513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13514
+ * @return {!proto.cms.GameWidgetItem}
13515
+ */
13516
+ proto.cms.GameWidgetItem.deserializeBinary = function(bytes) {
13517
+ var reader = new jspb.BinaryReader(bytes);
13518
+ var msg = new proto.cms.GameWidgetItem;
13519
+ return proto.cms.GameWidgetItem.deserializeBinaryFromReader(msg, reader);
13520
+ };
13521
+
13522
+
13523
+ /**
13524
+ * Deserializes binary data (in protobuf wire format) from the
13525
+ * given reader into the given message object.
13526
+ * @param {!proto.cms.GameWidgetItem} msg The message object to deserialize into.
13527
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13528
+ * @return {!proto.cms.GameWidgetItem}
13529
+ */
13530
+ proto.cms.GameWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
13531
+ while (reader.nextField()) {
13532
+ if (reader.isEndGroup()) {
13533
+ break;
13534
+ }
13535
+ var field = reader.getFieldNumber();
13536
+ switch (field) {
13537
+ case 1:
13538
+ var value = /** @type {number} */ (reader.readInt32());
13539
+ msg.setId(value);
13540
+ break;
13541
+ case 2:
13542
+ var value = /** @type {string} */ (reader.readString());
13543
+ msg.setTitle(value);
13544
+ break;
13545
+ case 3:
13546
+ var value = /** @type {string} */ (reader.readString());
13547
+ msg.setType(value);
13548
+ break;
13549
+ case 4:
13550
+ var value = /** @type {number} */ (reader.readInt32());
13551
+ msg.setIsActive(value);
13552
+ break;
13553
+ case 5:
13554
+ var value = /** @type {string} */ (reader.readString());
13555
+ msg.setImage(value);
13556
+ break;
13557
+ default:
13558
+ reader.skipField();
13559
+ break;
13560
+ }
13561
+ }
13562
+ return msg;
13563
+ };
13564
+
13565
+
13566
+ /**
13567
+ * Serializes the message to binary data (in protobuf wire format).
13568
+ * @return {!Uint8Array}
13569
+ */
13570
+ proto.cms.GameWidgetItem.prototype.serializeBinary = function() {
13571
+ var writer = new jspb.BinaryWriter();
13572
+ proto.cms.GameWidgetItem.serializeBinaryToWriter(this, writer);
13573
+ return writer.getResultBuffer();
13574
+ };
13575
+
13576
+
13577
+ /**
13578
+ * Serializes the given message to binary data (in protobuf wire
13579
+ * format), writing to the given BinaryWriter.
13580
+ * @param {!proto.cms.GameWidgetItem} message
13581
+ * @param {!jspb.BinaryWriter} writer
13582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13583
+ */
13584
+ proto.cms.GameWidgetItem.serializeBinaryToWriter = function(message, writer) {
13585
+ var f = undefined;
13586
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
13587
+ if (f != null) {
13588
+ writer.writeInt32(
13589
+ 1,
13590
+ f
13591
+ );
13592
+ }
13593
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
13594
+ if (f != null) {
13595
+ writer.writeString(
13596
+ 2,
13597
+ f
13598
+ );
13599
+ }
13600
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
13601
+ if (f != null) {
13602
+ writer.writeString(
13603
+ 3,
13604
+ f
13605
+ );
13606
+ }
13607
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
13608
+ if (f != null) {
13609
+ writer.writeInt32(
13610
+ 4,
13611
+ f
13612
+ );
13613
+ }
13614
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
13615
+ if (f != null) {
13616
+ writer.writeString(
13617
+ 5,
13618
+ f
13619
+ );
13620
+ }
13621
+ };
13622
+
13623
+
13624
+ /**
13625
+ * optional int32 id = 1;
13626
+ * @return {number}
13627
+ */
13628
+ proto.cms.GameWidgetItem.prototype.getId = function() {
13629
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13630
+ };
13631
+
13632
+
13633
+ /**
13634
+ * @param {number} value
13635
+ * @return {!proto.cms.GameWidgetItem} returns this
13636
+ */
13637
+ proto.cms.GameWidgetItem.prototype.setId = function(value) {
13638
+ return jspb.Message.setField(this, 1, value);
13639
+ };
13640
+
13641
+
13642
+ /**
13643
+ * Clears the field making it undefined.
13644
+ * @return {!proto.cms.GameWidgetItem} returns this
13645
+ */
13646
+ proto.cms.GameWidgetItem.prototype.clearId = function() {
13647
+ return jspb.Message.setField(this, 1, undefined);
13648
+ };
13649
+
13650
+
13651
+ /**
13652
+ * Returns whether this field is set.
13653
+ * @return {boolean}
13654
+ */
13655
+ proto.cms.GameWidgetItem.prototype.hasId = function() {
13656
+ return jspb.Message.getField(this, 1) != null;
13657
+ };
13658
+
13659
+
13660
+ /**
13661
+ * optional string title = 2;
13662
+ * @return {string}
13663
+ */
13664
+ proto.cms.GameWidgetItem.prototype.getTitle = function() {
13665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13666
+ };
13667
+
13668
+
13669
+ /**
13670
+ * @param {string} value
13671
+ * @return {!proto.cms.GameWidgetItem} returns this
13672
+ */
13673
+ proto.cms.GameWidgetItem.prototype.setTitle = function(value) {
13674
+ return jspb.Message.setField(this, 2, value);
13675
+ };
13676
+
13677
+
13678
+ /**
13679
+ * Clears the field making it undefined.
13680
+ * @return {!proto.cms.GameWidgetItem} returns this
13681
+ */
13682
+ proto.cms.GameWidgetItem.prototype.clearTitle = function() {
13683
+ return jspb.Message.setField(this, 2, undefined);
13684
+ };
13685
+
13686
+
13687
+ /**
13688
+ * Returns whether this field is set.
13689
+ * @return {boolean}
13690
+ */
13691
+ proto.cms.GameWidgetItem.prototype.hasTitle = function() {
13692
+ return jspb.Message.getField(this, 2) != null;
13693
+ };
13694
+
13695
+
13696
+ /**
13697
+ * optional string type = 3;
13698
+ * @return {string}
13699
+ */
13700
+ proto.cms.GameWidgetItem.prototype.getType = function() {
13701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13702
+ };
13703
+
13704
+
13705
+ /**
13706
+ * @param {string} value
13707
+ * @return {!proto.cms.GameWidgetItem} returns this
13708
+ */
13709
+ proto.cms.GameWidgetItem.prototype.setType = function(value) {
13710
+ return jspb.Message.setField(this, 3, value);
13711
+ };
13712
+
13713
+
13714
+ /**
13715
+ * Clears the field making it undefined.
13716
+ * @return {!proto.cms.GameWidgetItem} returns this
13717
+ */
13718
+ proto.cms.GameWidgetItem.prototype.clearType = function() {
13719
+ return jspb.Message.setField(this, 3, undefined);
13720
+ };
13721
+
13722
+
13723
+ /**
13724
+ * Returns whether this field is set.
13725
+ * @return {boolean}
13726
+ */
13727
+ proto.cms.GameWidgetItem.prototype.hasType = function() {
13728
+ return jspb.Message.getField(this, 3) != null;
13729
+ };
13730
+
13731
+
13732
+ /**
13733
+ * optional int32 is_active = 4;
13734
+ * @return {number}
13735
+ */
13736
+ proto.cms.GameWidgetItem.prototype.getIsActive = function() {
13737
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
13738
+ };
13739
+
13740
+
13741
+ /**
13742
+ * @param {number} value
13743
+ * @return {!proto.cms.GameWidgetItem} returns this
13744
+ */
13745
+ proto.cms.GameWidgetItem.prototype.setIsActive = function(value) {
13746
+ return jspb.Message.setField(this, 4, value);
13747
+ };
13748
+
13749
+
13750
+ /**
13751
+ * Clears the field making it undefined.
13752
+ * @return {!proto.cms.GameWidgetItem} returns this
13753
+ */
13754
+ proto.cms.GameWidgetItem.prototype.clearIsActive = function() {
13755
+ return jspb.Message.setField(this, 4, undefined);
13756
+ };
13757
+
13758
+
13759
+ /**
13760
+ * Returns whether this field is set.
13761
+ * @return {boolean}
13762
+ */
13763
+ proto.cms.GameWidgetItem.prototype.hasIsActive = function() {
13764
+ return jspb.Message.getField(this, 4) != null;
13765
+ };
13766
+
13767
+
13768
+ /**
13769
+ * optional string image = 5;
13770
+ * @return {string}
13771
+ */
13772
+ proto.cms.GameWidgetItem.prototype.getImage = function() {
13773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
13774
+ };
13775
+
13776
+
13777
+ /**
13778
+ * @param {string} value
13779
+ * @return {!proto.cms.GameWidgetItem} returns this
13780
+ */
13781
+ proto.cms.GameWidgetItem.prototype.setImage = function(value) {
13782
+ return jspb.Message.setField(this, 5, value);
13783
+ };
13784
+
13785
+
13786
+ /**
13787
+ * Clears the field making it undefined.
13788
+ * @return {!proto.cms.GameWidgetItem} returns this
13789
+ */
13790
+ proto.cms.GameWidgetItem.prototype.clearImage = function() {
13791
+ return jspb.Message.setField(this, 5, undefined);
13792
+ };
13793
+
13794
+
13795
+ /**
13796
+ * Returns whether this field is set.
13797
+ * @return {boolean}
13798
+ */
13799
+ proto.cms.GameWidgetItem.prototype.hasImage = function() {
13800
+ return jspb.Message.getField(this, 5) != null;
13801
+ };
13802
+
13803
+
13804
+
13805
+
13806
+
13807
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13808
+ /**
13809
+ * Creates an object representation of this proto.
13810
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13811
+ * Optional fields that are not set will be set to undefined.
13812
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13813
+ * For the list of reserved names please see:
13814
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13815
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13816
+ * JSPB instance for transitional soy proto support:
13817
+ * http://goto/soy-param-migration
13818
+ * @return {!Object}
13819
+ */
13820
+ proto.cms.GameWidgetResponse.prototype.toObject = function(opt_includeInstance) {
13821
+ return proto.cms.GameWidgetResponse.toObject(opt_includeInstance, this);
13822
+ };
13823
+
13824
+
13825
+ /**
13826
+ * Static version of the {@see toObject} method.
13827
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13828
+ * the JSPB instance for transitional soy proto support:
13829
+ * http://goto/soy-param-migration
13830
+ * @param {!proto.cms.GameWidgetResponse} msg The msg instance to transform.
13831
+ * @return {!Object}
13832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13833
+ */
13834
+ proto.cms.GameWidgetResponse.toObject = function(includeInstance, msg) {
13835
+ var f, obj = {
13836
+ data: (f = msg.getData()) && proto.cms.GameWidgetItem.toObject(includeInstance, f)
13837
+ };
13838
+
13839
+ if (includeInstance) {
13840
+ obj.$jspbMessageInstance = msg;
13841
+ }
13842
+ return obj;
13843
+ };
13844
+ }
13845
+
13846
+
13847
+ /**
13848
+ * Deserializes binary data (in protobuf wire format).
13849
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13850
+ * @return {!proto.cms.GameWidgetResponse}
13851
+ */
13852
+ proto.cms.GameWidgetResponse.deserializeBinary = function(bytes) {
13853
+ var reader = new jspb.BinaryReader(bytes);
13854
+ var msg = new proto.cms.GameWidgetResponse;
13855
+ return proto.cms.GameWidgetResponse.deserializeBinaryFromReader(msg, reader);
13856
+ };
13857
+
13858
+
13859
+ /**
13860
+ * Deserializes binary data (in protobuf wire format) from the
13861
+ * given reader into the given message object.
13862
+ * @param {!proto.cms.GameWidgetResponse} msg The message object to deserialize into.
13863
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13864
+ * @return {!proto.cms.GameWidgetResponse}
13865
+ */
13866
+ proto.cms.GameWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
13867
+ while (reader.nextField()) {
13868
+ if (reader.isEndGroup()) {
13869
+ break;
13870
+ }
13871
+ var field = reader.getFieldNumber();
13872
+ switch (field) {
13873
+ case 1:
13874
+ var value = new proto.cms.GameWidgetItem;
13875
+ reader.readMessage(value,proto.cms.GameWidgetItem.deserializeBinaryFromReader);
13876
+ msg.setData(value);
13877
+ break;
13878
+ default:
13879
+ reader.skipField();
13880
+ break;
13881
+ }
13882
+ }
13883
+ return msg;
13884
+ };
13885
+
13886
+
13887
+ /**
13888
+ * Serializes the message to binary data (in protobuf wire format).
13889
+ * @return {!Uint8Array}
13890
+ */
13891
+ proto.cms.GameWidgetResponse.prototype.serializeBinary = function() {
13892
+ var writer = new jspb.BinaryWriter();
13893
+ proto.cms.GameWidgetResponse.serializeBinaryToWriter(this, writer);
13894
+ return writer.getResultBuffer();
13895
+ };
13896
+
13897
+
13898
+ /**
13899
+ * Serializes the given message to binary data (in protobuf wire
13900
+ * format), writing to the given BinaryWriter.
13901
+ * @param {!proto.cms.GameWidgetResponse} message
13902
+ * @param {!jspb.BinaryWriter} writer
13903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13904
+ */
13905
+ proto.cms.GameWidgetResponse.serializeBinaryToWriter = function(message, writer) {
13906
+ var f = undefined;
13907
+ f = message.getData();
13908
+ if (f != null) {
13909
+ writer.writeMessage(
13910
+ 1,
13911
+ f,
13912
+ proto.cms.GameWidgetItem.serializeBinaryToWriter
13913
+ );
13914
+ }
13915
+ };
13916
+
13917
+
13918
+ /**
13919
+ * optional GameWidgetItem data = 1;
13920
+ * @return {?proto.cms.GameWidgetItem}
13921
+ */
13922
+ proto.cms.GameWidgetResponse.prototype.getData = function() {
13923
+ return /** @type{?proto.cms.GameWidgetItem} */ (
13924
+ jspb.Message.getWrapperField(this, proto.cms.GameWidgetItem, 1));
13925
+ };
13926
+
13927
+
13928
+ /**
13929
+ * @param {?proto.cms.GameWidgetItem|undefined} value
13930
+ * @return {!proto.cms.GameWidgetResponse} returns this
13931
+ */
13932
+ proto.cms.GameWidgetResponse.prototype.setData = function(value) {
13933
+ return jspb.Message.setWrapperField(this, 1, value);
13934
+ };
13935
+
13936
+
13937
+ /**
13938
+ * Clears the message field making it undefined.
13939
+ * @return {!proto.cms.GameWidgetResponse} returns this
13940
+ */
13941
+ proto.cms.GameWidgetResponse.prototype.clearData = function() {
13942
+ return this.setData(undefined);
13943
+ };
13944
+
13945
+
13946
+ /**
13947
+ * Returns whether this field is set.
13948
+ * @return {boolean}
13949
+ */
13950
+ proto.cms.GameWidgetResponse.prototype.hasData = function() {
13951
+ return jspb.Message.getField(this, 1) != null;
13952
+ };
13953
+
13954
+
13955
+
13956
+
13957
+
13958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13959
+ /**
13960
+ * Creates an object representation of this proto.
13961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13962
+ * Optional fields that are not set will be set to undefined.
13963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13964
+ * For the list of reserved names please see:
13965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13967
+ * JSPB instance for transitional soy proto support:
13968
+ * http://goto/soy-param-migration
13969
+ * @return {!Object}
13970
+ */
13971
+ proto.cms.GetGameWidgetRequest.prototype.toObject = function(opt_includeInstance) {
13972
+ return proto.cms.GetGameWidgetRequest.toObject(opt_includeInstance, this);
13973
+ };
13974
+
13975
+
13976
+ /**
13977
+ * Static version of the {@see toObject} method.
13978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13979
+ * the JSPB instance for transitional soy proto support:
13980
+ * http://goto/soy-param-migration
13981
+ * @param {!proto.cms.GetGameWidgetRequest} msg The msg instance to transform.
13982
+ * @return {!Object}
13983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13984
+ */
13985
+ proto.cms.GetGameWidgetRequest.toObject = function(includeInstance, msg) {
13986
+ var f, obj = {
13987
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
13988
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
13989
+ };
13990
+
13991
+ if (includeInstance) {
13992
+ obj.$jspbMessageInstance = msg;
13993
+ }
13994
+ return obj;
13995
+ };
13996
+ }
13997
+
13998
+
13999
+ /**
14000
+ * Deserializes binary data (in protobuf wire format).
14001
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14002
+ * @return {!proto.cms.GetGameWidgetRequest}
14003
+ */
14004
+ proto.cms.GetGameWidgetRequest.deserializeBinary = function(bytes) {
14005
+ var reader = new jspb.BinaryReader(bytes);
14006
+ var msg = new proto.cms.GetGameWidgetRequest;
14007
+ return proto.cms.GetGameWidgetRequest.deserializeBinaryFromReader(msg, reader);
14008
+ };
14009
+
14010
+
14011
+ /**
14012
+ * Deserializes binary data (in protobuf wire format) from the
14013
+ * given reader into the given message object.
14014
+ * @param {!proto.cms.GetGameWidgetRequest} msg The message object to deserialize into.
14015
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14016
+ * @return {!proto.cms.GetGameWidgetRequest}
14017
+ */
14018
+ proto.cms.GetGameWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
14019
+ while (reader.nextField()) {
14020
+ if (reader.isEndGroup()) {
14021
+ break;
14022
+ }
14023
+ var field = reader.getFieldNumber();
14024
+ switch (field) {
14025
+ case 1:
14026
+ var value = /** @type {number} */ (reader.readInt32());
14027
+ msg.setId(value);
14028
+ break;
14029
+ case 2:
14030
+ var value = /** @type {boolean} */ (reader.readBool());
14031
+ msg.setAdminSide(value);
14032
+ break;
14033
+ default:
14034
+ reader.skipField();
14035
+ break;
14036
+ }
14037
+ }
14038
+ return msg;
14039
+ };
14040
+
14041
+
14042
+ /**
14043
+ * Serializes the message to binary data (in protobuf wire format).
14044
+ * @return {!Uint8Array}
14045
+ */
14046
+ proto.cms.GetGameWidgetRequest.prototype.serializeBinary = function() {
14047
+ var writer = new jspb.BinaryWriter();
14048
+ proto.cms.GetGameWidgetRequest.serializeBinaryToWriter(this, writer);
14049
+ return writer.getResultBuffer();
14050
+ };
14051
+
14052
+
14053
+ /**
14054
+ * Serializes the given message to binary data (in protobuf wire
14055
+ * format), writing to the given BinaryWriter.
14056
+ * @param {!proto.cms.GetGameWidgetRequest} message
14057
+ * @param {!jspb.BinaryWriter} writer
14058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14059
+ */
14060
+ proto.cms.GetGameWidgetRequest.serializeBinaryToWriter = function(message, writer) {
14061
+ var f = undefined;
14062
+ f = message.getId();
14063
+ if (f !== 0) {
14064
+ writer.writeInt32(
14065
+ 1,
14066
+ f
14067
+ );
14068
+ }
14069
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
14070
+ if (f != null) {
14071
+ writer.writeBool(
14072
+ 2,
14073
+ f
14074
+ );
14075
+ }
14076
+ };
14077
+
14078
+
14079
+ /**
14080
+ * optional int32 id = 1;
14081
+ * @return {number}
14082
+ */
14083
+ proto.cms.GetGameWidgetRequest.prototype.getId = function() {
14084
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14085
+ };
14086
+
14087
+
14088
+ /**
14089
+ * @param {number} value
14090
+ * @return {!proto.cms.GetGameWidgetRequest} returns this
14091
+ */
14092
+ proto.cms.GetGameWidgetRequest.prototype.setId = function(value) {
14093
+ return jspb.Message.setProto3IntField(this, 1, value);
14094
+ };
14095
+
14096
+
14097
+ /**
14098
+ * optional bool admin_side = 2;
14099
+ * @return {boolean}
14100
+ */
14101
+ proto.cms.GetGameWidgetRequest.prototype.getAdminSide = function() {
14102
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
14103
+ };
14104
+
14105
+
14106
+ /**
14107
+ * @param {boolean} value
14108
+ * @return {!proto.cms.GetGameWidgetRequest} returns this
14109
+ */
14110
+ proto.cms.GetGameWidgetRequest.prototype.setAdminSide = function(value) {
14111
+ return jspb.Message.setField(this, 2, value);
14112
+ };
14113
+
14114
+
14115
+ /**
14116
+ * Clears the field making it undefined.
14117
+ * @return {!proto.cms.GetGameWidgetRequest} returns this
14118
+ */
14119
+ proto.cms.GetGameWidgetRequest.prototype.clearAdminSide = function() {
14120
+ return jspb.Message.setField(this, 2, undefined);
14121
+ };
14122
+
14123
+
14124
+ /**
14125
+ * Returns whether this field is set.
14126
+ * @return {boolean}
14127
+ */
14128
+ proto.cms.GetGameWidgetRequest.prototype.hasAdminSide = function() {
14129
+ return jspb.Message.getField(this, 2) != null;
14130
+ };
14131
+
14132
+
14133
+
14134
+
14135
+
14136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14137
+ /**
14138
+ * Creates an object representation of this proto.
14139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14140
+ * Optional fields that are not set will be set to undefined.
14141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14142
+ * For the list of reserved names please see:
14143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14145
+ * JSPB instance for transitional soy proto support:
14146
+ * http://goto/soy-param-migration
14147
+ * @return {!Object}
14148
+ */
14149
+ proto.cms.GameWidgetStatusResponse.prototype.toObject = function(opt_includeInstance) {
14150
+ return proto.cms.GameWidgetStatusResponse.toObject(opt_includeInstance, this);
14151
+ };
14152
+
14153
+
14154
+ /**
14155
+ * Static version of the {@see toObject} method.
14156
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14157
+ * the JSPB instance for transitional soy proto support:
14158
+ * http://goto/soy-param-migration
14159
+ * @param {!proto.cms.GameWidgetStatusResponse} msg The msg instance to transform.
14160
+ * @return {!Object}
14161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14162
+ */
14163
+ proto.cms.GameWidgetStatusResponse.toObject = function(includeInstance, msg) {
14164
+ var f, obj = {
14165
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
14166
+ };
14167
+
14168
+ if (includeInstance) {
14169
+ obj.$jspbMessageInstance = msg;
14170
+ }
14171
+ return obj;
14172
+ };
14173
+ }
14174
+
14175
+
14176
+ /**
14177
+ * Deserializes binary data (in protobuf wire format).
14178
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14179
+ * @return {!proto.cms.GameWidgetStatusResponse}
14180
+ */
14181
+ proto.cms.GameWidgetStatusResponse.deserializeBinary = function(bytes) {
14182
+ var reader = new jspb.BinaryReader(bytes);
14183
+ var msg = new proto.cms.GameWidgetStatusResponse;
14184
+ return proto.cms.GameWidgetStatusResponse.deserializeBinaryFromReader(msg, reader);
14185
+ };
14186
+
14187
+
14188
+ /**
14189
+ * Deserializes binary data (in protobuf wire format) from the
14190
+ * given reader into the given message object.
14191
+ * @param {!proto.cms.GameWidgetStatusResponse} msg The message object to deserialize into.
14192
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14193
+ * @return {!proto.cms.GameWidgetStatusResponse}
14194
+ */
14195
+ proto.cms.GameWidgetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
14196
+ while (reader.nextField()) {
14197
+ if (reader.isEndGroup()) {
14198
+ break;
14199
+ }
14200
+ var field = reader.getFieldNumber();
14201
+ switch (field) {
14202
+ case 1:
14203
+ var value = /** @type {string} */ (reader.readString());
14204
+ msg.setStatus(value);
14205
+ break;
14206
+ default:
14207
+ reader.skipField();
14208
+ break;
14209
+ }
14210
+ }
14211
+ return msg;
14212
+ };
14213
+
14214
+
14215
+ /**
14216
+ * Serializes the message to binary data (in protobuf wire format).
14217
+ * @return {!Uint8Array}
14218
+ */
14219
+ proto.cms.GameWidgetStatusResponse.prototype.serializeBinary = function() {
14220
+ var writer = new jspb.BinaryWriter();
14221
+ proto.cms.GameWidgetStatusResponse.serializeBinaryToWriter(this, writer);
14222
+ return writer.getResultBuffer();
14223
+ };
14224
+
14225
+
14226
+ /**
14227
+ * Serializes the given message to binary data (in protobuf wire
14228
+ * format), writing to the given BinaryWriter.
14229
+ * @param {!proto.cms.GameWidgetStatusResponse} message
14230
+ * @param {!jspb.BinaryWriter} writer
14231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14232
+ */
14233
+ proto.cms.GameWidgetStatusResponse.serializeBinaryToWriter = function(message, writer) {
14234
+ var f = undefined;
14235
+ f = message.getStatus();
14236
+ if (f.length > 0) {
14237
+ writer.writeString(
14238
+ 1,
14239
+ f
14240
+ );
14241
+ }
14242
+ };
14243
+
14244
+
14245
+ /**
14246
+ * optional string status = 1;
14247
+ * @return {string}
14248
+ */
14249
+ proto.cms.GameWidgetStatusResponse.prototype.getStatus = function() {
14250
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14251
+ };
14252
+
14253
+
14254
+ /**
14255
+ * @param {string} value
14256
+ * @return {!proto.cms.GameWidgetStatusResponse} returns this
14257
+ */
14258
+ proto.cms.GameWidgetStatusResponse.prototype.setStatus = function(value) {
14259
+ return jspb.Message.setProto3StringField(this, 1, value);
14260
+ };
14261
+
14262
+
14263
+
14264
+ /**
14265
+ * List of repeated fields within this message type.
14266
+ * @private {!Array<number>}
14267
+ * @const
14268
+ */
14269
+ proto.cms.GameWidgetsItemsResponse.repeatedFields_ = [1];
14270
+
14271
+
14272
+
14273
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14274
+ /**
14275
+ * Creates an object representation of this proto.
14276
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14277
+ * Optional fields that are not set will be set to undefined.
14278
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14279
+ * For the list of reserved names please see:
14280
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14281
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14282
+ * JSPB instance for transitional soy proto support:
14283
+ * http://goto/soy-param-migration
14284
+ * @return {!Object}
14285
+ */
14286
+ proto.cms.GameWidgetsItemsResponse.prototype.toObject = function(opt_includeInstance) {
14287
+ return proto.cms.GameWidgetsItemsResponse.toObject(opt_includeInstance, this);
14288
+ };
14289
+
14290
+
14291
+ /**
14292
+ * Static version of the {@see toObject} method.
14293
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14294
+ * the JSPB instance for transitional soy proto support:
14295
+ * http://goto/soy-param-migration
14296
+ * @param {!proto.cms.GameWidgetsItemsResponse} msg The msg instance to transform.
14297
+ * @return {!Object}
14298
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14299
+ */
14300
+ proto.cms.GameWidgetsItemsResponse.toObject = function(includeInstance, msg) {
14301
+ var f, obj = {
14302
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
14303
+ proto.cms.GameWidgetItem.toObject, includeInstance),
14304
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
14305
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
14306
+ };
14307
+
14308
+ if (includeInstance) {
14309
+ obj.$jspbMessageInstance = msg;
14310
+ }
14311
+ return obj;
14312
+ };
14313
+ }
14314
+
14315
+
14316
+ /**
14317
+ * Deserializes binary data (in protobuf wire format).
14318
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14319
+ * @return {!proto.cms.GameWidgetsItemsResponse}
14320
+ */
14321
+ proto.cms.GameWidgetsItemsResponse.deserializeBinary = function(bytes) {
14322
+ var reader = new jspb.BinaryReader(bytes);
14323
+ var msg = new proto.cms.GameWidgetsItemsResponse;
14324
+ return proto.cms.GameWidgetsItemsResponse.deserializeBinaryFromReader(msg, reader);
14325
+ };
14326
+
14327
+
14328
+ /**
14329
+ * Deserializes binary data (in protobuf wire format) from the
14330
+ * given reader into the given message object.
14331
+ * @param {!proto.cms.GameWidgetsItemsResponse} msg The message object to deserialize into.
14332
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14333
+ * @return {!proto.cms.GameWidgetsItemsResponse}
14334
+ */
14335
+ proto.cms.GameWidgetsItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
14336
+ while (reader.nextField()) {
14337
+ if (reader.isEndGroup()) {
14338
+ break;
14339
+ }
14340
+ var field = reader.getFieldNumber();
14341
+ switch (field) {
14342
+ case 1:
14343
+ var value = new proto.cms.GameWidgetItem;
14344
+ reader.readMessage(value,proto.cms.GameWidgetItem.deserializeBinaryFromReader);
14345
+ msg.addItems(value);
14346
+ break;
14347
+ case 2:
14348
+ var value = /** @type {number} */ (reader.readInt32());
14349
+ msg.setTotalPages(value);
14350
+ break;
14351
+ case 3:
14352
+ var value = /** @type {number} */ (reader.readInt32());
14353
+ msg.setTotalItems(value);
14354
+ break;
14355
+ default:
14356
+ reader.skipField();
14357
+ break;
14358
+ }
14359
+ }
14360
+ return msg;
14361
+ };
14362
+
14363
+
14364
+ /**
14365
+ * Serializes the message to binary data (in protobuf wire format).
14366
+ * @return {!Uint8Array}
14367
+ */
14368
+ proto.cms.GameWidgetsItemsResponse.prototype.serializeBinary = function() {
14369
+ var writer = new jspb.BinaryWriter();
14370
+ proto.cms.GameWidgetsItemsResponse.serializeBinaryToWriter(this, writer);
14371
+ return writer.getResultBuffer();
14372
+ };
14373
+
14374
+
14375
+ /**
14376
+ * Serializes the given message to binary data (in protobuf wire
14377
+ * format), writing to the given BinaryWriter.
14378
+ * @param {!proto.cms.GameWidgetsItemsResponse} message
14379
+ * @param {!jspb.BinaryWriter} writer
14380
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14381
+ */
14382
+ proto.cms.GameWidgetsItemsResponse.serializeBinaryToWriter = function(message, writer) {
14383
+ var f = undefined;
14384
+ f = message.getItemsList();
14385
+ if (f.length > 0) {
14386
+ writer.writeRepeatedMessage(
14387
+ 1,
14388
+ f,
14389
+ proto.cms.GameWidgetItem.serializeBinaryToWriter
14390
+ );
14391
+ }
14392
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
14393
+ if (f != null) {
14394
+ writer.writeInt32(
14395
+ 2,
14396
+ f
14397
+ );
14398
+ }
14399
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
14400
+ if (f != null) {
14401
+ writer.writeInt32(
14402
+ 3,
14403
+ f
14404
+ );
14405
+ }
14406
+ };
14407
+
14408
+
14409
+ /**
14410
+ * repeated GameWidgetItem items = 1;
14411
+ * @return {!Array<!proto.cms.GameWidgetItem>}
14412
+ */
14413
+ proto.cms.GameWidgetsItemsResponse.prototype.getItemsList = function() {
14414
+ return /** @type{!Array<!proto.cms.GameWidgetItem>} */ (
14415
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.GameWidgetItem, 1));
14416
+ };
14417
+
14418
+
14419
+ /**
14420
+ * @param {!Array<!proto.cms.GameWidgetItem>} value
14421
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14422
+ */
14423
+ proto.cms.GameWidgetsItemsResponse.prototype.setItemsList = function(value) {
14424
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
14425
+ };
14426
+
14427
+
14428
+ /**
14429
+ * @param {!proto.cms.GameWidgetItem=} opt_value
14430
+ * @param {number=} opt_index
14431
+ * @return {!proto.cms.GameWidgetItem}
14432
+ */
14433
+ proto.cms.GameWidgetsItemsResponse.prototype.addItems = function(opt_value, opt_index) {
14434
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.GameWidgetItem, opt_index);
14435
+ };
14436
+
14437
+
14438
+ /**
14439
+ * Clears the list making it empty but non-null.
14440
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14441
+ */
14442
+ proto.cms.GameWidgetsItemsResponse.prototype.clearItemsList = function() {
14443
+ return this.setItemsList([]);
14444
+ };
14445
+
14446
+
14447
+ /**
14448
+ * optional int32 total_pages = 2;
14449
+ * @return {number}
14450
+ */
14451
+ proto.cms.GameWidgetsItemsResponse.prototype.getTotalPages = function() {
14452
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14453
+ };
14454
+
14455
+
14456
+ /**
14457
+ * @param {number} value
14458
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14459
+ */
14460
+ proto.cms.GameWidgetsItemsResponse.prototype.setTotalPages = function(value) {
14461
+ return jspb.Message.setField(this, 2, value);
14462
+ };
14463
+
14464
+
14465
+ /**
14466
+ * Clears the field making it undefined.
14467
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14468
+ */
14469
+ proto.cms.GameWidgetsItemsResponse.prototype.clearTotalPages = function() {
14470
+ return jspb.Message.setField(this, 2, undefined);
14471
+ };
14472
+
14473
+
14474
+ /**
14475
+ * Returns whether this field is set.
14476
+ * @return {boolean}
14477
+ */
14478
+ proto.cms.GameWidgetsItemsResponse.prototype.hasTotalPages = function() {
14479
+ return jspb.Message.getField(this, 2) != null;
14480
+ };
14481
+
14482
+
14483
+ /**
14484
+ * optional int32 total_items = 3;
14485
+ * @return {number}
14486
+ */
14487
+ proto.cms.GameWidgetsItemsResponse.prototype.getTotalItems = function() {
14488
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
14489
+ };
14490
+
14491
+
14492
+ /**
14493
+ * @param {number} value
14494
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14495
+ */
14496
+ proto.cms.GameWidgetsItemsResponse.prototype.setTotalItems = function(value) {
14497
+ return jspb.Message.setField(this, 3, value);
14498
+ };
14499
+
14500
+
14501
+ /**
14502
+ * Clears the field making it undefined.
14503
+ * @return {!proto.cms.GameWidgetsItemsResponse} returns this
14504
+ */
14505
+ proto.cms.GameWidgetsItemsResponse.prototype.clearTotalItems = function() {
14506
+ return jspb.Message.setField(this, 3, undefined);
14507
+ };
14508
+
14509
+
14510
+ /**
14511
+ * Returns whether this field is set.
14512
+ * @return {boolean}
14513
+ */
14514
+ proto.cms.GameWidgetsItemsResponse.prototype.hasTotalItems = function() {
14515
+ return jspb.Message.getField(this, 3) != null;
14516
+ };
14517
+
14518
+
12789
14519
  goog.object.extend(exports, proto.cms);