protobuf-platform 1.0.237 → 1.0.238
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 +56 -1
- package/cashback/cashback_grpc_pb.js +155 -0
- package/cashback/cashback_pb.js +2613 -141
- package/package.json +1 -1
package/cashback/cashback_pb.js
CHANGED
@@ -21,6 +21,16 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.cashback.CashbackItem', null, global);
|
25
|
+
goog.exportSymbol('proto.cashback.CashbackItemRequest', null, global);
|
26
|
+
goog.exportSymbol('proto.cashback.CashbackItemsResponse', null, global);
|
27
|
+
goog.exportSymbol('proto.cashback.CashbackRequest', null, global);
|
28
|
+
goog.exportSymbol('proto.cashback.CashbackRequest.RequestCase', null, global);
|
29
|
+
goog.exportSymbol('proto.cashback.CashbackResponse', null, global);
|
30
|
+
goog.exportSymbol('proto.cashback.CashbackStatusResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.cashback.File', null, global);
|
32
|
+
goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
|
33
|
+
goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
|
24
34
|
goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
|
25
35
|
goog.exportSymbol('proto.cashback.PingRequest', null, global);
|
26
36
|
goog.exportSymbol('proto.cashback.PongResponse', null, global);
|
@@ -67,6 +77,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
67
77
|
*/
|
68
78
|
proto.cashback.PongResponse.displayName = 'proto.cashback.PongResponse';
|
69
79
|
}
|
80
|
+
/**
|
81
|
+
* Generated by JsPbCodeGenerator.
|
82
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
83
|
+
* server response, or constructed directly in Javascript. The array is used
|
84
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
85
|
+
* If no data is provided, the constructed object will be empty, but still
|
86
|
+
* valid.
|
87
|
+
* @extends {jspb.Message}
|
88
|
+
* @constructor
|
89
|
+
*/
|
90
|
+
proto.cashback.File = function(opt_data) {
|
91
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
92
|
+
};
|
93
|
+
goog.inherits(proto.cashback.File, jspb.Message);
|
94
|
+
if (goog.DEBUG && !COMPILED) {
|
95
|
+
/**
|
96
|
+
* @public
|
97
|
+
* @override
|
98
|
+
*/
|
99
|
+
proto.cashback.File.displayName = 'proto.cashback.File';
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* Generated by JsPbCodeGenerator.
|
103
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
104
|
+
* server response, or constructed directly in Javascript. The array is used
|
105
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
106
|
+
* If no data is provided, the constructed object will be empty, but still
|
107
|
+
* valid.
|
108
|
+
* @extends {jspb.Message}
|
109
|
+
* @constructor
|
110
|
+
*/
|
111
|
+
proto.cashback.GetFileRequest = function(opt_data) {
|
112
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
113
|
+
};
|
114
|
+
goog.inherits(proto.cashback.GetFileRequest, jspb.Message);
|
115
|
+
if (goog.DEBUG && !COMPILED) {
|
116
|
+
/**
|
117
|
+
* @public
|
118
|
+
* @override
|
119
|
+
*/
|
120
|
+
proto.cashback.GetFileRequest.displayName = 'proto.cashback.GetFileRequest';
|
121
|
+
}
|
70
122
|
/**
|
71
123
|
* Generated by JsPbCodeGenerator.
|
72
124
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -109,6 +161,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
109
161
|
*/
|
110
162
|
proto.cashback.UserSearchRequest.displayName = 'proto.cashback.UserSearchRequest';
|
111
163
|
}
|
164
|
+
/**
|
165
|
+
* Generated by JsPbCodeGenerator.
|
166
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
167
|
+
* server response, or constructed directly in Javascript. The array is used
|
168
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
169
|
+
* If no data is provided, the constructed object will be empty, but still
|
170
|
+
* valid.
|
171
|
+
* @extends {jspb.Message}
|
172
|
+
* @constructor
|
173
|
+
*/
|
174
|
+
proto.cashback.CashbackItem = function(opt_data) {
|
175
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
176
|
+
};
|
177
|
+
goog.inherits(proto.cashback.CashbackItem, jspb.Message);
|
178
|
+
if (goog.DEBUG && !COMPILED) {
|
179
|
+
/**
|
180
|
+
* @public
|
181
|
+
* @override
|
182
|
+
*/
|
183
|
+
proto.cashback.CashbackItem.displayName = 'proto.cashback.CashbackItem';
|
184
|
+
}
|
185
|
+
/**
|
186
|
+
* Generated by JsPbCodeGenerator.
|
187
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
188
|
+
* server response, or constructed directly in Javascript. The array is used
|
189
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
190
|
+
* If no data is provided, the constructed object will be empty, but still
|
191
|
+
* valid.
|
192
|
+
* @extends {jspb.Message}
|
193
|
+
* @constructor
|
194
|
+
*/
|
195
|
+
proto.cashback.CashbackRequest = function(opt_data) {
|
196
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cashback.CashbackRequest.oneofGroups_);
|
197
|
+
};
|
198
|
+
goog.inherits(proto.cashback.CashbackRequest, jspb.Message);
|
199
|
+
if (goog.DEBUG && !COMPILED) {
|
200
|
+
/**
|
201
|
+
* @public
|
202
|
+
* @override
|
203
|
+
*/
|
204
|
+
proto.cashback.CashbackRequest.displayName = 'proto.cashback.CashbackRequest';
|
205
|
+
}
|
206
|
+
/**
|
207
|
+
* Generated by JsPbCodeGenerator.
|
208
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
209
|
+
* server response, or constructed directly in Javascript. The array is used
|
210
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
211
|
+
* If no data is provided, the constructed object will be empty, but still
|
212
|
+
* valid.
|
213
|
+
* @extends {jspb.Message}
|
214
|
+
* @constructor
|
215
|
+
*/
|
216
|
+
proto.cashback.CashbackItemRequest = function(opt_data) {
|
217
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
218
|
+
};
|
219
|
+
goog.inherits(proto.cashback.CashbackItemRequest, jspb.Message);
|
220
|
+
if (goog.DEBUG && !COMPILED) {
|
221
|
+
/**
|
222
|
+
* @public
|
223
|
+
* @override
|
224
|
+
*/
|
225
|
+
proto.cashback.CashbackItemRequest.displayName = 'proto.cashback.CashbackItemRequest';
|
226
|
+
}
|
227
|
+
/**
|
228
|
+
* Generated by JsPbCodeGenerator.
|
229
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
230
|
+
* server response, or constructed directly in Javascript. The array is used
|
231
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
232
|
+
* If no data is provided, the constructed object will be empty, but still
|
233
|
+
* valid.
|
234
|
+
* @extends {jspb.Message}
|
235
|
+
* @constructor
|
236
|
+
*/
|
237
|
+
proto.cashback.GetCashbackRequest = function(opt_data) {
|
238
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
239
|
+
};
|
240
|
+
goog.inherits(proto.cashback.GetCashbackRequest, jspb.Message);
|
241
|
+
if (goog.DEBUG && !COMPILED) {
|
242
|
+
/**
|
243
|
+
* @public
|
244
|
+
* @override
|
245
|
+
*/
|
246
|
+
proto.cashback.GetCashbackRequest.displayName = 'proto.cashback.GetCashbackRequest';
|
247
|
+
}
|
248
|
+
/**
|
249
|
+
* Generated by JsPbCodeGenerator.
|
250
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
251
|
+
* server response, or constructed directly in Javascript. The array is used
|
252
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
253
|
+
* If no data is provided, the constructed object will be empty, but still
|
254
|
+
* valid.
|
255
|
+
* @extends {jspb.Message}
|
256
|
+
* @constructor
|
257
|
+
*/
|
258
|
+
proto.cashback.CashbackResponse = function(opt_data) {
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
260
|
+
};
|
261
|
+
goog.inherits(proto.cashback.CashbackResponse, jspb.Message);
|
262
|
+
if (goog.DEBUG && !COMPILED) {
|
263
|
+
/**
|
264
|
+
* @public
|
265
|
+
* @override
|
266
|
+
*/
|
267
|
+
proto.cashback.CashbackResponse.displayName = 'proto.cashback.CashbackResponse';
|
268
|
+
}
|
269
|
+
/**
|
270
|
+
* Generated by JsPbCodeGenerator.
|
271
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
272
|
+
* server response, or constructed directly in Javascript. The array is used
|
273
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
274
|
+
* If no data is provided, the constructed object will be empty, but still
|
275
|
+
* valid.
|
276
|
+
* @extends {jspb.Message}
|
277
|
+
* @constructor
|
278
|
+
*/
|
279
|
+
proto.cashback.CashbackItemsResponse = function(opt_data) {
|
280
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.CashbackItemsResponse.repeatedFields_, null);
|
281
|
+
};
|
282
|
+
goog.inherits(proto.cashback.CashbackItemsResponse, jspb.Message);
|
283
|
+
if (goog.DEBUG && !COMPILED) {
|
284
|
+
/**
|
285
|
+
* @public
|
286
|
+
* @override
|
287
|
+
*/
|
288
|
+
proto.cashback.CashbackItemsResponse.displayName = 'proto.cashback.CashbackItemsResponse';
|
289
|
+
}
|
290
|
+
/**
|
291
|
+
* Generated by JsPbCodeGenerator.
|
292
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
293
|
+
* server response, or constructed directly in Javascript. The array is used
|
294
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
295
|
+
* If no data is provided, the constructed object will be empty, but still
|
296
|
+
* valid.
|
297
|
+
* @extends {jspb.Message}
|
298
|
+
* @constructor
|
299
|
+
*/
|
300
|
+
proto.cashback.CashbackStatusResponse = function(opt_data) {
|
301
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
302
|
+
};
|
303
|
+
goog.inherits(proto.cashback.CashbackStatusResponse, jspb.Message);
|
304
|
+
if (goog.DEBUG && !COMPILED) {
|
305
|
+
/**
|
306
|
+
* @public
|
307
|
+
* @override
|
308
|
+
*/
|
309
|
+
proto.cashback.CashbackStatusResponse.displayName = 'proto.cashback.CashbackStatusResponse';
|
310
|
+
}
|
112
311
|
|
113
312
|
|
114
313
|
|
@@ -385,8 +584,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
385
584
|
* http://goto/soy-param-migration
|
386
585
|
* @return {!Object}
|
387
586
|
*/
|
388
|
-
proto.cashback.
|
389
|
-
return proto.cashback.
|
587
|
+
proto.cashback.File.prototype.toObject = function(opt_includeInstance) {
|
588
|
+
return proto.cashback.File.toObject(opt_includeInstance, this);
|
390
589
|
};
|
391
590
|
|
392
591
|
|
@@ -395,15 +594,15 @@ proto.cashback.PaginationRequest.prototype.toObject = function(opt_includeInstan
|
|
395
594
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
396
595
|
* the JSPB instance for transitional soy proto support:
|
397
596
|
* http://goto/soy-param-migration
|
398
|
-
* @param {!proto.cashback.
|
597
|
+
* @param {!proto.cashback.File} msg The msg instance to transform.
|
399
598
|
* @return {!Object}
|
400
599
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
401
600
|
*/
|
402
|
-
proto.cashback.
|
601
|
+
proto.cashback.File.toObject = function(includeInstance, msg) {
|
403
602
|
var f, obj = {
|
404
|
-
|
405
|
-
|
406
|
-
|
603
|
+
media: msg.getMedia_asB64(),
|
604
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
605
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
407
606
|
};
|
408
607
|
|
409
608
|
if (includeInstance) {
|
@@ -417,23 +616,23 @@ proto.cashback.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
417
616
|
/**
|
418
617
|
* Deserializes binary data (in protobuf wire format).
|
419
618
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
420
|
-
* @return {!proto.cashback.
|
619
|
+
* @return {!proto.cashback.File}
|
421
620
|
*/
|
422
|
-
proto.cashback.
|
621
|
+
proto.cashback.File.deserializeBinary = function(bytes) {
|
423
622
|
var reader = new jspb.BinaryReader(bytes);
|
424
|
-
var msg = new proto.cashback.
|
425
|
-
return proto.cashback.
|
623
|
+
var msg = new proto.cashback.File;
|
624
|
+
return proto.cashback.File.deserializeBinaryFromReader(msg, reader);
|
426
625
|
};
|
427
626
|
|
428
627
|
|
429
628
|
/**
|
430
629
|
* Deserializes binary data (in protobuf wire format) from the
|
431
630
|
* given reader into the given message object.
|
432
|
-
* @param {!proto.cashback.
|
631
|
+
* @param {!proto.cashback.File} msg The message object to deserialize into.
|
433
632
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
434
|
-
* @return {!proto.cashback.
|
633
|
+
* @return {!proto.cashback.File}
|
435
634
|
*/
|
436
|
-
proto.cashback.
|
635
|
+
proto.cashback.File.deserializeBinaryFromReader = function(msg, reader) {
|
437
636
|
while (reader.nextField()) {
|
438
637
|
if (reader.isEndGroup()) {
|
439
638
|
break;
|
@@ -441,17 +640,16 @@ proto.cashback.PaginationRequest.deserializeBinaryFromReader = function(msg, rea
|
|
441
640
|
var field = reader.getFieldNumber();
|
442
641
|
switch (field) {
|
443
642
|
case 1:
|
444
|
-
var value = /** @type {
|
445
|
-
msg.
|
643
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
644
|
+
msg.setMedia(value);
|
446
645
|
break;
|
447
646
|
case 2:
|
448
|
-
var value = /** @type {
|
449
|
-
msg.
|
647
|
+
var value = /** @type {string} */ (reader.readString());
|
648
|
+
msg.setFileName(value);
|
450
649
|
break;
|
451
650
|
case 3:
|
452
|
-
var value =
|
453
|
-
|
454
|
-
msg.setUserSearchParams(value);
|
651
|
+
var value = /** @type {string} */ (reader.readString());
|
652
|
+
msg.setFileType(value);
|
455
653
|
break;
|
456
654
|
default:
|
457
655
|
reader.skipField();
|
@@ -466,9 +664,9 @@ proto.cashback.PaginationRequest.deserializeBinaryFromReader = function(msg, rea
|
|
466
664
|
* Serializes the message to binary data (in protobuf wire format).
|
467
665
|
* @return {!Uint8Array}
|
468
666
|
*/
|
469
|
-
proto.cashback.
|
667
|
+
proto.cashback.File.prototype.serializeBinary = function() {
|
470
668
|
var writer = new jspb.BinaryWriter();
|
471
|
-
proto.cashback.
|
669
|
+
proto.cashback.File.serializeBinaryToWriter(this, writer);
|
472
670
|
return writer.getResultBuffer();
|
473
671
|
};
|
474
672
|
|
@@ -476,98 +674,102 @@ proto.cashback.PaginationRequest.prototype.serializeBinary = function() {
|
|
476
674
|
/**
|
477
675
|
* Serializes the given message to binary data (in protobuf wire
|
478
676
|
* format), writing to the given BinaryWriter.
|
479
|
-
* @param {!proto.cashback.
|
677
|
+
* @param {!proto.cashback.File} message
|
480
678
|
* @param {!jspb.BinaryWriter} writer
|
481
679
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
482
680
|
*/
|
483
|
-
proto.cashback.
|
681
|
+
proto.cashback.File.serializeBinaryToWriter = function(message, writer) {
|
484
682
|
var f = undefined;
|
485
|
-
f = message.
|
486
|
-
if (f
|
487
|
-
writer.
|
683
|
+
f = message.getMedia_asU8();
|
684
|
+
if (f.length > 0) {
|
685
|
+
writer.writeBytes(
|
488
686
|
1,
|
489
687
|
f
|
490
688
|
);
|
491
689
|
}
|
492
|
-
f =
|
493
|
-
if (f
|
494
|
-
writer.
|
690
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
691
|
+
if (f != null) {
|
692
|
+
writer.writeString(
|
495
693
|
2,
|
496
694
|
f
|
497
695
|
);
|
498
696
|
}
|
499
|
-
f =
|
697
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
500
698
|
if (f != null) {
|
501
|
-
writer.
|
699
|
+
writer.writeString(
|
502
700
|
3,
|
503
|
-
f
|
504
|
-
proto.cashback.UserSearchRequest.serializeBinaryToWriter
|
701
|
+
f
|
505
702
|
);
|
506
703
|
}
|
507
704
|
};
|
508
705
|
|
509
706
|
|
510
707
|
/**
|
511
|
-
* optional
|
512
|
-
* @return {
|
708
|
+
* optional bytes media = 1;
|
709
|
+
* @return {!(string|Uint8Array)}
|
513
710
|
*/
|
514
|
-
proto.cashback.
|
515
|
-
return /** @type {
|
711
|
+
proto.cashback.File.prototype.getMedia = function() {
|
712
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
516
713
|
};
|
517
714
|
|
518
715
|
|
519
716
|
/**
|
520
|
-
*
|
521
|
-
*
|
717
|
+
* optional bytes media = 1;
|
718
|
+
* This is a type-conversion wrapper around `getMedia()`
|
719
|
+
* @return {string}
|
522
720
|
*/
|
523
|
-
proto.cashback.
|
524
|
-
return jspb.Message.
|
721
|
+
proto.cashback.File.prototype.getMedia_asB64 = function() {
|
722
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
723
|
+
this.getMedia()));
|
525
724
|
};
|
526
725
|
|
527
726
|
|
528
727
|
/**
|
529
|
-
* optional
|
530
|
-
*
|
728
|
+
* optional bytes media = 1;
|
729
|
+
* Note that Uint8Array is not supported on all browsers.
|
730
|
+
* @see http://caniuse.com/Uint8Array
|
731
|
+
* This is a type-conversion wrapper around `getMedia()`
|
732
|
+
* @return {!Uint8Array}
|
531
733
|
*/
|
532
|
-
proto.cashback.
|
533
|
-
return /** @type {
|
734
|
+
proto.cashback.File.prototype.getMedia_asU8 = function() {
|
735
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
736
|
+
this.getMedia()));
|
534
737
|
};
|
535
738
|
|
536
739
|
|
537
740
|
/**
|
538
|
-
* @param {
|
539
|
-
* @return {!proto.cashback.
|
741
|
+
* @param {!(string|Uint8Array)} value
|
742
|
+
* @return {!proto.cashback.File} returns this
|
540
743
|
*/
|
541
|
-
proto.cashback.
|
542
|
-
return jspb.Message.
|
744
|
+
proto.cashback.File.prototype.setMedia = function(value) {
|
745
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
543
746
|
};
|
544
747
|
|
545
748
|
|
546
749
|
/**
|
547
|
-
* optional
|
548
|
-
* @return {
|
750
|
+
* optional string file_name = 2;
|
751
|
+
* @return {string}
|
549
752
|
*/
|
550
|
-
proto.cashback.
|
551
|
-
return /** @type{
|
552
|
-
jspb.Message.getWrapperField(this, proto.cashback.UserSearchRequest, 3));
|
753
|
+
proto.cashback.File.prototype.getFileName = function() {
|
754
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
553
755
|
};
|
554
756
|
|
555
757
|
|
556
758
|
/**
|
557
|
-
* @param {
|
558
|
-
* @return {!proto.cashback.
|
559
|
-
*/
|
560
|
-
proto.cashback.
|
561
|
-
return jspb.Message.
|
759
|
+
* @param {string} value
|
760
|
+
* @return {!proto.cashback.File} returns this
|
761
|
+
*/
|
762
|
+
proto.cashback.File.prototype.setFileName = function(value) {
|
763
|
+
return jspb.Message.setField(this, 2, value);
|
562
764
|
};
|
563
765
|
|
564
766
|
|
565
767
|
/**
|
566
|
-
* Clears the
|
567
|
-
* @return {!proto.cashback.
|
768
|
+
* Clears the field making it undefined.
|
769
|
+
* @return {!proto.cashback.File} returns this
|
568
770
|
*/
|
569
|
-
proto.cashback.
|
570
|
-
return
|
771
|
+
proto.cashback.File.prototype.clearFileName = function() {
|
772
|
+
return jspb.Message.setField(this, 2, undefined);
|
571
773
|
};
|
572
774
|
|
573
775
|
|
@@ -575,19 +777,2154 @@ proto.cashback.PaginationRequest.prototype.clearUserSearchParams = function() {
|
|
575
777
|
* Returns whether this field is set.
|
576
778
|
* @return {boolean}
|
577
779
|
*/
|
578
|
-
proto.cashback.
|
579
|
-
return jspb.Message.getField(this,
|
780
|
+
proto.cashback.File.prototype.hasFileName = function() {
|
781
|
+
return jspb.Message.getField(this, 2) != null;
|
580
782
|
};
|
581
783
|
|
582
784
|
|
785
|
+
/**
|
786
|
+
* optional string file_type = 3;
|
787
|
+
* @return {string}
|
788
|
+
*/
|
789
|
+
proto.cashback.File.prototype.getFileType = function() {
|
790
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
791
|
+
};
|
583
792
|
|
584
793
|
|
585
|
-
|
586
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
587
794
|
/**
|
588
|
-
*
|
589
|
-
*
|
590
|
-
|
795
|
+
* @param {string} value
|
796
|
+
* @return {!proto.cashback.File} returns this
|
797
|
+
*/
|
798
|
+
proto.cashback.File.prototype.setFileType = function(value) {
|
799
|
+
return jspb.Message.setField(this, 3, value);
|
800
|
+
};
|
801
|
+
|
802
|
+
|
803
|
+
/**
|
804
|
+
* Clears the field making it undefined.
|
805
|
+
* @return {!proto.cashback.File} returns this
|
806
|
+
*/
|
807
|
+
proto.cashback.File.prototype.clearFileType = function() {
|
808
|
+
return jspb.Message.setField(this, 3, undefined);
|
809
|
+
};
|
810
|
+
|
811
|
+
|
812
|
+
/**
|
813
|
+
* Returns whether this field is set.
|
814
|
+
* @return {boolean}
|
815
|
+
*/
|
816
|
+
proto.cashback.File.prototype.hasFileType = function() {
|
817
|
+
return jspb.Message.getField(this, 3) != null;
|
818
|
+
};
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
|
823
|
+
|
824
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
825
|
+
/**
|
826
|
+
* Creates an object representation of this proto.
|
827
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
828
|
+
* Optional fields that are not set will be set to undefined.
|
829
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
830
|
+
* For the list of reserved names please see:
|
831
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
832
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
833
|
+
* JSPB instance for transitional soy proto support:
|
834
|
+
* http://goto/soy-param-migration
|
835
|
+
* @return {!Object}
|
836
|
+
*/
|
837
|
+
proto.cashback.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
|
838
|
+
return proto.cashback.GetFileRequest.toObject(opt_includeInstance, this);
|
839
|
+
};
|
840
|
+
|
841
|
+
|
842
|
+
/**
|
843
|
+
* Static version of the {@see toObject} method.
|
844
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
845
|
+
* the JSPB instance for transitional soy proto support:
|
846
|
+
* http://goto/soy-param-migration
|
847
|
+
* @param {!proto.cashback.GetFileRequest} msg The msg instance to transform.
|
848
|
+
* @return {!Object}
|
849
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
850
|
+
*/
|
851
|
+
proto.cashback.GetFileRequest.toObject = function(includeInstance, msg) {
|
852
|
+
var f, obj = {
|
853
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
854
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
855
|
+
};
|
856
|
+
|
857
|
+
if (includeInstance) {
|
858
|
+
obj.$jspbMessageInstance = msg;
|
859
|
+
}
|
860
|
+
return obj;
|
861
|
+
};
|
862
|
+
}
|
863
|
+
|
864
|
+
|
865
|
+
/**
|
866
|
+
* Deserializes binary data (in protobuf wire format).
|
867
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
868
|
+
* @return {!proto.cashback.GetFileRequest}
|
869
|
+
*/
|
870
|
+
proto.cashback.GetFileRequest.deserializeBinary = function(bytes) {
|
871
|
+
var reader = new jspb.BinaryReader(bytes);
|
872
|
+
var msg = new proto.cashback.GetFileRequest;
|
873
|
+
return proto.cashback.GetFileRequest.deserializeBinaryFromReader(msg, reader);
|
874
|
+
};
|
875
|
+
|
876
|
+
|
877
|
+
/**
|
878
|
+
* Deserializes binary data (in protobuf wire format) from the
|
879
|
+
* given reader into the given message object.
|
880
|
+
* @param {!proto.cashback.GetFileRequest} msg The message object to deserialize into.
|
881
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
882
|
+
* @return {!proto.cashback.GetFileRequest}
|
883
|
+
*/
|
884
|
+
proto.cashback.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
885
|
+
while (reader.nextField()) {
|
886
|
+
if (reader.isEndGroup()) {
|
887
|
+
break;
|
888
|
+
}
|
889
|
+
var field = reader.getFieldNumber();
|
890
|
+
switch (field) {
|
891
|
+
case 1:
|
892
|
+
var value = /** @type {string} */ (reader.readString());
|
893
|
+
msg.setFileName(value);
|
894
|
+
break;
|
895
|
+
case 2:
|
896
|
+
var value = /** @type {string} */ (reader.readString());
|
897
|
+
msg.setInstanceType(value);
|
898
|
+
break;
|
899
|
+
default:
|
900
|
+
reader.skipField();
|
901
|
+
break;
|
902
|
+
}
|
903
|
+
}
|
904
|
+
return msg;
|
905
|
+
};
|
906
|
+
|
907
|
+
|
908
|
+
/**
|
909
|
+
* Serializes the message to binary data (in protobuf wire format).
|
910
|
+
* @return {!Uint8Array}
|
911
|
+
*/
|
912
|
+
proto.cashback.GetFileRequest.prototype.serializeBinary = function() {
|
913
|
+
var writer = new jspb.BinaryWriter();
|
914
|
+
proto.cashback.GetFileRequest.serializeBinaryToWriter(this, writer);
|
915
|
+
return writer.getResultBuffer();
|
916
|
+
};
|
917
|
+
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Serializes the given message to binary data (in protobuf wire
|
921
|
+
* format), writing to the given BinaryWriter.
|
922
|
+
* @param {!proto.cashback.GetFileRequest} message
|
923
|
+
* @param {!jspb.BinaryWriter} writer
|
924
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
925
|
+
*/
|
926
|
+
proto.cashback.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
|
927
|
+
var f = undefined;
|
928
|
+
f = message.getFileName();
|
929
|
+
if (f.length > 0) {
|
930
|
+
writer.writeString(
|
931
|
+
1,
|
932
|
+
f
|
933
|
+
);
|
934
|
+
}
|
935
|
+
f = message.getInstanceType();
|
936
|
+
if (f.length > 0) {
|
937
|
+
writer.writeString(
|
938
|
+
2,
|
939
|
+
f
|
940
|
+
);
|
941
|
+
}
|
942
|
+
};
|
943
|
+
|
944
|
+
|
945
|
+
/**
|
946
|
+
* optional string file_name = 1;
|
947
|
+
* @return {string}
|
948
|
+
*/
|
949
|
+
proto.cashback.GetFileRequest.prototype.getFileName = function() {
|
950
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
951
|
+
};
|
952
|
+
|
953
|
+
|
954
|
+
/**
|
955
|
+
* @param {string} value
|
956
|
+
* @return {!proto.cashback.GetFileRequest} returns this
|
957
|
+
*/
|
958
|
+
proto.cashback.GetFileRequest.prototype.setFileName = function(value) {
|
959
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
960
|
+
};
|
961
|
+
|
962
|
+
|
963
|
+
/**
|
964
|
+
* optional string instance_type = 2;
|
965
|
+
* @return {string}
|
966
|
+
*/
|
967
|
+
proto.cashback.GetFileRequest.prototype.getInstanceType = function() {
|
968
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
969
|
+
};
|
970
|
+
|
971
|
+
|
972
|
+
/**
|
973
|
+
* @param {string} value
|
974
|
+
* @return {!proto.cashback.GetFileRequest} returns this
|
975
|
+
*/
|
976
|
+
proto.cashback.GetFileRequest.prototype.setInstanceType = function(value) {
|
977
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
978
|
+
};
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
985
|
+
/**
|
986
|
+
* Creates an object representation of this proto.
|
987
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
988
|
+
* Optional fields that are not set will be set to undefined.
|
989
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
990
|
+
* For the list of reserved names please see:
|
991
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
992
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
993
|
+
* JSPB instance for transitional soy proto support:
|
994
|
+
* http://goto/soy-param-migration
|
995
|
+
* @return {!Object}
|
996
|
+
*/
|
997
|
+
proto.cashback.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
998
|
+
return proto.cashback.PaginationRequest.toObject(opt_includeInstance, this);
|
999
|
+
};
|
1000
|
+
|
1001
|
+
|
1002
|
+
/**
|
1003
|
+
* Static version of the {@see toObject} method.
|
1004
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1005
|
+
* the JSPB instance for transitional soy proto support:
|
1006
|
+
* http://goto/soy-param-migration
|
1007
|
+
* @param {!proto.cashback.PaginationRequest} msg The msg instance to transform.
|
1008
|
+
* @return {!Object}
|
1009
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1010
|
+
*/
|
1011
|
+
proto.cashback.PaginationRequest.toObject = function(includeInstance, msg) {
|
1012
|
+
var f, obj = {
|
1013
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1014
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1015
|
+
userSearchParams: (f = msg.getUserSearchParams()) && proto.cashback.UserSearchRequest.toObject(includeInstance, f)
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
if (includeInstance) {
|
1019
|
+
obj.$jspbMessageInstance = msg;
|
1020
|
+
}
|
1021
|
+
return obj;
|
1022
|
+
};
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
|
1026
|
+
/**
|
1027
|
+
* Deserializes binary data (in protobuf wire format).
|
1028
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1029
|
+
* @return {!proto.cashback.PaginationRequest}
|
1030
|
+
*/
|
1031
|
+
proto.cashback.PaginationRequest.deserializeBinary = function(bytes) {
|
1032
|
+
var reader = new jspb.BinaryReader(bytes);
|
1033
|
+
var msg = new proto.cashback.PaginationRequest;
|
1034
|
+
return proto.cashback.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
1035
|
+
};
|
1036
|
+
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1040
|
+
* given reader into the given message object.
|
1041
|
+
* @param {!proto.cashback.PaginationRequest} msg The message object to deserialize into.
|
1042
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1043
|
+
* @return {!proto.cashback.PaginationRequest}
|
1044
|
+
*/
|
1045
|
+
proto.cashback.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1046
|
+
while (reader.nextField()) {
|
1047
|
+
if (reader.isEndGroup()) {
|
1048
|
+
break;
|
1049
|
+
}
|
1050
|
+
var field = reader.getFieldNumber();
|
1051
|
+
switch (field) {
|
1052
|
+
case 1:
|
1053
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1054
|
+
msg.setLimit(value);
|
1055
|
+
break;
|
1056
|
+
case 2:
|
1057
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1058
|
+
msg.setOffset(value);
|
1059
|
+
break;
|
1060
|
+
case 3:
|
1061
|
+
var value = new proto.cashback.UserSearchRequest;
|
1062
|
+
reader.readMessage(value,proto.cashback.UserSearchRequest.deserializeBinaryFromReader);
|
1063
|
+
msg.setUserSearchParams(value);
|
1064
|
+
break;
|
1065
|
+
default:
|
1066
|
+
reader.skipField();
|
1067
|
+
break;
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
return msg;
|
1071
|
+
};
|
1072
|
+
|
1073
|
+
|
1074
|
+
/**
|
1075
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1076
|
+
* @return {!Uint8Array}
|
1077
|
+
*/
|
1078
|
+
proto.cashback.PaginationRequest.prototype.serializeBinary = function() {
|
1079
|
+
var writer = new jspb.BinaryWriter();
|
1080
|
+
proto.cashback.PaginationRequest.serializeBinaryToWriter(this, writer);
|
1081
|
+
return writer.getResultBuffer();
|
1082
|
+
};
|
1083
|
+
|
1084
|
+
|
1085
|
+
/**
|
1086
|
+
* Serializes the given message to binary data (in protobuf wire
|
1087
|
+
* format), writing to the given BinaryWriter.
|
1088
|
+
* @param {!proto.cashback.PaginationRequest} message
|
1089
|
+
* @param {!jspb.BinaryWriter} writer
|
1090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1091
|
+
*/
|
1092
|
+
proto.cashback.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
1093
|
+
var f = undefined;
|
1094
|
+
f = message.getLimit();
|
1095
|
+
if (f !== 0) {
|
1096
|
+
writer.writeInt32(
|
1097
|
+
1,
|
1098
|
+
f
|
1099
|
+
);
|
1100
|
+
}
|
1101
|
+
f = message.getOffset();
|
1102
|
+
if (f !== 0) {
|
1103
|
+
writer.writeInt32(
|
1104
|
+
2,
|
1105
|
+
f
|
1106
|
+
);
|
1107
|
+
}
|
1108
|
+
f = message.getUserSearchParams();
|
1109
|
+
if (f != null) {
|
1110
|
+
writer.writeMessage(
|
1111
|
+
3,
|
1112
|
+
f,
|
1113
|
+
proto.cashback.UserSearchRequest.serializeBinaryToWriter
|
1114
|
+
);
|
1115
|
+
}
|
1116
|
+
};
|
1117
|
+
|
1118
|
+
|
1119
|
+
/**
|
1120
|
+
* optional int32 limit = 1;
|
1121
|
+
* @return {number}
|
1122
|
+
*/
|
1123
|
+
proto.cashback.PaginationRequest.prototype.getLimit = function() {
|
1124
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1125
|
+
};
|
1126
|
+
|
1127
|
+
|
1128
|
+
/**
|
1129
|
+
* @param {number} value
|
1130
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1131
|
+
*/
|
1132
|
+
proto.cashback.PaginationRequest.prototype.setLimit = function(value) {
|
1133
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1134
|
+
};
|
1135
|
+
|
1136
|
+
|
1137
|
+
/**
|
1138
|
+
* optional int32 offset = 2;
|
1139
|
+
* @return {number}
|
1140
|
+
*/
|
1141
|
+
proto.cashback.PaginationRequest.prototype.getOffset = function() {
|
1142
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1143
|
+
};
|
1144
|
+
|
1145
|
+
|
1146
|
+
/**
|
1147
|
+
* @param {number} value
|
1148
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1149
|
+
*/
|
1150
|
+
proto.cashback.PaginationRequest.prototype.setOffset = function(value) {
|
1151
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
1152
|
+
};
|
1153
|
+
|
1154
|
+
|
1155
|
+
/**
|
1156
|
+
* optional UserSearchRequest user_search_params = 3;
|
1157
|
+
* @return {?proto.cashback.UserSearchRequest}
|
1158
|
+
*/
|
1159
|
+
proto.cashback.PaginationRequest.prototype.getUserSearchParams = function() {
|
1160
|
+
return /** @type{?proto.cashback.UserSearchRequest} */ (
|
1161
|
+
jspb.Message.getWrapperField(this, proto.cashback.UserSearchRequest, 3));
|
1162
|
+
};
|
1163
|
+
|
1164
|
+
|
1165
|
+
/**
|
1166
|
+
* @param {?proto.cashback.UserSearchRequest|undefined} value
|
1167
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1168
|
+
*/
|
1169
|
+
proto.cashback.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
1170
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
1171
|
+
};
|
1172
|
+
|
1173
|
+
|
1174
|
+
/**
|
1175
|
+
* Clears the message field making it undefined.
|
1176
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1177
|
+
*/
|
1178
|
+
proto.cashback.PaginationRequest.prototype.clearUserSearchParams = function() {
|
1179
|
+
return this.setUserSearchParams(undefined);
|
1180
|
+
};
|
1181
|
+
|
1182
|
+
|
1183
|
+
/**
|
1184
|
+
* Returns whether this field is set.
|
1185
|
+
* @return {boolean}
|
1186
|
+
*/
|
1187
|
+
proto.cashback.PaginationRequest.prototype.hasUserSearchParams = function() {
|
1188
|
+
return jspb.Message.getField(this, 3) != null;
|
1189
|
+
};
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
|
1195
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1196
|
+
/**
|
1197
|
+
* Creates an object representation of this proto.
|
1198
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1199
|
+
* Optional fields that are not set will be set to undefined.
|
1200
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1201
|
+
* For the list of reserved names please see:
|
1202
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1203
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1204
|
+
* JSPB instance for transitional soy proto support:
|
1205
|
+
* http://goto/soy-param-migration
|
1206
|
+
* @return {!Object}
|
1207
|
+
*/
|
1208
|
+
proto.cashback.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
1209
|
+
return proto.cashback.UserSearchRequest.toObject(opt_includeInstance, this);
|
1210
|
+
};
|
1211
|
+
|
1212
|
+
|
1213
|
+
/**
|
1214
|
+
* Static version of the {@see toObject} method.
|
1215
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1216
|
+
* the JSPB instance for transitional soy proto support:
|
1217
|
+
* http://goto/soy-param-migration
|
1218
|
+
* @param {!proto.cashback.UserSearchRequest} msg The msg instance to transform.
|
1219
|
+
* @return {!Object}
|
1220
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1221
|
+
*/
|
1222
|
+
proto.cashback.UserSearchRequest.toObject = function(includeInstance, msg) {
|
1223
|
+
var f, obj = {
|
1224
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1225
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1226
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
if (includeInstance) {
|
1230
|
+
obj.$jspbMessageInstance = msg;
|
1231
|
+
}
|
1232
|
+
return obj;
|
1233
|
+
};
|
1234
|
+
}
|
1235
|
+
|
1236
|
+
|
1237
|
+
/**
|
1238
|
+
* Deserializes binary data (in protobuf wire format).
|
1239
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1240
|
+
* @return {!proto.cashback.UserSearchRequest}
|
1241
|
+
*/
|
1242
|
+
proto.cashback.UserSearchRequest.deserializeBinary = function(bytes) {
|
1243
|
+
var reader = new jspb.BinaryReader(bytes);
|
1244
|
+
var msg = new proto.cashback.UserSearchRequest;
|
1245
|
+
return proto.cashback.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
|
1246
|
+
};
|
1247
|
+
|
1248
|
+
|
1249
|
+
/**
|
1250
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1251
|
+
* given reader into the given message object.
|
1252
|
+
* @param {!proto.cashback.UserSearchRequest} msg The message object to deserialize into.
|
1253
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1254
|
+
* @return {!proto.cashback.UserSearchRequest}
|
1255
|
+
*/
|
1256
|
+
proto.cashback.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1257
|
+
while (reader.nextField()) {
|
1258
|
+
if (reader.isEndGroup()) {
|
1259
|
+
break;
|
1260
|
+
}
|
1261
|
+
var field = reader.getFieldNumber();
|
1262
|
+
switch (field) {
|
1263
|
+
case 1:
|
1264
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1265
|
+
msg.setUserId(value);
|
1266
|
+
break;
|
1267
|
+
case 2:
|
1268
|
+
var value = /** @type {string} */ (reader.readString());
|
1269
|
+
msg.setBalanceType(value);
|
1270
|
+
break;
|
1271
|
+
case 3:
|
1272
|
+
var value = /** @type {string} */ (reader.readString());
|
1273
|
+
msg.setCurrency(value);
|
1274
|
+
break;
|
1275
|
+
default:
|
1276
|
+
reader.skipField();
|
1277
|
+
break;
|
1278
|
+
}
|
1279
|
+
}
|
1280
|
+
return msg;
|
1281
|
+
};
|
1282
|
+
|
1283
|
+
|
1284
|
+
/**
|
1285
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1286
|
+
* @return {!Uint8Array}
|
1287
|
+
*/
|
1288
|
+
proto.cashback.UserSearchRequest.prototype.serializeBinary = function() {
|
1289
|
+
var writer = new jspb.BinaryWriter();
|
1290
|
+
proto.cashback.UserSearchRequest.serializeBinaryToWriter(this, writer);
|
1291
|
+
return writer.getResultBuffer();
|
1292
|
+
};
|
1293
|
+
|
1294
|
+
|
1295
|
+
/**
|
1296
|
+
* Serializes the given message to binary data (in protobuf wire
|
1297
|
+
* format), writing to the given BinaryWriter.
|
1298
|
+
* @param {!proto.cashback.UserSearchRequest} message
|
1299
|
+
* @param {!jspb.BinaryWriter} writer
|
1300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1301
|
+
*/
|
1302
|
+
proto.cashback.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1303
|
+
var f = undefined;
|
1304
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1305
|
+
if (f != null) {
|
1306
|
+
writer.writeInt32(
|
1307
|
+
1,
|
1308
|
+
f
|
1309
|
+
);
|
1310
|
+
}
|
1311
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1312
|
+
if (f != null) {
|
1313
|
+
writer.writeString(
|
1314
|
+
2,
|
1315
|
+
f
|
1316
|
+
);
|
1317
|
+
}
|
1318
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1319
|
+
if (f != null) {
|
1320
|
+
writer.writeString(
|
1321
|
+
3,
|
1322
|
+
f
|
1323
|
+
);
|
1324
|
+
}
|
1325
|
+
};
|
1326
|
+
|
1327
|
+
|
1328
|
+
/**
|
1329
|
+
* optional int32 user_id = 1;
|
1330
|
+
* @return {number}
|
1331
|
+
*/
|
1332
|
+
proto.cashback.UserSearchRequest.prototype.getUserId = function() {
|
1333
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1334
|
+
};
|
1335
|
+
|
1336
|
+
|
1337
|
+
/**
|
1338
|
+
* @param {number} value
|
1339
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1340
|
+
*/
|
1341
|
+
proto.cashback.UserSearchRequest.prototype.setUserId = function(value) {
|
1342
|
+
return jspb.Message.setField(this, 1, value);
|
1343
|
+
};
|
1344
|
+
|
1345
|
+
|
1346
|
+
/**
|
1347
|
+
* Clears the field making it undefined.
|
1348
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1349
|
+
*/
|
1350
|
+
proto.cashback.UserSearchRequest.prototype.clearUserId = function() {
|
1351
|
+
return jspb.Message.setField(this, 1, undefined);
|
1352
|
+
};
|
1353
|
+
|
1354
|
+
|
1355
|
+
/**
|
1356
|
+
* Returns whether this field is set.
|
1357
|
+
* @return {boolean}
|
1358
|
+
*/
|
1359
|
+
proto.cashback.UserSearchRequest.prototype.hasUserId = function() {
|
1360
|
+
return jspb.Message.getField(this, 1) != null;
|
1361
|
+
};
|
1362
|
+
|
1363
|
+
|
1364
|
+
/**
|
1365
|
+
* optional string balance_type = 2;
|
1366
|
+
* @return {string}
|
1367
|
+
*/
|
1368
|
+
proto.cashback.UserSearchRequest.prototype.getBalanceType = function() {
|
1369
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1370
|
+
};
|
1371
|
+
|
1372
|
+
|
1373
|
+
/**
|
1374
|
+
* @param {string} value
|
1375
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1376
|
+
*/
|
1377
|
+
proto.cashback.UserSearchRequest.prototype.setBalanceType = function(value) {
|
1378
|
+
return jspb.Message.setField(this, 2, value);
|
1379
|
+
};
|
1380
|
+
|
1381
|
+
|
1382
|
+
/**
|
1383
|
+
* Clears the field making it undefined.
|
1384
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1385
|
+
*/
|
1386
|
+
proto.cashback.UserSearchRequest.prototype.clearBalanceType = function() {
|
1387
|
+
return jspb.Message.setField(this, 2, undefined);
|
1388
|
+
};
|
1389
|
+
|
1390
|
+
|
1391
|
+
/**
|
1392
|
+
* Returns whether this field is set.
|
1393
|
+
* @return {boolean}
|
1394
|
+
*/
|
1395
|
+
proto.cashback.UserSearchRequest.prototype.hasBalanceType = function() {
|
1396
|
+
return jspb.Message.getField(this, 2) != null;
|
1397
|
+
};
|
1398
|
+
|
1399
|
+
|
1400
|
+
/**
|
1401
|
+
* optional string currency = 3;
|
1402
|
+
* @return {string}
|
1403
|
+
*/
|
1404
|
+
proto.cashback.UserSearchRequest.prototype.getCurrency = function() {
|
1405
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1406
|
+
};
|
1407
|
+
|
1408
|
+
|
1409
|
+
/**
|
1410
|
+
* @param {string} value
|
1411
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1412
|
+
*/
|
1413
|
+
proto.cashback.UserSearchRequest.prototype.setCurrency = function(value) {
|
1414
|
+
return jspb.Message.setField(this, 3, value);
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
|
1418
|
+
/**
|
1419
|
+
* Clears the field making it undefined.
|
1420
|
+
* @return {!proto.cashback.UserSearchRequest} returns this
|
1421
|
+
*/
|
1422
|
+
proto.cashback.UserSearchRequest.prototype.clearCurrency = function() {
|
1423
|
+
return jspb.Message.setField(this, 3, undefined);
|
1424
|
+
};
|
1425
|
+
|
1426
|
+
|
1427
|
+
/**
|
1428
|
+
* Returns whether this field is set.
|
1429
|
+
* @return {boolean}
|
1430
|
+
*/
|
1431
|
+
proto.cashback.UserSearchRequest.prototype.hasCurrency = function() {
|
1432
|
+
return jspb.Message.getField(this, 3) != null;
|
1433
|
+
};
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
|
1438
|
+
|
1439
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1440
|
+
/**
|
1441
|
+
* Creates an object representation of this proto.
|
1442
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1443
|
+
* Optional fields that are not set will be set to undefined.
|
1444
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1445
|
+
* For the list of reserved names please see:
|
1446
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1447
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1448
|
+
* JSPB instance for transitional soy proto support:
|
1449
|
+
* http://goto/soy-param-migration
|
1450
|
+
* @return {!Object}
|
1451
|
+
*/
|
1452
|
+
proto.cashback.CashbackItem.prototype.toObject = function(opt_includeInstance) {
|
1453
|
+
return proto.cashback.CashbackItem.toObject(opt_includeInstance, this);
|
1454
|
+
};
|
1455
|
+
|
1456
|
+
|
1457
|
+
/**
|
1458
|
+
* Static version of the {@see toObject} method.
|
1459
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1460
|
+
* the JSPB instance for transitional soy proto support:
|
1461
|
+
* http://goto/soy-param-migration
|
1462
|
+
* @param {!proto.cashback.CashbackItem} msg The msg instance to transform.
|
1463
|
+
* @return {!Object}
|
1464
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1465
|
+
*/
|
1466
|
+
proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
|
1467
|
+
var f, obj = {
|
1468
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1469
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1470
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1471
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1472
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1473
|
+
level: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
1474
|
+
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1475
|
+
checkingAt: jspb.Message.getFieldWithDefault(msg, 9, "")
|
1476
|
+
};
|
1477
|
+
|
1478
|
+
if (includeInstance) {
|
1479
|
+
obj.$jspbMessageInstance = msg;
|
1480
|
+
}
|
1481
|
+
return obj;
|
1482
|
+
};
|
1483
|
+
}
|
1484
|
+
|
1485
|
+
|
1486
|
+
/**
|
1487
|
+
* Deserializes binary data (in protobuf wire format).
|
1488
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1489
|
+
* @return {!proto.cashback.CashbackItem}
|
1490
|
+
*/
|
1491
|
+
proto.cashback.CashbackItem.deserializeBinary = function(bytes) {
|
1492
|
+
var reader = new jspb.BinaryReader(bytes);
|
1493
|
+
var msg = new proto.cashback.CashbackItem;
|
1494
|
+
return proto.cashback.CashbackItem.deserializeBinaryFromReader(msg, reader);
|
1495
|
+
};
|
1496
|
+
|
1497
|
+
|
1498
|
+
/**
|
1499
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1500
|
+
* given reader into the given message object.
|
1501
|
+
* @param {!proto.cashback.CashbackItem} msg The message object to deserialize into.
|
1502
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1503
|
+
* @return {!proto.cashback.CashbackItem}
|
1504
|
+
*/
|
1505
|
+
proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader) {
|
1506
|
+
while (reader.nextField()) {
|
1507
|
+
if (reader.isEndGroup()) {
|
1508
|
+
break;
|
1509
|
+
}
|
1510
|
+
var field = reader.getFieldNumber();
|
1511
|
+
switch (field) {
|
1512
|
+
case 1:
|
1513
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1514
|
+
msg.setId(value);
|
1515
|
+
break;
|
1516
|
+
case 2:
|
1517
|
+
var value = /** @type {string} */ (reader.readString());
|
1518
|
+
msg.setTitle(value);
|
1519
|
+
break;
|
1520
|
+
case 4:
|
1521
|
+
var value = /** @type {string} */ (reader.readString());
|
1522
|
+
msg.setDescription(value);
|
1523
|
+
break;
|
1524
|
+
case 5:
|
1525
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1526
|
+
msg.setIsActive(value);
|
1527
|
+
break;
|
1528
|
+
case 6:
|
1529
|
+
var value = /** @type {string} */ (reader.readString());
|
1530
|
+
msg.setImage(value);
|
1531
|
+
break;
|
1532
|
+
case 7:
|
1533
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1534
|
+
msg.setLevel(value);
|
1535
|
+
break;
|
1536
|
+
case 8:
|
1537
|
+
var value = /** @type {string} */ (reader.readString());
|
1538
|
+
msg.setType(value);
|
1539
|
+
break;
|
1540
|
+
case 9:
|
1541
|
+
var value = /** @type {string} */ (reader.readString());
|
1542
|
+
msg.setCheckingAt(value);
|
1543
|
+
break;
|
1544
|
+
default:
|
1545
|
+
reader.skipField();
|
1546
|
+
break;
|
1547
|
+
}
|
1548
|
+
}
|
1549
|
+
return msg;
|
1550
|
+
};
|
1551
|
+
|
1552
|
+
|
1553
|
+
/**
|
1554
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1555
|
+
* @return {!Uint8Array}
|
1556
|
+
*/
|
1557
|
+
proto.cashback.CashbackItem.prototype.serializeBinary = function() {
|
1558
|
+
var writer = new jspb.BinaryWriter();
|
1559
|
+
proto.cashback.CashbackItem.serializeBinaryToWriter(this, writer);
|
1560
|
+
return writer.getResultBuffer();
|
1561
|
+
};
|
1562
|
+
|
1563
|
+
|
1564
|
+
/**
|
1565
|
+
* Serializes the given message to binary data (in protobuf wire
|
1566
|
+
* format), writing to the given BinaryWriter.
|
1567
|
+
* @param {!proto.cashback.CashbackItem} message
|
1568
|
+
* @param {!jspb.BinaryWriter} writer
|
1569
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1570
|
+
*/
|
1571
|
+
proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer) {
|
1572
|
+
var f = undefined;
|
1573
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1574
|
+
if (f != null) {
|
1575
|
+
writer.writeInt32(
|
1576
|
+
1,
|
1577
|
+
f
|
1578
|
+
);
|
1579
|
+
}
|
1580
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1581
|
+
if (f != null) {
|
1582
|
+
writer.writeString(
|
1583
|
+
2,
|
1584
|
+
f
|
1585
|
+
);
|
1586
|
+
}
|
1587
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1588
|
+
if (f != null) {
|
1589
|
+
writer.writeString(
|
1590
|
+
4,
|
1591
|
+
f
|
1592
|
+
);
|
1593
|
+
}
|
1594
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1595
|
+
if (f != null) {
|
1596
|
+
writer.writeInt32(
|
1597
|
+
5,
|
1598
|
+
f
|
1599
|
+
);
|
1600
|
+
}
|
1601
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1602
|
+
if (f != null) {
|
1603
|
+
writer.writeString(
|
1604
|
+
6,
|
1605
|
+
f
|
1606
|
+
);
|
1607
|
+
}
|
1608
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
1609
|
+
if (f != null) {
|
1610
|
+
writer.writeInt32(
|
1611
|
+
7,
|
1612
|
+
f
|
1613
|
+
);
|
1614
|
+
}
|
1615
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
1616
|
+
if (f != null) {
|
1617
|
+
writer.writeString(
|
1618
|
+
8,
|
1619
|
+
f
|
1620
|
+
);
|
1621
|
+
}
|
1622
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
1623
|
+
if (f != null) {
|
1624
|
+
writer.writeString(
|
1625
|
+
9,
|
1626
|
+
f
|
1627
|
+
);
|
1628
|
+
}
|
1629
|
+
};
|
1630
|
+
|
1631
|
+
|
1632
|
+
/**
|
1633
|
+
* optional int32 id = 1;
|
1634
|
+
* @return {number}
|
1635
|
+
*/
|
1636
|
+
proto.cashback.CashbackItem.prototype.getId = function() {
|
1637
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1638
|
+
};
|
1639
|
+
|
1640
|
+
|
1641
|
+
/**
|
1642
|
+
* @param {number} value
|
1643
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1644
|
+
*/
|
1645
|
+
proto.cashback.CashbackItem.prototype.setId = function(value) {
|
1646
|
+
return jspb.Message.setField(this, 1, value);
|
1647
|
+
};
|
1648
|
+
|
1649
|
+
|
1650
|
+
/**
|
1651
|
+
* Clears the field making it undefined.
|
1652
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1653
|
+
*/
|
1654
|
+
proto.cashback.CashbackItem.prototype.clearId = function() {
|
1655
|
+
return jspb.Message.setField(this, 1, undefined);
|
1656
|
+
};
|
1657
|
+
|
1658
|
+
|
1659
|
+
/**
|
1660
|
+
* Returns whether this field is set.
|
1661
|
+
* @return {boolean}
|
1662
|
+
*/
|
1663
|
+
proto.cashback.CashbackItem.prototype.hasId = function() {
|
1664
|
+
return jspb.Message.getField(this, 1) != null;
|
1665
|
+
};
|
1666
|
+
|
1667
|
+
|
1668
|
+
/**
|
1669
|
+
* optional string title = 2;
|
1670
|
+
* @return {string}
|
1671
|
+
*/
|
1672
|
+
proto.cashback.CashbackItem.prototype.getTitle = function() {
|
1673
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1674
|
+
};
|
1675
|
+
|
1676
|
+
|
1677
|
+
/**
|
1678
|
+
* @param {string} value
|
1679
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1680
|
+
*/
|
1681
|
+
proto.cashback.CashbackItem.prototype.setTitle = function(value) {
|
1682
|
+
return jspb.Message.setField(this, 2, value);
|
1683
|
+
};
|
1684
|
+
|
1685
|
+
|
1686
|
+
/**
|
1687
|
+
* Clears the field making it undefined.
|
1688
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1689
|
+
*/
|
1690
|
+
proto.cashback.CashbackItem.prototype.clearTitle = function() {
|
1691
|
+
return jspb.Message.setField(this, 2, undefined);
|
1692
|
+
};
|
1693
|
+
|
1694
|
+
|
1695
|
+
/**
|
1696
|
+
* Returns whether this field is set.
|
1697
|
+
* @return {boolean}
|
1698
|
+
*/
|
1699
|
+
proto.cashback.CashbackItem.prototype.hasTitle = function() {
|
1700
|
+
return jspb.Message.getField(this, 2) != null;
|
1701
|
+
};
|
1702
|
+
|
1703
|
+
|
1704
|
+
/**
|
1705
|
+
* optional string description = 4;
|
1706
|
+
* @return {string}
|
1707
|
+
*/
|
1708
|
+
proto.cashback.CashbackItem.prototype.getDescription = function() {
|
1709
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1710
|
+
};
|
1711
|
+
|
1712
|
+
|
1713
|
+
/**
|
1714
|
+
* @param {string} value
|
1715
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1716
|
+
*/
|
1717
|
+
proto.cashback.CashbackItem.prototype.setDescription = function(value) {
|
1718
|
+
return jspb.Message.setField(this, 4, value);
|
1719
|
+
};
|
1720
|
+
|
1721
|
+
|
1722
|
+
/**
|
1723
|
+
* Clears the field making it undefined.
|
1724
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1725
|
+
*/
|
1726
|
+
proto.cashback.CashbackItem.prototype.clearDescription = function() {
|
1727
|
+
return jspb.Message.setField(this, 4, undefined);
|
1728
|
+
};
|
1729
|
+
|
1730
|
+
|
1731
|
+
/**
|
1732
|
+
* Returns whether this field is set.
|
1733
|
+
* @return {boolean}
|
1734
|
+
*/
|
1735
|
+
proto.cashback.CashbackItem.prototype.hasDescription = function() {
|
1736
|
+
return jspb.Message.getField(this, 4) != null;
|
1737
|
+
};
|
1738
|
+
|
1739
|
+
|
1740
|
+
/**
|
1741
|
+
* optional int32 is_active = 5;
|
1742
|
+
* @return {number}
|
1743
|
+
*/
|
1744
|
+
proto.cashback.CashbackItem.prototype.getIsActive = function() {
|
1745
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1746
|
+
};
|
1747
|
+
|
1748
|
+
|
1749
|
+
/**
|
1750
|
+
* @param {number} value
|
1751
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1752
|
+
*/
|
1753
|
+
proto.cashback.CashbackItem.prototype.setIsActive = function(value) {
|
1754
|
+
return jspb.Message.setField(this, 5, value);
|
1755
|
+
};
|
1756
|
+
|
1757
|
+
|
1758
|
+
/**
|
1759
|
+
* Clears the field making it undefined.
|
1760
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1761
|
+
*/
|
1762
|
+
proto.cashback.CashbackItem.prototype.clearIsActive = function() {
|
1763
|
+
return jspb.Message.setField(this, 5, undefined);
|
1764
|
+
};
|
1765
|
+
|
1766
|
+
|
1767
|
+
/**
|
1768
|
+
* Returns whether this field is set.
|
1769
|
+
* @return {boolean}
|
1770
|
+
*/
|
1771
|
+
proto.cashback.CashbackItem.prototype.hasIsActive = function() {
|
1772
|
+
return jspb.Message.getField(this, 5) != null;
|
1773
|
+
};
|
1774
|
+
|
1775
|
+
|
1776
|
+
/**
|
1777
|
+
* optional string image = 6;
|
1778
|
+
* @return {string}
|
1779
|
+
*/
|
1780
|
+
proto.cashback.CashbackItem.prototype.getImage = function() {
|
1781
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1782
|
+
};
|
1783
|
+
|
1784
|
+
|
1785
|
+
/**
|
1786
|
+
* @param {string} value
|
1787
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1788
|
+
*/
|
1789
|
+
proto.cashback.CashbackItem.prototype.setImage = function(value) {
|
1790
|
+
return jspb.Message.setField(this, 6, value);
|
1791
|
+
};
|
1792
|
+
|
1793
|
+
|
1794
|
+
/**
|
1795
|
+
* Clears the field making it undefined.
|
1796
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1797
|
+
*/
|
1798
|
+
proto.cashback.CashbackItem.prototype.clearImage = function() {
|
1799
|
+
return jspb.Message.setField(this, 6, undefined);
|
1800
|
+
};
|
1801
|
+
|
1802
|
+
|
1803
|
+
/**
|
1804
|
+
* Returns whether this field is set.
|
1805
|
+
* @return {boolean}
|
1806
|
+
*/
|
1807
|
+
proto.cashback.CashbackItem.prototype.hasImage = function() {
|
1808
|
+
return jspb.Message.getField(this, 6) != null;
|
1809
|
+
};
|
1810
|
+
|
1811
|
+
|
1812
|
+
/**
|
1813
|
+
* optional int32 level = 7;
|
1814
|
+
* @return {number}
|
1815
|
+
*/
|
1816
|
+
proto.cashback.CashbackItem.prototype.getLevel = function() {
|
1817
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
1818
|
+
};
|
1819
|
+
|
1820
|
+
|
1821
|
+
/**
|
1822
|
+
* @param {number} value
|
1823
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1824
|
+
*/
|
1825
|
+
proto.cashback.CashbackItem.prototype.setLevel = function(value) {
|
1826
|
+
return jspb.Message.setField(this, 7, value);
|
1827
|
+
};
|
1828
|
+
|
1829
|
+
|
1830
|
+
/**
|
1831
|
+
* Clears the field making it undefined.
|
1832
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1833
|
+
*/
|
1834
|
+
proto.cashback.CashbackItem.prototype.clearLevel = function() {
|
1835
|
+
return jspb.Message.setField(this, 7, undefined);
|
1836
|
+
};
|
1837
|
+
|
1838
|
+
|
1839
|
+
/**
|
1840
|
+
* Returns whether this field is set.
|
1841
|
+
* @return {boolean}
|
1842
|
+
*/
|
1843
|
+
proto.cashback.CashbackItem.prototype.hasLevel = function() {
|
1844
|
+
return jspb.Message.getField(this, 7) != null;
|
1845
|
+
};
|
1846
|
+
|
1847
|
+
|
1848
|
+
/**
|
1849
|
+
* optional string type = 8;
|
1850
|
+
* @return {string}
|
1851
|
+
*/
|
1852
|
+
proto.cashback.CashbackItem.prototype.getType = function() {
|
1853
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
1854
|
+
};
|
1855
|
+
|
1856
|
+
|
1857
|
+
/**
|
1858
|
+
* @param {string} value
|
1859
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1860
|
+
*/
|
1861
|
+
proto.cashback.CashbackItem.prototype.setType = function(value) {
|
1862
|
+
return jspb.Message.setField(this, 8, value);
|
1863
|
+
};
|
1864
|
+
|
1865
|
+
|
1866
|
+
/**
|
1867
|
+
* Clears the field making it undefined.
|
1868
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1869
|
+
*/
|
1870
|
+
proto.cashback.CashbackItem.prototype.clearType = function() {
|
1871
|
+
return jspb.Message.setField(this, 8, undefined);
|
1872
|
+
};
|
1873
|
+
|
1874
|
+
|
1875
|
+
/**
|
1876
|
+
* Returns whether this field is set.
|
1877
|
+
* @return {boolean}
|
1878
|
+
*/
|
1879
|
+
proto.cashback.CashbackItem.prototype.hasType = function() {
|
1880
|
+
return jspb.Message.getField(this, 8) != null;
|
1881
|
+
};
|
1882
|
+
|
1883
|
+
|
1884
|
+
/**
|
1885
|
+
* optional string checking_at = 9;
|
1886
|
+
* @return {string}
|
1887
|
+
*/
|
1888
|
+
proto.cashback.CashbackItem.prototype.getCheckingAt = function() {
|
1889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
1890
|
+
};
|
1891
|
+
|
1892
|
+
|
1893
|
+
/**
|
1894
|
+
* @param {string} value
|
1895
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1896
|
+
*/
|
1897
|
+
proto.cashback.CashbackItem.prototype.setCheckingAt = function(value) {
|
1898
|
+
return jspb.Message.setField(this, 9, value);
|
1899
|
+
};
|
1900
|
+
|
1901
|
+
|
1902
|
+
/**
|
1903
|
+
* Clears the field making it undefined.
|
1904
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1905
|
+
*/
|
1906
|
+
proto.cashback.CashbackItem.prototype.clearCheckingAt = function() {
|
1907
|
+
return jspb.Message.setField(this, 9, undefined);
|
1908
|
+
};
|
1909
|
+
|
1910
|
+
|
1911
|
+
/**
|
1912
|
+
* Returns whether this field is set.
|
1913
|
+
* @return {boolean}
|
1914
|
+
*/
|
1915
|
+
proto.cashback.CashbackItem.prototype.hasCheckingAt = function() {
|
1916
|
+
return jspb.Message.getField(this, 9) != null;
|
1917
|
+
};
|
1918
|
+
|
1919
|
+
|
1920
|
+
|
1921
|
+
/**
|
1922
|
+
* Oneof group definitions for this message. Each group defines the field
|
1923
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
1924
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
1925
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
1926
|
+
* @private {!Array<!Array<number>>}
|
1927
|
+
* @const
|
1928
|
+
*/
|
1929
|
+
proto.cashback.CashbackRequest.oneofGroups_ = [[1,2]];
|
1930
|
+
|
1931
|
+
/**
|
1932
|
+
* @enum {number}
|
1933
|
+
*/
|
1934
|
+
proto.cashback.CashbackRequest.RequestCase = {
|
1935
|
+
REQUEST_NOT_SET: 0,
|
1936
|
+
CASHBACK_DATA: 1,
|
1937
|
+
FILE: 2
|
1938
|
+
};
|
1939
|
+
|
1940
|
+
/**
|
1941
|
+
* @return {proto.cashback.CashbackRequest.RequestCase}
|
1942
|
+
*/
|
1943
|
+
proto.cashback.CashbackRequest.prototype.getRequestCase = function() {
|
1944
|
+
return /** @type {proto.cashback.CashbackRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.cashback.CashbackRequest.oneofGroups_[0]));
|
1945
|
+
};
|
1946
|
+
|
1947
|
+
|
1948
|
+
|
1949
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1950
|
+
/**
|
1951
|
+
* Creates an object representation of this proto.
|
1952
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1953
|
+
* Optional fields that are not set will be set to undefined.
|
1954
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1955
|
+
* For the list of reserved names please see:
|
1956
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1957
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1958
|
+
* JSPB instance for transitional soy proto support:
|
1959
|
+
* http://goto/soy-param-migration
|
1960
|
+
* @return {!Object}
|
1961
|
+
*/
|
1962
|
+
proto.cashback.CashbackRequest.prototype.toObject = function(opt_includeInstance) {
|
1963
|
+
return proto.cashback.CashbackRequest.toObject(opt_includeInstance, this);
|
1964
|
+
};
|
1965
|
+
|
1966
|
+
|
1967
|
+
/**
|
1968
|
+
* Static version of the {@see toObject} method.
|
1969
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1970
|
+
* the JSPB instance for transitional soy proto support:
|
1971
|
+
* http://goto/soy-param-migration
|
1972
|
+
* @param {!proto.cashback.CashbackRequest} msg The msg instance to transform.
|
1973
|
+
* @return {!Object}
|
1974
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1975
|
+
*/
|
1976
|
+
proto.cashback.CashbackRequest.toObject = function(includeInstance, msg) {
|
1977
|
+
var f, obj = {
|
1978
|
+
cashbackData: (f = msg.getCashbackData()) && proto.cashback.CashbackItemRequest.toObject(includeInstance, f),
|
1979
|
+
file: (f = msg.getFile()) && proto.cashback.File.toObject(includeInstance, f)
|
1980
|
+
};
|
1981
|
+
|
1982
|
+
if (includeInstance) {
|
1983
|
+
obj.$jspbMessageInstance = msg;
|
1984
|
+
}
|
1985
|
+
return obj;
|
1986
|
+
};
|
1987
|
+
}
|
1988
|
+
|
1989
|
+
|
1990
|
+
/**
|
1991
|
+
* Deserializes binary data (in protobuf wire format).
|
1992
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1993
|
+
* @return {!proto.cashback.CashbackRequest}
|
1994
|
+
*/
|
1995
|
+
proto.cashback.CashbackRequest.deserializeBinary = function(bytes) {
|
1996
|
+
var reader = new jspb.BinaryReader(bytes);
|
1997
|
+
var msg = new proto.cashback.CashbackRequest;
|
1998
|
+
return proto.cashback.CashbackRequest.deserializeBinaryFromReader(msg, reader);
|
1999
|
+
};
|
2000
|
+
|
2001
|
+
|
2002
|
+
/**
|
2003
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2004
|
+
* given reader into the given message object.
|
2005
|
+
* @param {!proto.cashback.CashbackRequest} msg The message object to deserialize into.
|
2006
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2007
|
+
* @return {!proto.cashback.CashbackRequest}
|
2008
|
+
*/
|
2009
|
+
proto.cashback.CashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2010
|
+
while (reader.nextField()) {
|
2011
|
+
if (reader.isEndGroup()) {
|
2012
|
+
break;
|
2013
|
+
}
|
2014
|
+
var field = reader.getFieldNumber();
|
2015
|
+
switch (field) {
|
2016
|
+
case 1:
|
2017
|
+
var value = new proto.cashback.CashbackItemRequest;
|
2018
|
+
reader.readMessage(value,proto.cashback.CashbackItemRequest.deserializeBinaryFromReader);
|
2019
|
+
msg.setCashbackData(value);
|
2020
|
+
break;
|
2021
|
+
case 2:
|
2022
|
+
var value = new proto.cashback.File;
|
2023
|
+
reader.readMessage(value,proto.cashback.File.deserializeBinaryFromReader);
|
2024
|
+
msg.setFile(value);
|
2025
|
+
break;
|
2026
|
+
default:
|
2027
|
+
reader.skipField();
|
2028
|
+
break;
|
2029
|
+
}
|
2030
|
+
}
|
2031
|
+
return msg;
|
2032
|
+
};
|
2033
|
+
|
2034
|
+
|
2035
|
+
/**
|
2036
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2037
|
+
* @return {!Uint8Array}
|
2038
|
+
*/
|
2039
|
+
proto.cashback.CashbackRequest.prototype.serializeBinary = function() {
|
2040
|
+
var writer = new jspb.BinaryWriter();
|
2041
|
+
proto.cashback.CashbackRequest.serializeBinaryToWriter(this, writer);
|
2042
|
+
return writer.getResultBuffer();
|
2043
|
+
};
|
2044
|
+
|
2045
|
+
|
2046
|
+
/**
|
2047
|
+
* Serializes the given message to binary data (in protobuf wire
|
2048
|
+
* format), writing to the given BinaryWriter.
|
2049
|
+
* @param {!proto.cashback.CashbackRequest} message
|
2050
|
+
* @param {!jspb.BinaryWriter} writer
|
2051
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2052
|
+
*/
|
2053
|
+
proto.cashback.CashbackRequest.serializeBinaryToWriter = function(message, writer) {
|
2054
|
+
var f = undefined;
|
2055
|
+
f = message.getCashbackData();
|
2056
|
+
if (f != null) {
|
2057
|
+
writer.writeMessage(
|
2058
|
+
1,
|
2059
|
+
f,
|
2060
|
+
proto.cashback.CashbackItemRequest.serializeBinaryToWriter
|
2061
|
+
);
|
2062
|
+
}
|
2063
|
+
f = message.getFile();
|
2064
|
+
if (f != null) {
|
2065
|
+
writer.writeMessage(
|
2066
|
+
2,
|
2067
|
+
f,
|
2068
|
+
proto.cashback.File.serializeBinaryToWriter
|
2069
|
+
);
|
2070
|
+
}
|
2071
|
+
};
|
2072
|
+
|
2073
|
+
|
2074
|
+
/**
|
2075
|
+
* optional CashbackItemRequest cashback_data = 1;
|
2076
|
+
* @return {?proto.cashback.CashbackItemRequest}
|
2077
|
+
*/
|
2078
|
+
proto.cashback.CashbackRequest.prototype.getCashbackData = function() {
|
2079
|
+
return /** @type{?proto.cashback.CashbackItemRequest} */ (
|
2080
|
+
jspb.Message.getWrapperField(this, proto.cashback.CashbackItemRequest, 1));
|
2081
|
+
};
|
2082
|
+
|
2083
|
+
|
2084
|
+
/**
|
2085
|
+
* @param {?proto.cashback.CashbackItemRequest|undefined} value
|
2086
|
+
* @return {!proto.cashback.CashbackRequest} returns this
|
2087
|
+
*/
|
2088
|
+
proto.cashback.CashbackRequest.prototype.setCashbackData = function(value) {
|
2089
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.cashback.CashbackRequest.oneofGroups_[0], value);
|
2090
|
+
};
|
2091
|
+
|
2092
|
+
|
2093
|
+
/**
|
2094
|
+
* Clears the message field making it undefined.
|
2095
|
+
* @return {!proto.cashback.CashbackRequest} returns this
|
2096
|
+
*/
|
2097
|
+
proto.cashback.CashbackRequest.prototype.clearCashbackData = function() {
|
2098
|
+
return this.setCashbackData(undefined);
|
2099
|
+
};
|
2100
|
+
|
2101
|
+
|
2102
|
+
/**
|
2103
|
+
* Returns whether this field is set.
|
2104
|
+
* @return {boolean}
|
2105
|
+
*/
|
2106
|
+
proto.cashback.CashbackRequest.prototype.hasCashbackData = function() {
|
2107
|
+
return jspb.Message.getField(this, 1) != null;
|
2108
|
+
};
|
2109
|
+
|
2110
|
+
|
2111
|
+
/**
|
2112
|
+
* optional File file = 2;
|
2113
|
+
* @return {?proto.cashback.File}
|
2114
|
+
*/
|
2115
|
+
proto.cashback.CashbackRequest.prototype.getFile = function() {
|
2116
|
+
return /** @type{?proto.cashback.File} */ (
|
2117
|
+
jspb.Message.getWrapperField(this, proto.cashback.File, 2));
|
2118
|
+
};
|
2119
|
+
|
2120
|
+
|
2121
|
+
/**
|
2122
|
+
* @param {?proto.cashback.File|undefined} value
|
2123
|
+
* @return {!proto.cashback.CashbackRequest} returns this
|
2124
|
+
*/
|
2125
|
+
proto.cashback.CashbackRequest.prototype.setFile = function(value) {
|
2126
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.cashback.CashbackRequest.oneofGroups_[0], value);
|
2127
|
+
};
|
2128
|
+
|
2129
|
+
|
2130
|
+
/**
|
2131
|
+
* Clears the message field making it undefined.
|
2132
|
+
* @return {!proto.cashback.CashbackRequest} returns this
|
2133
|
+
*/
|
2134
|
+
proto.cashback.CashbackRequest.prototype.clearFile = function() {
|
2135
|
+
return this.setFile(undefined);
|
2136
|
+
};
|
2137
|
+
|
2138
|
+
|
2139
|
+
/**
|
2140
|
+
* Returns whether this field is set.
|
2141
|
+
* @return {boolean}
|
2142
|
+
*/
|
2143
|
+
proto.cashback.CashbackRequest.prototype.hasFile = function() {
|
2144
|
+
return jspb.Message.getField(this, 2) != null;
|
2145
|
+
};
|
2146
|
+
|
2147
|
+
|
2148
|
+
|
2149
|
+
|
2150
|
+
|
2151
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2152
|
+
/**
|
2153
|
+
* Creates an object representation of this proto.
|
2154
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2155
|
+
* Optional fields that are not set will be set to undefined.
|
2156
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2157
|
+
* For the list of reserved names please see:
|
2158
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2159
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2160
|
+
* JSPB instance for transitional soy proto support:
|
2161
|
+
* http://goto/soy-param-migration
|
2162
|
+
* @return {!Object}
|
2163
|
+
*/
|
2164
|
+
proto.cashback.CashbackItemRequest.prototype.toObject = function(opt_includeInstance) {
|
2165
|
+
return proto.cashback.CashbackItemRequest.toObject(opt_includeInstance, this);
|
2166
|
+
};
|
2167
|
+
|
2168
|
+
|
2169
|
+
/**
|
2170
|
+
* Static version of the {@see toObject} method.
|
2171
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2172
|
+
* the JSPB instance for transitional soy proto support:
|
2173
|
+
* http://goto/soy-param-migration
|
2174
|
+
* @param {!proto.cashback.CashbackItemRequest} msg The msg instance to transform.
|
2175
|
+
* @return {!Object}
|
2176
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2177
|
+
*/
|
2178
|
+
proto.cashback.CashbackItemRequest.toObject = function(includeInstance, msg) {
|
2179
|
+
var f, obj = {
|
2180
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2181
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2182
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2183
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
2184
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
2185
|
+
level: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
2186
|
+
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
2187
|
+
checkingAt: jspb.Message.getFieldWithDefault(msg, 9, "")
|
2188
|
+
};
|
2189
|
+
|
2190
|
+
if (includeInstance) {
|
2191
|
+
obj.$jspbMessageInstance = msg;
|
2192
|
+
}
|
2193
|
+
return obj;
|
2194
|
+
};
|
2195
|
+
}
|
2196
|
+
|
2197
|
+
|
2198
|
+
/**
|
2199
|
+
* Deserializes binary data (in protobuf wire format).
|
2200
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2201
|
+
* @return {!proto.cashback.CashbackItemRequest}
|
2202
|
+
*/
|
2203
|
+
proto.cashback.CashbackItemRequest.deserializeBinary = function(bytes) {
|
2204
|
+
var reader = new jspb.BinaryReader(bytes);
|
2205
|
+
var msg = new proto.cashback.CashbackItemRequest;
|
2206
|
+
return proto.cashback.CashbackItemRequest.deserializeBinaryFromReader(msg, reader);
|
2207
|
+
};
|
2208
|
+
|
2209
|
+
|
2210
|
+
/**
|
2211
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2212
|
+
* given reader into the given message object.
|
2213
|
+
* @param {!proto.cashback.CashbackItemRequest} msg The message object to deserialize into.
|
2214
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2215
|
+
* @return {!proto.cashback.CashbackItemRequest}
|
2216
|
+
*/
|
2217
|
+
proto.cashback.CashbackItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2218
|
+
while (reader.nextField()) {
|
2219
|
+
if (reader.isEndGroup()) {
|
2220
|
+
break;
|
2221
|
+
}
|
2222
|
+
var field = reader.getFieldNumber();
|
2223
|
+
switch (field) {
|
2224
|
+
case 1:
|
2225
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2226
|
+
msg.setId(value);
|
2227
|
+
break;
|
2228
|
+
case 2:
|
2229
|
+
var value = /** @type {string} */ (reader.readString());
|
2230
|
+
msg.setTitle(value);
|
2231
|
+
break;
|
2232
|
+
case 4:
|
2233
|
+
var value = /** @type {string} */ (reader.readString());
|
2234
|
+
msg.setDescription(value);
|
2235
|
+
break;
|
2236
|
+
case 5:
|
2237
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2238
|
+
msg.setIsActive(value);
|
2239
|
+
break;
|
2240
|
+
case 6:
|
2241
|
+
var value = /** @type {string} */ (reader.readString());
|
2242
|
+
msg.setImage(value);
|
2243
|
+
break;
|
2244
|
+
case 7:
|
2245
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2246
|
+
msg.setLevel(value);
|
2247
|
+
break;
|
2248
|
+
case 8:
|
2249
|
+
var value = /** @type {string} */ (reader.readString());
|
2250
|
+
msg.setType(value);
|
2251
|
+
break;
|
2252
|
+
case 9:
|
2253
|
+
var value = /** @type {string} */ (reader.readString());
|
2254
|
+
msg.setCheckingAt(value);
|
2255
|
+
break;
|
2256
|
+
default:
|
2257
|
+
reader.skipField();
|
2258
|
+
break;
|
2259
|
+
}
|
2260
|
+
}
|
2261
|
+
return msg;
|
2262
|
+
};
|
2263
|
+
|
2264
|
+
|
2265
|
+
/**
|
2266
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2267
|
+
* @return {!Uint8Array}
|
2268
|
+
*/
|
2269
|
+
proto.cashback.CashbackItemRequest.prototype.serializeBinary = function() {
|
2270
|
+
var writer = new jspb.BinaryWriter();
|
2271
|
+
proto.cashback.CashbackItemRequest.serializeBinaryToWriter(this, writer);
|
2272
|
+
return writer.getResultBuffer();
|
2273
|
+
};
|
2274
|
+
|
2275
|
+
|
2276
|
+
/**
|
2277
|
+
* Serializes the given message to binary data (in protobuf wire
|
2278
|
+
* format), writing to the given BinaryWriter.
|
2279
|
+
* @param {!proto.cashback.CashbackItemRequest} message
|
2280
|
+
* @param {!jspb.BinaryWriter} writer
|
2281
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2282
|
+
*/
|
2283
|
+
proto.cashback.CashbackItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2284
|
+
var f = undefined;
|
2285
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2286
|
+
if (f != null) {
|
2287
|
+
writer.writeInt32(
|
2288
|
+
1,
|
2289
|
+
f
|
2290
|
+
);
|
2291
|
+
}
|
2292
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2293
|
+
if (f != null) {
|
2294
|
+
writer.writeString(
|
2295
|
+
2,
|
2296
|
+
f
|
2297
|
+
);
|
2298
|
+
}
|
2299
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2300
|
+
if (f != null) {
|
2301
|
+
writer.writeString(
|
2302
|
+
4,
|
2303
|
+
f
|
2304
|
+
);
|
2305
|
+
}
|
2306
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
2307
|
+
if (f != null) {
|
2308
|
+
writer.writeInt32(
|
2309
|
+
5,
|
2310
|
+
f
|
2311
|
+
);
|
2312
|
+
}
|
2313
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
2314
|
+
if (f != null) {
|
2315
|
+
writer.writeString(
|
2316
|
+
6,
|
2317
|
+
f
|
2318
|
+
);
|
2319
|
+
}
|
2320
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
2321
|
+
if (f != null) {
|
2322
|
+
writer.writeInt32(
|
2323
|
+
7,
|
2324
|
+
f
|
2325
|
+
);
|
2326
|
+
}
|
2327
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
2328
|
+
if (f != null) {
|
2329
|
+
writer.writeString(
|
2330
|
+
8,
|
2331
|
+
f
|
2332
|
+
);
|
2333
|
+
}
|
2334
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
2335
|
+
if (f != null) {
|
2336
|
+
writer.writeString(
|
2337
|
+
9,
|
2338
|
+
f
|
2339
|
+
);
|
2340
|
+
}
|
2341
|
+
};
|
2342
|
+
|
2343
|
+
|
2344
|
+
/**
|
2345
|
+
* optional int32 id = 1;
|
2346
|
+
* @return {number}
|
2347
|
+
*/
|
2348
|
+
proto.cashback.CashbackItemRequest.prototype.getId = function() {
|
2349
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2350
|
+
};
|
2351
|
+
|
2352
|
+
|
2353
|
+
/**
|
2354
|
+
* @param {number} value
|
2355
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2356
|
+
*/
|
2357
|
+
proto.cashback.CashbackItemRequest.prototype.setId = function(value) {
|
2358
|
+
return jspb.Message.setField(this, 1, value);
|
2359
|
+
};
|
2360
|
+
|
2361
|
+
|
2362
|
+
/**
|
2363
|
+
* Clears the field making it undefined.
|
2364
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2365
|
+
*/
|
2366
|
+
proto.cashback.CashbackItemRequest.prototype.clearId = function() {
|
2367
|
+
return jspb.Message.setField(this, 1, undefined);
|
2368
|
+
};
|
2369
|
+
|
2370
|
+
|
2371
|
+
/**
|
2372
|
+
* Returns whether this field is set.
|
2373
|
+
* @return {boolean}
|
2374
|
+
*/
|
2375
|
+
proto.cashback.CashbackItemRequest.prototype.hasId = function() {
|
2376
|
+
return jspb.Message.getField(this, 1) != null;
|
2377
|
+
};
|
2378
|
+
|
2379
|
+
|
2380
|
+
/**
|
2381
|
+
* optional string title = 2;
|
2382
|
+
* @return {string}
|
2383
|
+
*/
|
2384
|
+
proto.cashback.CashbackItemRequest.prototype.getTitle = function() {
|
2385
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2386
|
+
};
|
2387
|
+
|
2388
|
+
|
2389
|
+
/**
|
2390
|
+
* @param {string} value
|
2391
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2392
|
+
*/
|
2393
|
+
proto.cashback.CashbackItemRequest.prototype.setTitle = function(value) {
|
2394
|
+
return jspb.Message.setField(this, 2, value);
|
2395
|
+
};
|
2396
|
+
|
2397
|
+
|
2398
|
+
/**
|
2399
|
+
* Clears the field making it undefined.
|
2400
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2401
|
+
*/
|
2402
|
+
proto.cashback.CashbackItemRequest.prototype.clearTitle = function() {
|
2403
|
+
return jspb.Message.setField(this, 2, undefined);
|
2404
|
+
};
|
2405
|
+
|
2406
|
+
|
2407
|
+
/**
|
2408
|
+
* Returns whether this field is set.
|
2409
|
+
* @return {boolean}
|
2410
|
+
*/
|
2411
|
+
proto.cashback.CashbackItemRequest.prototype.hasTitle = function() {
|
2412
|
+
return jspb.Message.getField(this, 2) != null;
|
2413
|
+
};
|
2414
|
+
|
2415
|
+
|
2416
|
+
/**
|
2417
|
+
* optional string description = 4;
|
2418
|
+
* @return {string}
|
2419
|
+
*/
|
2420
|
+
proto.cashback.CashbackItemRequest.prototype.getDescription = function() {
|
2421
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2422
|
+
};
|
2423
|
+
|
2424
|
+
|
2425
|
+
/**
|
2426
|
+
* @param {string} value
|
2427
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2428
|
+
*/
|
2429
|
+
proto.cashback.CashbackItemRequest.prototype.setDescription = function(value) {
|
2430
|
+
return jspb.Message.setField(this, 4, value);
|
2431
|
+
};
|
2432
|
+
|
2433
|
+
|
2434
|
+
/**
|
2435
|
+
* Clears the field making it undefined.
|
2436
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2437
|
+
*/
|
2438
|
+
proto.cashback.CashbackItemRequest.prototype.clearDescription = function() {
|
2439
|
+
return jspb.Message.setField(this, 4, undefined);
|
2440
|
+
};
|
2441
|
+
|
2442
|
+
|
2443
|
+
/**
|
2444
|
+
* Returns whether this field is set.
|
2445
|
+
* @return {boolean}
|
2446
|
+
*/
|
2447
|
+
proto.cashback.CashbackItemRequest.prototype.hasDescription = function() {
|
2448
|
+
return jspb.Message.getField(this, 4) != null;
|
2449
|
+
};
|
2450
|
+
|
2451
|
+
|
2452
|
+
/**
|
2453
|
+
* optional int32 is_active = 5;
|
2454
|
+
* @return {number}
|
2455
|
+
*/
|
2456
|
+
proto.cashback.CashbackItemRequest.prototype.getIsActive = function() {
|
2457
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2458
|
+
};
|
2459
|
+
|
2460
|
+
|
2461
|
+
/**
|
2462
|
+
* @param {number} value
|
2463
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2464
|
+
*/
|
2465
|
+
proto.cashback.CashbackItemRequest.prototype.setIsActive = function(value) {
|
2466
|
+
return jspb.Message.setField(this, 5, value);
|
2467
|
+
};
|
2468
|
+
|
2469
|
+
|
2470
|
+
/**
|
2471
|
+
* Clears the field making it undefined.
|
2472
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2473
|
+
*/
|
2474
|
+
proto.cashback.CashbackItemRequest.prototype.clearIsActive = function() {
|
2475
|
+
return jspb.Message.setField(this, 5, undefined);
|
2476
|
+
};
|
2477
|
+
|
2478
|
+
|
2479
|
+
/**
|
2480
|
+
* Returns whether this field is set.
|
2481
|
+
* @return {boolean}
|
2482
|
+
*/
|
2483
|
+
proto.cashback.CashbackItemRequest.prototype.hasIsActive = function() {
|
2484
|
+
return jspb.Message.getField(this, 5) != null;
|
2485
|
+
};
|
2486
|
+
|
2487
|
+
|
2488
|
+
/**
|
2489
|
+
* optional string image = 6;
|
2490
|
+
* @return {string}
|
2491
|
+
*/
|
2492
|
+
proto.cashback.CashbackItemRequest.prototype.getImage = function() {
|
2493
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
2494
|
+
};
|
2495
|
+
|
2496
|
+
|
2497
|
+
/**
|
2498
|
+
* @param {string} value
|
2499
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2500
|
+
*/
|
2501
|
+
proto.cashback.CashbackItemRequest.prototype.setImage = function(value) {
|
2502
|
+
return jspb.Message.setField(this, 6, value);
|
2503
|
+
};
|
2504
|
+
|
2505
|
+
|
2506
|
+
/**
|
2507
|
+
* Clears the field making it undefined.
|
2508
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2509
|
+
*/
|
2510
|
+
proto.cashback.CashbackItemRequest.prototype.clearImage = function() {
|
2511
|
+
return jspb.Message.setField(this, 6, undefined);
|
2512
|
+
};
|
2513
|
+
|
2514
|
+
|
2515
|
+
/**
|
2516
|
+
* Returns whether this field is set.
|
2517
|
+
* @return {boolean}
|
2518
|
+
*/
|
2519
|
+
proto.cashback.CashbackItemRequest.prototype.hasImage = function() {
|
2520
|
+
return jspb.Message.getField(this, 6) != null;
|
2521
|
+
};
|
2522
|
+
|
2523
|
+
|
2524
|
+
/**
|
2525
|
+
* optional int32 level = 7;
|
2526
|
+
* @return {number}
|
2527
|
+
*/
|
2528
|
+
proto.cashback.CashbackItemRequest.prototype.getLevel = function() {
|
2529
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
2530
|
+
};
|
2531
|
+
|
2532
|
+
|
2533
|
+
/**
|
2534
|
+
* @param {number} value
|
2535
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2536
|
+
*/
|
2537
|
+
proto.cashback.CashbackItemRequest.prototype.setLevel = function(value) {
|
2538
|
+
return jspb.Message.setField(this, 7, value);
|
2539
|
+
};
|
2540
|
+
|
2541
|
+
|
2542
|
+
/**
|
2543
|
+
* Clears the field making it undefined.
|
2544
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2545
|
+
*/
|
2546
|
+
proto.cashback.CashbackItemRequest.prototype.clearLevel = function() {
|
2547
|
+
return jspb.Message.setField(this, 7, undefined);
|
2548
|
+
};
|
2549
|
+
|
2550
|
+
|
2551
|
+
/**
|
2552
|
+
* Returns whether this field is set.
|
2553
|
+
* @return {boolean}
|
2554
|
+
*/
|
2555
|
+
proto.cashback.CashbackItemRequest.prototype.hasLevel = function() {
|
2556
|
+
return jspb.Message.getField(this, 7) != null;
|
2557
|
+
};
|
2558
|
+
|
2559
|
+
|
2560
|
+
/**
|
2561
|
+
* optional string type = 8;
|
2562
|
+
* @return {string}
|
2563
|
+
*/
|
2564
|
+
proto.cashback.CashbackItemRequest.prototype.getType = function() {
|
2565
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
2566
|
+
};
|
2567
|
+
|
2568
|
+
|
2569
|
+
/**
|
2570
|
+
* @param {string} value
|
2571
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2572
|
+
*/
|
2573
|
+
proto.cashback.CashbackItemRequest.prototype.setType = function(value) {
|
2574
|
+
return jspb.Message.setField(this, 8, value);
|
2575
|
+
};
|
2576
|
+
|
2577
|
+
|
2578
|
+
/**
|
2579
|
+
* Clears the field making it undefined.
|
2580
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2581
|
+
*/
|
2582
|
+
proto.cashback.CashbackItemRequest.prototype.clearType = function() {
|
2583
|
+
return jspb.Message.setField(this, 8, undefined);
|
2584
|
+
};
|
2585
|
+
|
2586
|
+
|
2587
|
+
/**
|
2588
|
+
* Returns whether this field is set.
|
2589
|
+
* @return {boolean}
|
2590
|
+
*/
|
2591
|
+
proto.cashback.CashbackItemRequest.prototype.hasType = function() {
|
2592
|
+
return jspb.Message.getField(this, 8) != null;
|
2593
|
+
};
|
2594
|
+
|
2595
|
+
|
2596
|
+
/**
|
2597
|
+
* optional string checking_at = 9;
|
2598
|
+
* @return {string}
|
2599
|
+
*/
|
2600
|
+
proto.cashback.CashbackItemRequest.prototype.getCheckingAt = function() {
|
2601
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
2602
|
+
};
|
2603
|
+
|
2604
|
+
|
2605
|
+
/**
|
2606
|
+
* @param {string} value
|
2607
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2608
|
+
*/
|
2609
|
+
proto.cashback.CashbackItemRequest.prototype.setCheckingAt = function(value) {
|
2610
|
+
return jspb.Message.setField(this, 9, value);
|
2611
|
+
};
|
2612
|
+
|
2613
|
+
|
2614
|
+
/**
|
2615
|
+
* Clears the field making it undefined.
|
2616
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
2617
|
+
*/
|
2618
|
+
proto.cashback.CashbackItemRequest.prototype.clearCheckingAt = function() {
|
2619
|
+
return jspb.Message.setField(this, 9, undefined);
|
2620
|
+
};
|
2621
|
+
|
2622
|
+
|
2623
|
+
/**
|
2624
|
+
* Returns whether this field is set.
|
2625
|
+
* @return {boolean}
|
2626
|
+
*/
|
2627
|
+
proto.cashback.CashbackItemRequest.prototype.hasCheckingAt = function() {
|
2628
|
+
return jspb.Message.getField(this, 9) != null;
|
2629
|
+
};
|
2630
|
+
|
2631
|
+
|
2632
|
+
|
2633
|
+
|
2634
|
+
|
2635
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2636
|
+
/**
|
2637
|
+
* Creates an object representation of this proto.
|
2638
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2639
|
+
* Optional fields that are not set will be set to undefined.
|
2640
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2641
|
+
* For the list of reserved names please see:
|
2642
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2643
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2644
|
+
* JSPB instance for transitional soy proto support:
|
2645
|
+
* http://goto/soy-param-migration
|
2646
|
+
* @return {!Object}
|
2647
|
+
*/
|
2648
|
+
proto.cashback.GetCashbackRequest.prototype.toObject = function(opt_includeInstance) {
|
2649
|
+
return proto.cashback.GetCashbackRequest.toObject(opt_includeInstance, this);
|
2650
|
+
};
|
2651
|
+
|
2652
|
+
|
2653
|
+
/**
|
2654
|
+
* Static version of the {@see toObject} method.
|
2655
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2656
|
+
* the JSPB instance for transitional soy proto support:
|
2657
|
+
* http://goto/soy-param-migration
|
2658
|
+
* @param {!proto.cashback.GetCashbackRequest} msg The msg instance to transform.
|
2659
|
+
* @return {!Object}
|
2660
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2661
|
+
*/
|
2662
|
+
proto.cashback.GetCashbackRequest.toObject = function(includeInstance, msg) {
|
2663
|
+
var f, obj = {
|
2664
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
2665
|
+
};
|
2666
|
+
|
2667
|
+
if (includeInstance) {
|
2668
|
+
obj.$jspbMessageInstance = msg;
|
2669
|
+
}
|
2670
|
+
return obj;
|
2671
|
+
};
|
2672
|
+
}
|
2673
|
+
|
2674
|
+
|
2675
|
+
/**
|
2676
|
+
* Deserializes binary data (in protobuf wire format).
|
2677
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2678
|
+
* @return {!proto.cashback.GetCashbackRequest}
|
2679
|
+
*/
|
2680
|
+
proto.cashback.GetCashbackRequest.deserializeBinary = function(bytes) {
|
2681
|
+
var reader = new jspb.BinaryReader(bytes);
|
2682
|
+
var msg = new proto.cashback.GetCashbackRequest;
|
2683
|
+
return proto.cashback.GetCashbackRequest.deserializeBinaryFromReader(msg, reader);
|
2684
|
+
};
|
2685
|
+
|
2686
|
+
|
2687
|
+
/**
|
2688
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2689
|
+
* given reader into the given message object.
|
2690
|
+
* @param {!proto.cashback.GetCashbackRequest} msg The message object to deserialize into.
|
2691
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2692
|
+
* @return {!proto.cashback.GetCashbackRequest}
|
2693
|
+
*/
|
2694
|
+
proto.cashback.GetCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2695
|
+
while (reader.nextField()) {
|
2696
|
+
if (reader.isEndGroup()) {
|
2697
|
+
break;
|
2698
|
+
}
|
2699
|
+
var field = reader.getFieldNumber();
|
2700
|
+
switch (field) {
|
2701
|
+
case 1:
|
2702
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2703
|
+
msg.setId(value);
|
2704
|
+
break;
|
2705
|
+
default:
|
2706
|
+
reader.skipField();
|
2707
|
+
break;
|
2708
|
+
}
|
2709
|
+
}
|
2710
|
+
return msg;
|
2711
|
+
};
|
2712
|
+
|
2713
|
+
|
2714
|
+
/**
|
2715
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2716
|
+
* @return {!Uint8Array}
|
2717
|
+
*/
|
2718
|
+
proto.cashback.GetCashbackRequest.prototype.serializeBinary = function() {
|
2719
|
+
var writer = new jspb.BinaryWriter();
|
2720
|
+
proto.cashback.GetCashbackRequest.serializeBinaryToWriter(this, writer);
|
2721
|
+
return writer.getResultBuffer();
|
2722
|
+
};
|
2723
|
+
|
2724
|
+
|
2725
|
+
/**
|
2726
|
+
* Serializes the given message to binary data (in protobuf wire
|
2727
|
+
* format), writing to the given BinaryWriter.
|
2728
|
+
* @param {!proto.cashback.GetCashbackRequest} message
|
2729
|
+
* @param {!jspb.BinaryWriter} writer
|
2730
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2731
|
+
*/
|
2732
|
+
proto.cashback.GetCashbackRequest.serializeBinaryToWriter = function(message, writer) {
|
2733
|
+
var f = undefined;
|
2734
|
+
f = message.getId();
|
2735
|
+
if (f !== 0) {
|
2736
|
+
writer.writeInt32(
|
2737
|
+
1,
|
2738
|
+
f
|
2739
|
+
);
|
2740
|
+
}
|
2741
|
+
};
|
2742
|
+
|
2743
|
+
|
2744
|
+
/**
|
2745
|
+
* optional int32 id = 1;
|
2746
|
+
* @return {number}
|
2747
|
+
*/
|
2748
|
+
proto.cashback.GetCashbackRequest.prototype.getId = function() {
|
2749
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2750
|
+
};
|
2751
|
+
|
2752
|
+
|
2753
|
+
/**
|
2754
|
+
* @param {number} value
|
2755
|
+
* @return {!proto.cashback.GetCashbackRequest} returns this
|
2756
|
+
*/
|
2757
|
+
proto.cashback.GetCashbackRequest.prototype.setId = function(value) {
|
2758
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
2759
|
+
};
|
2760
|
+
|
2761
|
+
|
2762
|
+
|
2763
|
+
|
2764
|
+
|
2765
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2766
|
+
/**
|
2767
|
+
* Creates an object representation of this proto.
|
2768
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2769
|
+
* Optional fields that are not set will be set to undefined.
|
2770
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2771
|
+
* For the list of reserved names please see:
|
2772
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2773
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2774
|
+
* JSPB instance for transitional soy proto support:
|
2775
|
+
* http://goto/soy-param-migration
|
2776
|
+
* @return {!Object}
|
2777
|
+
*/
|
2778
|
+
proto.cashback.CashbackResponse.prototype.toObject = function(opt_includeInstance) {
|
2779
|
+
return proto.cashback.CashbackResponse.toObject(opt_includeInstance, this);
|
2780
|
+
};
|
2781
|
+
|
2782
|
+
|
2783
|
+
/**
|
2784
|
+
* Static version of the {@see toObject} method.
|
2785
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2786
|
+
* the JSPB instance for transitional soy proto support:
|
2787
|
+
* http://goto/soy-param-migration
|
2788
|
+
* @param {!proto.cashback.CashbackResponse} msg The msg instance to transform.
|
2789
|
+
* @return {!Object}
|
2790
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2791
|
+
*/
|
2792
|
+
proto.cashback.CashbackResponse.toObject = function(includeInstance, msg) {
|
2793
|
+
var f, obj = {
|
2794
|
+
data: (f = msg.getData()) && proto.cashback.CashbackItem.toObject(includeInstance, f)
|
2795
|
+
};
|
2796
|
+
|
2797
|
+
if (includeInstance) {
|
2798
|
+
obj.$jspbMessageInstance = msg;
|
2799
|
+
}
|
2800
|
+
return obj;
|
2801
|
+
};
|
2802
|
+
}
|
2803
|
+
|
2804
|
+
|
2805
|
+
/**
|
2806
|
+
* Deserializes binary data (in protobuf wire format).
|
2807
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2808
|
+
* @return {!proto.cashback.CashbackResponse}
|
2809
|
+
*/
|
2810
|
+
proto.cashback.CashbackResponse.deserializeBinary = function(bytes) {
|
2811
|
+
var reader = new jspb.BinaryReader(bytes);
|
2812
|
+
var msg = new proto.cashback.CashbackResponse;
|
2813
|
+
return proto.cashback.CashbackResponse.deserializeBinaryFromReader(msg, reader);
|
2814
|
+
};
|
2815
|
+
|
2816
|
+
|
2817
|
+
/**
|
2818
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2819
|
+
* given reader into the given message object.
|
2820
|
+
* @param {!proto.cashback.CashbackResponse} msg The message object to deserialize into.
|
2821
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2822
|
+
* @return {!proto.cashback.CashbackResponse}
|
2823
|
+
*/
|
2824
|
+
proto.cashback.CashbackResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2825
|
+
while (reader.nextField()) {
|
2826
|
+
if (reader.isEndGroup()) {
|
2827
|
+
break;
|
2828
|
+
}
|
2829
|
+
var field = reader.getFieldNumber();
|
2830
|
+
switch (field) {
|
2831
|
+
case 1:
|
2832
|
+
var value = new proto.cashback.CashbackItem;
|
2833
|
+
reader.readMessage(value,proto.cashback.CashbackItem.deserializeBinaryFromReader);
|
2834
|
+
msg.setData(value);
|
2835
|
+
break;
|
2836
|
+
default:
|
2837
|
+
reader.skipField();
|
2838
|
+
break;
|
2839
|
+
}
|
2840
|
+
}
|
2841
|
+
return msg;
|
2842
|
+
};
|
2843
|
+
|
2844
|
+
|
2845
|
+
/**
|
2846
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2847
|
+
* @return {!Uint8Array}
|
2848
|
+
*/
|
2849
|
+
proto.cashback.CashbackResponse.prototype.serializeBinary = function() {
|
2850
|
+
var writer = new jspb.BinaryWriter();
|
2851
|
+
proto.cashback.CashbackResponse.serializeBinaryToWriter(this, writer);
|
2852
|
+
return writer.getResultBuffer();
|
2853
|
+
};
|
2854
|
+
|
2855
|
+
|
2856
|
+
/**
|
2857
|
+
* Serializes the given message to binary data (in protobuf wire
|
2858
|
+
* format), writing to the given BinaryWriter.
|
2859
|
+
* @param {!proto.cashback.CashbackResponse} message
|
2860
|
+
* @param {!jspb.BinaryWriter} writer
|
2861
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2862
|
+
*/
|
2863
|
+
proto.cashback.CashbackResponse.serializeBinaryToWriter = function(message, writer) {
|
2864
|
+
var f = undefined;
|
2865
|
+
f = message.getData();
|
2866
|
+
if (f != null) {
|
2867
|
+
writer.writeMessage(
|
2868
|
+
1,
|
2869
|
+
f,
|
2870
|
+
proto.cashback.CashbackItem.serializeBinaryToWriter
|
2871
|
+
);
|
2872
|
+
}
|
2873
|
+
};
|
2874
|
+
|
2875
|
+
|
2876
|
+
/**
|
2877
|
+
* optional CashbackItem data = 1;
|
2878
|
+
* @return {?proto.cashback.CashbackItem}
|
2879
|
+
*/
|
2880
|
+
proto.cashback.CashbackResponse.prototype.getData = function() {
|
2881
|
+
return /** @type{?proto.cashback.CashbackItem} */ (
|
2882
|
+
jspb.Message.getWrapperField(this, proto.cashback.CashbackItem, 1));
|
2883
|
+
};
|
2884
|
+
|
2885
|
+
|
2886
|
+
/**
|
2887
|
+
* @param {?proto.cashback.CashbackItem|undefined} value
|
2888
|
+
* @return {!proto.cashback.CashbackResponse} returns this
|
2889
|
+
*/
|
2890
|
+
proto.cashback.CashbackResponse.prototype.setData = function(value) {
|
2891
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
2892
|
+
};
|
2893
|
+
|
2894
|
+
|
2895
|
+
/**
|
2896
|
+
* Clears the message field making it undefined.
|
2897
|
+
* @return {!proto.cashback.CashbackResponse} returns this
|
2898
|
+
*/
|
2899
|
+
proto.cashback.CashbackResponse.prototype.clearData = function() {
|
2900
|
+
return this.setData(undefined);
|
2901
|
+
};
|
2902
|
+
|
2903
|
+
|
2904
|
+
/**
|
2905
|
+
* Returns whether this field is set.
|
2906
|
+
* @return {boolean}
|
2907
|
+
*/
|
2908
|
+
proto.cashback.CashbackResponse.prototype.hasData = function() {
|
2909
|
+
return jspb.Message.getField(this, 1) != null;
|
2910
|
+
};
|
2911
|
+
|
2912
|
+
|
2913
|
+
|
2914
|
+
/**
|
2915
|
+
* List of repeated fields within this message type.
|
2916
|
+
* @private {!Array<number>}
|
2917
|
+
* @const
|
2918
|
+
*/
|
2919
|
+
proto.cashback.CashbackItemsResponse.repeatedFields_ = [1];
|
2920
|
+
|
2921
|
+
|
2922
|
+
|
2923
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2924
|
+
/**
|
2925
|
+
* Creates an object representation of this proto.
|
2926
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2927
|
+
* Optional fields that are not set will be set to undefined.
|
591
2928
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
592
2929
|
* For the list of reserved names please see:
|
593
2930
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
@@ -596,8 +2933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
596
2933
|
* http://goto/soy-param-migration
|
597
2934
|
* @return {!Object}
|
598
2935
|
*/
|
599
|
-
proto.cashback.
|
600
|
-
return proto.cashback.
|
2936
|
+
proto.cashback.CashbackItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2937
|
+
return proto.cashback.CashbackItemsResponse.toObject(opt_includeInstance, this);
|
601
2938
|
};
|
602
2939
|
|
603
2940
|
|
@@ -606,15 +2943,16 @@ proto.cashback.UserSearchRequest.prototype.toObject = function(opt_includeInstan
|
|
606
2943
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
607
2944
|
* the JSPB instance for transitional soy proto support:
|
608
2945
|
* http://goto/soy-param-migration
|
609
|
-
* @param {!proto.cashback.
|
2946
|
+
* @param {!proto.cashback.CashbackItemsResponse} msg The msg instance to transform.
|
610
2947
|
* @return {!Object}
|
611
2948
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
612
2949
|
*/
|
613
|
-
proto.cashback.
|
2950
|
+
proto.cashback.CashbackItemsResponse.toObject = function(includeInstance, msg) {
|
614
2951
|
var f, obj = {
|
615
|
-
|
616
|
-
|
617
|
-
|
2952
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2953
|
+
proto.cashback.CashbackItem.toObject, includeInstance),
|
2954
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2955
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
618
2956
|
};
|
619
2957
|
|
620
2958
|
if (includeInstance) {
|
@@ -628,23 +2966,23 @@ proto.cashback.UserSearchRequest.toObject = function(includeInstance, msg) {
|
|
628
2966
|
/**
|
629
2967
|
* Deserializes binary data (in protobuf wire format).
|
630
2968
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
631
|
-
* @return {!proto.cashback.
|
2969
|
+
* @return {!proto.cashback.CashbackItemsResponse}
|
632
2970
|
*/
|
633
|
-
proto.cashback.
|
2971
|
+
proto.cashback.CashbackItemsResponse.deserializeBinary = function(bytes) {
|
634
2972
|
var reader = new jspb.BinaryReader(bytes);
|
635
|
-
var msg = new proto.cashback.
|
636
|
-
return proto.cashback.
|
2973
|
+
var msg = new proto.cashback.CashbackItemsResponse;
|
2974
|
+
return proto.cashback.CashbackItemsResponse.deserializeBinaryFromReader(msg, reader);
|
637
2975
|
};
|
638
2976
|
|
639
2977
|
|
640
2978
|
/**
|
641
2979
|
* Deserializes binary data (in protobuf wire format) from the
|
642
2980
|
* given reader into the given message object.
|
643
|
-
* @param {!proto.cashback.
|
2981
|
+
* @param {!proto.cashback.CashbackItemsResponse} msg The message object to deserialize into.
|
644
2982
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
645
|
-
* @return {!proto.cashback.
|
2983
|
+
* @return {!proto.cashback.CashbackItemsResponse}
|
646
2984
|
*/
|
647
|
-
proto.cashback.
|
2985
|
+
proto.cashback.CashbackItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
648
2986
|
while (reader.nextField()) {
|
649
2987
|
if (reader.isEndGroup()) {
|
650
2988
|
break;
|
@@ -652,16 +2990,17 @@ proto.cashback.UserSearchRequest.deserializeBinaryFromReader = function(msg, rea
|
|
652
2990
|
var field = reader.getFieldNumber();
|
653
2991
|
switch (field) {
|
654
2992
|
case 1:
|
655
|
-
var value =
|
656
|
-
|
2993
|
+
var value = new proto.cashback.CashbackItem;
|
2994
|
+
reader.readMessage(value,proto.cashback.CashbackItem.deserializeBinaryFromReader);
|
2995
|
+
msg.addItems(value);
|
657
2996
|
break;
|
658
2997
|
case 2:
|
659
|
-
var value = /** @type {
|
660
|
-
msg.
|
2998
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2999
|
+
msg.setTotalPages(value);
|
661
3000
|
break;
|
662
3001
|
case 3:
|
663
|
-
var value = /** @type {
|
664
|
-
msg.
|
3002
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3003
|
+
msg.setTotalItems(value);
|
665
3004
|
break;
|
666
3005
|
default:
|
667
3006
|
reader.skipField();
|
@@ -676,9 +3015,9 @@ proto.cashback.UserSearchRequest.deserializeBinaryFromReader = function(msg, rea
|
|
676
3015
|
* Serializes the message to binary data (in protobuf wire format).
|
677
3016
|
* @return {!Uint8Array}
|
678
3017
|
*/
|
679
|
-
proto.cashback.
|
3018
|
+
proto.cashback.CashbackItemsResponse.prototype.serializeBinary = function() {
|
680
3019
|
var writer = new jspb.BinaryWriter();
|
681
|
-
proto.cashback.
|
3020
|
+
proto.cashback.CashbackItemsResponse.serializeBinaryToWriter(this, writer);
|
682
3021
|
return writer.getResultBuffer();
|
683
3022
|
};
|
684
3023
|
|
@@ -686,29 +3025,30 @@ proto.cashback.UserSearchRequest.prototype.serializeBinary = function() {
|
|
686
3025
|
/**
|
687
3026
|
* Serializes the given message to binary data (in protobuf wire
|
688
3027
|
* format), writing to the given BinaryWriter.
|
689
|
-
* @param {!proto.cashback.
|
3028
|
+
* @param {!proto.cashback.CashbackItemsResponse} message
|
690
3029
|
* @param {!jspb.BinaryWriter} writer
|
691
3030
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
692
3031
|
*/
|
693
|
-
proto.cashback.
|
3032
|
+
proto.cashback.CashbackItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
694
3033
|
var f = undefined;
|
695
|
-
f =
|
696
|
-
if (f
|
697
|
-
writer.
|
3034
|
+
f = message.getItemsList();
|
3035
|
+
if (f.length > 0) {
|
3036
|
+
writer.writeRepeatedMessage(
|
698
3037
|
1,
|
699
|
-
f
|
3038
|
+
f,
|
3039
|
+
proto.cashback.CashbackItem.serializeBinaryToWriter
|
700
3040
|
);
|
701
3041
|
}
|
702
|
-
f = /** @type {
|
3042
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
703
3043
|
if (f != null) {
|
704
|
-
writer.
|
3044
|
+
writer.writeInt32(
|
705
3045
|
2,
|
706
3046
|
f
|
707
3047
|
);
|
708
3048
|
}
|
709
|
-
f = /** @type {
|
3049
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
710
3050
|
if (f != null) {
|
711
|
-
writer.
|
3051
|
+
writer.writeInt32(
|
712
3052
|
3,
|
713
3053
|
f
|
714
3054
|
);
|
@@ -717,64 +3057,66 @@ proto.cashback.UserSearchRequest.serializeBinaryToWriter = function(message, wri
|
|
717
3057
|
|
718
3058
|
|
719
3059
|
/**
|
720
|
-
*
|
721
|
-
* @return {
|
3060
|
+
* repeated CashbackItem items = 1;
|
3061
|
+
* @return {!Array<!proto.cashback.CashbackItem>}
|
722
3062
|
*/
|
723
|
-
proto.cashback.
|
724
|
-
return /** @type
|
3063
|
+
proto.cashback.CashbackItemsResponse.prototype.getItemsList = function() {
|
3064
|
+
return /** @type{!Array<!proto.cashback.CashbackItem>} */ (
|
3065
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cashback.CashbackItem, 1));
|
725
3066
|
};
|
726
3067
|
|
727
3068
|
|
728
3069
|
/**
|
729
|
-
* @param {
|
730
|
-
* @return {!proto.cashback.
|
731
|
-
|
732
|
-
proto.cashback.
|
733
|
-
return jspb.Message.
|
3070
|
+
* @param {!Array<!proto.cashback.CashbackItem>} value
|
3071
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
3072
|
+
*/
|
3073
|
+
proto.cashback.CashbackItemsResponse.prototype.setItemsList = function(value) {
|
3074
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
734
3075
|
};
|
735
3076
|
|
736
3077
|
|
737
3078
|
/**
|
738
|
-
*
|
739
|
-
* @
|
3079
|
+
* @param {!proto.cashback.CashbackItem=} opt_value
|
3080
|
+
* @param {number=} opt_index
|
3081
|
+
* @return {!proto.cashback.CashbackItem}
|
740
3082
|
*/
|
741
|
-
proto.cashback.
|
742
|
-
return jspb.Message.
|
3083
|
+
proto.cashback.CashbackItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
3084
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cashback.CashbackItem, opt_index);
|
743
3085
|
};
|
744
3086
|
|
745
3087
|
|
746
3088
|
/**
|
747
|
-
*
|
748
|
-
* @return {
|
3089
|
+
* Clears the list making it empty but non-null.
|
3090
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
749
3091
|
*/
|
750
|
-
proto.cashback.
|
751
|
-
return
|
3092
|
+
proto.cashback.CashbackItemsResponse.prototype.clearItemsList = function() {
|
3093
|
+
return this.setItemsList([]);
|
752
3094
|
};
|
753
3095
|
|
754
3096
|
|
755
3097
|
/**
|
756
|
-
* optional
|
757
|
-
* @return {
|
3098
|
+
* optional int32 total_pages = 2;
|
3099
|
+
* @return {number}
|
758
3100
|
*/
|
759
|
-
proto.cashback.
|
760
|
-
return /** @type {
|
3101
|
+
proto.cashback.CashbackItemsResponse.prototype.getTotalPages = function() {
|
3102
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
761
3103
|
};
|
762
3104
|
|
763
3105
|
|
764
3106
|
/**
|
765
|
-
* @param {
|
766
|
-
* @return {!proto.cashback.
|
3107
|
+
* @param {number} value
|
3108
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
767
3109
|
*/
|
768
|
-
proto.cashback.
|
3110
|
+
proto.cashback.CashbackItemsResponse.prototype.setTotalPages = function(value) {
|
769
3111
|
return jspb.Message.setField(this, 2, value);
|
770
3112
|
};
|
771
3113
|
|
772
3114
|
|
773
3115
|
/**
|
774
3116
|
* Clears the field making it undefined.
|
775
|
-
* @return {!proto.cashback.
|
3117
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
776
3118
|
*/
|
777
|
-
proto.cashback.
|
3119
|
+
proto.cashback.CashbackItemsResponse.prototype.clearTotalPages = function() {
|
778
3120
|
return jspb.Message.setField(this, 2, undefined);
|
779
3121
|
};
|
780
3122
|
|
@@ -783,34 +3125,34 @@ proto.cashback.UserSearchRequest.prototype.clearBalanceType = function() {
|
|
783
3125
|
* Returns whether this field is set.
|
784
3126
|
* @return {boolean}
|
785
3127
|
*/
|
786
|
-
proto.cashback.
|
3128
|
+
proto.cashback.CashbackItemsResponse.prototype.hasTotalPages = function() {
|
787
3129
|
return jspb.Message.getField(this, 2) != null;
|
788
3130
|
};
|
789
3131
|
|
790
3132
|
|
791
3133
|
/**
|
792
|
-
* optional
|
793
|
-
* @return {
|
3134
|
+
* optional int32 total_items = 3;
|
3135
|
+
* @return {number}
|
794
3136
|
*/
|
795
|
-
proto.cashback.
|
796
|
-
return /** @type {
|
3137
|
+
proto.cashback.CashbackItemsResponse.prototype.getTotalItems = function() {
|
3138
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
797
3139
|
};
|
798
3140
|
|
799
3141
|
|
800
3142
|
/**
|
801
|
-
* @param {
|
802
|
-
* @return {!proto.cashback.
|
3143
|
+
* @param {number} value
|
3144
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
803
3145
|
*/
|
804
|
-
proto.cashback.
|
3146
|
+
proto.cashback.CashbackItemsResponse.prototype.setTotalItems = function(value) {
|
805
3147
|
return jspb.Message.setField(this, 3, value);
|
806
3148
|
};
|
807
3149
|
|
808
3150
|
|
809
3151
|
/**
|
810
3152
|
* Clears the field making it undefined.
|
811
|
-
* @return {!proto.cashback.
|
3153
|
+
* @return {!proto.cashback.CashbackItemsResponse} returns this
|
812
3154
|
*/
|
813
|
-
proto.cashback.
|
3155
|
+
proto.cashback.CashbackItemsResponse.prototype.clearTotalItems = function() {
|
814
3156
|
return jspb.Message.setField(this, 3, undefined);
|
815
3157
|
};
|
816
3158
|
|
@@ -819,9 +3161,139 @@ proto.cashback.UserSearchRequest.prototype.clearCurrency = function() {
|
|
819
3161
|
* Returns whether this field is set.
|
820
3162
|
* @return {boolean}
|
821
3163
|
*/
|
822
|
-
proto.cashback.
|
3164
|
+
proto.cashback.CashbackItemsResponse.prototype.hasTotalItems = function() {
|
823
3165
|
return jspb.Message.getField(this, 3) != null;
|
824
3166
|
};
|
825
3167
|
|
826
3168
|
|
3169
|
+
|
3170
|
+
|
3171
|
+
|
3172
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3173
|
+
/**
|
3174
|
+
* Creates an object representation of this proto.
|
3175
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3176
|
+
* Optional fields that are not set will be set to undefined.
|
3177
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3178
|
+
* For the list of reserved names please see:
|
3179
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3180
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3181
|
+
* JSPB instance for transitional soy proto support:
|
3182
|
+
* http://goto/soy-param-migration
|
3183
|
+
* @return {!Object}
|
3184
|
+
*/
|
3185
|
+
proto.cashback.CashbackStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
3186
|
+
return proto.cashback.CashbackStatusResponse.toObject(opt_includeInstance, this);
|
3187
|
+
};
|
3188
|
+
|
3189
|
+
|
3190
|
+
/**
|
3191
|
+
* Static version of the {@see toObject} method.
|
3192
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3193
|
+
* the JSPB instance for transitional soy proto support:
|
3194
|
+
* http://goto/soy-param-migration
|
3195
|
+
* @param {!proto.cashback.CashbackStatusResponse} msg The msg instance to transform.
|
3196
|
+
* @return {!Object}
|
3197
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3198
|
+
*/
|
3199
|
+
proto.cashback.CashbackStatusResponse.toObject = function(includeInstance, msg) {
|
3200
|
+
var f, obj = {
|
3201
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
3202
|
+
};
|
3203
|
+
|
3204
|
+
if (includeInstance) {
|
3205
|
+
obj.$jspbMessageInstance = msg;
|
3206
|
+
}
|
3207
|
+
return obj;
|
3208
|
+
};
|
3209
|
+
}
|
3210
|
+
|
3211
|
+
|
3212
|
+
/**
|
3213
|
+
* Deserializes binary data (in protobuf wire format).
|
3214
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3215
|
+
* @return {!proto.cashback.CashbackStatusResponse}
|
3216
|
+
*/
|
3217
|
+
proto.cashback.CashbackStatusResponse.deserializeBinary = function(bytes) {
|
3218
|
+
var reader = new jspb.BinaryReader(bytes);
|
3219
|
+
var msg = new proto.cashback.CashbackStatusResponse;
|
3220
|
+
return proto.cashback.CashbackStatusResponse.deserializeBinaryFromReader(msg, reader);
|
3221
|
+
};
|
3222
|
+
|
3223
|
+
|
3224
|
+
/**
|
3225
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3226
|
+
* given reader into the given message object.
|
3227
|
+
* @param {!proto.cashback.CashbackStatusResponse} msg The message object to deserialize into.
|
3228
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3229
|
+
* @return {!proto.cashback.CashbackStatusResponse}
|
3230
|
+
*/
|
3231
|
+
proto.cashback.CashbackStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3232
|
+
while (reader.nextField()) {
|
3233
|
+
if (reader.isEndGroup()) {
|
3234
|
+
break;
|
3235
|
+
}
|
3236
|
+
var field = reader.getFieldNumber();
|
3237
|
+
switch (field) {
|
3238
|
+
case 1:
|
3239
|
+
var value = /** @type {string} */ (reader.readString());
|
3240
|
+
msg.setStatus(value);
|
3241
|
+
break;
|
3242
|
+
default:
|
3243
|
+
reader.skipField();
|
3244
|
+
break;
|
3245
|
+
}
|
3246
|
+
}
|
3247
|
+
return msg;
|
3248
|
+
};
|
3249
|
+
|
3250
|
+
|
3251
|
+
/**
|
3252
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3253
|
+
* @return {!Uint8Array}
|
3254
|
+
*/
|
3255
|
+
proto.cashback.CashbackStatusResponse.prototype.serializeBinary = function() {
|
3256
|
+
var writer = new jspb.BinaryWriter();
|
3257
|
+
proto.cashback.CashbackStatusResponse.serializeBinaryToWriter(this, writer);
|
3258
|
+
return writer.getResultBuffer();
|
3259
|
+
};
|
3260
|
+
|
3261
|
+
|
3262
|
+
/**
|
3263
|
+
* Serializes the given message to binary data (in protobuf wire
|
3264
|
+
* format), writing to the given BinaryWriter.
|
3265
|
+
* @param {!proto.cashback.CashbackStatusResponse} message
|
3266
|
+
* @param {!jspb.BinaryWriter} writer
|
3267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3268
|
+
*/
|
3269
|
+
proto.cashback.CashbackStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
3270
|
+
var f = undefined;
|
3271
|
+
f = message.getStatus();
|
3272
|
+
if (f.length > 0) {
|
3273
|
+
writer.writeString(
|
3274
|
+
1,
|
3275
|
+
f
|
3276
|
+
);
|
3277
|
+
}
|
3278
|
+
};
|
3279
|
+
|
3280
|
+
|
3281
|
+
/**
|
3282
|
+
* optional string status = 1;
|
3283
|
+
* @return {string}
|
3284
|
+
*/
|
3285
|
+
proto.cashback.CashbackStatusResponse.prototype.getStatus = function() {
|
3286
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3287
|
+
};
|
3288
|
+
|
3289
|
+
|
3290
|
+
/**
|
3291
|
+
* @param {string} value
|
3292
|
+
* @return {!proto.cashback.CashbackStatusResponse} returns this
|
3293
|
+
*/
|
3294
|
+
proto.cashback.CashbackStatusResponse.prototype.setStatus = function(value) {
|
3295
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
3296
|
+
};
|
3297
|
+
|
3298
|
+
|
827
3299
|
goog.object.extend(exports, proto.cashback);
|