protobuf-platform 1.2.192 → 1.2.193

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.
@@ -110,6 +110,11 @@ message CashbackActions {
110
110
  bool can_reactivate = 2;
111
111
  bool can_calculate = 3;
112
112
  }
113
+ message CashbackGamePreview {
114
+ string game_slug = 1;
115
+ string provider_slug = 2;
116
+ optional string image = 3;
117
+ }
113
118
  //User
114
119
  message UserCashbackItem {
115
120
  int32 cashback_id = 1;
@@ -133,6 +138,7 @@ message UserCashbackItem {
133
138
  optional int64 remaining_ms = 15;
134
139
  optional float remaining_to_min = 16;
135
140
  optional int32 cashback_user_id = 17;
141
+ repeated CashbackGamePreview games = 18;
136
142
  }
137
143
  message CashbackUserRequest {
138
144
  int32 user_id = 1;
@@ -24,6 +24,7 @@ var global = (function() {
24
24
  goog.exportSymbol('proto.cashback.CashbackActions', null, global);
25
25
  goog.exportSymbol('proto.cashback.CashbackConfigItem', null, global);
26
26
  goog.exportSymbol('proto.cashback.CashbackConfigRequest', null, global);
27
+ goog.exportSymbol('proto.cashback.CashbackGamePreview', null, global);
27
28
  goog.exportSymbol('proto.cashback.CashbackItem', null, global);
28
29
  goog.exportSymbol('proto.cashback.CashbackItemRequest', null, global);
29
30
  goog.exportSymbol('proto.cashback.CashbackItemsResponse', null, global);
@@ -433,9 +434,30 @@ if (goog.DEBUG && !COMPILED) {
433
434
  * @extends {jspb.Message}
434
435
  * @constructor
435
436
  */
436
- proto.cashback.UserCashbackItem = function(opt_data) {
437
+ proto.cashback.CashbackGamePreview = function(opt_data) {
437
438
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
438
439
  };
440
+ goog.inherits(proto.cashback.CashbackGamePreview, jspb.Message);
441
+ if (goog.DEBUG && !COMPILED) {
442
+ /**
443
+ * @public
444
+ * @override
445
+ */
446
+ proto.cashback.CashbackGamePreview.displayName = 'proto.cashback.CashbackGamePreview';
447
+ }
448
+ /**
449
+ * Generated by JsPbCodeGenerator.
450
+ * @param {Array=} opt_data Optional initial data array, typically from a
451
+ * server response, or constructed directly in Javascript. The array is used
452
+ * in place and becomes part of the constructed object. It is not cloned.
453
+ * If no data is provided, the constructed object will be empty, but still
454
+ * valid.
455
+ * @extends {jspb.Message}
456
+ * @constructor
457
+ */
458
+ proto.cashback.UserCashbackItem = function(opt_data) {
459
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.UserCashbackItem.repeatedFields_, null);
460
+ };
439
461
  goog.inherits(proto.cashback.UserCashbackItem, jspb.Message);
440
462
  if (goog.DEBUG && !COMPILED) {
441
463
  /**
@@ -5018,6 +5040,221 @@ proto.cashback.CashbackActions.prototype.setCanCalculate = function(value) {
5018
5040
 
5019
5041
 
5020
5042
 
5043
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5044
+ /**
5045
+ * Creates an object representation of this proto.
5046
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5047
+ * Optional fields that are not set will be set to undefined.
5048
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5049
+ * For the list of reserved names please see:
5050
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5051
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5052
+ * JSPB instance for transitional soy proto support:
5053
+ * http://goto/soy-param-migration
5054
+ * @return {!Object}
5055
+ */
5056
+ proto.cashback.CashbackGamePreview.prototype.toObject = function(opt_includeInstance) {
5057
+ return proto.cashback.CashbackGamePreview.toObject(opt_includeInstance, this);
5058
+ };
5059
+
5060
+
5061
+ /**
5062
+ * Static version of the {@see toObject} method.
5063
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5064
+ * the JSPB instance for transitional soy proto support:
5065
+ * http://goto/soy-param-migration
5066
+ * @param {!proto.cashback.CashbackGamePreview} msg The msg instance to transform.
5067
+ * @return {!Object}
5068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5069
+ */
5070
+ proto.cashback.CashbackGamePreview.toObject = function(includeInstance, msg) {
5071
+ var f, obj = {
5072
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
5073
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
5074
+ image: jspb.Message.getFieldWithDefault(msg, 3, "")
5075
+ };
5076
+
5077
+ if (includeInstance) {
5078
+ obj.$jspbMessageInstance = msg;
5079
+ }
5080
+ return obj;
5081
+ };
5082
+ }
5083
+
5084
+
5085
+ /**
5086
+ * Deserializes binary data (in protobuf wire format).
5087
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5088
+ * @return {!proto.cashback.CashbackGamePreview}
5089
+ */
5090
+ proto.cashback.CashbackGamePreview.deserializeBinary = function(bytes) {
5091
+ var reader = new jspb.BinaryReader(bytes);
5092
+ var msg = new proto.cashback.CashbackGamePreview;
5093
+ return proto.cashback.CashbackGamePreview.deserializeBinaryFromReader(msg, reader);
5094
+ };
5095
+
5096
+
5097
+ /**
5098
+ * Deserializes binary data (in protobuf wire format) from the
5099
+ * given reader into the given message object.
5100
+ * @param {!proto.cashback.CashbackGamePreview} msg The message object to deserialize into.
5101
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5102
+ * @return {!proto.cashback.CashbackGamePreview}
5103
+ */
5104
+ proto.cashback.CashbackGamePreview.deserializeBinaryFromReader = function(msg, reader) {
5105
+ while (reader.nextField()) {
5106
+ if (reader.isEndGroup()) {
5107
+ break;
5108
+ }
5109
+ var field = reader.getFieldNumber();
5110
+ switch (field) {
5111
+ case 1:
5112
+ var value = /** @type {string} */ (reader.readString());
5113
+ msg.setGameSlug(value);
5114
+ break;
5115
+ case 2:
5116
+ var value = /** @type {string} */ (reader.readString());
5117
+ msg.setProviderSlug(value);
5118
+ break;
5119
+ case 3:
5120
+ var value = /** @type {string} */ (reader.readString());
5121
+ msg.setImage(value);
5122
+ break;
5123
+ default:
5124
+ reader.skipField();
5125
+ break;
5126
+ }
5127
+ }
5128
+ return msg;
5129
+ };
5130
+
5131
+
5132
+ /**
5133
+ * Serializes the message to binary data (in protobuf wire format).
5134
+ * @return {!Uint8Array}
5135
+ */
5136
+ proto.cashback.CashbackGamePreview.prototype.serializeBinary = function() {
5137
+ var writer = new jspb.BinaryWriter();
5138
+ proto.cashback.CashbackGamePreview.serializeBinaryToWriter(this, writer);
5139
+ return writer.getResultBuffer();
5140
+ };
5141
+
5142
+
5143
+ /**
5144
+ * Serializes the given message to binary data (in protobuf wire
5145
+ * format), writing to the given BinaryWriter.
5146
+ * @param {!proto.cashback.CashbackGamePreview} message
5147
+ * @param {!jspb.BinaryWriter} writer
5148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5149
+ */
5150
+ proto.cashback.CashbackGamePreview.serializeBinaryToWriter = function(message, writer) {
5151
+ var f = undefined;
5152
+ f = message.getGameSlug();
5153
+ if (f.length > 0) {
5154
+ writer.writeString(
5155
+ 1,
5156
+ f
5157
+ );
5158
+ }
5159
+ f = message.getProviderSlug();
5160
+ if (f.length > 0) {
5161
+ writer.writeString(
5162
+ 2,
5163
+ f
5164
+ );
5165
+ }
5166
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5167
+ if (f != null) {
5168
+ writer.writeString(
5169
+ 3,
5170
+ f
5171
+ );
5172
+ }
5173
+ };
5174
+
5175
+
5176
+ /**
5177
+ * optional string game_slug = 1;
5178
+ * @return {string}
5179
+ */
5180
+ proto.cashback.CashbackGamePreview.prototype.getGameSlug = function() {
5181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5182
+ };
5183
+
5184
+
5185
+ /**
5186
+ * @param {string} value
5187
+ * @return {!proto.cashback.CashbackGamePreview} returns this
5188
+ */
5189
+ proto.cashback.CashbackGamePreview.prototype.setGameSlug = function(value) {
5190
+ return jspb.Message.setProto3StringField(this, 1, value);
5191
+ };
5192
+
5193
+
5194
+ /**
5195
+ * optional string provider_slug = 2;
5196
+ * @return {string}
5197
+ */
5198
+ proto.cashback.CashbackGamePreview.prototype.getProviderSlug = function() {
5199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5200
+ };
5201
+
5202
+
5203
+ /**
5204
+ * @param {string} value
5205
+ * @return {!proto.cashback.CashbackGamePreview} returns this
5206
+ */
5207
+ proto.cashback.CashbackGamePreview.prototype.setProviderSlug = function(value) {
5208
+ return jspb.Message.setProto3StringField(this, 2, value);
5209
+ };
5210
+
5211
+
5212
+ /**
5213
+ * optional string image = 3;
5214
+ * @return {string}
5215
+ */
5216
+ proto.cashback.CashbackGamePreview.prototype.getImage = function() {
5217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5218
+ };
5219
+
5220
+
5221
+ /**
5222
+ * @param {string} value
5223
+ * @return {!proto.cashback.CashbackGamePreview} returns this
5224
+ */
5225
+ proto.cashback.CashbackGamePreview.prototype.setImage = function(value) {
5226
+ return jspb.Message.setField(this, 3, value);
5227
+ };
5228
+
5229
+
5230
+ /**
5231
+ * Clears the field making it undefined.
5232
+ * @return {!proto.cashback.CashbackGamePreview} returns this
5233
+ */
5234
+ proto.cashback.CashbackGamePreview.prototype.clearImage = function() {
5235
+ return jspb.Message.setField(this, 3, undefined);
5236
+ };
5237
+
5238
+
5239
+ /**
5240
+ * Returns whether this field is set.
5241
+ * @return {boolean}
5242
+ */
5243
+ proto.cashback.CashbackGamePreview.prototype.hasImage = function() {
5244
+ return jspb.Message.getField(this, 3) != null;
5245
+ };
5246
+
5247
+
5248
+
5249
+ /**
5250
+ * List of repeated fields within this message type.
5251
+ * @private {!Array<number>}
5252
+ * @const
5253
+ */
5254
+ proto.cashback.UserCashbackItem.repeatedFields_ = [18];
5255
+
5256
+
5257
+
5021
5258
  if (jspb.Message.GENERATE_TO_OBJECT) {
5022
5259
  /**
5023
5260
  * Creates an object representation of this proto.
@@ -5063,7 +5300,9 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
5063
5300
  actions: (f = msg.getActions()) && proto.cashback.CashbackActions.toObject(includeInstance, f),
5064
5301
  remainingMs: jspb.Message.getFieldWithDefault(msg, 15, 0),
5065
5302
  remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
5066
- cashbackUserId: jspb.Message.getFieldWithDefault(msg, 17, 0)
5303
+ cashbackUserId: jspb.Message.getFieldWithDefault(msg, 17, 0),
5304
+ gamesList: jspb.Message.toObjectList(msg.getGamesList(),
5305
+ proto.cashback.CashbackGamePreview.toObject, includeInstance)
5067
5306
  };
5068
5307
 
5069
5308
  if (includeInstance) {
@@ -5169,6 +5408,11 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
5169
5408
  var value = /** @type {number} */ (reader.readInt32());
5170
5409
  msg.setCashbackUserId(value);
5171
5410
  break;
5411
+ case 18:
5412
+ var value = new proto.cashback.CashbackGamePreview;
5413
+ reader.readMessage(value,proto.cashback.CashbackGamePreview.deserializeBinaryFromReader);
5414
+ msg.addGames(value);
5415
+ break;
5172
5416
  default:
5173
5417
  reader.skipField();
5174
5418
  break;
@@ -5318,6 +5562,14 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
5318
5562
  f
5319
5563
  );
5320
5564
  }
5565
+ f = message.getGamesList();
5566
+ if (f.length > 0) {
5567
+ writer.writeRepeatedMessage(
5568
+ 18,
5569
+ f,
5570
+ proto.cashback.CashbackGamePreview.serializeBinaryToWriter
5571
+ );
5572
+ }
5321
5573
  };
5322
5574
 
5323
5575
 
@@ -5826,6 +6078,44 @@ proto.cashback.UserCashbackItem.prototype.hasCashbackUserId = function() {
5826
6078
  };
5827
6079
 
5828
6080
 
6081
+ /**
6082
+ * repeated CashbackGamePreview games = 18;
6083
+ * @return {!Array<!proto.cashback.CashbackGamePreview>}
6084
+ */
6085
+ proto.cashback.UserCashbackItem.prototype.getGamesList = function() {
6086
+ return /** @type{!Array<!proto.cashback.CashbackGamePreview>} */ (
6087
+ jspb.Message.getRepeatedWrapperField(this, proto.cashback.CashbackGamePreview, 18));
6088
+ };
6089
+
6090
+
6091
+ /**
6092
+ * @param {!Array<!proto.cashback.CashbackGamePreview>} value
6093
+ * @return {!proto.cashback.UserCashbackItem} returns this
6094
+ */
6095
+ proto.cashback.UserCashbackItem.prototype.setGamesList = function(value) {
6096
+ return jspb.Message.setRepeatedWrapperField(this, 18, value);
6097
+ };
6098
+
6099
+
6100
+ /**
6101
+ * @param {!proto.cashback.CashbackGamePreview=} opt_value
6102
+ * @param {number=} opt_index
6103
+ * @return {!proto.cashback.CashbackGamePreview}
6104
+ */
6105
+ proto.cashback.UserCashbackItem.prototype.addGames = function(opt_value, opt_index) {
6106
+ return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.cashback.CashbackGamePreview, opt_index);
6107
+ };
6108
+
6109
+
6110
+ /**
6111
+ * Clears the list making it empty but non-null.
6112
+ * @return {!proto.cashback.UserCashbackItem} returns this
6113
+ */
6114
+ proto.cashback.UserCashbackItem.prototype.clearGamesList = function() {
6115
+ return this.setGamesList([]);
6116
+ };
6117
+
6118
+
5829
6119
 
5830
6120
 
5831
6121
 
package/game/game.proto CHANGED
@@ -101,6 +101,7 @@ service Game {
101
101
  rpc addGamesIntoCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
102
102
  rpc removeGamesFromCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
103
103
  rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
104
+ rpc fetchGamesFromCashBackLists(CashBackListsGamesRequest) returns (CashBackListsGamesResponse);
104
105
  rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
105
106
  rpc updateCashBackListInBunch(ItemsBunchRequest) returns (GameStatusResponse);
106
107
  //Dashboard
@@ -701,6 +702,24 @@ message CashBackListItemsResponse {
701
702
  optional int32 total_pages = 2;
702
703
  optional int32 total_items = 3;
703
704
  }
705
+ message CashBackListsGamesRequest {
706
+ repeated int32 cashback_list_ids = 1;
707
+ optional int32 limit = 2;
708
+ optional int32 offset = 3;
709
+ }
710
+ message CashbackGamePreview {
711
+ string game_slug = 1;
712
+ string provider_slug = 2;
713
+ string image = 3;
714
+ optional int32 game_id = 4;
715
+ }
716
+ message CashBackListGamesItem {
717
+ int32 cashback_list_id = 1;
718
+ repeated CashbackGamePreview games = 2;
719
+ }
720
+ message CashBackListsGamesResponse {
721
+ repeated CashBackListGamesItem items = 1;
722
+ }
704
723
  //Dashboard
705
724
  message DashboardRequest {
706
725
  string start_date = 1;
@@ -48,6 +48,28 @@ function deserialize_game_CashBackListResponse(buffer_arg) {
48
48
  return game_pb.CashBackListResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_game_CashBackListsGamesRequest(arg) {
52
+ if (!(arg instanceof game_pb.CashBackListsGamesRequest)) {
53
+ throw new Error('Expected argument of type game.CashBackListsGamesRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_game_CashBackListsGamesRequest(buffer_arg) {
59
+ return game_pb.CashBackListsGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_game_CashBackListsGamesResponse(arg) {
63
+ if (!(arg instanceof game_pb.CashBackListsGamesResponse)) {
64
+ throw new Error('Expected argument of type game.CashBackListsGamesResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_game_CashBackListsGamesResponse(buffer_arg) {
70
+ return game_pb.CashBackListsGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
51
73
  function serialize_game_CategoryItemsResponse(arg) {
52
74
  if (!(arg instanceof game_pb.CategoryItemsResponse)) {
53
75
  throw new Error('Expected argument of type game.CategoryItemsResponse');
@@ -1932,6 +1954,17 @@ readSingleCashBackList: {
1932
1954
  responseSerialize: serialize_game_GameItemsResponse,
1933
1955
  responseDeserialize: deserialize_game_GameItemsResponse,
1934
1956
  },
1957
+ fetchGamesFromCashBackLists: {
1958
+ path: '/game.Game/fetchGamesFromCashBackLists',
1959
+ requestStream: false,
1960
+ responseStream: false,
1961
+ requestType: game_pb.CashBackListsGamesRequest,
1962
+ responseType: game_pb.CashBackListsGamesResponse,
1963
+ requestSerialize: serialize_game_CashBackListsGamesRequest,
1964
+ requestDeserialize: deserialize_game_CashBackListsGamesRequest,
1965
+ responseSerialize: serialize_game_CashBackListsGamesResponse,
1966
+ responseDeserialize: deserialize_game_CashBackListsGamesResponse,
1967
+ },
1935
1968
  notProcessedGamesInCashBackList: {
1936
1969
  path: '/game.Game/notProcessedGamesInCashBackList',
1937
1970
  requestStream: false,
package/game/game_pb.js CHANGED
@@ -21,12 +21,16 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.game.CashBackListGamesItem', null, global);
24
25
  goog.exportSymbol('proto.game.CashBackListGamesRequest', null, global);
25
26
  goog.exportSymbol('proto.game.CashBackListItem', null, global);
26
27
  goog.exportSymbol('proto.game.CashBackListItemsResponse', null, global);
27
28
  goog.exportSymbol('proto.game.CashBackListRequest', null, global);
28
29
  goog.exportSymbol('proto.game.CashBackListResponse', null, global);
30
+ goog.exportSymbol('proto.game.CashBackListsGamesRequest', null, global);
31
+ goog.exportSymbol('proto.game.CashBackListsGamesResponse', null, global);
29
32
  goog.exportSymbol('proto.game.CashBackSearchRequest', null, global);
33
+ goog.exportSymbol('proto.game.CashbackGamePreview', null, global);
30
34
  goog.exportSymbol('proto.game.CategoryItem', null, global);
31
35
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
32
36
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -2258,6 +2262,90 @@ if (goog.DEBUG && !COMPILED) {
2258
2262
  */
2259
2263
  proto.game.CashBackListItemsResponse.displayName = 'proto.game.CashBackListItemsResponse';
2260
2264
  }
2265
+ /**
2266
+ * Generated by JsPbCodeGenerator.
2267
+ * @param {Array=} opt_data Optional initial data array, typically from a
2268
+ * server response, or constructed directly in Javascript. The array is used
2269
+ * in place and becomes part of the constructed object. It is not cloned.
2270
+ * If no data is provided, the constructed object will be empty, but still
2271
+ * valid.
2272
+ * @extends {jspb.Message}
2273
+ * @constructor
2274
+ */
2275
+ proto.game.CashBackListsGamesRequest = function(opt_data) {
2276
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesRequest.repeatedFields_, null);
2277
+ };
2278
+ goog.inherits(proto.game.CashBackListsGamesRequest, jspb.Message);
2279
+ if (goog.DEBUG && !COMPILED) {
2280
+ /**
2281
+ * @public
2282
+ * @override
2283
+ */
2284
+ proto.game.CashBackListsGamesRequest.displayName = 'proto.game.CashBackListsGamesRequest';
2285
+ }
2286
+ /**
2287
+ * Generated by JsPbCodeGenerator.
2288
+ * @param {Array=} opt_data Optional initial data array, typically from a
2289
+ * server response, or constructed directly in Javascript. The array is used
2290
+ * in place and becomes part of the constructed object. It is not cloned.
2291
+ * If no data is provided, the constructed object will be empty, but still
2292
+ * valid.
2293
+ * @extends {jspb.Message}
2294
+ * @constructor
2295
+ */
2296
+ proto.game.CashbackGamePreview = function(opt_data) {
2297
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2298
+ };
2299
+ goog.inherits(proto.game.CashbackGamePreview, jspb.Message);
2300
+ if (goog.DEBUG && !COMPILED) {
2301
+ /**
2302
+ * @public
2303
+ * @override
2304
+ */
2305
+ proto.game.CashbackGamePreview.displayName = 'proto.game.CashbackGamePreview';
2306
+ }
2307
+ /**
2308
+ * Generated by JsPbCodeGenerator.
2309
+ * @param {Array=} opt_data Optional initial data array, typically from a
2310
+ * server response, or constructed directly in Javascript. The array is used
2311
+ * in place and becomes part of the constructed object. It is not cloned.
2312
+ * If no data is provided, the constructed object will be empty, but still
2313
+ * valid.
2314
+ * @extends {jspb.Message}
2315
+ * @constructor
2316
+ */
2317
+ proto.game.CashBackListGamesItem = function(opt_data) {
2318
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListGamesItem.repeatedFields_, null);
2319
+ };
2320
+ goog.inherits(proto.game.CashBackListGamesItem, jspb.Message);
2321
+ if (goog.DEBUG && !COMPILED) {
2322
+ /**
2323
+ * @public
2324
+ * @override
2325
+ */
2326
+ proto.game.CashBackListGamesItem.displayName = 'proto.game.CashBackListGamesItem';
2327
+ }
2328
+ /**
2329
+ * Generated by JsPbCodeGenerator.
2330
+ * @param {Array=} opt_data Optional initial data array, typically from a
2331
+ * server response, or constructed directly in Javascript. The array is used
2332
+ * in place and becomes part of the constructed object. It is not cloned.
2333
+ * If no data is provided, the constructed object will be empty, but still
2334
+ * valid.
2335
+ * @extends {jspb.Message}
2336
+ * @constructor
2337
+ */
2338
+ proto.game.CashBackListsGamesResponse = function(opt_data) {
2339
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesResponse.repeatedFields_, null);
2340
+ };
2341
+ goog.inherits(proto.game.CashBackListsGamesResponse, jspb.Message);
2342
+ if (goog.DEBUG && !COMPILED) {
2343
+ /**
2344
+ * @public
2345
+ * @override
2346
+ */
2347
+ proto.game.CashBackListsGamesResponse.displayName = 'proto.game.CashBackListsGamesResponse';
2348
+ }
2261
2349
  /**
2262
2350
  * Generated by JsPbCodeGenerator.
2263
2351
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -29440,6 +29528,848 @@ proto.game.CashBackListItemsResponse.prototype.hasTotalItems = function() {
29440
29528
 
29441
29529
 
29442
29530
 
29531
+ /**
29532
+ * List of repeated fields within this message type.
29533
+ * @private {!Array<number>}
29534
+ * @const
29535
+ */
29536
+ proto.game.CashBackListsGamesRequest.repeatedFields_ = [1];
29537
+
29538
+
29539
+
29540
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29541
+ /**
29542
+ * Creates an object representation of this proto.
29543
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29544
+ * Optional fields that are not set will be set to undefined.
29545
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29546
+ * For the list of reserved names please see:
29547
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29548
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29549
+ * JSPB instance for transitional soy proto support:
29550
+ * http://goto/soy-param-migration
29551
+ * @return {!Object}
29552
+ */
29553
+ proto.game.CashBackListsGamesRequest.prototype.toObject = function(opt_includeInstance) {
29554
+ return proto.game.CashBackListsGamesRequest.toObject(opt_includeInstance, this);
29555
+ };
29556
+
29557
+
29558
+ /**
29559
+ * Static version of the {@see toObject} method.
29560
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29561
+ * the JSPB instance for transitional soy proto support:
29562
+ * http://goto/soy-param-migration
29563
+ * @param {!proto.game.CashBackListsGamesRequest} msg The msg instance to transform.
29564
+ * @return {!Object}
29565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29566
+ */
29567
+ proto.game.CashBackListsGamesRequest.toObject = function(includeInstance, msg) {
29568
+ var f, obj = {
29569
+ cashbackListIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
29570
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
29571
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
29572
+ };
29573
+
29574
+ if (includeInstance) {
29575
+ obj.$jspbMessageInstance = msg;
29576
+ }
29577
+ return obj;
29578
+ };
29579
+ }
29580
+
29581
+
29582
+ /**
29583
+ * Deserializes binary data (in protobuf wire format).
29584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29585
+ * @return {!proto.game.CashBackListsGamesRequest}
29586
+ */
29587
+ proto.game.CashBackListsGamesRequest.deserializeBinary = function(bytes) {
29588
+ var reader = new jspb.BinaryReader(bytes);
29589
+ var msg = new proto.game.CashBackListsGamesRequest;
29590
+ return proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader(msg, reader);
29591
+ };
29592
+
29593
+
29594
+ /**
29595
+ * Deserializes binary data (in protobuf wire format) from the
29596
+ * given reader into the given message object.
29597
+ * @param {!proto.game.CashBackListsGamesRequest} msg The message object to deserialize into.
29598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29599
+ * @return {!proto.game.CashBackListsGamesRequest}
29600
+ */
29601
+ proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
29602
+ while (reader.nextField()) {
29603
+ if (reader.isEndGroup()) {
29604
+ break;
29605
+ }
29606
+ var field = reader.getFieldNumber();
29607
+ switch (field) {
29608
+ case 1:
29609
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
29610
+ for (var i = 0; i < values.length; i++) {
29611
+ msg.addCashbackListIds(values[i]);
29612
+ }
29613
+ break;
29614
+ case 2:
29615
+ var value = /** @type {number} */ (reader.readInt32());
29616
+ msg.setLimit(value);
29617
+ break;
29618
+ case 3:
29619
+ var value = /** @type {number} */ (reader.readInt32());
29620
+ msg.setOffset(value);
29621
+ break;
29622
+ default:
29623
+ reader.skipField();
29624
+ break;
29625
+ }
29626
+ }
29627
+ return msg;
29628
+ };
29629
+
29630
+
29631
+ /**
29632
+ * Serializes the message to binary data (in protobuf wire format).
29633
+ * @return {!Uint8Array}
29634
+ */
29635
+ proto.game.CashBackListsGamesRequest.prototype.serializeBinary = function() {
29636
+ var writer = new jspb.BinaryWriter();
29637
+ proto.game.CashBackListsGamesRequest.serializeBinaryToWriter(this, writer);
29638
+ return writer.getResultBuffer();
29639
+ };
29640
+
29641
+
29642
+ /**
29643
+ * Serializes the given message to binary data (in protobuf wire
29644
+ * format), writing to the given BinaryWriter.
29645
+ * @param {!proto.game.CashBackListsGamesRequest} message
29646
+ * @param {!jspb.BinaryWriter} writer
29647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29648
+ */
29649
+ proto.game.CashBackListsGamesRequest.serializeBinaryToWriter = function(message, writer) {
29650
+ var f = undefined;
29651
+ f = message.getCashbackListIdsList();
29652
+ if (f.length > 0) {
29653
+ writer.writePackedInt32(
29654
+ 1,
29655
+ f
29656
+ );
29657
+ }
29658
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
29659
+ if (f != null) {
29660
+ writer.writeInt32(
29661
+ 2,
29662
+ f
29663
+ );
29664
+ }
29665
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
29666
+ if (f != null) {
29667
+ writer.writeInt32(
29668
+ 3,
29669
+ f
29670
+ );
29671
+ }
29672
+ };
29673
+
29674
+
29675
+ /**
29676
+ * repeated int32 cashback_list_ids = 1;
29677
+ * @return {!Array<number>}
29678
+ */
29679
+ proto.game.CashBackListsGamesRequest.prototype.getCashbackListIdsList = function() {
29680
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
29681
+ };
29682
+
29683
+
29684
+ /**
29685
+ * @param {!Array<number>} value
29686
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29687
+ */
29688
+ proto.game.CashBackListsGamesRequest.prototype.setCashbackListIdsList = function(value) {
29689
+ return jspb.Message.setField(this, 1, value || []);
29690
+ };
29691
+
29692
+
29693
+ /**
29694
+ * @param {number} value
29695
+ * @param {number=} opt_index
29696
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29697
+ */
29698
+ proto.game.CashBackListsGamesRequest.prototype.addCashbackListIds = function(value, opt_index) {
29699
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
29700
+ };
29701
+
29702
+
29703
+ /**
29704
+ * Clears the list making it empty but non-null.
29705
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29706
+ */
29707
+ proto.game.CashBackListsGamesRequest.prototype.clearCashbackListIdsList = function() {
29708
+ return this.setCashbackListIdsList([]);
29709
+ };
29710
+
29711
+
29712
+ /**
29713
+ * optional int32 limit = 2;
29714
+ * @return {number}
29715
+ */
29716
+ proto.game.CashBackListsGamesRequest.prototype.getLimit = function() {
29717
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
29718
+ };
29719
+
29720
+
29721
+ /**
29722
+ * @param {number} value
29723
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29724
+ */
29725
+ proto.game.CashBackListsGamesRequest.prototype.setLimit = function(value) {
29726
+ return jspb.Message.setField(this, 2, value);
29727
+ };
29728
+
29729
+
29730
+ /**
29731
+ * Clears the field making it undefined.
29732
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29733
+ */
29734
+ proto.game.CashBackListsGamesRequest.prototype.clearLimit = function() {
29735
+ return jspb.Message.setField(this, 2, undefined);
29736
+ };
29737
+
29738
+
29739
+ /**
29740
+ * Returns whether this field is set.
29741
+ * @return {boolean}
29742
+ */
29743
+ proto.game.CashBackListsGamesRequest.prototype.hasLimit = function() {
29744
+ return jspb.Message.getField(this, 2) != null;
29745
+ };
29746
+
29747
+
29748
+ /**
29749
+ * optional int32 offset = 3;
29750
+ * @return {number}
29751
+ */
29752
+ proto.game.CashBackListsGamesRequest.prototype.getOffset = function() {
29753
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
29754
+ };
29755
+
29756
+
29757
+ /**
29758
+ * @param {number} value
29759
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29760
+ */
29761
+ proto.game.CashBackListsGamesRequest.prototype.setOffset = function(value) {
29762
+ return jspb.Message.setField(this, 3, value);
29763
+ };
29764
+
29765
+
29766
+ /**
29767
+ * Clears the field making it undefined.
29768
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29769
+ */
29770
+ proto.game.CashBackListsGamesRequest.prototype.clearOffset = function() {
29771
+ return jspb.Message.setField(this, 3, undefined);
29772
+ };
29773
+
29774
+
29775
+ /**
29776
+ * Returns whether this field is set.
29777
+ * @return {boolean}
29778
+ */
29779
+ proto.game.CashBackListsGamesRequest.prototype.hasOffset = function() {
29780
+ return jspb.Message.getField(this, 3) != null;
29781
+ };
29782
+
29783
+
29784
+
29785
+
29786
+
29787
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29788
+ /**
29789
+ * Creates an object representation of this proto.
29790
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29791
+ * Optional fields that are not set will be set to undefined.
29792
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29793
+ * For the list of reserved names please see:
29794
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29795
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29796
+ * JSPB instance for transitional soy proto support:
29797
+ * http://goto/soy-param-migration
29798
+ * @return {!Object}
29799
+ */
29800
+ proto.game.CashbackGamePreview.prototype.toObject = function(opt_includeInstance) {
29801
+ return proto.game.CashbackGamePreview.toObject(opt_includeInstance, this);
29802
+ };
29803
+
29804
+
29805
+ /**
29806
+ * Static version of the {@see toObject} method.
29807
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29808
+ * the JSPB instance for transitional soy proto support:
29809
+ * http://goto/soy-param-migration
29810
+ * @param {!proto.game.CashbackGamePreview} msg The msg instance to transform.
29811
+ * @return {!Object}
29812
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29813
+ */
29814
+ proto.game.CashbackGamePreview.toObject = function(includeInstance, msg) {
29815
+ var f, obj = {
29816
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
29817
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
29818
+ image: jspb.Message.getFieldWithDefault(msg, 3, ""),
29819
+ gameId: jspb.Message.getFieldWithDefault(msg, 4, 0)
29820
+ };
29821
+
29822
+ if (includeInstance) {
29823
+ obj.$jspbMessageInstance = msg;
29824
+ }
29825
+ return obj;
29826
+ };
29827
+ }
29828
+
29829
+
29830
+ /**
29831
+ * Deserializes binary data (in protobuf wire format).
29832
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29833
+ * @return {!proto.game.CashbackGamePreview}
29834
+ */
29835
+ proto.game.CashbackGamePreview.deserializeBinary = function(bytes) {
29836
+ var reader = new jspb.BinaryReader(bytes);
29837
+ var msg = new proto.game.CashbackGamePreview;
29838
+ return proto.game.CashbackGamePreview.deserializeBinaryFromReader(msg, reader);
29839
+ };
29840
+
29841
+
29842
+ /**
29843
+ * Deserializes binary data (in protobuf wire format) from the
29844
+ * given reader into the given message object.
29845
+ * @param {!proto.game.CashbackGamePreview} msg The message object to deserialize into.
29846
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29847
+ * @return {!proto.game.CashbackGamePreview}
29848
+ */
29849
+ proto.game.CashbackGamePreview.deserializeBinaryFromReader = function(msg, reader) {
29850
+ while (reader.nextField()) {
29851
+ if (reader.isEndGroup()) {
29852
+ break;
29853
+ }
29854
+ var field = reader.getFieldNumber();
29855
+ switch (field) {
29856
+ case 1:
29857
+ var value = /** @type {string} */ (reader.readString());
29858
+ msg.setGameSlug(value);
29859
+ break;
29860
+ case 2:
29861
+ var value = /** @type {string} */ (reader.readString());
29862
+ msg.setProviderSlug(value);
29863
+ break;
29864
+ case 3:
29865
+ var value = /** @type {string} */ (reader.readString());
29866
+ msg.setImage(value);
29867
+ break;
29868
+ case 4:
29869
+ var value = /** @type {number} */ (reader.readInt32());
29870
+ msg.setGameId(value);
29871
+ break;
29872
+ default:
29873
+ reader.skipField();
29874
+ break;
29875
+ }
29876
+ }
29877
+ return msg;
29878
+ };
29879
+
29880
+
29881
+ /**
29882
+ * Serializes the message to binary data (in protobuf wire format).
29883
+ * @return {!Uint8Array}
29884
+ */
29885
+ proto.game.CashbackGamePreview.prototype.serializeBinary = function() {
29886
+ var writer = new jspb.BinaryWriter();
29887
+ proto.game.CashbackGamePreview.serializeBinaryToWriter(this, writer);
29888
+ return writer.getResultBuffer();
29889
+ };
29890
+
29891
+
29892
+ /**
29893
+ * Serializes the given message to binary data (in protobuf wire
29894
+ * format), writing to the given BinaryWriter.
29895
+ * @param {!proto.game.CashbackGamePreview} message
29896
+ * @param {!jspb.BinaryWriter} writer
29897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29898
+ */
29899
+ proto.game.CashbackGamePreview.serializeBinaryToWriter = function(message, writer) {
29900
+ var f = undefined;
29901
+ f = message.getGameSlug();
29902
+ if (f.length > 0) {
29903
+ writer.writeString(
29904
+ 1,
29905
+ f
29906
+ );
29907
+ }
29908
+ f = message.getProviderSlug();
29909
+ if (f.length > 0) {
29910
+ writer.writeString(
29911
+ 2,
29912
+ f
29913
+ );
29914
+ }
29915
+ f = message.getImage();
29916
+ if (f.length > 0) {
29917
+ writer.writeString(
29918
+ 3,
29919
+ f
29920
+ );
29921
+ }
29922
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
29923
+ if (f != null) {
29924
+ writer.writeInt32(
29925
+ 4,
29926
+ f
29927
+ );
29928
+ }
29929
+ };
29930
+
29931
+
29932
+ /**
29933
+ * optional string game_slug = 1;
29934
+ * @return {string}
29935
+ */
29936
+ proto.game.CashbackGamePreview.prototype.getGameSlug = function() {
29937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29938
+ };
29939
+
29940
+
29941
+ /**
29942
+ * @param {string} value
29943
+ * @return {!proto.game.CashbackGamePreview} returns this
29944
+ */
29945
+ proto.game.CashbackGamePreview.prototype.setGameSlug = function(value) {
29946
+ return jspb.Message.setProto3StringField(this, 1, value);
29947
+ };
29948
+
29949
+
29950
+ /**
29951
+ * optional string provider_slug = 2;
29952
+ * @return {string}
29953
+ */
29954
+ proto.game.CashbackGamePreview.prototype.getProviderSlug = function() {
29955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29956
+ };
29957
+
29958
+
29959
+ /**
29960
+ * @param {string} value
29961
+ * @return {!proto.game.CashbackGamePreview} returns this
29962
+ */
29963
+ proto.game.CashbackGamePreview.prototype.setProviderSlug = function(value) {
29964
+ return jspb.Message.setProto3StringField(this, 2, value);
29965
+ };
29966
+
29967
+
29968
+ /**
29969
+ * optional string image = 3;
29970
+ * @return {string}
29971
+ */
29972
+ proto.game.CashbackGamePreview.prototype.getImage = function() {
29973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
29974
+ };
29975
+
29976
+
29977
+ /**
29978
+ * @param {string} value
29979
+ * @return {!proto.game.CashbackGamePreview} returns this
29980
+ */
29981
+ proto.game.CashbackGamePreview.prototype.setImage = function(value) {
29982
+ return jspb.Message.setProto3StringField(this, 3, value);
29983
+ };
29984
+
29985
+
29986
+ /**
29987
+ * optional int32 game_id = 4;
29988
+ * @return {number}
29989
+ */
29990
+ proto.game.CashbackGamePreview.prototype.getGameId = function() {
29991
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
29992
+ };
29993
+
29994
+
29995
+ /**
29996
+ * @param {number} value
29997
+ * @return {!proto.game.CashbackGamePreview} returns this
29998
+ */
29999
+ proto.game.CashbackGamePreview.prototype.setGameId = function(value) {
30000
+ return jspb.Message.setField(this, 4, value);
30001
+ };
30002
+
30003
+
30004
+ /**
30005
+ * Clears the field making it undefined.
30006
+ * @return {!proto.game.CashbackGamePreview} returns this
30007
+ */
30008
+ proto.game.CashbackGamePreview.prototype.clearGameId = function() {
30009
+ return jspb.Message.setField(this, 4, undefined);
30010
+ };
30011
+
30012
+
30013
+ /**
30014
+ * Returns whether this field is set.
30015
+ * @return {boolean}
30016
+ */
30017
+ proto.game.CashbackGamePreview.prototype.hasGameId = function() {
30018
+ return jspb.Message.getField(this, 4) != null;
30019
+ };
30020
+
30021
+
30022
+
30023
+ /**
30024
+ * List of repeated fields within this message type.
30025
+ * @private {!Array<number>}
30026
+ * @const
30027
+ */
30028
+ proto.game.CashBackListGamesItem.repeatedFields_ = [2];
30029
+
30030
+
30031
+
30032
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30033
+ /**
30034
+ * Creates an object representation of this proto.
30035
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30036
+ * Optional fields that are not set will be set to undefined.
30037
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30038
+ * For the list of reserved names please see:
30039
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30040
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30041
+ * JSPB instance for transitional soy proto support:
30042
+ * http://goto/soy-param-migration
30043
+ * @return {!Object}
30044
+ */
30045
+ proto.game.CashBackListGamesItem.prototype.toObject = function(opt_includeInstance) {
30046
+ return proto.game.CashBackListGamesItem.toObject(opt_includeInstance, this);
30047
+ };
30048
+
30049
+
30050
+ /**
30051
+ * Static version of the {@see toObject} method.
30052
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30053
+ * the JSPB instance for transitional soy proto support:
30054
+ * http://goto/soy-param-migration
30055
+ * @param {!proto.game.CashBackListGamesItem} msg The msg instance to transform.
30056
+ * @return {!Object}
30057
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30058
+ */
30059
+ proto.game.CashBackListGamesItem.toObject = function(includeInstance, msg) {
30060
+ var f, obj = {
30061
+ cashbackListId: jspb.Message.getFieldWithDefault(msg, 1, 0),
30062
+ gamesList: jspb.Message.toObjectList(msg.getGamesList(),
30063
+ proto.game.CashbackGamePreview.toObject, includeInstance)
30064
+ };
30065
+
30066
+ if (includeInstance) {
30067
+ obj.$jspbMessageInstance = msg;
30068
+ }
30069
+ return obj;
30070
+ };
30071
+ }
30072
+
30073
+
30074
+ /**
30075
+ * Deserializes binary data (in protobuf wire format).
30076
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30077
+ * @return {!proto.game.CashBackListGamesItem}
30078
+ */
30079
+ proto.game.CashBackListGamesItem.deserializeBinary = function(bytes) {
30080
+ var reader = new jspb.BinaryReader(bytes);
30081
+ var msg = new proto.game.CashBackListGamesItem;
30082
+ return proto.game.CashBackListGamesItem.deserializeBinaryFromReader(msg, reader);
30083
+ };
30084
+
30085
+
30086
+ /**
30087
+ * Deserializes binary data (in protobuf wire format) from the
30088
+ * given reader into the given message object.
30089
+ * @param {!proto.game.CashBackListGamesItem} msg The message object to deserialize into.
30090
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30091
+ * @return {!proto.game.CashBackListGamesItem}
30092
+ */
30093
+ proto.game.CashBackListGamesItem.deserializeBinaryFromReader = function(msg, reader) {
30094
+ while (reader.nextField()) {
30095
+ if (reader.isEndGroup()) {
30096
+ break;
30097
+ }
30098
+ var field = reader.getFieldNumber();
30099
+ switch (field) {
30100
+ case 1:
30101
+ var value = /** @type {number} */ (reader.readInt32());
30102
+ msg.setCashbackListId(value);
30103
+ break;
30104
+ case 2:
30105
+ var value = new proto.game.CashbackGamePreview;
30106
+ reader.readMessage(value,proto.game.CashbackGamePreview.deserializeBinaryFromReader);
30107
+ msg.addGames(value);
30108
+ break;
30109
+ default:
30110
+ reader.skipField();
30111
+ break;
30112
+ }
30113
+ }
30114
+ return msg;
30115
+ };
30116
+
30117
+
30118
+ /**
30119
+ * Serializes the message to binary data (in protobuf wire format).
30120
+ * @return {!Uint8Array}
30121
+ */
30122
+ proto.game.CashBackListGamesItem.prototype.serializeBinary = function() {
30123
+ var writer = new jspb.BinaryWriter();
30124
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter(this, writer);
30125
+ return writer.getResultBuffer();
30126
+ };
30127
+
30128
+
30129
+ /**
30130
+ * Serializes the given message to binary data (in protobuf wire
30131
+ * format), writing to the given BinaryWriter.
30132
+ * @param {!proto.game.CashBackListGamesItem} message
30133
+ * @param {!jspb.BinaryWriter} writer
30134
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30135
+ */
30136
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter = function(message, writer) {
30137
+ var f = undefined;
30138
+ f = message.getCashbackListId();
30139
+ if (f !== 0) {
30140
+ writer.writeInt32(
30141
+ 1,
30142
+ f
30143
+ );
30144
+ }
30145
+ f = message.getGamesList();
30146
+ if (f.length > 0) {
30147
+ writer.writeRepeatedMessage(
30148
+ 2,
30149
+ f,
30150
+ proto.game.CashbackGamePreview.serializeBinaryToWriter
30151
+ );
30152
+ }
30153
+ };
30154
+
30155
+
30156
+ /**
30157
+ * optional int32 cashback_list_id = 1;
30158
+ * @return {number}
30159
+ */
30160
+ proto.game.CashBackListGamesItem.prototype.getCashbackListId = function() {
30161
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
30162
+ };
30163
+
30164
+
30165
+ /**
30166
+ * @param {number} value
30167
+ * @return {!proto.game.CashBackListGamesItem} returns this
30168
+ */
30169
+ proto.game.CashBackListGamesItem.prototype.setCashbackListId = function(value) {
30170
+ return jspb.Message.setProto3IntField(this, 1, value);
30171
+ };
30172
+
30173
+
30174
+ /**
30175
+ * repeated CashbackGamePreview games = 2;
30176
+ * @return {!Array<!proto.game.CashbackGamePreview>}
30177
+ */
30178
+ proto.game.CashBackListGamesItem.prototype.getGamesList = function() {
30179
+ return /** @type{!Array<!proto.game.CashbackGamePreview>} */ (
30180
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashbackGamePreview, 2));
30181
+ };
30182
+
30183
+
30184
+ /**
30185
+ * @param {!Array<!proto.game.CashbackGamePreview>} value
30186
+ * @return {!proto.game.CashBackListGamesItem} returns this
30187
+ */
30188
+ proto.game.CashBackListGamesItem.prototype.setGamesList = function(value) {
30189
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
30190
+ };
30191
+
30192
+
30193
+ /**
30194
+ * @param {!proto.game.CashbackGamePreview=} opt_value
30195
+ * @param {number=} opt_index
30196
+ * @return {!proto.game.CashbackGamePreview}
30197
+ */
30198
+ proto.game.CashBackListGamesItem.prototype.addGames = function(opt_value, opt_index) {
30199
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.CashbackGamePreview, opt_index);
30200
+ };
30201
+
30202
+
30203
+ /**
30204
+ * Clears the list making it empty but non-null.
30205
+ * @return {!proto.game.CashBackListGamesItem} returns this
30206
+ */
30207
+ proto.game.CashBackListGamesItem.prototype.clearGamesList = function() {
30208
+ return this.setGamesList([]);
30209
+ };
30210
+
30211
+
30212
+
30213
+ /**
30214
+ * List of repeated fields within this message type.
30215
+ * @private {!Array<number>}
30216
+ * @const
30217
+ */
30218
+ proto.game.CashBackListsGamesResponse.repeatedFields_ = [1];
30219
+
30220
+
30221
+
30222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30223
+ /**
30224
+ * Creates an object representation of this proto.
30225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30226
+ * Optional fields that are not set will be set to undefined.
30227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30228
+ * For the list of reserved names please see:
30229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30231
+ * JSPB instance for transitional soy proto support:
30232
+ * http://goto/soy-param-migration
30233
+ * @return {!Object}
30234
+ */
30235
+ proto.game.CashBackListsGamesResponse.prototype.toObject = function(opt_includeInstance) {
30236
+ return proto.game.CashBackListsGamesResponse.toObject(opt_includeInstance, this);
30237
+ };
30238
+
30239
+
30240
+ /**
30241
+ * Static version of the {@see toObject} method.
30242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30243
+ * the JSPB instance for transitional soy proto support:
30244
+ * http://goto/soy-param-migration
30245
+ * @param {!proto.game.CashBackListsGamesResponse} msg The msg instance to transform.
30246
+ * @return {!Object}
30247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30248
+ */
30249
+ proto.game.CashBackListsGamesResponse.toObject = function(includeInstance, msg) {
30250
+ var f, obj = {
30251
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
30252
+ proto.game.CashBackListGamesItem.toObject, includeInstance)
30253
+ };
30254
+
30255
+ if (includeInstance) {
30256
+ obj.$jspbMessageInstance = msg;
30257
+ }
30258
+ return obj;
30259
+ };
30260
+ }
30261
+
30262
+
30263
+ /**
30264
+ * Deserializes binary data (in protobuf wire format).
30265
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30266
+ * @return {!proto.game.CashBackListsGamesResponse}
30267
+ */
30268
+ proto.game.CashBackListsGamesResponse.deserializeBinary = function(bytes) {
30269
+ var reader = new jspb.BinaryReader(bytes);
30270
+ var msg = new proto.game.CashBackListsGamesResponse;
30271
+ return proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader(msg, reader);
30272
+ };
30273
+
30274
+
30275
+ /**
30276
+ * Deserializes binary data (in protobuf wire format) from the
30277
+ * given reader into the given message object.
30278
+ * @param {!proto.game.CashBackListsGamesResponse} msg The message object to deserialize into.
30279
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30280
+ * @return {!proto.game.CashBackListsGamesResponse}
30281
+ */
30282
+ proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
30283
+ while (reader.nextField()) {
30284
+ if (reader.isEndGroup()) {
30285
+ break;
30286
+ }
30287
+ var field = reader.getFieldNumber();
30288
+ switch (field) {
30289
+ case 1:
30290
+ var value = new proto.game.CashBackListGamesItem;
30291
+ reader.readMessage(value,proto.game.CashBackListGamesItem.deserializeBinaryFromReader);
30292
+ msg.addItems(value);
30293
+ break;
30294
+ default:
30295
+ reader.skipField();
30296
+ break;
30297
+ }
30298
+ }
30299
+ return msg;
30300
+ };
30301
+
30302
+
30303
+ /**
30304
+ * Serializes the message to binary data (in protobuf wire format).
30305
+ * @return {!Uint8Array}
30306
+ */
30307
+ proto.game.CashBackListsGamesResponse.prototype.serializeBinary = function() {
30308
+ var writer = new jspb.BinaryWriter();
30309
+ proto.game.CashBackListsGamesResponse.serializeBinaryToWriter(this, writer);
30310
+ return writer.getResultBuffer();
30311
+ };
30312
+
30313
+
30314
+ /**
30315
+ * Serializes the given message to binary data (in protobuf wire
30316
+ * format), writing to the given BinaryWriter.
30317
+ * @param {!proto.game.CashBackListsGamesResponse} message
30318
+ * @param {!jspb.BinaryWriter} writer
30319
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30320
+ */
30321
+ proto.game.CashBackListsGamesResponse.serializeBinaryToWriter = function(message, writer) {
30322
+ var f = undefined;
30323
+ f = message.getItemsList();
30324
+ if (f.length > 0) {
30325
+ writer.writeRepeatedMessage(
30326
+ 1,
30327
+ f,
30328
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter
30329
+ );
30330
+ }
30331
+ };
30332
+
30333
+
30334
+ /**
30335
+ * repeated CashBackListGamesItem items = 1;
30336
+ * @return {!Array<!proto.game.CashBackListGamesItem>}
30337
+ */
30338
+ proto.game.CashBackListsGamesResponse.prototype.getItemsList = function() {
30339
+ return /** @type{!Array<!proto.game.CashBackListGamesItem>} */ (
30340
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackListGamesItem, 1));
30341
+ };
30342
+
30343
+
30344
+ /**
30345
+ * @param {!Array<!proto.game.CashBackListGamesItem>} value
30346
+ * @return {!proto.game.CashBackListsGamesResponse} returns this
30347
+ */
30348
+ proto.game.CashBackListsGamesResponse.prototype.setItemsList = function(value) {
30349
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
30350
+ };
30351
+
30352
+
30353
+ /**
30354
+ * @param {!proto.game.CashBackListGamesItem=} opt_value
30355
+ * @param {number=} opt_index
30356
+ * @return {!proto.game.CashBackListGamesItem}
30357
+ */
30358
+ proto.game.CashBackListsGamesResponse.prototype.addItems = function(opt_value, opt_index) {
30359
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackListGamesItem, opt_index);
30360
+ };
30361
+
30362
+
30363
+ /**
30364
+ * Clears the list making it empty but non-null.
30365
+ * @return {!proto.game.CashBackListsGamesResponse} returns this
30366
+ */
30367
+ proto.game.CashBackListsGamesResponse.prototype.clearItemsList = function() {
30368
+ return this.setItemsList([]);
30369
+ };
30370
+
30371
+
30372
+
29443
30373
 
29444
30374
 
29445
30375
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.192",
3
+ "version": "1.2.193",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {