protobuf-platform 1.2.131 → 1.2.134

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.
@@ -38,6 +38,9 @@ goog.exportSymbol('proto.analytic.PingRequest', null, global);
38
38
  goog.exportSymbol('proto.analytic.PongResponse', null, global);
39
39
  goog.exportSymbol('proto.analytic.SegmentedUserRequest', null, global);
40
40
  goog.exportSymbol('proto.analytic.SegmentedUserResponse', null, global);
41
+ goog.exportSymbol('proto.analytic.SportItem', null, global);
42
+ goog.exportSymbol('proto.analytic.SportItemWrapper', null, global);
43
+ goog.exportSymbol('proto.analytic.SportsResponse', null, global);
41
44
  /**
42
45
  * Generated by JsPbCodeGenerator.
43
46
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -353,6 +356,69 @@ if (goog.DEBUG && !COMPILED) {
353
356
  */
354
357
  proto.analytic.GamesResponse.displayName = 'proto.analytic.GamesResponse';
355
358
  }
359
+ /**
360
+ * Generated by JsPbCodeGenerator.
361
+ * @param {Array=} opt_data Optional initial data array, typically from a
362
+ * server response, or constructed directly in Javascript. The array is used
363
+ * in place and becomes part of the constructed object. It is not cloned.
364
+ * If no data is provided, the constructed object will be empty, but still
365
+ * valid.
366
+ * @extends {jspb.Message}
367
+ * @constructor
368
+ */
369
+ proto.analytic.SportItem = function(opt_data) {
370
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
371
+ };
372
+ goog.inherits(proto.analytic.SportItem, jspb.Message);
373
+ if (goog.DEBUG && !COMPILED) {
374
+ /**
375
+ * @public
376
+ * @override
377
+ */
378
+ proto.analytic.SportItem.displayName = 'proto.analytic.SportItem';
379
+ }
380
+ /**
381
+ * Generated by JsPbCodeGenerator.
382
+ * @param {Array=} opt_data Optional initial data array, typically from a
383
+ * server response, or constructed directly in Javascript. The array is used
384
+ * in place and becomes part of the constructed object. It is not cloned.
385
+ * If no data is provided, the constructed object will be empty, but still
386
+ * valid.
387
+ * @extends {jspb.Message}
388
+ * @constructor
389
+ */
390
+ proto.analytic.SportItemWrapper = function(opt_data) {
391
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.SportItemWrapper.repeatedFields_, null);
392
+ };
393
+ goog.inherits(proto.analytic.SportItemWrapper, jspb.Message);
394
+ if (goog.DEBUG && !COMPILED) {
395
+ /**
396
+ * @public
397
+ * @override
398
+ */
399
+ proto.analytic.SportItemWrapper.displayName = 'proto.analytic.SportItemWrapper';
400
+ }
401
+ /**
402
+ * Generated by JsPbCodeGenerator.
403
+ * @param {Array=} opt_data Optional initial data array, typically from a
404
+ * server response, or constructed directly in Javascript. The array is used
405
+ * in place and becomes part of the constructed object. It is not cloned.
406
+ * If no data is provided, the constructed object will be empty, but still
407
+ * valid.
408
+ * @extends {jspb.Message}
409
+ * @constructor
410
+ */
411
+ proto.analytic.SportsResponse = function(opt_data) {
412
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.SportsResponse.repeatedFields_, null);
413
+ };
414
+ goog.inherits(proto.analytic.SportsResponse, jspb.Message);
415
+ if (goog.DEBUG && !COMPILED) {
416
+ /**
417
+ * @public
418
+ * @override
419
+ */
420
+ proto.analytic.SportsResponse.displayName = 'proto.analytic.SportsResponse';
421
+ }
356
422
  /**
357
423
  * Generated by JsPbCodeGenerator.
358
424
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6821,6 +6887,1416 @@ proto.analytic.GamesResponse.prototype.hasTotalItems = function() {
6821
6887
 
6822
6888
 
6823
6889
 
6890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6891
+ /**
6892
+ * Creates an object representation of this proto.
6893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6894
+ * Optional fields that are not set will be set to undefined.
6895
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6896
+ * For the list of reserved names please see:
6897
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6898
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6899
+ * JSPB instance for transitional soy proto support:
6900
+ * http://goto/soy-param-migration
6901
+ * @return {!Object}
6902
+ */
6903
+ proto.analytic.SportItem.prototype.toObject = function(opt_includeInstance) {
6904
+ return proto.analytic.SportItem.toObject(opt_includeInstance, this);
6905
+ };
6906
+
6907
+
6908
+ /**
6909
+ * Static version of the {@see toObject} method.
6910
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6911
+ * the JSPB instance for transitional soy proto support:
6912
+ * http://goto/soy-param-migration
6913
+ * @param {!proto.analytic.SportItem} msg The msg instance to transform.
6914
+ * @return {!Object}
6915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6916
+ */
6917
+ proto.analytic.SportItem.toObject = function(includeInstance, msg) {
6918
+ var f, obj = {
6919
+ date: jspb.Message.getFieldWithDefault(msg, 1, ""),
6920
+ categoryTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
6921
+ typeTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
6922
+ usersCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
6923
+ betCountReal: jspb.Message.getFieldWithDefault(msg, 5, 0),
6924
+ betSumReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
6925
+ betCountBonus: jspb.Message.getFieldWithDefault(msg, 7, 0),
6926
+ betSumBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
6927
+ winCountReal: jspb.Message.getFieldWithDefault(msg, 9, 0),
6928
+ winSumReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
6929
+ winCountBonus: jspb.Message.getFieldWithDefault(msg, 11, 0),
6930
+ winSumBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
6931
+ turnoverBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
6932
+ turnoverReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
6933
+ turnoverTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
6934
+ ggrBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
6935
+ ggrReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
6936
+ ggrTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
6937
+ };
6938
+
6939
+ if (includeInstance) {
6940
+ obj.$jspbMessageInstance = msg;
6941
+ }
6942
+ return obj;
6943
+ };
6944
+ }
6945
+
6946
+
6947
+ /**
6948
+ * Deserializes binary data (in protobuf wire format).
6949
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6950
+ * @return {!proto.analytic.SportItem}
6951
+ */
6952
+ proto.analytic.SportItem.deserializeBinary = function(bytes) {
6953
+ var reader = new jspb.BinaryReader(bytes);
6954
+ var msg = new proto.analytic.SportItem;
6955
+ return proto.analytic.SportItem.deserializeBinaryFromReader(msg, reader);
6956
+ };
6957
+
6958
+
6959
+ /**
6960
+ * Deserializes binary data (in protobuf wire format) from the
6961
+ * given reader into the given message object.
6962
+ * @param {!proto.analytic.SportItem} msg The message object to deserialize into.
6963
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6964
+ * @return {!proto.analytic.SportItem}
6965
+ */
6966
+ proto.analytic.SportItem.deserializeBinaryFromReader = function(msg, reader) {
6967
+ while (reader.nextField()) {
6968
+ if (reader.isEndGroup()) {
6969
+ break;
6970
+ }
6971
+ var field = reader.getFieldNumber();
6972
+ switch (field) {
6973
+ case 1:
6974
+ var value = /** @type {string} */ (reader.readString());
6975
+ msg.setDate(value);
6976
+ break;
6977
+ case 2:
6978
+ var value = /** @type {string} */ (reader.readString());
6979
+ msg.setCategoryTitle(value);
6980
+ break;
6981
+ case 3:
6982
+ var value = /** @type {string} */ (reader.readString());
6983
+ msg.setTypeTitle(value);
6984
+ break;
6985
+ case 4:
6986
+ var value = /** @type {number} */ (reader.readInt32());
6987
+ msg.setUsersCount(value);
6988
+ break;
6989
+ case 5:
6990
+ var value = /** @type {number} */ (reader.readInt32());
6991
+ msg.setBetCountReal(value);
6992
+ break;
6993
+ case 6:
6994
+ var value = /** @type {number} */ (reader.readFloat());
6995
+ msg.setBetSumReal(value);
6996
+ break;
6997
+ case 7:
6998
+ var value = /** @type {number} */ (reader.readInt32());
6999
+ msg.setBetCountBonus(value);
7000
+ break;
7001
+ case 8:
7002
+ var value = /** @type {number} */ (reader.readFloat());
7003
+ msg.setBetSumBonus(value);
7004
+ break;
7005
+ case 9:
7006
+ var value = /** @type {number} */ (reader.readInt32());
7007
+ msg.setWinCountReal(value);
7008
+ break;
7009
+ case 10:
7010
+ var value = /** @type {number} */ (reader.readFloat());
7011
+ msg.setWinSumReal(value);
7012
+ break;
7013
+ case 11:
7014
+ var value = /** @type {number} */ (reader.readInt32());
7015
+ msg.setWinCountBonus(value);
7016
+ break;
7017
+ case 12:
7018
+ var value = /** @type {number} */ (reader.readFloat());
7019
+ msg.setWinSumBonus(value);
7020
+ break;
7021
+ case 13:
7022
+ var value = /** @type {number} */ (reader.readFloat());
7023
+ msg.setTurnoverBonus(value);
7024
+ break;
7025
+ case 14:
7026
+ var value = /** @type {number} */ (reader.readFloat());
7027
+ msg.setTurnoverReal(value);
7028
+ break;
7029
+ case 15:
7030
+ var value = /** @type {number} */ (reader.readFloat());
7031
+ msg.setTurnoverTotal(value);
7032
+ break;
7033
+ case 16:
7034
+ var value = /** @type {number} */ (reader.readFloat());
7035
+ msg.setGgrBonus(value);
7036
+ break;
7037
+ case 17:
7038
+ var value = /** @type {number} */ (reader.readFloat());
7039
+ msg.setGgrReal(value);
7040
+ break;
7041
+ case 18:
7042
+ var value = /** @type {number} */ (reader.readFloat());
7043
+ msg.setGgrTotal(value);
7044
+ break;
7045
+ default:
7046
+ reader.skipField();
7047
+ break;
7048
+ }
7049
+ }
7050
+ return msg;
7051
+ };
7052
+
7053
+
7054
+ /**
7055
+ * Serializes the message to binary data (in protobuf wire format).
7056
+ * @return {!Uint8Array}
7057
+ */
7058
+ proto.analytic.SportItem.prototype.serializeBinary = function() {
7059
+ var writer = new jspb.BinaryWriter();
7060
+ proto.analytic.SportItem.serializeBinaryToWriter(this, writer);
7061
+ return writer.getResultBuffer();
7062
+ };
7063
+
7064
+
7065
+ /**
7066
+ * Serializes the given message to binary data (in protobuf wire
7067
+ * format), writing to the given BinaryWriter.
7068
+ * @param {!proto.analytic.SportItem} message
7069
+ * @param {!jspb.BinaryWriter} writer
7070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7071
+ */
7072
+ proto.analytic.SportItem.serializeBinaryToWriter = function(message, writer) {
7073
+ var f = undefined;
7074
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
7075
+ if (f != null) {
7076
+ writer.writeString(
7077
+ 1,
7078
+ f
7079
+ );
7080
+ }
7081
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7082
+ if (f != null) {
7083
+ writer.writeString(
7084
+ 2,
7085
+ f
7086
+ );
7087
+ }
7088
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7089
+ if (f != null) {
7090
+ writer.writeString(
7091
+ 3,
7092
+ f
7093
+ );
7094
+ }
7095
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
7096
+ if (f != null) {
7097
+ writer.writeInt32(
7098
+ 4,
7099
+ f
7100
+ );
7101
+ }
7102
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
7103
+ if (f != null) {
7104
+ writer.writeInt32(
7105
+ 5,
7106
+ f
7107
+ );
7108
+ }
7109
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
7110
+ if (f != null) {
7111
+ writer.writeFloat(
7112
+ 6,
7113
+ f
7114
+ );
7115
+ }
7116
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
7117
+ if (f != null) {
7118
+ writer.writeInt32(
7119
+ 7,
7120
+ f
7121
+ );
7122
+ }
7123
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
7124
+ if (f != null) {
7125
+ writer.writeFloat(
7126
+ 8,
7127
+ f
7128
+ );
7129
+ }
7130
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
7131
+ if (f != null) {
7132
+ writer.writeInt32(
7133
+ 9,
7134
+ f
7135
+ );
7136
+ }
7137
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
7138
+ if (f != null) {
7139
+ writer.writeFloat(
7140
+ 10,
7141
+ f
7142
+ );
7143
+ }
7144
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
7145
+ if (f != null) {
7146
+ writer.writeInt32(
7147
+ 11,
7148
+ f
7149
+ );
7150
+ }
7151
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
7152
+ if (f != null) {
7153
+ writer.writeFloat(
7154
+ 12,
7155
+ f
7156
+ );
7157
+ }
7158
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
7159
+ if (f != null) {
7160
+ writer.writeFloat(
7161
+ 13,
7162
+ f
7163
+ );
7164
+ }
7165
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
7166
+ if (f != null) {
7167
+ writer.writeFloat(
7168
+ 14,
7169
+ f
7170
+ );
7171
+ }
7172
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
7173
+ if (f != null) {
7174
+ writer.writeFloat(
7175
+ 15,
7176
+ f
7177
+ );
7178
+ }
7179
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
7180
+ if (f != null) {
7181
+ writer.writeFloat(
7182
+ 16,
7183
+ f
7184
+ );
7185
+ }
7186
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
7187
+ if (f != null) {
7188
+ writer.writeFloat(
7189
+ 17,
7190
+ f
7191
+ );
7192
+ }
7193
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
7194
+ if (f != null) {
7195
+ writer.writeFloat(
7196
+ 18,
7197
+ f
7198
+ );
7199
+ }
7200
+ };
7201
+
7202
+
7203
+ /**
7204
+ * optional string date = 1;
7205
+ * @return {string}
7206
+ */
7207
+ proto.analytic.SportItem.prototype.getDate = function() {
7208
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7209
+ };
7210
+
7211
+
7212
+ /**
7213
+ * @param {string} value
7214
+ * @return {!proto.analytic.SportItem} returns this
7215
+ */
7216
+ proto.analytic.SportItem.prototype.setDate = function(value) {
7217
+ return jspb.Message.setField(this, 1, value);
7218
+ };
7219
+
7220
+
7221
+ /**
7222
+ * Clears the field making it undefined.
7223
+ * @return {!proto.analytic.SportItem} returns this
7224
+ */
7225
+ proto.analytic.SportItem.prototype.clearDate = function() {
7226
+ return jspb.Message.setField(this, 1, undefined);
7227
+ };
7228
+
7229
+
7230
+ /**
7231
+ * Returns whether this field is set.
7232
+ * @return {boolean}
7233
+ */
7234
+ proto.analytic.SportItem.prototype.hasDate = function() {
7235
+ return jspb.Message.getField(this, 1) != null;
7236
+ };
7237
+
7238
+
7239
+ /**
7240
+ * optional string category_title = 2;
7241
+ * @return {string}
7242
+ */
7243
+ proto.analytic.SportItem.prototype.getCategoryTitle = function() {
7244
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7245
+ };
7246
+
7247
+
7248
+ /**
7249
+ * @param {string} value
7250
+ * @return {!proto.analytic.SportItem} returns this
7251
+ */
7252
+ proto.analytic.SportItem.prototype.setCategoryTitle = function(value) {
7253
+ return jspb.Message.setField(this, 2, value);
7254
+ };
7255
+
7256
+
7257
+ /**
7258
+ * Clears the field making it undefined.
7259
+ * @return {!proto.analytic.SportItem} returns this
7260
+ */
7261
+ proto.analytic.SportItem.prototype.clearCategoryTitle = function() {
7262
+ return jspb.Message.setField(this, 2, undefined);
7263
+ };
7264
+
7265
+
7266
+ /**
7267
+ * Returns whether this field is set.
7268
+ * @return {boolean}
7269
+ */
7270
+ proto.analytic.SportItem.prototype.hasCategoryTitle = function() {
7271
+ return jspb.Message.getField(this, 2) != null;
7272
+ };
7273
+
7274
+
7275
+ /**
7276
+ * optional string type_title = 3;
7277
+ * @return {string}
7278
+ */
7279
+ proto.analytic.SportItem.prototype.getTypeTitle = function() {
7280
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7281
+ };
7282
+
7283
+
7284
+ /**
7285
+ * @param {string} value
7286
+ * @return {!proto.analytic.SportItem} returns this
7287
+ */
7288
+ proto.analytic.SportItem.prototype.setTypeTitle = function(value) {
7289
+ return jspb.Message.setField(this, 3, value);
7290
+ };
7291
+
7292
+
7293
+ /**
7294
+ * Clears the field making it undefined.
7295
+ * @return {!proto.analytic.SportItem} returns this
7296
+ */
7297
+ proto.analytic.SportItem.prototype.clearTypeTitle = function() {
7298
+ return jspb.Message.setField(this, 3, undefined);
7299
+ };
7300
+
7301
+
7302
+ /**
7303
+ * Returns whether this field is set.
7304
+ * @return {boolean}
7305
+ */
7306
+ proto.analytic.SportItem.prototype.hasTypeTitle = function() {
7307
+ return jspb.Message.getField(this, 3) != null;
7308
+ };
7309
+
7310
+
7311
+ /**
7312
+ * optional int32 users_count = 4;
7313
+ * @return {number}
7314
+ */
7315
+ proto.analytic.SportItem.prototype.getUsersCount = function() {
7316
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7317
+ };
7318
+
7319
+
7320
+ /**
7321
+ * @param {number} value
7322
+ * @return {!proto.analytic.SportItem} returns this
7323
+ */
7324
+ proto.analytic.SportItem.prototype.setUsersCount = function(value) {
7325
+ return jspb.Message.setField(this, 4, value);
7326
+ };
7327
+
7328
+
7329
+ /**
7330
+ * Clears the field making it undefined.
7331
+ * @return {!proto.analytic.SportItem} returns this
7332
+ */
7333
+ proto.analytic.SportItem.prototype.clearUsersCount = function() {
7334
+ return jspb.Message.setField(this, 4, undefined);
7335
+ };
7336
+
7337
+
7338
+ /**
7339
+ * Returns whether this field is set.
7340
+ * @return {boolean}
7341
+ */
7342
+ proto.analytic.SportItem.prototype.hasUsersCount = function() {
7343
+ return jspb.Message.getField(this, 4) != null;
7344
+ };
7345
+
7346
+
7347
+ /**
7348
+ * optional int32 bet_count_real = 5;
7349
+ * @return {number}
7350
+ */
7351
+ proto.analytic.SportItem.prototype.getBetCountReal = function() {
7352
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7353
+ };
7354
+
7355
+
7356
+ /**
7357
+ * @param {number} value
7358
+ * @return {!proto.analytic.SportItem} returns this
7359
+ */
7360
+ proto.analytic.SportItem.prototype.setBetCountReal = function(value) {
7361
+ return jspb.Message.setField(this, 5, value);
7362
+ };
7363
+
7364
+
7365
+ /**
7366
+ * Clears the field making it undefined.
7367
+ * @return {!proto.analytic.SportItem} returns this
7368
+ */
7369
+ proto.analytic.SportItem.prototype.clearBetCountReal = function() {
7370
+ return jspb.Message.setField(this, 5, undefined);
7371
+ };
7372
+
7373
+
7374
+ /**
7375
+ * Returns whether this field is set.
7376
+ * @return {boolean}
7377
+ */
7378
+ proto.analytic.SportItem.prototype.hasBetCountReal = function() {
7379
+ return jspb.Message.getField(this, 5) != null;
7380
+ };
7381
+
7382
+
7383
+ /**
7384
+ * optional float bet_sum_real = 6;
7385
+ * @return {number}
7386
+ */
7387
+ proto.analytic.SportItem.prototype.getBetSumReal = function() {
7388
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
7389
+ };
7390
+
7391
+
7392
+ /**
7393
+ * @param {number} value
7394
+ * @return {!proto.analytic.SportItem} returns this
7395
+ */
7396
+ proto.analytic.SportItem.prototype.setBetSumReal = function(value) {
7397
+ return jspb.Message.setField(this, 6, value);
7398
+ };
7399
+
7400
+
7401
+ /**
7402
+ * Clears the field making it undefined.
7403
+ * @return {!proto.analytic.SportItem} returns this
7404
+ */
7405
+ proto.analytic.SportItem.prototype.clearBetSumReal = function() {
7406
+ return jspb.Message.setField(this, 6, undefined);
7407
+ };
7408
+
7409
+
7410
+ /**
7411
+ * Returns whether this field is set.
7412
+ * @return {boolean}
7413
+ */
7414
+ proto.analytic.SportItem.prototype.hasBetSumReal = function() {
7415
+ return jspb.Message.getField(this, 6) != null;
7416
+ };
7417
+
7418
+
7419
+ /**
7420
+ * optional int32 bet_count_bonus = 7;
7421
+ * @return {number}
7422
+ */
7423
+ proto.analytic.SportItem.prototype.getBetCountBonus = function() {
7424
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7425
+ };
7426
+
7427
+
7428
+ /**
7429
+ * @param {number} value
7430
+ * @return {!proto.analytic.SportItem} returns this
7431
+ */
7432
+ proto.analytic.SportItem.prototype.setBetCountBonus = function(value) {
7433
+ return jspb.Message.setField(this, 7, value);
7434
+ };
7435
+
7436
+
7437
+ /**
7438
+ * Clears the field making it undefined.
7439
+ * @return {!proto.analytic.SportItem} returns this
7440
+ */
7441
+ proto.analytic.SportItem.prototype.clearBetCountBonus = function() {
7442
+ return jspb.Message.setField(this, 7, undefined);
7443
+ };
7444
+
7445
+
7446
+ /**
7447
+ * Returns whether this field is set.
7448
+ * @return {boolean}
7449
+ */
7450
+ proto.analytic.SportItem.prototype.hasBetCountBonus = function() {
7451
+ return jspb.Message.getField(this, 7) != null;
7452
+ };
7453
+
7454
+
7455
+ /**
7456
+ * optional float bet_sum_bonus = 8;
7457
+ * @return {number}
7458
+ */
7459
+ proto.analytic.SportItem.prototype.getBetSumBonus = function() {
7460
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
7461
+ };
7462
+
7463
+
7464
+ /**
7465
+ * @param {number} value
7466
+ * @return {!proto.analytic.SportItem} returns this
7467
+ */
7468
+ proto.analytic.SportItem.prototype.setBetSumBonus = function(value) {
7469
+ return jspb.Message.setField(this, 8, value);
7470
+ };
7471
+
7472
+
7473
+ /**
7474
+ * Clears the field making it undefined.
7475
+ * @return {!proto.analytic.SportItem} returns this
7476
+ */
7477
+ proto.analytic.SportItem.prototype.clearBetSumBonus = function() {
7478
+ return jspb.Message.setField(this, 8, undefined);
7479
+ };
7480
+
7481
+
7482
+ /**
7483
+ * Returns whether this field is set.
7484
+ * @return {boolean}
7485
+ */
7486
+ proto.analytic.SportItem.prototype.hasBetSumBonus = function() {
7487
+ return jspb.Message.getField(this, 8) != null;
7488
+ };
7489
+
7490
+
7491
+ /**
7492
+ * optional int32 win_count_real = 9;
7493
+ * @return {number}
7494
+ */
7495
+ proto.analytic.SportItem.prototype.getWinCountReal = function() {
7496
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
7497
+ };
7498
+
7499
+
7500
+ /**
7501
+ * @param {number} value
7502
+ * @return {!proto.analytic.SportItem} returns this
7503
+ */
7504
+ proto.analytic.SportItem.prototype.setWinCountReal = function(value) {
7505
+ return jspb.Message.setField(this, 9, value);
7506
+ };
7507
+
7508
+
7509
+ /**
7510
+ * Clears the field making it undefined.
7511
+ * @return {!proto.analytic.SportItem} returns this
7512
+ */
7513
+ proto.analytic.SportItem.prototype.clearWinCountReal = function() {
7514
+ return jspb.Message.setField(this, 9, undefined);
7515
+ };
7516
+
7517
+
7518
+ /**
7519
+ * Returns whether this field is set.
7520
+ * @return {boolean}
7521
+ */
7522
+ proto.analytic.SportItem.prototype.hasWinCountReal = function() {
7523
+ return jspb.Message.getField(this, 9) != null;
7524
+ };
7525
+
7526
+
7527
+ /**
7528
+ * optional float win_sum_real = 10;
7529
+ * @return {number}
7530
+ */
7531
+ proto.analytic.SportItem.prototype.getWinSumReal = function() {
7532
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
7533
+ };
7534
+
7535
+
7536
+ /**
7537
+ * @param {number} value
7538
+ * @return {!proto.analytic.SportItem} returns this
7539
+ */
7540
+ proto.analytic.SportItem.prototype.setWinSumReal = function(value) {
7541
+ return jspb.Message.setField(this, 10, value);
7542
+ };
7543
+
7544
+
7545
+ /**
7546
+ * Clears the field making it undefined.
7547
+ * @return {!proto.analytic.SportItem} returns this
7548
+ */
7549
+ proto.analytic.SportItem.prototype.clearWinSumReal = function() {
7550
+ return jspb.Message.setField(this, 10, undefined);
7551
+ };
7552
+
7553
+
7554
+ /**
7555
+ * Returns whether this field is set.
7556
+ * @return {boolean}
7557
+ */
7558
+ proto.analytic.SportItem.prototype.hasWinSumReal = function() {
7559
+ return jspb.Message.getField(this, 10) != null;
7560
+ };
7561
+
7562
+
7563
+ /**
7564
+ * optional int32 win_count_bonus = 11;
7565
+ * @return {number}
7566
+ */
7567
+ proto.analytic.SportItem.prototype.getWinCountBonus = function() {
7568
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
7569
+ };
7570
+
7571
+
7572
+ /**
7573
+ * @param {number} value
7574
+ * @return {!proto.analytic.SportItem} returns this
7575
+ */
7576
+ proto.analytic.SportItem.prototype.setWinCountBonus = function(value) {
7577
+ return jspb.Message.setField(this, 11, value);
7578
+ };
7579
+
7580
+
7581
+ /**
7582
+ * Clears the field making it undefined.
7583
+ * @return {!proto.analytic.SportItem} returns this
7584
+ */
7585
+ proto.analytic.SportItem.prototype.clearWinCountBonus = function() {
7586
+ return jspb.Message.setField(this, 11, undefined);
7587
+ };
7588
+
7589
+
7590
+ /**
7591
+ * Returns whether this field is set.
7592
+ * @return {boolean}
7593
+ */
7594
+ proto.analytic.SportItem.prototype.hasWinCountBonus = function() {
7595
+ return jspb.Message.getField(this, 11) != null;
7596
+ };
7597
+
7598
+
7599
+ /**
7600
+ * optional float win_sum_bonus = 12;
7601
+ * @return {number}
7602
+ */
7603
+ proto.analytic.SportItem.prototype.getWinSumBonus = function() {
7604
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
7605
+ };
7606
+
7607
+
7608
+ /**
7609
+ * @param {number} value
7610
+ * @return {!proto.analytic.SportItem} returns this
7611
+ */
7612
+ proto.analytic.SportItem.prototype.setWinSumBonus = function(value) {
7613
+ return jspb.Message.setField(this, 12, value);
7614
+ };
7615
+
7616
+
7617
+ /**
7618
+ * Clears the field making it undefined.
7619
+ * @return {!proto.analytic.SportItem} returns this
7620
+ */
7621
+ proto.analytic.SportItem.prototype.clearWinSumBonus = function() {
7622
+ return jspb.Message.setField(this, 12, undefined);
7623
+ };
7624
+
7625
+
7626
+ /**
7627
+ * Returns whether this field is set.
7628
+ * @return {boolean}
7629
+ */
7630
+ proto.analytic.SportItem.prototype.hasWinSumBonus = function() {
7631
+ return jspb.Message.getField(this, 12) != null;
7632
+ };
7633
+
7634
+
7635
+ /**
7636
+ * optional float turnover_bonus = 13;
7637
+ * @return {number}
7638
+ */
7639
+ proto.analytic.SportItem.prototype.getTurnoverBonus = function() {
7640
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
7641
+ };
7642
+
7643
+
7644
+ /**
7645
+ * @param {number} value
7646
+ * @return {!proto.analytic.SportItem} returns this
7647
+ */
7648
+ proto.analytic.SportItem.prototype.setTurnoverBonus = function(value) {
7649
+ return jspb.Message.setField(this, 13, value);
7650
+ };
7651
+
7652
+
7653
+ /**
7654
+ * Clears the field making it undefined.
7655
+ * @return {!proto.analytic.SportItem} returns this
7656
+ */
7657
+ proto.analytic.SportItem.prototype.clearTurnoverBonus = function() {
7658
+ return jspb.Message.setField(this, 13, undefined);
7659
+ };
7660
+
7661
+
7662
+ /**
7663
+ * Returns whether this field is set.
7664
+ * @return {boolean}
7665
+ */
7666
+ proto.analytic.SportItem.prototype.hasTurnoverBonus = function() {
7667
+ return jspb.Message.getField(this, 13) != null;
7668
+ };
7669
+
7670
+
7671
+ /**
7672
+ * optional float turnover_real = 14;
7673
+ * @return {number}
7674
+ */
7675
+ proto.analytic.SportItem.prototype.getTurnoverReal = function() {
7676
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
7677
+ };
7678
+
7679
+
7680
+ /**
7681
+ * @param {number} value
7682
+ * @return {!proto.analytic.SportItem} returns this
7683
+ */
7684
+ proto.analytic.SportItem.prototype.setTurnoverReal = function(value) {
7685
+ return jspb.Message.setField(this, 14, value);
7686
+ };
7687
+
7688
+
7689
+ /**
7690
+ * Clears the field making it undefined.
7691
+ * @return {!proto.analytic.SportItem} returns this
7692
+ */
7693
+ proto.analytic.SportItem.prototype.clearTurnoverReal = function() {
7694
+ return jspb.Message.setField(this, 14, undefined);
7695
+ };
7696
+
7697
+
7698
+ /**
7699
+ * Returns whether this field is set.
7700
+ * @return {boolean}
7701
+ */
7702
+ proto.analytic.SportItem.prototype.hasTurnoverReal = function() {
7703
+ return jspb.Message.getField(this, 14) != null;
7704
+ };
7705
+
7706
+
7707
+ /**
7708
+ * optional float turnover_total = 15;
7709
+ * @return {number}
7710
+ */
7711
+ proto.analytic.SportItem.prototype.getTurnoverTotal = function() {
7712
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
7713
+ };
7714
+
7715
+
7716
+ /**
7717
+ * @param {number} value
7718
+ * @return {!proto.analytic.SportItem} returns this
7719
+ */
7720
+ proto.analytic.SportItem.prototype.setTurnoverTotal = function(value) {
7721
+ return jspb.Message.setField(this, 15, value);
7722
+ };
7723
+
7724
+
7725
+ /**
7726
+ * Clears the field making it undefined.
7727
+ * @return {!proto.analytic.SportItem} returns this
7728
+ */
7729
+ proto.analytic.SportItem.prototype.clearTurnoverTotal = function() {
7730
+ return jspb.Message.setField(this, 15, undefined);
7731
+ };
7732
+
7733
+
7734
+ /**
7735
+ * Returns whether this field is set.
7736
+ * @return {boolean}
7737
+ */
7738
+ proto.analytic.SportItem.prototype.hasTurnoverTotal = function() {
7739
+ return jspb.Message.getField(this, 15) != null;
7740
+ };
7741
+
7742
+
7743
+ /**
7744
+ * optional float ggr_bonus = 16;
7745
+ * @return {number}
7746
+ */
7747
+ proto.analytic.SportItem.prototype.getGgrBonus = function() {
7748
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
7749
+ };
7750
+
7751
+
7752
+ /**
7753
+ * @param {number} value
7754
+ * @return {!proto.analytic.SportItem} returns this
7755
+ */
7756
+ proto.analytic.SportItem.prototype.setGgrBonus = function(value) {
7757
+ return jspb.Message.setField(this, 16, value);
7758
+ };
7759
+
7760
+
7761
+ /**
7762
+ * Clears the field making it undefined.
7763
+ * @return {!proto.analytic.SportItem} returns this
7764
+ */
7765
+ proto.analytic.SportItem.prototype.clearGgrBonus = function() {
7766
+ return jspb.Message.setField(this, 16, undefined);
7767
+ };
7768
+
7769
+
7770
+ /**
7771
+ * Returns whether this field is set.
7772
+ * @return {boolean}
7773
+ */
7774
+ proto.analytic.SportItem.prototype.hasGgrBonus = function() {
7775
+ return jspb.Message.getField(this, 16) != null;
7776
+ };
7777
+
7778
+
7779
+ /**
7780
+ * optional float ggr_real = 17;
7781
+ * @return {number}
7782
+ */
7783
+ proto.analytic.SportItem.prototype.getGgrReal = function() {
7784
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 17, 0.0));
7785
+ };
7786
+
7787
+
7788
+ /**
7789
+ * @param {number} value
7790
+ * @return {!proto.analytic.SportItem} returns this
7791
+ */
7792
+ proto.analytic.SportItem.prototype.setGgrReal = function(value) {
7793
+ return jspb.Message.setField(this, 17, value);
7794
+ };
7795
+
7796
+
7797
+ /**
7798
+ * Clears the field making it undefined.
7799
+ * @return {!proto.analytic.SportItem} returns this
7800
+ */
7801
+ proto.analytic.SportItem.prototype.clearGgrReal = function() {
7802
+ return jspb.Message.setField(this, 17, undefined);
7803
+ };
7804
+
7805
+
7806
+ /**
7807
+ * Returns whether this field is set.
7808
+ * @return {boolean}
7809
+ */
7810
+ proto.analytic.SportItem.prototype.hasGgrReal = function() {
7811
+ return jspb.Message.getField(this, 17) != null;
7812
+ };
7813
+
7814
+
7815
+ /**
7816
+ * optional float ggr_total = 18;
7817
+ * @return {number}
7818
+ */
7819
+ proto.analytic.SportItem.prototype.getGgrTotal = function() {
7820
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 18, 0.0));
7821
+ };
7822
+
7823
+
7824
+ /**
7825
+ * @param {number} value
7826
+ * @return {!proto.analytic.SportItem} returns this
7827
+ */
7828
+ proto.analytic.SportItem.prototype.setGgrTotal = function(value) {
7829
+ return jspb.Message.setField(this, 18, value);
7830
+ };
7831
+
7832
+
7833
+ /**
7834
+ * Clears the field making it undefined.
7835
+ * @return {!proto.analytic.SportItem} returns this
7836
+ */
7837
+ proto.analytic.SportItem.prototype.clearGgrTotal = function() {
7838
+ return jspb.Message.setField(this, 18, undefined);
7839
+ };
7840
+
7841
+
7842
+ /**
7843
+ * Returns whether this field is set.
7844
+ * @return {boolean}
7845
+ */
7846
+ proto.analytic.SportItem.prototype.hasGgrTotal = function() {
7847
+ return jspb.Message.getField(this, 18) != null;
7848
+ };
7849
+
7850
+
7851
+
7852
+ /**
7853
+ * List of repeated fields within this message type.
7854
+ * @private {!Array<number>}
7855
+ * @const
7856
+ */
7857
+ proto.analytic.SportItemWrapper.repeatedFields_ = [2];
7858
+
7859
+
7860
+
7861
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7862
+ /**
7863
+ * Creates an object representation of this proto.
7864
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7865
+ * Optional fields that are not set will be set to undefined.
7866
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7867
+ * For the list of reserved names please see:
7868
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7869
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7870
+ * JSPB instance for transitional soy proto support:
7871
+ * http://goto/soy-param-migration
7872
+ * @return {!Object}
7873
+ */
7874
+ proto.analytic.SportItemWrapper.prototype.toObject = function(opt_includeInstance) {
7875
+ return proto.analytic.SportItemWrapper.toObject(opt_includeInstance, this);
7876
+ };
7877
+
7878
+
7879
+ /**
7880
+ * Static version of the {@see toObject} method.
7881
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7882
+ * the JSPB instance for transitional soy proto support:
7883
+ * http://goto/soy-param-migration
7884
+ * @param {!proto.analytic.SportItemWrapper} msg The msg instance to transform.
7885
+ * @return {!Object}
7886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7887
+ */
7888
+ proto.analytic.SportItemWrapper.toObject = function(includeInstance, msg) {
7889
+ var f, obj = {
7890
+ date: jspb.Message.getFieldWithDefault(msg, 1, ""),
7891
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
7892
+ proto.analytic.SportItem.toObject, includeInstance)
7893
+ };
7894
+
7895
+ if (includeInstance) {
7896
+ obj.$jspbMessageInstance = msg;
7897
+ }
7898
+ return obj;
7899
+ };
7900
+ }
7901
+
7902
+
7903
+ /**
7904
+ * Deserializes binary data (in protobuf wire format).
7905
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7906
+ * @return {!proto.analytic.SportItemWrapper}
7907
+ */
7908
+ proto.analytic.SportItemWrapper.deserializeBinary = function(bytes) {
7909
+ var reader = new jspb.BinaryReader(bytes);
7910
+ var msg = new proto.analytic.SportItemWrapper;
7911
+ return proto.analytic.SportItemWrapper.deserializeBinaryFromReader(msg, reader);
7912
+ };
7913
+
7914
+
7915
+ /**
7916
+ * Deserializes binary data (in protobuf wire format) from the
7917
+ * given reader into the given message object.
7918
+ * @param {!proto.analytic.SportItemWrapper} msg The message object to deserialize into.
7919
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7920
+ * @return {!proto.analytic.SportItemWrapper}
7921
+ */
7922
+ proto.analytic.SportItemWrapper.deserializeBinaryFromReader = function(msg, reader) {
7923
+ while (reader.nextField()) {
7924
+ if (reader.isEndGroup()) {
7925
+ break;
7926
+ }
7927
+ var field = reader.getFieldNumber();
7928
+ switch (field) {
7929
+ case 1:
7930
+ var value = /** @type {string} */ (reader.readString());
7931
+ msg.setDate(value);
7932
+ break;
7933
+ case 2:
7934
+ var value = new proto.analytic.SportItem;
7935
+ reader.readMessage(value,proto.analytic.SportItem.deserializeBinaryFromReader);
7936
+ msg.addItems(value);
7937
+ break;
7938
+ default:
7939
+ reader.skipField();
7940
+ break;
7941
+ }
7942
+ }
7943
+ return msg;
7944
+ };
7945
+
7946
+
7947
+ /**
7948
+ * Serializes the message to binary data (in protobuf wire format).
7949
+ * @return {!Uint8Array}
7950
+ */
7951
+ proto.analytic.SportItemWrapper.prototype.serializeBinary = function() {
7952
+ var writer = new jspb.BinaryWriter();
7953
+ proto.analytic.SportItemWrapper.serializeBinaryToWriter(this, writer);
7954
+ return writer.getResultBuffer();
7955
+ };
7956
+
7957
+
7958
+ /**
7959
+ * Serializes the given message to binary data (in protobuf wire
7960
+ * format), writing to the given BinaryWriter.
7961
+ * @param {!proto.analytic.SportItemWrapper} message
7962
+ * @param {!jspb.BinaryWriter} writer
7963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7964
+ */
7965
+ proto.analytic.SportItemWrapper.serializeBinaryToWriter = function(message, writer) {
7966
+ var f = undefined;
7967
+ f = message.getDate();
7968
+ if (f.length > 0) {
7969
+ writer.writeString(
7970
+ 1,
7971
+ f
7972
+ );
7973
+ }
7974
+ f = message.getItemsList();
7975
+ if (f.length > 0) {
7976
+ writer.writeRepeatedMessage(
7977
+ 2,
7978
+ f,
7979
+ proto.analytic.SportItem.serializeBinaryToWriter
7980
+ );
7981
+ }
7982
+ };
7983
+
7984
+
7985
+ /**
7986
+ * optional string date = 1;
7987
+ * @return {string}
7988
+ */
7989
+ proto.analytic.SportItemWrapper.prototype.getDate = function() {
7990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7991
+ };
7992
+
7993
+
7994
+ /**
7995
+ * @param {string} value
7996
+ * @return {!proto.analytic.SportItemWrapper} returns this
7997
+ */
7998
+ proto.analytic.SportItemWrapper.prototype.setDate = function(value) {
7999
+ return jspb.Message.setProto3StringField(this, 1, value);
8000
+ };
8001
+
8002
+
8003
+ /**
8004
+ * repeated SportItem items = 2;
8005
+ * @return {!Array<!proto.analytic.SportItem>}
8006
+ */
8007
+ proto.analytic.SportItemWrapper.prototype.getItemsList = function() {
8008
+ return /** @type{!Array<!proto.analytic.SportItem>} */ (
8009
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.SportItem, 2));
8010
+ };
8011
+
8012
+
8013
+ /**
8014
+ * @param {!Array<!proto.analytic.SportItem>} value
8015
+ * @return {!proto.analytic.SportItemWrapper} returns this
8016
+ */
8017
+ proto.analytic.SportItemWrapper.prototype.setItemsList = function(value) {
8018
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8019
+ };
8020
+
8021
+
8022
+ /**
8023
+ * @param {!proto.analytic.SportItem=} opt_value
8024
+ * @param {number=} opt_index
8025
+ * @return {!proto.analytic.SportItem}
8026
+ */
8027
+ proto.analytic.SportItemWrapper.prototype.addItems = function(opt_value, opt_index) {
8028
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.analytic.SportItem, opt_index);
8029
+ };
8030
+
8031
+
8032
+ /**
8033
+ * Clears the list making it empty but non-null.
8034
+ * @return {!proto.analytic.SportItemWrapper} returns this
8035
+ */
8036
+ proto.analytic.SportItemWrapper.prototype.clearItemsList = function() {
8037
+ return this.setItemsList([]);
8038
+ };
8039
+
8040
+
8041
+
8042
+ /**
8043
+ * List of repeated fields within this message type.
8044
+ * @private {!Array<number>}
8045
+ * @const
8046
+ */
8047
+ proto.analytic.SportsResponse.repeatedFields_ = [1];
8048
+
8049
+
8050
+
8051
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8052
+ /**
8053
+ * Creates an object representation of this proto.
8054
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8055
+ * Optional fields that are not set will be set to undefined.
8056
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8057
+ * For the list of reserved names please see:
8058
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8059
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8060
+ * JSPB instance for transitional soy proto support:
8061
+ * http://goto/soy-param-migration
8062
+ * @return {!Object}
8063
+ */
8064
+ proto.analytic.SportsResponse.prototype.toObject = function(opt_includeInstance) {
8065
+ return proto.analytic.SportsResponse.toObject(opt_includeInstance, this);
8066
+ };
8067
+
8068
+
8069
+ /**
8070
+ * Static version of the {@see toObject} method.
8071
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8072
+ * the JSPB instance for transitional soy proto support:
8073
+ * http://goto/soy-param-migration
8074
+ * @param {!proto.analytic.SportsResponse} msg The msg instance to transform.
8075
+ * @return {!Object}
8076
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8077
+ */
8078
+ proto.analytic.SportsResponse.toObject = function(includeInstance, msg) {
8079
+ var f, obj = {
8080
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
8081
+ proto.analytic.SportItemWrapper.toObject, includeInstance),
8082
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
8083
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
8084
+ };
8085
+
8086
+ if (includeInstance) {
8087
+ obj.$jspbMessageInstance = msg;
8088
+ }
8089
+ return obj;
8090
+ };
8091
+ }
8092
+
8093
+
8094
+ /**
8095
+ * Deserializes binary data (in protobuf wire format).
8096
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8097
+ * @return {!proto.analytic.SportsResponse}
8098
+ */
8099
+ proto.analytic.SportsResponse.deserializeBinary = function(bytes) {
8100
+ var reader = new jspb.BinaryReader(bytes);
8101
+ var msg = new proto.analytic.SportsResponse;
8102
+ return proto.analytic.SportsResponse.deserializeBinaryFromReader(msg, reader);
8103
+ };
8104
+
8105
+
8106
+ /**
8107
+ * Deserializes binary data (in protobuf wire format) from the
8108
+ * given reader into the given message object.
8109
+ * @param {!proto.analytic.SportsResponse} msg The message object to deserialize into.
8110
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8111
+ * @return {!proto.analytic.SportsResponse}
8112
+ */
8113
+ proto.analytic.SportsResponse.deserializeBinaryFromReader = function(msg, reader) {
8114
+ while (reader.nextField()) {
8115
+ if (reader.isEndGroup()) {
8116
+ break;
8117
+ }
8118
+ var field = reader.getFieldNumber();
8119
+ switch (field) {
8120
+ case 1:
8121
+ var value = new proto.analytic.SportItemWrapper;
8122
+ reader.readMessage(value,proto.analytic.SportItemWrapper.deserializeBinaryFromReader);
8123
+ msg.addItems(value);
8124
+ break;
8125
+ case 2:
8126
+ var value = /** @type {number} */ (reader.readInt32());
8127
+ msg.setTotalPages(value);
8128
+ break;
8129
+ case 3:
8130
+ var value = /** @type {number} */ (reader.readInt32());
8131
+ msg.setTotalItems(value);
8132
+ break;
8133
+ default:
8134
+ reader.skipField();
8135
+ break;
8136
+ }
8137
+ }
8138
+ return msg;
8139
+ };
8140
+
8141
+
8142
+ /**
8143
+ * Serializes the message to binary data (in protobuf wire format).
8144
+ * @return {!Uint8Array}
8145
+ */
8146
+ proto.analytic.SportsResponse.prototype.serializeBinary = function() {
8147
+ var writer = new jspb.BinaryWriter();
8148
+ proto.analytic.SportsResponse.serializeBinaryToWriter(this, writer);
8149
+ return writer.getResultBuffer();
8150
+ };
8151
+
8152
+
8153
+ /**
8154
+ * Serializes the given message to binary data (in protobuf wire
8155
+ * format), writing to the given BinaryWriter.
8156
+ * @param {!proto.analytic.SportsResponse} message
8157
+ * @param {!jspb.BinaryWriter} writer
8158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8159
+ */
8160
+ proto.analytic.SportsResponse.serializeBinaryToWriter = function(message, writer) {
8161
+ var f = undefined;
8162
+ f = message.getItemsList();
8163
+ if (f.length > 0) {
8164
+ writer.writeRepeatedMessage(
8165
+ 1,
8166
+ f,
8167
+ proto.analytic.SportItemWrapper.serializeBinaryToWriter
8168
+ );
8169
+ }
8170
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
8171
+ if (f != null) {
8172
+ writer.writeInt32(
8173
+ 2,
8174
+ f
8175
+ );
8176
+ }
8177
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
8178
+ if (f != null) {
8179
+ writer.writeInt32(
8180
+ 3,
8181
+ f
8182
+ );
8183
+ }
8184
+ };
8185
+
8186
+
8187
+ /**
8188
+ * repeated SportItemWrapper items = 1;
8189
+ * @return {!Array<!proto.analytic.SportItemWrapper>}
8190
+ */
8191
+ proto.analytic.SportsResponse.prototype.getItemsList = function() {
8192
+ return /** @type{!Array<!proto.analytic.SportItemWrapper>} */ (
8193
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.SportItemWrapper, 1));
8194
+ };
8195
+
8196
+
8197
+ /**
8198
+ * @param {!Array<!proto.analytic.SportItemWrapper>} value
8199
+ * @return {!proto.analytic.SportsResponse} returns this
8200
+ */
8201
+ proto.analytic.SportsResponse.prototype.setItemsList = function(value) {
8202
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
8203
+ };
8204
+
8205
+
8206
+ /**
8207
+ * @param {!proto.analytic.SportItemWrapper=} opt_value
8208
+ * @param {number=} opt_index
8209
+ * @return {!proto.analytic.SportItemWrapper}
8210
+ */
8211
+ proto.analytic.SportsResponse.prototype.addItems = function(opt_value, opt_index) {
8212
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.analytic.SportItemWrapper, opt_index);
8213
+ };
8214
+
8215
+
8216
+ /**
8217
+ * Clears the list making it empty but non-null.
8218
+ * @return {!proto.analytic.SportsResponse} returns this
8219
+ */
8220
+ proto.analytic.SportsResponse.prototype.clearItemsList = function() {
8221
+ return this.setItemsList([]);
8222
+ };
8223
+
8224
+
8225
+ /**
8226
+ * optional int32 total_pages = 2;
8227
+ * @return {number}
8228
+ */
8229
+ proto.analytic.SportsResponse.prototype.getTotalPages = function() {
8230
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8231
+ };
8232
+
8233
+
8234
+ /**
8235
+ * @param {number} value
8236
+ * @return {!proto.analytic.SportsResponse} returns this
8237
+ */
8238
+ proto.analytic.SportsResponse.prototype.setTotalPages = function(value) {
8239
+ return jspb.Message.setField(this, 2, value);
8240
+ };
8241
+
8242
+
8243
+ /**
8244
+ * Clears the field making it undefined.
8245
+ * @return {!proto.analytic.SportsResponse} returns this
8246
+ */
8247
+ proto.analytic.SportsResponse.prototype.clearTotalPages = function() {
8248
+ return jspb.Message.setField(this, 2, undefined);
8249
+ };
8250
+
8251
+
8252
+ /**
8253
+ * Returns whether this field is set.
8254
+ * @return {boolean}
8255
+ */
8256
+ proto.analytic.SportsResponse.prototype.hasTotalPages = function() {
8257
+ return jspb.Message.getField(this, 2) != null;
8258
+ };
8259
+
8260
+
8261
+ /**
8262
+ * optional int32 total_items = 3;
8263
+ * @return {number}
8264
+ */
8265
+ proto.analytic.SportsResponse.prototype.getTotalItems = function() {
8266
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8267
+ };
8268
+
8269
+
8270
+ /**
8271
+ * @param {number} value
8272
+ * @return {!proto.analytic.SportsResponse} returns this
8273
+ */
8274
+ proto.analytic.SportsResponse.prototype.setTotalItems = function(value) {
8275
+ return jspb.Message.setField(this, 3, value);
8276
+ };
8277
+
8278
+
8279
+ /**
8280
+ * Clears the field making it undefined.
8281
+ * @return {!proto.analytic.SportsResponse} returns this
8282
+ */
8283
+ proto.analytic.SportsResponse.prototype.clearTotalItems = function() {
8284
+ return jspb.Message.setField(this, 3, undefined);
8285
+ };
8286
+
8287
+
8288
+ /**
8289
+ * Returns whether this field is set.
8290
+ * @return {boolean}
8291
+ */
8292
+ proto.analytic.SportsResponse.prototype.hasTotalItems = function() {
8293
+ return jspb.Message.getField(this, 3) != null;
8294
+ };
8295
+
8296
+
8297
+
8298
+
8299
+
6824
8300
  if (jspb.Message.GENERATE_TO_OBJECT) {
6825
8301
  /**
6826
8302
  * Creates an object representation of this proto.