protobuf-platform 1.2.191 → 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.
- package/cashback/cashback.proto +16 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +723 -3
- package/game/game.proto +19 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +930 -0
- package/package.json +1 -1
package/cashback/cashback_pb.js
CHANGED
|
@@ -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);
|
|
@@ -32,6 +33,8 @@ goog.exportSymbol('proto.cashback.CashbackRequest.RequestCase', null, global);
|
|
|
32
33
|
goog.exportSymbol('proto.cashback.CashbackResponse', null, global);
|
|
33
34
|
goog.exportSymbol('proto.cashback.CashbackStatusResponse', null, global);
|
|
34
35
|
goog.exportSymbol('proto.cashback.CashbackUserRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.cashback.ClaimCashbackRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.cashback.ClaimCashbackResponse', null, global);
|
|
35
38
|
goog.exportSymbol('proto.cashback.File', null, global);
|
|
36
39
|
goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
|
|
37
40
|
goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
|
|
@@ -431,9 +434,30 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
431
434
|
* @extends {jspb.Message}
|
|
432
435
|
* @constructor
|
|
433
436
|
*/
|
|
434
|
-
proto.cashback.
|
|
437
|
+
proto.cashback.CashbackGamePreview = function(opt_data) {
|
|
435
438
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
436
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
|
+
};
|
|
437
461
|
goog.inherits(proto.cashback.UserCashbackItem, jspb.Message);
|
|
438
462
|
if (goog.DEBUG && !COMPILED) {
|
|
439
463
|
/**
|
|
@@ -484,6 +508,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
484
508
|
*/
|
|
485
509
|
proto.cashback.UserCashbackItemsResponse.displayName = 'proto.cashback.UserCashbackItemsResponse';
|
|
486
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
* Generated by JsPbCodeGenerator.
|
|
513
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
514
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
515
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
516
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
517
|
+
* valid.
|
|
518
|
+
* @extends {jspb.Message}
|
|
519
|
+
* @constructor
|
|
520
|
+
*/
|
|
521
|
+
proto.cashback.ClaimCashbackRequest = function(opt_data) {
|
|
522
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
523
|
+
};
|
|
524
|
+
goog.inherits(proto.cashback.ClaimCashbackRequest, jspb.Message);
|
|
525
|
+
if (goog.DEBUG && !COMPILED) {
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
* @override
|
|
529
|
+
*/
|
|
530
|
+
proto.cashback.ClaimCashbackRequest.displayName = 'proto.cashback.ClaimCashbackRequest';
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Generated by JsPbCodeGenerator.
|
|
534
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
535
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
536
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
537
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
538
|
+
* valid.
|
|
539
|
+
* @extends {jspb.Message}
|
|
540
|
+
* @constructor
|
|
541
|
+
*/
|
|
542
|
+
proto.cashback.ClaimCashbackResponse = function(opt_data) {
|
|
543
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
544
|
+
};
|
|
545
|
+
goog.inherits(proto.cashback.ClaimCashbackResponse, jspb.Message);
|
|
546
|
+
if (goog.DEBUG && !COMPILED) {
|
|
547
|
+
/**
|
|
548
|
+
* @public
|
|
549
|
+
* @override
|
|
550
|
+
*/
|
|
551
|
+
proto.cashback.ClaimCashbackResponse.displayName = 'proto.cashback.ClaimCashbackResponse';
|
|
552
|
+
}
|
|
487
553
|
|
|
488
554
|
|
|
489
555
|
|
|
@@ -4974,6 +5040,221 @@ proto.cashback.CashbackActions.prototype.setCanCalculate = function(value) {
|
|
|
4974
5040
|
|
|
4975
5041
|
|
|
4976
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
|
+
|
|
4977
5258
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4978
5259
|
/**
|
|
4979
5260
|
* Creates an object representation of this proto.
|
|
@@ -5018,7 +5299,10 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
|
|
|
5018
5299
|
reward: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
|
|
5019
5300
|
actions: (f = msg.getActions()) && proto.cashback.CashbackActions.toObject(includeInstance, f),
|
|
5020
5301
|
remainingMs: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
5021
|
-
remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0)
|
|
5302
|
+
remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
|
|
5303
|
+
cashbackUserId: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
5304
|
+
gamesList: jspb.Message.toObjectList(msg.getGamesList(),
|
|
5305
|
+
proto.cashback.CashbackGamePreview.toObject, includeInstance)
|
|
5022
5306
|
};
|
|
5023
5307
|
|
|
5024
5308
|
if (includeInstance) {
|
|
@@ -5120,6 +5404,15 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
|
|
|
5120
5404
|
var value = /** @type {number} */ (reader.readFloat());
|
|
5121
5405
|
msg.setRemainingToMin(value);
|
|
5122
5406
|
break;
|
|
5407
|
+
case 17:
|
|
5408
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5409
|
+
msg.setCashbackUserId(value);
|
|
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;
|
|
5123
5416
|
default:
|
|
5124
5417
|
reader.skipField();
|
|
5125
5418
|
break;
|
|
@@ -5262,6 +5555,21 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
|
|
|
5262
5555
|
f
|
|
5263
5556
|
);
|
|
5264
5557
|
}
|
|
5558
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 17));
|
|
5559
|
+
if (f != null) {
|
|
5560
|
+
writer.writeInt32(
|
|
5561
|
+
17,
|
|
5562
|
+
f
|
|
5563
|
+
);
|
|
5564
|
+
}
|
|
5565
|
+
f = message.getGamesList();
|
|
5566
|
+
if (f.length > 0) {
|
|
5567
|
+
writer.writeRepeatedMessage(
|
|
5568
|
+
18,
|
|
5569
|
+
f,
|
|
5570
|
+
proto.cashback.CashbackGamePreview.serializeBinaryToWriter
|
|
5571
|
+
);
|
|
5572
|
+
}
|
|
5265
5573
|
};
|
|
5266
5574
|
|
|
5267
5575
|
|
|
@@ -5734,10 +6042,84 @@ proto.cashback.UserCashbackItem.prototype.hasRemainingToMin = function() {
|
|
|
5734
6042
|
};
|
|
5735
6043
|
|
|
5736
6044
|
|
|
6045
|
+
/**
|
|
6046
|
+
* optional int32 cashback_user_id = 17;
|
|
6047
|
+
* @return {number}
|
|
6048
|
+
*/
|
|
6049
|
+
proto.cashback.UserCashbackItem.prototype.getCashbackUserId = function() {
|
|
6050
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
6051
|
+
};
|
|
6052
|
+
|
|
5737
6053
|
|
|
6054
|
+
/**
|
|
6055
|
+
* @param {number} value
|
|
6056
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6057
|
+
*/
|
|
6058
|
+
proto.cashback.UserCashbackItem.prototype.setCashbackUserId = function(value) {
|
|
6059
|
+
return jspb.Message.setField(this, 17, value);
|
|
6060
|
+
};
|
|
5738
6061
|
|
|
5739
6062
|
|
|
5740
|
-
|
|
6063
|
+
/**
|
|
6064
|
+
* Clears the field making it undefined.
|
|
6065
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6066
|
+
*/
|
|
6067
|
+
proto.cashback.UserCashbackItem.prototype.clearCashbackUserId = function() {
|
|
6068
|
+
return jspb.Message.setField(this, 17, undefined);
|
|
6069
|
+
};
|
|
6070
|
+
|
|
6071
|
+
|
|
6072
|
+
/**
|
|
6073
|
+
* Returns whether this field is set.
|
|
6074
|
+
* @return {boolean}
|
|
6075
|
+
*/
|
|
6076
|
+
proto.cashback.UserCashbackItem.prototype.hasCashbackUserId = function() {
|
|
6077
|
+
return jspb.Message.getField(this, 17) != null;
|
|
6078
|
+
};
|
|
6079
|
+
|
|
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
|
+
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
|
|
6122
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5741
6123
|
/**
|
|
5742
6124
|
* Creates an object representation of this proto.
|
|
5743
6125
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
@@ -6216,4 +6598,342 @@ proto.cashback.UserCashbackItemsResponse.prototype.hasTotalItems = function() {
|
|
|
6216
6598
|
};
|
|
6217
6599
|
|
|
6218
6600
|
|
|
6601
|
+
|
|
6602
|
+
|
|
6603
|
+
|
|
6604
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6605
|
+
/**
|
|
6606
|
+
* Creates an object representation of this proto.
|
|
6607
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6608
|
+
* Optional fields that are not set will be set to undefined.
|
|
6609
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6610
|
+
* For the list of reserved names please see:
|
|
6611
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6612
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6613
|
+
* JSPB instance for transitional soy proto support:
|
|
6614
|
+
* http://goto/soy-param-migration
|
|
6615
|
+
* @return {!Object}
|
|
6616
|
+
*/
|
|
6617
|
+
proto.cashback.ClaimCashbackRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6618
|
+
return proto.cashback.ClaimCashbackRequest.toObject(opt_includeInstance, this);
|
|
6619
|
+
};
|
|
6620
|
+
|
|
6621
|
+
|
|
6622
|
+
/**
|
|
6623
|
+
* Static version of the {@see toObject} method.
|
|
6624
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6625
|
+
* the JSPB instance for transitional soy proto support:
|
|
6626
|
+
* http://goto/soy-param-migration
|
|
6627
|
+
* @param {!proto.cashback.ClaimCashbackRequest} msg The msg instance to transform.
|
|
6628
|
+
* @return {!Object}
|
|
6629
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6630
|
+
*/
|
|
6631
|
+
proto.cashback.ClaimCashbackRequest.toObject = function(includeInstance, msg) {
|
|
6632
|
+
var f, obj = {
|
|
6633
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6634
|
+
cashbackUserId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6635
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
6636
|
+
};
|
|
6637
|
+
|
|
6638
|
+
if (includeInstance) {
|
|
6639
|
+
obj.$jspbMessageInstance = msg;
|
|
6640
|
+
}
|
|
6641
|
+
return obj;
|
|
6642
|
+
};
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
|
|
6646
|
+
/**
|
|
6647
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6648
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6649
|
+
* @return {!proto.cashback.ClaimCashbackRequest}
|
|
6650
|
+
*/
|
|
6651
|
+
proto.cashback.ClaimCashbackRequest.deserializeBinary = function(bytes) {
|
|
6652
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6653
|
+
var msg = new proto.cashback.ClaimCashbackRequest;
|
|
6654
|
+
return proto.cashback.ClaimCashbackRequest.deserializeBinaryFromReader(msg, reader);
|
|
6655
|
+
};
|
|
6656
|
+
|
|
6657
|
+
|
|
6658
|
+
/**
|
|
6659
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6660
|
+
* given reader into the given message object.
|
|
6661
|
+
* @param {!proto.cashback.ClaimCashbackRequest} msg The message object to deserialize into.
|
|
6662
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6663
|
+
* @return {!proto.cashback.ClaimCashbackRequest}
|
|
6664
|
+
*/
|
|
6665
|
+
proto.cashback.ClaimCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6666
|
+
while (reader.nextField()) {
|
|
6667
|
+
if (reader.isEndGroup()) {
|
|
6668
|
+
break;
|
|
6669
|
+
}
|
|
6670
|
+
var field = reader.getFieldNumber();
|
|
6671
|
+
switch (field) {
|
|
6672
|
+
case 1:
|
|
6673
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6674
|
+
msg.setUserId(value);
|
|
6675
|
+
break;
|
|
6676
|
+
case 2:
|
|
6677
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6678
|
+
msg.setCashbackUserId(value);
|
|
6679
|
+
break;
|
|
6680
|
+
case 3:
|
|
6681
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6682
|
+
msg.setCurrency(value);
|
|
6683
|
+
break;
|
|
6684
|
+
default:
|
|
6685
|
+
reader.skipField();
|
|
6686
|
+
break;
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
return msg;
|
|
6690
|
+
};
|
|
6691
|
+
|
|
6692
|
+
|
|
6693
|
+
/**
|
|
6694
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6695
|
+
* @return {!Uint8Array}
|
|
6696
|
+
*/
|
|
6697
|
+
proto.cashback.ClaimCashbackRequest.prototype.serializeBinary = function() {
|
|
6698
|
+
var writer = new jspb.BinaryWriter();
|
|
6699
|
+
proto.cashback.ClaimCashbackRequest.serializeBinaryToWriter(this, writer);
|
|
6700
|
+
return writer.getResultBuffer();
|
|
6701
|
+
};
|
|
6702
|
+
|
|
6703
|
+
|
|
6704
|
+
/**
|
|
6705
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6706
|
+
* format), writing to the given BinaryWriter.
|
|
6707
|
+
* @param {!proto.cashback.ClaimCashbackRequest} message
|
|
6708
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6709
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6710
|
+
*/
|
|
6711
|
+
proto.cashback.ClaimCashbackRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6712
|
+
var f = undefined;
|
|
6713
|
+
f = message.getUserId();
|
|
6714
|
+
if (f !== 0) {
|
|
6715
|
+
writer.writeInt32(
|
|
6716
|
+
1,
|
|
6717
|
+
f
|
|
6718
|
+
);
|
|
6719
|
+
}
|
|
6720
|
+
f = message.getCashbackUserId();
|
|
6721
|
+
if (f !== 0) {
|
|
6722
|
+
writer.writeInt32(
|
|
6723
|
+
2,
|
|
6724
|
+
f
|
|
6725
|
+
);
|
|
6726
|
+
}
|
|
6727
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
6728
|
+
if (f != null) {
|
|
6729
|
+
writer.writeString(
|
|
6730
|
+
3,
|
|
6731
|
+
f
|
|
6732
|
+
);
|
|
6733
|
+
}
|
|
6734
|
+
};
|
|
6735
|
+
|
|
6736
|
+
|
|
6737
|
+
/**
|
|
6738
|
+
* optional int32 user_id = 1;
|
|
6739
|
+
* @return {number}
|
|
6740
|
+
*/
|
|
6741
|
+
proto.cashback.ClaimCashbackRequest.prototype.getUserId = function() {
|
|
6742
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6743
|
+
};
|
|
6744
|
+
|
|
6745
|
+
|
|
6746
|
+
/**
|
|
6747
|
+
* @param {number} value
|
|
6748
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6749
|
+
*/
|
|
6750
|
+
proto.cashback.ClaimCashbackRequest.prototype.setUserId = function(value) {
|
|
6751
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6752
|
+
};
|
|
6753
|
+
|
|
6754
|
+
|
|
6755
|
+
/**
|
|
6756
|
+
* optional int32 cashback_user_id = 2;
|
|
6757
|
+
* @return {number}
|
|
6758
|
+
*/
|
|
6759
|
+
proto.cashback.ClaimCashbackRequest.prototype.getCashbackUserId = function() {
|
|
6760
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6761
|
+
};
|
|
6762
|
+
|
|
6763
|
+
|
|
6764
|
+
/**
|
|
6765
|
+
* @param {number} value
|
|
6766
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6767
|
+
*/
|
|
6768
|
+
proto.cashback.ClaimCashbackRequest.prototype.setCashbackUserId = function(value) {
|
|
6769
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6770
|
+
};
|
|
6771
|
+
|
|
6772
|
+
|
|
6773
|
+
/**
|
|
6774
|
+
* optional string currency = 3;
|
|
6775
|
+
* @return {string}
|
|
6776
|
+
*/
|
|
6777
|
+
proto.cashback.ClaimCashbackRequest.prototype.getCurrency = function() {
|
|
6778
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6779
|
+
};
|
|
6780
|
+
|
|
6781
|
+
|
|
6782
|
+
/**
|
|
6783
|
+
* @param {string} value
|
|
6784
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6785
|
+
*/
|
|
6786
|
+
proto.cashback.ClaimCashbackRequest.prototype.setCurrency = function(value) {
|
|
6787
|
+
return jspb.Message.setField(this, 3, value);
|
|
6788
|
+
};
|
|
6789
|
+
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* Clears the field making it undefined.
|
|
6793
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6794
|
+
*/
|
|
6795
|
+
proto.cashback.ClaimCashbackRequest.prototype.clearCurrency = function() {
|
|
6796
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6797
|
+
};
|
|
6798
|
+
|
|
6799
|
+
|
|
6800
|
+
/**
|
|
6801
|
+
* Returns whether this field is set.
|
|
6802
|
+
* @return {boolean}
|
|
6803
|
+
*/
|
|
6804
|
+
proto.cashback.ClaimCashbackRequest.prototype.hasCurrency = function() {
|
|
6805
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6806
|
+
};
|
|
6807
|
+
|
|
6808
|
+
|
|
6809
|
+
|
|
6810
|
+
|
|
6811
|
+
|
|
6812
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6813
|
+
/**
|
|
6814
|
+
* Creates an object representation of this proto.
|
|
6815
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6816
|
+
* Optional fields that are not set will be set to undefined.
|
|
6817
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6818
|
+
* For the list of reserved names please see:
|
|
6819
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6820
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6821
|
+
* JSPB instance for transitional soy proto support:
|
|
6822
|
+
* http://goto/soy-param-migration
|
|
6823
|
+
* @return {!Object}
|
|
6824
|
+
*/
|
|
6825
|
+
proto.cashback.ClaimCashbackResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6826
|
+
return proto.cashback.ClaimCashbackResponse.toObject(opt_includeInstance, this);
|
|
6827
|
+
};
|
|
6828
|
+
|
|
6829
|
+
|
|
6830
|
+
/**
|
|
6831
|
+
* Static version of the {@see toObject} method.
|
|
6832
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6833
|
+
* the JSPB instance for transitional soy proto support:
|
|
6834
|
+
* http://goto/soy-param-migration
|
|
6835
|
+
* @param {!proto.cashback.ClaimCashbackResponse} msg The msg instance to transform.
|
|
6836
|
+
* @return {!Object}
|
|
6837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6838
|
+
*/
|
|
6839
|
+
proto.cashback.ClaimCashbackResponse.toObject = function(includeInstance, msg) {
|
|
6840
|
+
var f, obj = {
|
|
6841
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6844
|
+
if (includeInstance) {
|
|
6845
|
+
obj.$jspbMessageInstance = msg;
|
|
6846
|
+
}
|
|
6847
|
+
return obj;
|
|
6848
|
+
};
|
|
6849
|
+
}
|
|
6850
|
+
|
|
6851
|
+
|
|
6852
|
+
/**
|
|
6853
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6854
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6855
|
+
* @return {!proto.cashback.ClaimCashbackResponse}
|
|
6856
|
+
*/
|
|
6857
|
+
proto.cashback.ClaimCashbackResponse.deserializeBinary = function(bytes) {
|
|
6858
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6859
|
+
var msg = new proto.cashback.ClaimCashbackResponse;
|
|
6860
|
+
return proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader(msg, reader);
|
|
6861
|
+
};
|
|
6862
|
+
|
|
6863
|
+
|
|
6864
|
+
/**
|
|
6865
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6866
|
+
* given reader into the given message object.
|
|
6867
|
+
* @param {!proto.cashback.ClaimCashbackResponse} msg The message object to deserialize into.
|
|
6868
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6869
|
+
* @return {!proto.cashback.ClaimCashbackResponse}
|
|
6870
|
+
*/
|
|
6871
|
+
proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6872
|
+
while (reader.nextField()) {
|
|
6873
|
+
if (reader.isEndGroup()) {
|
|
6874
|
+
break;
|
|
6875
|
+
}
|
|
6876
|
+
var field = reader.getFieldNumber();
|
|
6877
|
+
switch (field) {
|
|
6878
|
+
case 1:
|
|
6879
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6880
|
+
msg.setStatus(value);
|
|
6881
|
+
break;
|
|
6882
|
+
default:
|
|
6883
|
+
reader.skipField();
|
|
6884
|
+
break;
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
return msg;
|
|
6888
|
+
};
|
|
6889
|
+
|
|
6890
|
+
|
|
6891
|
+
/**
|
|
6892
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6893
|
+
* @return {!Uint8Array}
|
|
6894
|
+
*/
|
|
6895
|
+
proto.cashback.ClaimCashbackResponse.prototype.serializeBinary = function() {
|
|
6896
|
+
var writer = new jspb.BinaryWriter();
|
|
6897
|
+
proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter(this, writer);
|
|
6898
|
+
return writer.getResultBuffer();
|
|
6899
|
+
};
|
|
6900
|
+
|
|
6901
|
+
|
|
6902
|
+
/**
|
|
6903
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6904
|
+
* format), writing to the given BinaryWriter.
|
|
6905
|
+
* @param {!proto.cashback.ClaimCashbackResponse} message
|
|
6906
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6907
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6908
|
+
*/
|
|
6909
|
+
proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6910
|
+
var f = undefined;
|
|
6911
|
+
f = message.getStatus();
|
|
6912
|
+
if (f.length > 0) {
|
|
6913
|
+
writer.writeString(
|
|
6914
|
+
1,
|
|
6915
|
+
f
|
|
6916
|
+
);
|
|
6917
|
+
}
|
|
6918
|
+
};
|
|
6919
|
+
|
|
6920
|
+
|
|
6921
|
+
/**
|
|
6922
|
+
* optional string status = 1;
|
|
6923
|
+
* @return {string}
|
|
6924
|
+
*/
|
|
6925
|
+
proto.cashback.ClaimCashbackResponse.prototype.getStatus = function() {
|
|
6926
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6927
|
+
};
|
|
6928
|
+
|
|
6929
|
+
|
|
6930
|
+
/**
|
|
6931
|
+
* @param {string} value
|
|
6932
|
+
* @return {!proto.cashback.ClaimCashbackResponse} returns this
|
|
6933
|
+
*/
|
|
6934
|
+
proto.cashback.ClaimCashbackResponse.prototype.setStatus = function(value) {
|
|
6935
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6936
|
+
};
|
|
6937
|
+
|
|
6938
|
+
|
|
6219
6939
|
goog.object.extend(exports, proto.cashback);
|