protobuf-platform 1.2.191 → 1.2.192
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 +10 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +431 -1
- package/package.json +1 -1
package/cashback/cashback.proto
CHANGED
|
@@ -16,6 +16,7 @@ service Cashback {
|
|
|
16
16
|
//User
|
|
17
17
|
rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
|
|
18
18
|
rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
|
|
19
|
+
rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
|
|
19
20
|
}
|
|
20
21
|
//Technical
|
|
21
22
|
message PingRequest { string ping = 1; }
|
|
@@ -131,6 +132,7 @@ message UserCashbackItem {
|
|
|
131
132
|
|
|
132
133
|
optional int64 remaining_ms = 15;
|
|
133
134
|
optional float remaining_to_min = 16;
|
|
135
|
+
optional int32 cashback_user_id = 17;
|
|
134
136
|
}
|
|
135
137
|
message CashbackUserRequest {
|
|
136
138
|
int32 user_id = 1;
|
|
@@ -142,4 +144,12 @@ message UserCashbackItemsResponse {
|
|
|
142
144
|
optional int32 total_pages = 2;
|
|
143
145
|
optional int32 total_items = 3;
|
|
144
146
|
}
|
|
147
|
+
message ClaimCashbackRequest {
|
|
148
|
+
int32 user_id = 1;
|
|
149
|
+
int32 cashback_user_id = 2;
|
|
150
|
+
optional string currency = 3;
|
|
151
|
+
}
|
|
152
|
+
message ClaimCashbackResponse {
|
|
153
|
+
string status = 1;
|
|
154
|
+
}
|
|
145
155
|
|
|
@@ -81,6 +81,28 @@ function deserialize_cashback_CashbackUserRequest(buffer_arg) {
|
|
|
81
81
|
return cashback_pb.CashbackUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function serialize_cashback_ClaimCashbackRequest(arg) {
|
|
85
|
+
if (!(arg instanceof cashback_pb.ClaimCashbackRequest)) {
|
|
86
|
+
throw new Error('Expected argument of type cashback.ClaimCashbackRequest');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_cashback_ClaimCashbackRequest(buffer_arg) {
|
|
92
|
+
return cashback_pb.ClaimCashbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function serialize_cashback_ClaimCashbackResponse(arg) {
|
|
96
|
+
if (!(arg instanceof cashback_pb.ClaimCashbackResponse)) {
|
|
97
|
+
throw new Error('Expected argument of type cashback.ClaimCashbackResponse');
|
|
98
|
+
}
|
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function deserialize_cashback_ClaimCashbackResponse(buffer_arg) {
|
|
103
|
+
return cashback_pb.ClaimCashbackResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
function serialize_cashback_File(arg) {
|
|
85
107
|
if (!(arg instanceof cashback_pb.File)) {
|
|
86
108
|
throw new Error('Expected argument of type cashback.File');
|
|
@@ -294,6 +316,17 @@ getCashbackForUserByType: {
|
|
|
294
316
|
responseSerialize: serialize_cashback_UserCashbackItemsResponse,
|
|
295
317
|
responseDeserialize: deserialize_cashback_UserCashbackItemsResponse,
|
|
296
318
|
},
|
|
319
|
+
claimCashbackForUser: {
|
|
320
|
+
path: '/cashback.Cashback/claimCashbackForUser',
|
|
321
|
+
requestStream: false,
|
|
322
|
+
responseStream: false,
|
|
323
|
+
requestType: cashback_pb.ClaimCashbackRequest,
|
|
324
|
+
responseType: cashback_pb.ClaimCashbackResponse,
|
|
325
|
+
requestSerialize: serialize_cashback_ClaimCashbackRequest,
|
|
326
|
+
requestDeserialize: deserialize_cashback_ClaimCashbackRequest,
|
|
327
|
+
responseSerialize: serialize_cashback_ClaimCashbackResponse,
|
|
328
|
+
responseDeserialize: deserialize_cashback_ClaimCashbackResponse,
|
|
329
|
+
},
|
|
297
330
|
};
|
|
298
331
|
|
|
299
332
|
exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
|
package/cashback/cashback_pb.js
CHANGED
|
@@ -32,6 +32,8 @@ goog.exportSymbol('proto.cashback.CashbackRequest.RequestCase', null, global);
|
|
|
32
32
|
goog.exportSymbol('proto.cashback.CashbackResponse', null, global);
|
|
33
33
|
goog.exportSymbol('proto.cashback.CashbackStatusResponse', null, global);
|
|
34
34
|
goog.exportSymbol('proto.cashback.CashbackUserRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.cashback.ClaimCashbackRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.cashback.ClaimCashbackResponse', null, global);
|
|
35
37
|
goog.exportSymbol('proto.cashback.File', null, global);
|
|
36
38
|
goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
|
|
37
39
|
goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
|
|
@@ -484,6 +486,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
484
486
|
*/
|
|
485
487
|
proto.cashback.UserCashbackItemsResponse.displayName = 'proto.cashback.UserCashbackItemsResponse';
|
|
486
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* Generated by JsPbCodeGenerator.
|
|
491
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
492
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
493
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
494
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
495
|
+
* valid.
|
|
496
|
+
* @extends {jspb.Message}
|
|
497
|
+
* @constructor
|
|
498
|
+
*/
|
|
499
|
+
proto.cashback.ClaimCashbackRequest = function(opt_data) {
|
|
500
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
501
|
+
};
|
|
502
|
+
goog.inherits(proto.cashback.ClaimCashbackRequest, jspb.Message);
|
|
503
|
+
if (goog.DEBUG && !COMPILED) {
|
|
504
|
+
/**
|
|
505
|
+
* @public
|
|
506
|
+
* @override
|
|
507
|
+
*/
|
|
508
|
+
proto.cashback.ClaimCashbackRequest.displayName = 'proto.cashback.ClaimCashbackRequest';
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Generated by JsPbCodeGenerator.
|
|
512
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
513
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
514
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
515
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
516
|
+
* valid.
|
|
517
|
+
* @extends {jspb.Message}
|
|
518
|
+
* @constructor
|
|
519
|
+
*/
|
|
520
|
+
proto.cashback.ClaimCashbackResponse = function(opt_data) {
|
|
521
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
522
|
+
};
|
|
523
|
+
goog.inherits(proto.cashback.ClaimCashbackResponse, jspb.Message);
|
|
524
|
+
if (goog.DEBUG && !COMPILED) {
|
|
525
|
+
/**
|
|
526
|
+
* @public
|
|
527
|
+
* @override
|
|
528
|
+
*/
|
|
529
|
+
proto.cashback.ClaimCashbackResponse.displayName = 'proto.cashback.ClaimCashbackResponse';
|
|
530
|
+
}
|
|
487
531
|
|
|
488
532
|
|
|
489
533
|
|
|
@@ -5018,7 +5062,8 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
|
|
|
5018
5062
|
reward: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
|
|
5019
5063
|
actions: (f = msg.getActions()) && proto.cashback.CashbackActions.toObject(includeInstance, f),
|
|
5020
5064
|
remainingMs: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
5021
|
-
remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0)
|
|
5065
|
+
remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
|
|
5066
|
+
cashbackUserId: jspb.Message.getFieldWithDefault(msg, 17, 0)
|
|
5022
5067
|
};
|
|
5023
5068
|
|
|
5024
5069
|
if (includeInstance) {
|
|
@@ -5120,6 +5165,10 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
|
|
|
5120
5165
|
var value = /** @type {number} */ (reader.readFloat());
|
|
5121
5166
|
msg.setRemainingToMin(value);
|
|
5122
5167
|
break;
|
|
5168
|
+
case 17:
|
|
5169
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5170
|
+
msg.setCashbackUserId(value);
|
|
5171
|
+
break;
|
|
5123
5172
|
default:
|
|
5124
5173
|
reader.skipField();
|
|
5125
5174
|
break;
|
|
@@ -5262,6 +5311,13 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
|
|
|
5262
5311
|
f
|
|
5263
5312
|
);
|
|
5264
5313
|
}
|
|
5314
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 17));
|
|
5315
|
+
if (f != null) {
|
|
5316
|
+
writer.writeInt32(
|
|
5317
|
+
17,
|
|
5318
|
+
f
|
|
5319
|
+
);
|
|
5320
|
+
}
|
|
5265
5321
|
};
|
|
5266
5322
|
|
|
5267
5323
|
|
|
@@ -5734,6 +5790,42 @@ proto.cashback.UserCashbackItem.prototype.hasRemainingToMin = function() {
|
|
|
5734
5790
|
};
|
|
5735
5791
|
|
|
5736
5792
|
|
|
5793
|
+
/**
|
|
5794
|
+
* optional int32 cashback_user_id = 17;
|
|
5795
|
+
* @return {number}
|
|
5796
|
+
*/
|
|
5797
|
+
proto.cashback.UserCashbackItem.prototype.getCashbackUserId = function() {
|
|
5798
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
5799
|
+
};
|
|
5800
|
+
|
|
5801
|
+
|
|
5802
|
+
/**
|
|
5803
|
+
* @param {number} value
|
|
5804
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
5805
|
+
*/
|
|
5806
|
+
proto.cashback.UserCashbackItem.prototype.setCashbackUserId = function(value) {
|
|
5807
|
+
return jspb.Message.setField(this, 17, value);
|
|
5808
|
+
};
|
|
5809
|
+
|
|
5810
|
+
|
|
5811
|
+
/**
|
|
5812
|
+
* Clears the field making it undefined.
|
|
5813
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
5814
|
+
*/
|
|
5815
|
+
proto.cashback.UserCashbackItem.prototype.clearCashbackUserId = function() {
|
|
5816
|
+
return jspb.Message.setField(this, 17, undefined);
|
|
5817
|
+
};
|
|
5818
|
+
|
|
5819
|
+
|
|
5820
|
+
/**
|
|
5821
|
+
* Returns whether this field is set.
|
|
5822
|
+
* @return {boolean}
|
|
5823
|
+
*/
|
|
5824
|
+
proto.cashback.UserCashbackItem.prototype.hasCashbackUserId = function() {
|
|
5825
|
+
return jspb.Message.getField(this, 17) != null;
|
|
5826
|
+
};
|
|
5827
|
+
|
|
5828
|
+
|
|
5737
5829
|
|
|
5738
5830
|
|
|
5739
5831
|
|
|
@@ -6216,4 +6308,342 @@ proto.cashback.UserCashbackItemsResponse.prototype.hasTotalItems = function() {
|
|
|
6216
6308
|
};
|
|
6217
6309
|
|
|
6218
6310
|
|
|
6311
|
+
|
|
6312
|
+
|
|
6313
|
+
|
|
6314
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6315
|
+
/**
|
|
6316
|
+
* Creates an object representation of this proto.
|
|
6317
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6318
|
+
* Optional fields that are not set will be set to undefined.
|
|
6319
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6320
|
+
* For the list of reserved names please see:
|
|
6321
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6322
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6323
|
+
* JSPB instance for transitional soy proto support:
|
|
6324
|
+
* http://goto/soy-param-migration
|
|
6325
|
+
* @return {!Object}
|
|
6326
|
+
*/
|
|
6327
|
+
proto.cashback.ClaimCashbackRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6328
|
+
return proto.cashback.ClaimCashbackRequest.toObject(opt_includeInstance, this);
|
|
6329
|
+
};
|
|
6330
|
+
|
|
6331
|
+
|
|
6332
|
+
/**
|
|
6333
|
+
* Static version of the {@see toObject} method.
|
|
6334
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6335
|
+
* the JSPB instance for transitional soy proto support:
|
|
6336
|
+
* http://goto/soy-param-migration
|
|
6337
|
+
* @param {!proto.cashback.ClaimCashbackRequest} msg The msg instance to transform.
|
|
6338
|
+
* @return {!Object}
|
|
6339
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6340
|
+
*/
|
|
6341
|
+
proto.cashback.ClaimCashbackRequest.toObject = function(includeInstance, msg) {
|
|
6342
|
+
var f, obj = {
|
|
6343
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6344
|
+
cashbackUserId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6345
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
6346
|
+
};
|
|
6347
|
+
|
|
6348
|
+
if (includeInstance) {
|
|
6349
|
+
obj.$jspbMessageInstance = msg;
|
|
6350
|
+
}
|
|
6351
|
+
return obj;
|
|
6352
|
+
};
|
|
6353
|
+
}
|
|
6354
|
+
|
|
6355
|
+
|
|
6356
|
+
/**
|
|
6357
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6358
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6359
|
+
* @return {!proto.cashback.ClaimCashbackRequest}
|
|
6360
|
+
*/
|
|
6361
|
+
proto.cashback.ClaimCashbackRequest.deserializeBinary = function(bytes) {
|
|
6362
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6363
|
+
var msg = new proto.cashback.ClaimCashbackRequest;
|
|
6364
|
+
return proto.cashback.ClaimCashbackRequest.deserializeBinaryFromReader(msg, reader);
|
|
6365
|
+
};
|
|
6366
|
+
|
|
6367
|
+
|
|
6368
|
+
/**
|
|
6369
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6370
|
+
* given reader into the given message object.
|
|
6371
|
+
* @param {!proto.cashback.ClaimCashbackRequest} msg The message object to deserialize into.
|
|
6372
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6373
|
+
* @return {!proto.cashback.ClaimCashbackRequest}
|
|
6374
|
+
*/
|
|
6375
|
+
proto.cashback.ClaimCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6376
|
+
while (reader.nextField()) {
|
|
6377
|
+
if (reader.isEndGroup()) {
|
|
6378
|
+
break;
|
|
6379
|
+
}
|
|
6380
|
+
var field = reader.getFieldNumber();
|
|
6381
|
+
switch (field) {
|
|
6382
|
+
case 1:
|
|
6383
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6384
|
+
msg.setUserId(value);
|
|
6385
|
+
break;
|
|
6386
|
+
case 2:
|
|
6387
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6388
|
+
msg.setCashbackUserId(value);
|
|
6389
|
+
break;
|
|
6390
|
+
case 3:
|
|
6391
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6392
|
+
msg.setCurrency(value);
|
|
6393
|
+
break;
|
|
6394
|
+
default:
|
|
6395
|
+
reader.skipField();
|
|
6396
|
+
break;
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
return msg;
|
|
6400
|
+
};
|
|
6401
|
+
|
|
6402
|
+
|
|
6403
|
+
/**
|
|
6404
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6405
|
+
* @return {!Uint8Array}
|
|
6406
|
+
*/
|
|
6407
|
+
proto.cashback.ClaimCashbackRequest.prototype.serializeBinary = function() {
|
|
6408
|
+
var writer = new jspb.BinaryWriter();
|
|
6409
|
+
proto.cashback.ClaimCashbackRequest.serializeBinaryToWriter(this, writer);
|
|
6410
|
+
return writer.getResultBuffer();
|
|
6411
|
+
};
|
|
6412
|
+
|
|
6413
|
+
|
|
6414
|
+
/**
|
|
6415
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6416
|
+
* format), writing to the given BinaryWriter.
|
|
6417
|
+
* @param {!proto.cashback.ClaimCashbackRequest} message
|
|
6418
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6419
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6420
|
+
*/
|
|
6421
|
+
proto.cashback.ClaimCashbackRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6422
|
+
var f = undefined;
|
|
6423
|
+
f = message.getUserId();
|
|
6424
|
+
if (f !== 0) {
|
|
6425
|
+
writer.writeInt32(
|
|
6426
|
+
1,
|
|
6427
|
+
f
|
|
6428
|
+
);
|
|
6429
|
+
}
|
|
6430
|
+
f = message.getCashbackUserId();
|
|
6431
|
+
if (f !== 0) {
|
|
6432
|
+
writer.writeInt32(
|
|
6433
|
+
2,
|
|
6434
|
+
f
|
|
6435
|
+
);
|
|
6436
|
+
}
|
|
6437
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
6438
|
+
if (f != null) {
|
|
6439
|
+
writer.writeString(
|
|
6440
|
+
3,
|
|
6441
|
+
f
|
|
6442
|
+
);
|
|
6443
|
+
}
|
|
6444
|
+
};
|
|
6445
|
+
|
|
6446
|
+
|
|
6447
|
+
/**
|
|
6448
|
+
* optional int32 user_id = 1;
|
|
6449
|
+
* @return {number}
|
|
6450
|
+
*/
|
|
6451
|
+
proto.cashback.ClaimCashbackRequest.prototype.getUserId = function() {
|
|
6452
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6453
|
+
};
|
|
6454
|
+
|
|
6455
|
+
|
|
6456
|
+
/**
|
|
6457
|
+
* @param {number} value
|
|
6458
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6459
|
+
*/
|
|
6460
|
+
proto.cashback.ClaimCashbackRequest.prototype.setUserId = function(value) {
|
|
6461
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6462
|
+
};
|
|
6463
|
+
|
|
6464
|
+
|
|
6465
|
+
/**
|
|
6466
|
+
* optional int32 cashback_user_id = 2;
|
|
6467
|
+
* @return {number}
|
|
6468
|
+
*/
|
|
6469
|
+
proto.cashback.ClaimCashbackRequest.prototype.getCashbackUserId = function() {
|
|
6470
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6471
|
+
};
|
|
6472
|
+
|
|
6473
|
+
|
|
6474
|
+
/**
|
|
6475
|
+
* @param {number} value
|
|
6476
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6477
|
+
*/
|
|
6478
|
+
proto.cashback.ClaimCashbackRequest.prototype.setCashbackUserId = function(value) {
|
|
6479
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6480
|
+
};
|
|
6481
|
+
|
|
6482
|
+
|
|
6483
|
+
/**
|
|
6484
|
+
* optional string currency = 3;
|
|
6485
|
+
* @return {string}
|
|
6486
|
+
*/
|
|
6487
|
+
proto.cashback.ClaimCashbackRequest.prototype.getCurrency = function() {
|
|
6488
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6489
|
+
};
|
|
6490
|
+
|
|
6491
|
+
|
|
6492
|
+
/**
|
|
6493
|
+
* @param {string} value
|
|
6494
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6495
|
+
*/
|
|
6496
|
+
proto.cashback.ClaimCashbackRequest.prototype.setCurrency = function(value) {
|
|
6497
|
+
return jspb.Message.setField(this, 3, value);
|
|
6498
|
+
};
|
|
6499
|
+
|
|
6500
|
+
|
|
6501
|
+
/**
|
|
6502
|
+
* Clears the field making it undefined.
|
|
6503
|
+
* @return {!proto.cashback.ClaimCashbackRequest} returns this
|
|
6504
|
+
*/
|
|
6505
|
+
proto.cashback.ClaimCashbackRequest.prototype.clearCurrency = function() {
|
|
6506
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6507
|
+
};
|
|
6508
|
+
|
|
6509
|
+
|
|
6510
|
+
/**
|
|
6511
|
+
* Returns whether this field is set.
|
|
6512
|
+
* @return {boolean}
|
|
6513
|
+
*/
|
|
6514
|
+
proto.cashback.ClaimCashbackRequest.prototype.hasCurrency = function() {
|
|
6515
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6518
|
+
|
|
6519
|
+
|
|
6520
|
+
|
|
6521
|
+
|
|
6522
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6523
|
+
/**
|
|
6524
|
+
* Creates an object representation of this proto.
|
|
6525
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6526
|
+
* Optional fields that are not set will be set to undefined.
|
|
6527
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6528
|
+
* For the list of reserved names please see:
|
|
6529
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6530
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6531
|
+
* JSPB instance for transitional soy proto support:
|
|
6532
|
+
* http://goto/soy-param-migration
|
|
6533
|
+
* @return {!Object}
|
|
6534
|
+
*/
|
|
6535
|
+
proto.cashback.ClaimCashbackResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6536
|
+
return proto.cashback.ClaimCashbackResponse.toObject(opt_includeInstance, this);
|
|
6537
|
+
};
|
|
6538
|
+
|
|
6539
|
+
|
|
6540
|
+
/**
|
|
6541
|
+
* Static version of the {@see toObject} method.
|
|
6542
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6543
|
+
* the JSPB instance for transitional soy proto support:
|
|
6544
|
+
* http://goto/soy-param-migration
|
|
6545
|
+
* @param {!proto.cashback.ClaimCashbackResponse} msg The msg instance to transform.
|
|
6546
|
+
* @return {!Object}
|
|
6547
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6548
|
+
*/
|
|
6549
|
+
proto.cashback.ClaimCashbackResponse.toObject = function(includeInstance, msg) {
|
|
6550
|
+
var f, obj = {
|
|
6551
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6552
|
+
};
|
|
6553
|
+
|
|
6554
|
+
if (includeInstance) {
|
|
6555
|
+
obj.$jspbMessageInstance = msg;
|
|
6556
|
+
}
|
|
6557
|
+
return obj;
|
|
6558
|
+
};
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
|
|
6562
|
+
/**
|
|
6563
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6564
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6565
|
+
* @return {!proto.cashback.ClaimCashbackResponse}
|
|
6566
|
+
*/
|
|
6567
|
+
proto.cashback.ClaimCashbackResponse.deserializeBinary = function(bytes) {
|
|
6568
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6569
|
+
var msg = new proto.cashback.ClaimCashbackResponse;
|
|
6570
|
+
return proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader(msg, reader);
|
|
6571
|
+
};
|
|
6572
|
+
|
|
6573
|
+
|
|
6574
|
+
/**
|
|
6575
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6576
|
+
* given reader into the given message object.
|
|
6577
|
+
* @param {!proto.cashback.ClaimCashbackResponse} msg The message object to deserialize into.
|
|
6578
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6579
|
+
* @return {!proto.cashback.ClaimCashbackResponse}
|
|
6580
|
+
*/
|
|
6581
|
+
proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6582
|
+
while (reader.nextField()) {
|
|
6583
|
+
if (reader.isEndGroup()) {
|
|
6584
|
+
break;
|
|
6585
|
+
}
|
|
6586
|
+
var field = reader.getFieldNumber();
|
|
6587
|
+
switch (field) {
|
|
6588
|
+
case 1:
|
|
6589
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6590
|
+
msg.setStatus(value);
|
|
6591
|
+
break;
|
|
6592
|
+
default:
|
|
6593
|
+
reader.skipField();
|
|
6594
|
+
break;
|
|
6595
|
+
}
|
|
6596
|
+
}
|
|
6597
|
+
return msg;
|
|
6598
|
+
};
|
|
6599
|
+
|
|
6600
|
+
|
|
6601
|
+
/**
|
|
6602
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6603
|
+
* @return {!Uint8Array}
|
|
6604
|
+
*/
|
|
6605
|
+
proto.cashback.ClaimCashbackResponse.prototype.serializeBinary = function() {
|
|
6606
|
+
var writer = new jspb.BinaryWriter();
|
|
6607
|
+
proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter(this, writer);
|
|
6608
|
+
return writer.getResultBuffer();
|
|
6609
|
+
};
|
|
6610
|
+
|
|
6611
|
+
|
|
6612
|
+
/**
|
|
6613
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6614
|
+
* format), writing to the given BinaryWriter.
|
|
6615
|
+
* @param {!proto.cashback.ClaimCashbackResponse} message
|
|
6616
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6617
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6618
|
+
*/
|
|
6619
|
+
proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6620
|
+
var f = undefined;
|
|
6621
|
+
f = message.getStatus();
|
|
6622
|
+
if (f.length > 0) {
|
|
6623
|
+
writer.writeString(
|
|
6624
|
+
1,
|
|
6625
|
+
f
|
|
6626
|
+
);
|
|
6627
|
+
}
|
|
6628
|
+
};
|
|
6629
|
+
|
|
6630
|
+
|
|
6631
|
+
/**
|
|
6632
|
+
* optional string status = 1;
|
|
6633
|
+
* @return {string}
|
|
6634
|
+
*/
|
|
6635
|
+
proto.cashback.ClaimCashbackResponse.prototype.getStatus = function() {
|
|
6636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6637
|
+
};
|
|
6638
|
+
|
|
6639
|
+
|
|
6640
|
+
/**
|
|
6641
|
+
* @param {string} value
|
|
6642
|
+
* @return {!proto.cashback.ClaimCashbackResponse} returns this
|
|
6643
|
+
*/
|
|
6644
|
+
proto.cashback.ClaimCashbackResponse.prototype.setStatus = function(value) {
|
|
6645
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6646
|
+
};
|
|
6647
|
+
|
|
6648
|
+
|
|
6219
6649
|
goog.object.extend(exports, proto.cashback);
|