protobuf-platform 1.0.171 → 1.0.172
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/loyalty/loyalty.proto +91 -0
- package/loyalty/loyalty_grpc_pb.js +266 -0
- package/loyalty/loyalty_pb.js +4068 -261
- package/package.json +1 -1
package/loyalty/loyalty_pb.js
CHANGED
@@ -21,9 +21,25 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.loyalty.File', null, global);
|
25
|
+
goog.exportSymbol('proto.loyalty.GetFileRequest', null, global);
|
26
|
+
goog.exportSymbol('proto.loyalty.GetLevelRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.loyalty.GetPointRequest', null, global);
|
28
|
+
goog.exportSymbol('proto.loyalty.LevelItem', null, global);
|
29
|
+
goog.exportSymbol('proto.loyalty.LevelItemRequest', null, global);
|
30
|
+
goog.exportSymbol('proto.loyalty.LevelItemsResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.loyalty.LevelRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.loyalty.LevelRequest.RequestCase', null, global);
|
33
|
+
goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
|
34
|
+
goog.exportSymbol('proto.loyalty.LevelStatusResponse', null, global);
|
24
35
|
goog.exportSymbol('proto.loyalty.LoyaltySearchRequest', null, global);
|
25
36
|
goog.exportSymbol('proto.loyalty.PaginationRequest', null, global);
|
26
37
|
goog.exportSymbol('proto.loyalty.PingRequest', null, global);
|
38
|
+
goog.exportSymbol('proto.loyalty.PointItem', null, global);
|
39
|
+
goog.exportSymbol('proto.loyalty.PointItemsResponse', null, global);
|
40
|
+
goog.exportSymbol('proto.loyalty.PointRequest', null, global);
|
41
|
+
goog.exportSymbol('proto.loyalty.PointResponse', null, global);
|
42
|
+
goog.exportSymbol('proto.loyalty.PointStatusResponse', null, global);
|
27
43
|
goog.exportSymbol('proto.loyalty.PongResponse', null, global);
|
28
44
|
/**
|
29
45
|
* Generated by JsPbCodeGenerator.
|
@@ -109,6 +125,3845 @@ if (goog.DEBUG && !COMPILED) {
|
|
109
125
|
*/
|
110
126
|
proto.loyalty.LoyaltySearchRequest.displayName = 'proto.loyalty.LoyaltySearchRequest';
|
111
127
|
}
|
128
|
+
/**
|
129
|
+
* Generated by JsPbCodeGenerator.
|
130
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
131
|
+
* server response, or constructed directly in Javascript. The array is used
|
132
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
133
|
+
* If no data is provided, the constructed object will be empty, but still
|
134
|
+
* valid.
|
135
|
+
* @extends {jspb.Message}
|
136
|
+
* @constructor
|
137
|
+
*/
|
138
|
+
proto.loyalty.File = function(opt_data) {
|
139
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
140
|
+
};
|
141
|
+
goog.inherits(proto.loyalty.File, jspb.Message);
|
142
|
+
if (goog.DEBUG && !COMPILED) {
|
143
|
+
/**
|
144
|
+
* @public
|
145
|
+
* @override
|
146
|
+
*/
|
147
|
+
proto.loyalty.File.displayName = 'proto.loyalty.File';
|
148
|
+
}
|
149
|
+
/**
|
150
|
+
* Generated by JsPbCodeGenerator.
|
151
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
152
|
+
* server response, or constructed directly in Javascript. The array is used
|
153
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
154
|
+
* If no data is provided, the constructed object will be empty, but still
|
155
|
+
* valid.
|
156
|
+
* @extends {jspb.Message}
|
157
|
+
* @constructor
|
158
|
+
*/
|
159
|
+
proto.loyalty.GetFileRequest = function(opt_data) {
|
160
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
161
|
+
};
|
162
|
+
goog.inherits(proto.loyalty.GetFileRequest, jspb.Message);
|
163
|
+
if (goog.DEBUG && !COMPILED) {
|
164
|
+
/**
|
165
|
+
* @public
|
166
|
+
* @override
|
167
|
+
*/
|
168
|
+
proto.loyalty.GetFileRequest.displayName = 'proto.loyalty.GetFileRequest';
|
169
|
+
}
|
170
|
+
/**
|
171
|
+
* Generated by JsPbCodeGenerator.
|
172
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
173
|
+
* server response, or constructed directly in Javascript. The array is used
|
174
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
175
|
+
* If no data is provided, the constructed object will be empty, but still
|
176
|
+
* valid.
|
177
|
+
* @extends {jspb.Message}
|
178
|
+
* @constructor
|
179
|
+
*/
|
180
|
+
proto.loyalty.LevelItem = function(opt_data) {
|
181
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
182
|
+
};
|
183
|
+
goog.inherits(proto.loyalty.LevelItem, jspb.Message);
|
184
|
+
if (goog.DEBUG && !COMPILED) {
|
185
|
+
/**
|
186
|
+
* @public
|
187
|
+
* @override
|
188
|
+
*/
|
189
|
+
proto.loyalty.LevelItem.displayName = 'proto.loyalty.LevelItem';
|
190
|
+
}
|
191
|
+
/**
|
192
|
+
* Generated by JsPbCodeGenerator.
|
193
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
194
|
+
* server response, or constructed directly in Javascript. The array is used
|
195
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
196
|
+
* If no data is provided, the constructed object will be empty, but still
|
197
|
+
* valid.
|
198
|
+
* @extends {jspb.Message}
|
199
|
+
* @constructor
|
200
|
+
*/
|
201
|
+
proto.loyalty.LevelRequest = function(opt_data) {
|
202
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.loyalty.LevelRequest.oneofGroups_);
|
203
|
+
};
|
204
|
+
goog.inherits(proto.loyalty.LevelRequest, jspb.Message);
|
205
|
+
if (goog.DEBUG && !COMPILED) {
|
206
|
+
/**
|
207
|
+
* @public
|
208
|
+
* @override
|
209
|
+
*/
|
210
|
+
proto.loyalty.LevelRequest.displayName = 'proto.loyalty.LevelRequest';
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* Generated by JsPbCodeGenerator.
|
214
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
215
|
+
* server response, or constructed directly in Javascript. The array is used
|
216
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
217
|
+
* If no data is provided, the constructed object will be empty, but still
|
218
|
+
* valid.
|
219
|
+
* @extends {jspb.Message}
|
220
|
+
* @constructor
|
221
|
+
*/
|
222
|
+
proto.loyalty.LevelItemRequest = function(opt_data) {
|
223
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
224
|
+
};
|
225
|
+
goog.inherits(proto.loyalty.LevelItemRequest, jspb.Message);
|
226
|
+
if (goog.DEBUG && !COMPILED) {
|
227
|
+
/**
|
228
|
+
* @public
|
229
|
+
* @override
|
230
|
+
*/
|
231
|
+
proto.loyalty.LevelItemRequest.displayName = 'proto.loyalty.LevelItemRequest';
|
232
|
+
}
|
233
|
+
/**
|
234
|
+
* Generated by JsPbCodeGenerator.
|
235
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
236
|
+
* server response, or constructed directly in Javascript. The array is used
|
237
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
238
|
+
* If no data is provided, the constructed object will be empty, but still
|
239
|
+
* valid.
|
240
|
+
* @extends {jspb.Message}
|
241
|
+
* @constructor
|
242
|
+
*/
|
243
|
+
proto.loyalty.GetLevelRequest = function(opt_data) {
|
244
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
245
|
+
};
|
246
|
+
goog.inherits(proto.loyalty.GetLevelRequest, jspb.Message);
|
247
|
+
if (goog.DEBUG && !COMPILED) {
|
248
|
+
/**
|
249
|
+
* @public
|
250
|
+
* @override
|
251
|
+
*/
|
252
|
+
proto.loyalty.GetLevelRequest.displayName = 'proto.loyalty.GetLevelRequest';
|
253
|
+
}
|
254
|
+
/**
|
255
|
+
* Generated by JsPbCodeGenerator.
|
256
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
257
|
+
* server response, or constructed directly in Javascript. The array is used
|
258
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
259
|
+
* If no data is provided, the constructed object will be empty, but still
|
260
|
+
* valid.
|
261
|
+
* @extends {jspb.Message}
|
262
|
+
* @constructor
|
263
|
+
*/
|
264
|
+
proto.loyalty.LevelResponse = function(opt_data) {
|
265
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
266
|
+
};
|
267
|
+
goog.inherits(proto.loyalty.LevelResponse, jspb.Message);
|
268
|
+
if (goog.DEBUG && !COMPILED) {
|
269
|
+
/**
|
270
|
+
* @public
|
271
|
+
* @override
|
272
|
+
*/
|
273
|
+
proto.loyalty.LevelResponse.displayName = 'proto.loyalty.LevelResponse';
|
274
|
+
}
|
275
|
+
/**
|
276
|
+
* Generated by JsPbCodeGenerator.
|
277
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
278
|
+
* server response, or constructed directly in Javascript. The array is used
|
279
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
280
|
+
* If no data is provided, the constructed object will be empty, but still
|
281
|
+
* valid.
|
282
|
+
* @extends {jspb.Message}
|
283
|
+
* @constructor
|
284
|
+
*/
|
285
|
+
proto.loyalty.LevelItemsResponse = function(opt_data) {
|
286
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelItemsResponse.repeatedFields_, null);
|
287
|
+
};
|
288
|
+
goog.inherits(proto.loyalty.LevelItemsResponse, jspb.Message);
|
289
|
+
if (goog.DEBUG && !COMPILED) {
|
290
|
+
/**
|
291
|
+
* @public
|
292
|
+
* @override
|
293
|
+
*/
|
294
|
+
proto.loyalty.LevelItemsResponse.displayName = 'proto.loyalty.LevelItemsResponse';
|
295
|
+
}
|
296
|
+
/**
|
297
|
+
* Generated by JsPbCodeGenerator.
|
298
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
299
|
+
* server response, or constructed directly in Javascript. The array is used
|
300
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
301
|
+
* If no data is provided, the constructed object will be empty, but still
|
302
|
+
* valid.
|
303
|
+
* @extends {jspb.Message}
|
304
|
+
* @constructor
|
305
|
+
*/
|
306
|
+
proto.loyalty.LevelStatusResponse = function(opt_data) {
|
307
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
308
|
+
};
|
309
|
+
goog.inherits(proto.loyalty.LevelStatusResponse, jspb.Message);
|
310
|
+
if (goog.DEBUG && !COMPILED) {
|
311
|
+
/**
|
312
|
+
* @public
|
313
|
+
* @override
|
314
|
+
*/
|
315
|
+
proto.loyalty.LevelStatusResponse.displayName = 'proto.loyalty.LevelStatusResponse';
|
316
|
+
}
|
317
|
+
/**
|
318
|
+
* Generated by JsPbCodeGenerator.
|
319
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
320
|
+
* server response, or constructed directly in Javascript. The array is used
|
321
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
322
|
+
* If no data is provided, the constructed object will be empty, but still
|
323
|
+
* valid.
|
324
|
+
* @extends {jspb.Message}
|
325
|
+
* @constructor
|
326
|
+
*/
|
327
|
+
proto.loyalty.PointItem = function(opt_data) {
|
328
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
329
|
+
};
|
330
|
+
goog.inherits(proto.loyalty.PointItem, jspb.Message);
|
331
|
+
if (goog.DEBUG && !COMPILED) {
|
332
|
+
/**
|
333
|
+
* @public
|
334
|
+
* @override
|
335
|
+
*/
|
336
|
+
proto.loyalty.PointItem.displayName = 'proto.loyalty.PointItem';
|
337
|
+
}
|
338
|
+
/**
|
339
|
+
* Generated by JsPbCodeGenerator.
|
340
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
341
|
+
* server response, or constructed directly in Javascript. The array is used
|
342
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
343
|
+
* If no data is provided, the constructed object will be empty, but still
|
344
|
+
* valid.
|
345
|
+
* @extends {jspb.Message}
|
346
|
+
* @constructor
|
347
|
+
*/
|
348
|
+
proto.loyalty.PointRequest = function(opt_data) {
|
349
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
350
|
+
};
|
351
|
+
goog.inherits(proto.loyalty.PointRequest, jspb.Message);
|
352
|
+
if (goog.DEBUG && !COMPILED) {
|
353
|
+
/**
|
354
|
+
* @public
|
355
|
+
* @override
|
356
|
+
*/
|
357
|
+
proto.loyalty.PointRequest.displayName = 'proto.loyalty.PointRequest';
|
358
|
+
}
|
359
|
+
/**
|
360
|
+
* Generated by JsPbCodeGenerator.
|
361
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
362
|
+
* server response, or constructed directly in Javascript. The array is used
|
363
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
364
|
+
* If no data is provided, the constructed object will be empty, but still
|
365
|
+
* valid.
|
366
|
+
* @extends {jspb.Message}
|
367
|
+
* @constructor
|
368
|
+
*/
|
369
|
+
proto.loyalty.GetPointRequest = function(opt_data) {
|
370
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
371
|
+
};
|
372
|
+
goog.inherits(proto.loyalty.GetPointRequest, jspb.Message);
|
373
|
+
if (goog.DEBUG && !COMPILED) {
|
374
|
+
/**
|
375
|
+
* @public
|
376
|
+
* @override
|
377
|
+
*/
|
378
|
+
proto.loyalty.GetPointRequest.displayName = 'proto.loyalty.GetPointRequest';
|
379
|
+
}
|
380
|
+
/**
|
381
|
+
* Generated by JsPbCodeGenerator.
|
382
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
383
|
+
* server response, or constructed directly in Javascript. The array is used
|
384
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
385
|
+
* If no data is provided, the constructed object will be empty, but still
|
386
|
+
* valid.
|
387
|
+
* @extends {jspb.Message}
|
388
|
+
* @constructor
|
389
|
+
*/
|
390
|
+
proto.loyalty.PointResponse = function(opt_data) {
|
391
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
392
|
+
};
|
393
|
+
goog.inherits(proto.loyalty.PointResponse, jspb.Message);
|
394
|
+
if (goog.DEBUG && !COMPILED) {
|
395
|
+
/**
|
396
|
+
* @public
|
397
|
+
* @override
|
398
|
+
*/
|
399
|
+
proto.loyalty.PointResponse.displayName = 'proto.loyalty.PointResponse';
|
400
|
+
}
|
401
|
+
/**
|
402
|
+
* Generated by JsPbCodeGenerator.
|
403
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
404
|
+
* server response, or constructed directly in Javascript. The array is used
|
405
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
406
|
+
* If no data is provided, the constructed object will be empty, but still
|
407
|
+
* valid.
|
408
|
+
* @extends {jspb.Message}
|
409
|
+
* @constructor
|
410
|
+
*/
|
411
|
+
proto.loyalty.PointItemsResponse = function(opt_data) {
|
412
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.PointItemsResponse.repeatedFields_, null);
|
413
|
+
};
|
414
|
+
goog.inherits(proto.loyalty.PointItemsResponse, jspb.Message);
|
415
|
+
if (goog.DEBUG && !COMPILED) {
|
416
|
+
/**
|
417
|
+
* @public
|
418
|
+
* @override
|
419
|
+
*/
|
420
|
+
proto.loyalty.PointItemsResponse.displayName = 'proto.loyalty.PointItemsResponse';
|
421
|
+
}
|
422
|
+
/**
|
423
|
+
* Generated by JsPbCodeGenerator.
|
424
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
425
|
+
* server response, or constructed directly in Javascript. The array is used
|
426
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
427
|
+
* If no data is provided, the constructed object will be empty, but still
|
428
|
+
* valid.
|
429
|
+
* @extends {jspb.Message}
|
430
|
+
* @constructor
|
431
|
+
*/
|
432
|
+
proto.loyalty.PointStatusResponse = function(opt_data) {
|
433
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
434
|
+
};
|
435
|
+
goog.inherits(proto.loyalty.PointStatusResponse, jspb.Message);
|
436
|
+
if (goog.DEBUG && !COMPILED) {
|
437
|
+
/**
|
438
|
+
* @public
|
439
|
+
* @override
|
440
|
+
*/
|
441
|
+
proto.loyalty.PointStatusResponse.displayName = 'proto.loyalty.PointStatusResponse';
|
442
|
+
}
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
447
|
+
/**
|
448
|
+
* Creates an object representation of this proto.
|
449
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
450
|
+
* Optional fields that are not set will be set to undefined.
|
451
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
452
|
+
* For the list of reserved names please see:
|
453
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
454
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
455
|
+
* JSPB instance for transitional soy proto support:
|
456
|
+
* http://goto/soy-param-migration
|
457
|
+
* @return {!Object}
|
458
|
+
*/
|
459
|
+
proto.loyalty.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
460
|
+
return proto.loyalty.PingRequest.toObject(opt_includeInstance, this);
|
461
|
+
};
|
462
|
+
|
463
|
+
|
464
|
+
/**
|
465
|
+
* Static version of the {@see toObject} method.
|
466
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
467
|
+
* the JSPB instance for transitional soy proto support:
|
468
|
+
* http://goto/soy-param-migration
|
469
|
+
* @param {!proto.loyalty.PingRequest} msg The msg instance to transform.
|
470
|
+
* @return {!Object}
|
471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
472
|
+
*/
|
473
|
+
proto.loyalty.PingRequest.toObject = function(includeInstance, msg) {
|
474
|
+
var f, obj = {
|
475
|
+
ping: jspb.Message.getFieldWithDefault(msg, 1, "")
|
476
|
+
};
|
477
|
+
|
478
|
+
if (includeInstance) {
|
479
|
+
obj.$jspbMessageInstance = msg;
|
480
|
+
}
|
481
|
+
return obj;
|
482
|
+
};
|
483
|
+
}
|
484
|
+
|
485
|
+
|
486
|
+
/**
|
487
|
+
* Deserializes binary data (in protobuf wire format).
|
488
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
489
|
+
* @return {!proto.loyalty.PingRequest}
|
490
|
+
*/
|
491
|
+
proto.loyalty.PingRequest.deserializeBinary = function(bytes) {
|
492
|
+
var reader = new jspb.BinaryReader(bytes);
|
493
|
+
var msg = new proto.loyalty.PingRequest;
|
494
|
+
return proto.loyalty.PingRequest.deserializeBinaryFromReader(msg, reader);
|
495
|
+
};
|
496
|
+
|
497
|
+
|
498
|
+
/**
|
499
|
+
* Deserializes binary data (in protobuf wire format) from the
|
500
|
+
* given reader into the given message object.
|
501
|
+
* @param {!proto.loyalty.PingRequest} msg The message object to deserialize into.
|
502
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
503
|
+
* @return {!proto.loyalty.PingRequest}
|
504
|
+
*/
|
505
|
+
proto.loyalty.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
506
|
+
while (reader.nextField()) {
|
507
|
+
if (reader.isEndGroup()) {
|
508
|
+
break;
|
509
|
+
}
|
510
|
+
var field = reader.getFieldNumber();
|
511
|
+
switch (field) {
|
512
|
+
case 1:
|
513
|
+
var value = /** @type {string} */ (reader.readString());
|
514
|
+
msg.setPing(value);
|
515
|
+
break;
|
516
|
+
default:
|
517
|
+
reader.skipField();
|
518
|
+
break;
|
519
|
+
}
|
520
|
+
}
|
521
|
+
return msg;
|
522
|
+
};
|
523
|
+
|
524
|
+
|
525
|
+
/**
|
526
|
+
* Serializes the message to binary data (in protobuf wire format).
|
527
|
+
* @return {!Uint8Array}
|
528
|
+
*/
|
529
|
+
proto.loyalty.PingRequest.prototype.serializeBinary = function() {
|
530
|
+
var writer = new jspb.BinaryWriter();
|
531
|
+
proto.loyalty.PingRequest.serializeBinaryToWriter(this, writer);
|
532
|
+
return writer.getResultBuffer();
|
533
|
+
};
|
534
|
+
|
535
|
+
|
536
|
+
/**
|
537
|
+
* Serializes the given message to binary data (in protobuf wire
|
538
|
+
* format), writing to the given BinaryWriter.
|
539
|
+
* @param {!proto.loyalty.PingRequest} message
|
540
|
+
* @param {!jspb.BinaryWriter} writer
|
541
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
542
|
+
*/
|
543
|
+
proto.loyalty.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
544
|
+
var f = undefined;
|
545
|
+
f = message.getPing();
|
546
|
+
if (f.length > 0) {
|
547
|
+
writer.writeString(
|
548
|
+
1,
|
549
|
+
f
|
550
|
+
);
|
551
|
+
}
|
552
|
+
};
|
553
|
+
|
554
|
+
|
555
|
+
/**
|
556
|
+
* optional string ping = 1;
|
557
|
+
* @return {string}
|
558
|
+
*/
|
559
|
+
proto.loyalty.PingRequest.prototype.getPing = function() {
|
560
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
561
|
+
};
|
562
|
+
|
563
|
+
|
564
|
+
/**
|
565
|
+
* @param {string} value
|
566
|
+
* @return {!proto.loyalty.PingRequest} returns this
|
567
|
+
*/
|
568
|
+
proto.loyalty.PingRequest.prototype.setPing = function(value) {
|
569
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
570
|
+
};
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
577
|
+
/**
|
578
|
+
* Creates an object representation of this proto.
|
579
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
580
|
+
* Optional fields that are not set will be set to undefined.
|
581
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
582
|
+
* For the list of reserved names please see:
|
583
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
584
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
585
|
+
* JSPB instance for transitional soy proto support:
|
586
|
+
* http://goto/soy-param-migration
|
587
|
+
* @return {!Object}
|
588
|
+
*/
|
589
|
+
proto.loyalty.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
590
|
+
return proto.loyalty.PongResponse.toObject(opt_includeInstance, this);
|
591
|
+
};
|
592
|
+
|
593
|
+
|
594
|
+
/**
|
595
|
+
* Static version of the {@see toObject} method.
|
596
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
597
|
+
* the JSPB instance for transitional soy proto support:
|
598
|
+
* http://goto/soy-param-migration
|
599
|
+
* @param {!proto.loyalty.PongResponse} msg The msg instance to transform.
|
600
|
+
* @return {!Object}
|
601
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
602
|
+
*/
|
603
|
+
proto.loyalty.PongResponse.toObject = function(includeInstance, msg) {
|
604
|
+
var f, obj = {
|
605
|
+
pong: jspb.Message.getFieldWithDefault(msg, 1, "")
|
606
|
+
};
|
607
|
+
|
608
|
+
if (includeInstance) {
|
609
|
+
obj.$jspbMessageInstance = msg;
|
610
|
+
}
|
611
|
+
return obj;
|
612
|
+
};
|
613
|
+
}
|
614
|
+
|
615
|
+
|
616
|
+
/**
|
617
|
+
* Deserializes binary data (in protobuf wire format).
|
618
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
619
|
+
* @return {!proto.loyalty.PongResponse}
|
620
|
+
*/
|
621
|
+
proto.loyalty.PongResponse.deserializeBinary = function(bytes) {
|
622
|
+
var reader = new jspb.BinaryReader(bytes);
|
623
|
+
var msg = new proto.loyalty.PongResponse;
|
624
|
+
return proto.loyalty.PongResponse.deserializeBinaryFromReader(msg, reader);
|
625
|
+
};
|
626
|
+
|
627
|
+
|
628
|
+
/**
|
629
|
+
* Deserializes binary data (in protobuf wire format) from the
|
630
|
+
* given reader into the given message object.
|
631
|
+
* @param {!proto.loyalty.PongResponse} msg The message object to deserialize into.
|
632
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
633
|
+
* @return {!proto.loyalty.PongResponse}
|
634
|
+
*/
|
635
|
+
proto.loyalty.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
636
|
+
while (reader.nextField()) {
|
637
|
+
if (reader.isEndGroup()) {
|
638
|
+
break;
|
639
|
+
}
|
640
|
+
var field = reader.getFieldNumber();
|
641
|
+
switch (field) {
|
642
|
+
case 1:
|
643
|
+
var value = /** @type {string} */ (reader.readString());
|
644
|
+
msg.setPong(value);
|
645
|
+
break;
|
646
|
+
default:
|
647
|
+
reader.skipField();
|
648
|
+
break;
|
649
|
+
}
|
650
|
+
}
|
651
|
+
return msg;
|
652
|
+
};
|
653
|
+
|
654
|
+
|
655
|
+
/**
|
656
|
+
* Serializes the message to binary data (in protobuf wire format).
|
657
|
+
* @return {!Uint8Array}
|
658
|
+
*/
|
659
|
+
proto.loyalty.PongResponse.prototype.serializeBinary = function() {
|
660
|
+
var writer = new jspb.BinaryWriter();
|
661
|
+
proto.loyalty.PongResponse.serializeBinaryToWriter(this, writer);
|
662
|
+
return writer.getResultBuffer();
|
663
|
+
};
|
664
|
+
|
665
|
+
|
666
|
+
/**
|
667
|
+
* Serializes the given message to binary data (in protobuf wire
|
668
|
+
* format), writing to the given BinaryWriter.
|
669
|
+
* @param {!proto.loyalty.PongResponse} message
|
670
|
+
* @param {!jspb.BinaryWriter} writer
|
671
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
672
|
+
*/
|
673
|
+
proto.loyalty.PongResponse.serializeBinaryToWriter = function(message, writer) {
|
674
|
+
var f = undefined;
|
675
|
+
f = message.getPong();
|
676
|
+
if (f.length > 0) {
|
677
|
+
writer.writeString(
|
678
|
+
1,
|
679
|
+
f
|
680
|
+
);
|
681
|
+
}
|
682
|
+
};
|
683
|
+
|
684
|
+
|
685
|
+
/**
|
686
|
+
* optional string pong = 1;
|
687
|
+
* @return {string}
|
688
|
+
*/
|
689
|
+
proto.loyalty.PongResponse.prototype.getPong = function() {
|
690
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
691
|
+
};
|
692
|
+
|
693
|
+
|
694
|
+
/**
|
695
|
+
* @param {string} value
|
696
|
+
* @return {!proto.loyalty.PongResponse} returns this
|
697
|
+
*/
|
698
|
+
proto.loyalty.PongResponse.prototype.setPong = function(value) {
|
699
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
700
|
+
};
|
701
|
+
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
707
|
+
/**
|
708
|
+
* Creates an object representation of this proto.
|
709
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
710
|
+
* Optional fields that are not set will be set to undefined.
|
711
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
712
|
+
* For the list of reserved names please see:
|
713
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
714
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
715
|
+
* JSPB instance for transitional soy proto support:
|
716
|
+
* http://goto/soy-param-migration
|
717
|
+
* @return {!Object}
|
718
|
+
*/
|
719
|
+
proto.loyalty.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
720
|
+
return proto.loyalty.PaginationRequest.toObject(opt_includeInstance, this);
|
721
|
+
};
|
722
|
+
|
723
|
+
|
724
|
+
/**
|
725
|
+
* Static version of the {@see toObject} method.
|
726
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
727
|
+
* the JSPB instance for transitional soy proto support:
|
728
|
+
* http://goto/soy-param-migration
|
729
|
+
* @param {!proto.loyalty.PaginationRequest} msg The msg instance to transform.
|
730
|
+
* @return {!Object}
|
731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
732
|
+
*/
|
733
|
+
proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
|
734
|
+
var f, obj = {
|
735
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
736
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
737
|
+
loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f)
|
738
|
+
};
|
739
|
+
|
740
|
+
if (includeInstance) {
|
741
|
+
obj.$jspbMessageInstance = msg;
|
742
|
+
}
|
743
|
+
return obj;
|
744
|
+
};
|
745
|
+
}
|
746
|
+
|
747
|
+
|
748
|
+
/**
|
749
|
+
* Deserializes binary data (in protobuf wire format).
|
750
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
751
|
+
* @return {!proto.loyalty.PaginationRequest}
|
752
|
+
*/
|
753
|
+
proto.loyalty.PaginationRequest.deserializeBinary = function(bytes) {
|
754
|
+
var reader = new jspb.BinaryReader(bytes);
|
755
|
+
var msg = new proto.loyalty.PaginationRequest;
|
756
|
+
return proto.loyalty.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
757
|
+
};
|
758
|
+
|
759
|
+
|
760
|
+
/**
|
761
|
+
* Deserializes binary data (in protobuf wire format) from the
|
762
|
+
* given reader into the given message object.
|
763
|
+
* @param {!proto.loyalty.PaginationRequest} msg The message object to deserialize into.
|
764
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
765
|
+
* @return {!proto.loyalty.PaginationRequest}
|
766
|
+
*/
|
767
|
+
proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
768
|
+
while (reader.nextField()) {
|
769
|
+
if (reader.isEndGroup()) {
|
770
|
+
break;
|
771
|
+
}
|
772
|
+
var field = reader.getFieldNumber();
|
773
|
+
switch (field) {
|
774
|
+
case 1:
|
775
|
+
var value = /** @type {number} */ (reader.readInt32());
|
776
|
+
msg.setLimit(value);
|
777
|
+
break;
|
778
|
+
case 2:
|
779
|
+
var value = /** @type {number} */ (reader.readInt32());
|
780
|
+
msg.setOffset(value);
|
781
|
+
break;
|
782
|
+
case 3:
|
783
|
+
var value = new proto.loyalty.LoyaltySearchRequest;
|
784
|
+
reader.readMessage(value,proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader);
|
785
|
+
msg.setLoyaltySearchParams(value);
|
786
|
+
break;
|
787
|
+
default:
|
788
|
+
reader.skipField();
|
789
|
+
break;
|
790
|
+
}
|
791
|
+
}
|
792
|
+
return msg;
|
793
|
+
};
|
794
|
+
|
795
|
+
|
796
|
+
/**
|
797
|
+
* Serializes the message to binary data (in protobuf wire format).
|
798
|
+
* @return {!Uint8Array}
|
799
|
+
*/
|
800
|
+
proto.loyalty.PaginationRequest.prototype.serializeBinary = function() {
|
801
|
+
var writer = new jspb.BinaryWriter();
|
802
|
+
proto.loyalty.PaginationRequest.serializeBinaryToWriter(this, writer);
|
803
|
+
return writer.getResultBuffer();
|
804
|
+
};
|
805
|
+
|
806
|
+
|
807
|
+
/**
|
808
|
+
* Serializes the given message to binary data (in protobuf wire
|
809
|
+
* format), writing to the given BinaryWriter.
|
810
|
+
* @param {!proto.loyalty.PaginationRequest} message
|
811
|
+
* @param {!jspb.BinaryWriter} writer
|
812
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
813
|
+
*/
|
814
|
+
proto.loyalty.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
815
|
+
var f = undefined;
|
816
|
+
f = message.getLimit();
|
817
|
+
if (f !== 0) {
|
818
|
+
writer.writeInt32(
|
819
|
+
1,
|
820
|
+
f
|
821
|
+
);
|
822
|
+
}
|
823
|
+
f = message.getOffset();
|
824
|
+
if (f !== 0) {
|
825
|
+
writer.writeInt32(
|
826
|
+
2,
|
827
|
+
f
|
828
|
+
);
|
829
|
+
}
|
830
|
+
f = message.getLoyaltySearchParams();
|
831
|
+
if (f != null) {
|
832
|
+
writer.writeMessage(
|
833
|
+
3,
|
834
|
+
f,
|
835
|
+
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter
|
836
|
+
);
|
837
|
+
}
|
838
|
+
};
|
839
|
+
|
840
|
+
|
841
|
+
/**
|
842
|
+
* optional int32 limit = 1;
|
843
|
+
* @return {number}
|
844
|
+
*/
|
845
|
+
proto.loyalty.PaginationRequest.prototype.getLimit = function() {
|
846
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
847
|
+
};
|
848
|
+
|
849
|
+
|
850
|
+
/**
|
851
|
+
* @param {number} value
|
852
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
853
|
+
*/
|
854
|
+
proto.loyalty.PaginationRequest.prototype.setLimit = function(value) {
|
855
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
856
|
+
};
|
857
|
+
|
858
|
+
|
859
|
+
/**
|
860
|
+
* optional int32 offset = 2;
|
861
|
+
* @return {number}
|
862
|
+
*/
|
863
|
+
proto.loyalty.PaginationRequest.prototype.getOffset = function() {
|
864
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
865
|
+
};
|
866
|
+
|
867
|
+
|
868
|
+
/**
|
869
|
+
* @param {number} value
|
870
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
871
|
+
*/
|
872
|
+
proto.loyalty.PaginationRequest.prototype.setOffset = function(value) {
|
873
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
874
|
+
};
|
875
|
+
|
876
|
+
|
877
|
+
/**
|
878
|
+
* optional LoyaltySearchRequest loyalty_search_params = 3;
|
879
|
+
* @return {?proto.loyalty.LoyaltySearchRequest}
|
880
|
+
*/
|
881
|
+
proto.loyalty.PaginationRequest.prototype.getLoyaltySearchParams = function() {
|
882
|
+
return /** @type{?proto.loyalty.LoyaltySearchRequest} */ (
|
883
|
+
jspb.Message.getWrapperField(this, proto.loyalty.LoyaltySearchRequest, 3));
|
884
|
+
};
|
885
|
+
|
886
|
+
|
887
|
+
/**
|
888
|
+
* @param {?proto.loyalty.LoyaltySearchRequest|undefined} value
|
889
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
890
|
+
*/
|
891
|
+
proto.loyalty.PaginationRequest.prototype.setLoyaltySearchParams = function(value) {
|
892
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
893
|
+
};
|
894
|
+
|
895
|
+
|
896
|
+
/**
|
897
|
+
* Clears the message field making it undefined.
|
898
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
899
|
+
*/
|
900
|
+
proto.loyalty.PaginationRequest.prototype.clearLoyaltySearchParams = function() {
|
901
|
+
return this.setLoyaltySearchParams(undefined);
|
902
|
+
};
|
903
|
+
|
904
|
+
|
905
|
+
/**
|
906
|
+
* Returns whether this field is set.
|
907
|
+
* @return {boolean}
|
908
|
+
*/
|
909
|
+
proto.loyalty.PaginationRequest.prototype.hasLoyaltySearchParams = function() {
|
910
|
+
return jspb.Message.getField(this, 3) != null;
|
911
|
+
};
|
912
|
+
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
918
|
+
/**
|
919
|
+
* Creates an object representation of this proto.
|
920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
921
|
+
* Optional fields that are not set will be set to undefined.
|
922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
923
|
+
* For the list of reserved names please see:
|
924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
926
|
+
* JSPB instance for transitional soy proto support:
|
927
|
+
* http://goto/soy-param-migration
|
928
|
+
* @return {!Object}
|
929
|
+
*/
|
930
|
+
proto.loyalty.LoyaltySearchRequest.prototype.toObject = function(opt_includeInstance) {
|
931
|
+
return proto.loyalty.LoyaltySearchRequest.toObject(opt_includeInstance, this);
|
932
|
+
};
|
933
|
+
|
934
|
+
|
935
|
+
/**
|
936
|
+
* Static version of the {@see toObject} method.
|
937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
938
|
+
* the JSPB instance for transitional soy proto support:
|
939
|
+
* http://goto/soy-param-migration
|
940
|
+
* @param {!proto.loyalty.LoyaltySearchRequest} msg The msg instance to transform.
|
941
|
+
* @return {!Object}
|
942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
943
|
+
*/
|
944
|
+
proto.loyalty.LoyaltySearchRequest.toObject = function(includeInstance, msg) {
|
945
|
+
var f, obj = {
|
946
|
+
loyaltyId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
947
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
948
|
+
loyaltyTitle: jspb.Message.getFieldWithDefault(msg, 3, "")
|
949
|
+
};
|
950
|
+
|
951
|
+
if (includeInstance) {
|
952
|
+
obj.$jspbMessageInstance = msg;
|
953
|
+
}
|
954
|
+
return obj;
|
955
|
+
};
|
956
|
+
}
|
957
|
+
|
958
|
+
|
959
|
+
/**
|
960
|
+
* Deserializes binary data (in protobuf wire format).
|
961
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
962
|
+
* @return {!proto.loyalty.LoyaltySearchRequest}
|
963
|
+
*/
|
964
|
+
proto.loyalty.LoyaltySearchRequest.deserializeBinary = function(bytes) {
|
965
|
+
var reader = new jspb.BinaryReader(bytes);
|
966
|
+
var msg = new proto.loyalty.LoyaltySearchRequest;
|
967
|
+
return proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader(msg, reader);
|
968
|
+
};
|
969
|
+
|
970
|
+
|
971
|
+
/**
|
972
|
+
* Deserializes binary data (in protobuf wire format) from the
|
973
|
+
* given reader into the given message object.
|
974
|
+
* @param {!proto.loyalty.LoyaltySearchRequest} msg The message object to deserialize into.
|
975
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
976
|
+
* @return {!proto.loyalty.LoyaltySearchRequest}
|
977
|
+
*/
|
978
|
+
proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
979
|
+
while (reader.nextField()) {
|
980
|
+
if (reader.isEndGroup()) {
|
981
|
+
break;
|
982
|
+
}
|
983
|
+
var field = reader.getFieldNumber();
|
984
|
+
switch (field) {
|
985
|
+
case 1:
|
986
|
+
var value = /** @type {number} */ (reader.readInt32());
|
987
|
+
msg.setLoyaltyId(value);
|
988
|
+
break;
|
989
|
+
case 2:
|
990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
991
|
+
msg.setUserId(value);
|
992
|
+
break;
|
993
|
+
case 3:
|
994
|
+
var value = /** @type {string} */ (reader.readString());
|
995
|
+
msg.setLoyaltyTitle(value);
|
996
|
+
break;
|
997
|
+
default:
|
998
|
+
reader.skipField();
|
999
|
+
break;
|
1000
|
+
}
|
1001
|
+
}
|
1002
|
+
return msg;
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
|
1006
|
+
/**
|
1007
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1008
|
+
* @return {!Uint8Array}
|
1009
|
+
*/
|
1010
|
+
proto.loyalty.LoyaltySearchRequest.prototype.serializeBinary = function() {
|
1011
|
+
var writer = new jspb.BinaryWriter();
|
1012
|
+
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter(this, writer);
|
1013
|
+
return writer.getResultBuffer();
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
|
1017
|
+
/**
|
1018
|
+
* Serializes the given message to binary data (in protobuf wire
|
1019
|
+
* format), writing to the given BinaryWriter.
|
1020
|
+
* @param {!proto.loyalty.LoyaltySearchRequest} message
|
1021
|
+
* @param {!jspb.BinaryWriter} writer
|
1022
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1023
|
+
*/
|
1024
|
+
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1025
|
+
var f = undefined;
|
1026
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1027
|
+
if (f != null) {
|
1028
|
+
writer.writeInt32(
|
1029
|
+
1,
|
1030
|
+
f
|
1031
|
+
);
|
1032
|
+
}
|
1033
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1034
|
+
if (f != null) {
|
1035
|
+
writer.writeInt32(
|
1036
|
+
2,
|
1037
|
+
f
|
1038
|
+
);
|
1039
|
+
}
|
1040
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1041
|
+
if (f != null) {
|
1042
|
+
writer.writeString(
|
1043
|
+
3,
|
1044
|
+
f
|
1045
|
+
);
|
1046
|
+
}
|
1047
|
+
};
|
1048
|
+
|
1049
|
+
|
1050
|
+
/**
|
1051
|
+
* optional int32 loyalty_id = 1;
|
1052
|
+
* @return {number}
|
1053
|
+
*/
|
1054
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getLoyaltyId = function() {
|
1055
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1056
|
+
};
|
1057
|
+
|
1058
|
+
|
1059
|
+
/**
|
1060
|
+
* @param {number} value
|
1061
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1062
|
+
*/
|
1063
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setLoyaltyId = function(value) {
|
1064
|
+
return jspb.Message.setField(this, 1, value);
|
1065
|
+
};
|
1066
|
+
|
1067
|
+
|
1068
|
+
/**
|
1069
|
+
* Clears the field making it undefined.
|
1070
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1071
|
+
*/
|
1072
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearLoyaltyId = function() {
|
1073
|
+
return jspb.Message.setField(this, 1, undefined);
|
1074
|
+
};
|
1075
|
+
|
1076
|
+
|
1077
|
+
/**
|
1078
|
+
* Returns whether this field is set.
|
1079
|
+
* @return {boolean}
|
1080
|
+
*/
|
1081
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasLoyaltyId = function() {
|
1082
|
+
return jspb.Message.getField(this, 1) != null;
|
1083
|
+
};
|
1084
|
+
|
1085
|
+
|
1086
|
+
/**
|
1087
|
+
* optional int32 user_id = 2;
|
1088
|
+
* @return {number}
|
1089
|
+
*/
|
1090
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getUserId = function() {
|
1091
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1092
|
+
};
|
1093
|
+
|
1094
|
+
|
1095
|
+
/**
|
1096
|
+
* @param {number} value
|
1097
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1098
|
+
*/
|
1099
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setUserId = function(value) {
|
1100
|
+
return jspb.Message.setField(this, 2, value);
|
1101
|
+
};
|
1102
|
+
|
1103
|
+
|
1104
|
+
/**
|
1105
|
+
* Clears the field making it undefined.
|
1106
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1107
|
+
*/
|
1108
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearUserId = function() {
|
1109
|
+
return jspb.Message.setField(this, 2, undefined);
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
|
1113
|
+
/**
|
1114
|
+
* Returns whether this field is set.
|
1115
|
+
* @return {boolean}
|
1116
|
+
*/
|
1117
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasUserId = function() {
|
1118
|
+
return jspb.Message.getField(this, 2) != null;
|
1119
|
+
};
|
1120
|
+
|
1121
|
+
|
1122
|
+
/**
|
1123
|
+
* optional string loyalty_title = 3;
|
1124
|
+
* @return {string}
|
1125
|
+
*/
|
1126
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getLoyaltyTitle = function() {
|
1127
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1128
|
+
};
|
1129
|
+
|
1130
|
+
|
1131
|
+
/**
|
1132
|
+
* @param {string} value
|
1133
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1134
|
+
*/
|
1135
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setLoyaltyTitle = function(value) {
|
1136
|
+
return jspb.Message.setField(this, 3, value);
|
1137
|
+
};
|
1138
|
+
|
1139
|
+
|
1140
|
+
/**
|
1141
|
+
* Clears the field making it undefined.
|
1142
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1143
|
+
*/
|
1144
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearLoyaltyTitle = function() {
|
1145
|
+
return jspb.Message.setField(this, 3, undefined);
|
1146
|
+
};
|
1147
|
+
|
1148
|
+
|
1149
|
+
/**
|
1150
|
+
* Returns whether this field is set.
|
1151
|
+
* @return {boolean}
|
1152
|
+
*/
|
1153
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasLoyaltyTitle = function() {
|
1154
|
+
return jspb.Message.getField(this, 3) != null;
|
1155
|
+
};
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
1161
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1162
|
+
/**
|
1163
|
+
* Creates an object representation of this proto.
|
1164
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1165
|
+
* Optional fields that are not set will be set to undefined.
|
1166
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1167
|
+
* For the list of reserved names please see:
|
1168
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1169
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1170
|
+
* JSPB instance for transitional soy proto support:
|
1171
|
+
* http://goto/soy-param-migration
|
1172
|
+
* @return {!Object}
|
1173
|
+
*/
|
1174
|
+
proto.loyalty.File.prototype.toObject = function(opt_includeInstance) {
|
1175
|
+
return proto.loyalty.File.toObject(opt_includeInstance, this);
|
1176
|
+
};
|
1177
|
+
|
1178
|
+
|
1179
|
+
/**
|
1180
|
+
* Static version of the {@see toObject} method.
|
1181
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1182
|
+
* the JSPB instance for transitional soy proto support:
|
1183
|
+
* http://goto/soy-param-migration
|
1184
|
+
* @param {!proto.loyalty.File} msg The msg instance to transform.
|
1185
|
+
* @return {!Object}
|
1186
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1187
|
+
*/
|
1188
|
+
proto.loyalty.File.toObject = function(includeInstance, msg) {
|
1189
|
+
var f, obj = {
|
1190
|
+
media: msg.getMedia_asB64()
|
1191
|
+
};
|
1192
|
+
|
1193
|
+
if (includeInstance) {
|
1194
|
+
obj.$jspbMessageInstance = msg;
|
1195
|
+
}
|
1196
|
+
return obj;
|
1197
|
+
};
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
|
1201
|
+
/**
|
1202
|
+
* Deserializes binary data (in protobuf wire format).
|
1203
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1204
|
+
* @return {!proto.loyalty.File}
|
1205
|
+
*/
|
1206
|
+
proto.loyalty.File.deserializeBinary = function(bytes) {
|
1207
|
+
var reader = new jspb.BinaryReader(bytes);
|
1208
|
+
var msg = new proto.loyalty.File;
|
1209
|
+
return proto.loyalty.File.deserializeBinaryFromReader(msg, reader);
|
1210
|
+
};
|
1211
|
+
|
1212
|
+
|
1213
|
+
/**
|
1214
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1215
|
+
* given reader into the given message object.
|
1216
|
+
* @param {!proto.loyalty.File} msg The message object to deserialize into.
|
1217
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1218
|
+
* @return {!proto.loyalty.File}
|
1219
|
+
*/
|
1220
|
+
proto.loyalty.File.deserializeBinaryFromReader = function(msg, reader) {
|
1221
|
+
while (reader.nextField()) {
|
1222
|
+
if (reader.isEndGroup()) {
|
1223
|
+
break;
|
1224
|
+
}
|
1225
|
+
var field = reader.getFieldNumber();
|
1226
|
+
switch (field) {
|
1227
|
+
case 1:
|
1228
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1229
|
+
msg.setMedia(value);
|
1230
|
+
break;
|
1231
|
+
default:
|
1232
|
+
reader.skipField();
|
1233
|
+
break;
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
return msg;
|
1237
|
+
};
|
1238
|
+
|
1239
|
+
|
1240
|
+
/**
|
1241
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1242
|
+
* @return {!Uint8Array}
|
1243
|
+
*/
|
1244
|
+
proto.loyalty.File.prototype.serializeBinary = function() {
|
1245
|
+
var writer = new jspb.BinaryWriter();
|
1246
|
+
proto.loyalty.File.serializeBinaryToWriter(this, writer);
|
1247
|
+
return writer.getResultBuffer();
|
1248
|
+
};
|
1249
|
+
|
1250
|
+
|
1251
|
+
/**
|
1252
|
+
* Serializes the given message to binary data (in protobuf wire
|
1253
|
+
* format), writing to the given BinaryWriter.
|
1254
|
+
* @param {!proto.loyalty.File} message
|
1255
|
+
* @param {!jspb.BinaryWriter} writer
|
1256
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1257
|
+
*/
|
1258
|
+
proto.loyalty.File.serializeBinaryToWriter = function(message, writer) {
|
1259
|
+
var f = undefined;
|
1260
|
+
f = message.getMedia_asU8();
|
1261
|
+
if (f.length > 0) {
|
1262
|
+
writer.writeBytes(
|
1263
|
+
1,
|
1264
|
+
f
|
1265
|
+
);
|
1266
|
+
}
|
1267
|
+
};
|
1268
|
+
|
1269
|
+
|
1270
|
+
/**
|
1271
|
+
* optional bytes media = 1;
|
1272
|
+
* @return {!(string|Uint8Array)}
|
1273
|
+
*/
|
1274
|
+
proto.loyalty.File.prototype.getMedia = function() {
|
1275
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1276
|
+
};
|
1277
|
+
|
1278
|
+
|
1279
|
+
/**
|
1280
|
+
* optional bytes media = 1;
|
1281
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1282
|
+
* @return {string}
|
1283
|
+
*/
|
1284
|
+
proto.loyalty.File.prototype.getMedia_asB64 = function() {
|
1285
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
1286
|
+
this.getMedia()));
|
1287
|
+
};
|
1288
|
+
|
1289
|
+
|
1290
|
+
/**
|
1291
|
+
* optional bytes media = 1;
|
1292
|
+
* Note that Uint8Array is not supported on all browsers.
|
1293
|
+
* @see http://caniuse.com/Uint8Array
|
1294
|
+
* This is a type-conversion wrapper around `getMedia()`
|
1295
|
+
* @return {!Uint8Array}
|
1296
|
+
*/
|
1297
|
+
proto.loyalty.File.prototype.getMedia_asU8 = function() {
|
1298
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
1299
|
+
this.getMedia()));
|
1300
|
+
};
|
1301
|
+
|
1302
|
+
|
1303
|
+
/**
|
1304
|
+
* @param {!(string|Uint8Array)} value
|
1305
|
+
* @return {!proto.loyalty.File} returns this
|
1306
|
+
*/
|
1307
|
+
proto.loyalty.File.prototype.setMedia = function(value) {
|
1308
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1309
|
+
};
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
|
1315
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1316
|
+
/**
|
1317
|
+
* Creates an object representation of this proto.
|
1318
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1319
|
+
* Optional fields that are not set will be set to undefined.
|
1320
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1321
|
+
* For the list of reserved names please see:
|
1322
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1323
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1324
|
+
* JSPB instance for transitional soy proto support:
|
1325
|
+
* http://goto/soy-param-migration
|
1326
|
+
* @return {!Object}
|
1327
|
+
*/
|
1328
|
+
proto.loyalty.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
|
1329
|
+
return proto.loyalty.GetFileRequest.toObject(opt_includeInstance, this);
|
1330
|
+
};
|
1331
|
+
|
1332
|
+
|
1333
|
+
/**
|
1334
|
+
* Static version of the {@see toObject} method.
|
1335
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1336
|
+
* the JSPB instance for transitional soy proto support:
|
1337
|
+
* http://goto/soy-param-migration
|
1338
|
+
* @param {!proto.loyalty.GetFileRequest} msg The msg instance to transform.
|
1339
|
+
* @return {!Object}
|
1340
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1341
|
+
*/
|
1342
|
+
proto.loyalty.GetFileRequest.toObject = function(includeInstance, msg) {
|
1343
|
+
var f, obj = {
|
1344
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1345
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1346
|
+
};
|
1347
|
+
|
1348
|
+
if (includeInstance) {
|
1349
|
+
obj.$jspbMessageInstance = msg;
|
1350
|
+
}
|
1351
|
+
return obj;
|
1352
|
+
};
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
|
1356
|
+
/**
|
1357
|
+
* Deserializes binary data (in protobuf wire format).
|
1358
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1359
|
+
* @return {!proto.loyalty.GetFileRequest}
|
1360
|
+
*/
|
1361
|
+
proto.loyalty.GetFileRequest.deserializeBinary = function(bytes) {
|
1362
|
+
var reader = new jspb.BinaryReader(bytes);
|
1363
|
+
var msg = new proto.loyalty.GetFileRequest;
|
1364
|
+
return proto.loyalty.GetFileRequest.deserializeBinaryFromReader(msg, reader);
|
1365
|
+
};
|
1366
|
+
|
1367
|
+
|
1368
|
+
/**
|
1369
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1370
|
+
* given reader into the given message object.
|
1371
|
+
* @param {!proto.loyalty.GetFileRequest} msg The message object to deserialize into.
|
1372
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1373
|
+
* @return {!proto.loyalty.GetFileRequest}
|
1374
|
+
*/
|
1375
|
+
proto.loyalty.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1376
|
+
while (reader.nextField()) {
|
1377
|
+
if (reader.isEndGroup()) {
|
1378
|
+
break;
|
1379
|
+
}
|
1380
|
+
var field = reader.getFieldNumber();
|
1381
|
+
switch (field) {
|
1382
|
+
case 1:
|
1383
|
+
var value = /** @type {string} */ (reader.readString());
|
1384
|
+
msg.setFileName(value);
|
1385
|
+
break;
|
1386
|
+
case 2:
|
1387
|
+
var value = /** @type {string} */ (reader.readString());
|
1388
|
+
msg.setInstanceType(value);
|
1389
|
+
break;
|
1390
|
+
default:
|
1391
|
+
reader.skipField();
|
1392
|
+
break;
|
1393
|
+
}
|
1394
|
+
}
|
1395
|
+
return msg;
|
1396
|
+
};
|
1397
|
+
|
1398
|
+
|
1399
|
+
/**
|
1400
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1401
|
+
* @return {!Uint8Array}
|
1402
|
+
*/
|
1403
|
+
proto.loyalty.GetFileRequest.prototype.serializeBinary = function() {
|
1404
|
+
var writer = new jspb.BinaryWriter();
|
1405
|
+
proto.loyalty.GetFileRequest.serializeBinaryToWriter(this, writer);
|
1406
|
+
return writer.getResultBuffer();
|
1407
|
+
};
|
1408
|
+
|
1409
|
+
|
1410
|
+
/**
|
1411
|
+
* Serializes the given message to binary data (in protobuf wire
|
1412
|
+
* format), writing to the given BinaryWriter.
|
1413
|
+
* @param {!proto.loyalty.GetFileRequest} message
|
1414
|
+
* @param {!jspb.BinaryWriter} writer
|
1415
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1416
|
+
*/
|
1417
|
+
proto.loyalty.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
|
1418
|
+
var f = undefined;
|
1419
|
+
f = message.getFileName();
|
1420
|
+
if (f.length > 0) {
|
1421
|
+
writer.writeString(
|
1422
|
+
1,
|
1423
|
+
f
|
1424
|
+
);
|
1425
|
+
}
|
1426
|
+
f = message.getInstanceType();
|
1427
|
+
if (f.length > 0) {
|
1428
|
+
writer.writeString(
|
1429
|
+
2,
|
1430
|
+
f
|
1431
|
+
);
|
1432
|
+
}
|
1433
|
+
};
|
1434
|
+
|
1435
|
+
|
1436
|
+
/**
|
1437
|
+
* optional string file_name = 1;
|
1438
|
+
* @return {string}
|
1439
|
+
*/
|
1440
|
+
proto.loyalty.GetFileRequest.prototype.getFileName = function() {
|
1441
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1442
|
+
};
|
1443
|
+
|
1444
|
+
|
1445
|
+
/**
|
1446
|
+
* @param {string} value
|
1447
|
+
* @return {!proto.loyalty.GetFileRequest} returns this
|
1448
|
+
*/
|
1449
|
+
proto.loyalty.GetFileRequest.prototype.setFileName = function(value) {
|
1450
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1451
|
+
};
|
1452
|
+
|
1453
|
+
|
1454
|
+
/**
|
1455
|
+
* optional string instance_type = 2;
|
1456
|
+
* @return {string}
|
1457
|
+
*/
|
1458
|
+
proto.loyalty.GetFileRequest.prototype.getInstanceType = function() {
|
1459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1460
|
+
};
|
1461
|
+
|
1462
|
+
|
1463
|
+
/**
|
1464
|
+
* @param {string} value
|
1465
|
+
* @return {!proto.loyalty.GetFileRequest} returns this
|
1466
|
+
*/
|
1467
|
+
proto.loyalty.GetFileRequest.prototype.setInstanceType = function(value) {
|
1468
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
1469
|
+
};
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1476
|
+
/**
|
1477
|
+
* Creates an object representation of this proto.
|
1478
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1479
|
+
* Optional fields that are not set will be set to undefined.
|
1480
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1481
|
+
* For the list of reserved names please see:
|
1482
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1483
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1484
|
+
* JSPB instance for transitional soy proto support:
|
1485
|
+
* http://goto/soy-param-migration
|
1486
|
+
* @return {!Object}
|
1487
|
+
*/
|
1488
|
+
proto.loyalty.LevelItem.prototype.toObject = function(opt_includeInstance) {
|
1489
|
+
return proto.loyalty.LevelItem.toObject(opt_includeInstance, this);
|
1490
|
+
};
|
1491
|
+
|
1492
|
+
|
1493
|
+
/**
|
1494
|
+
* Static version of the {@see toObject} method.
|
1495
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1496
|
+
* the JSPB instance for transitional soy proto support:
|
1497
|
+
* http://goto/soy-param-migration
|
1498
|
+
* @param {!proto.loyalty.LevelItem} msg The msg instance to transform.
|
1499
|
+
* @return {!Object}
|
1500
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1501
|
+
*/
|
1502
|
+
proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
1503
|
+
var f, obj = {
|
1504
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1505
|
+
levelNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1506
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1507
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1508
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1509
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1510
|
+
valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
1511
|
+
};
|
1512
|
+
|
1513
|
+
if (includeInstance) {
|
1514
|
+
obj.$jspbMessageInstance = msg;
|
1515
|
+
}
|
1516
|
+
return obj;
|
1517
|
+
};
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
|
1521
|
+
/**
|
1522
|
+
* Deserializes binary data (in protobuf wire format).
|
1523
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1524
|
+
* @return {!proto.loyalty.LevelItem}
|
1525
|
+
*/
|
1526
|
+
proto.loyalty.LevelItem.deserializeBinary = function(bytes) {
|
1527
|
+
var reader = new jspb.BinaryReader(bytes);
|
1528
|
+
var msg = new proto.loyalty.LevelItem;
|
1529
|
+
return proto.loyalty.LevelItem.deserializeBinaryFromReader(msg, reader);
|
1530
|
+
};
|
1531
|
+
|
1532
|
+
|
1533
|
+
/**
|
1534
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1535
|
+
* given reader into the given message object.
|
1536
|
+
* @param {!proto.loyalty.LevelItem} msg The message object to deserialize into.
|
1537
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1538
|
+
* @return {!proto.loyalty.LevelItem}
|
1539
|
+
*/
|
1540
|
+
proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
1541
|
+
while (reader.nextField()) {
|
1542
|
+
if (reader.isEndGroup()) {
|
1543
|
+
break;
|
1544
|
+
}
|
1545
|
+
var field = reader.getFieldNumber();
|
1546
|
+
switch (field) {
|
1547
|
+
case 1:
|
1548
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1549
|
+
msg.setId(value);
|
1550
|
+
break;
|
1551
|
+
case 2:
|
1552
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1553
|
+
msg.setLevelNumber(value);
|
1554
|
+
break;
|
1555
|
+
case 3:
|
1556
|
+
var value = /** @type {string} */ (reader.readString());
|
1557
|
+
msg.setTitle(value);
|
1558
|
+
break;
|
1559
|
+
case 4:
|
1560
|
+
var value = /** @type {string} */ (reader.readString());
|
1561
|
+
msg.setDescription(value);
|
1562
|
+
break;
|
1563
|
+
case 5:
|
1564
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1565
|
+
msg.setIsActive(value);
|
1566
|
+
break;
|
1567
|
+
case 6:
|
1568
|
+
var value = /** @type {string} */ (reader.readString());
|
1569
|
+
msg.setImage(value);
|
1570
|
+
break;
|
1571
|
+
case 7:
|
1572
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1573
|
+
msg.setValueToComplete(value);
|
1574
|
+
break;
|
1575
|
+
default:
|
1576
|
+
reader.skipField();
|
1577
|
+
break;
|
1578
|
+
}
|
1579
|
+
}
|
1580
|
+
return msg;
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
|
1584
|
+
/**
|
1585
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1586
|
+
* @return {!Uint8Array}
|
1587
|
+
*/
|
1588
|
+
proto.loyalty.LevelItem.prototype.serializeBinary = function() {
|
1589
|
+
var writer = new jspb.BinaryWriter();
|
1590
|
+
proto.loyalty.LevelItem.serializeBinaryToWriter(this, writer);
|
1591
|
+
return writer.getResultBuffer();
|
1592
|
+
};
|
1593
|
+
|
1594
|
+
|
1595
|
+
/**
|
1596
|
+
* Serializes the given message to binary data (in protobuf wire
|
1597
|
+
* format), writing to the given BinaryWriter.
|
1598
|
+
* @param {!proto.loyalty.LevelItem} message
|
1599
|
+
* @param {!jspb.BinaryWriter} writer
|
1600
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1601
|
+
*/
|
1602
|
+
proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
1603
|
+
var f = undefined;
|
1604
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1605
|
+
if (f != null) {
|
1606
|
+
writer.writeInt32(
|
1607
|
+
1,
|
1608
|
+
f
|
1609
|
+
);
|
1610
|
+
}
|
1611
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1612
|
+
if (f != null) {
|
1613
|
+
writer.writeInt32(
|
1614
|
+
2,
|
1615
|
+
f
|
1616
|
+
);
|
1617
|
+
}
|
1618
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1619
|
+
if (f != null) {
|
1620
|
+
writer.writeString(
|
1621
|
+
3,
|
1622
|
+
f
|
1623
|
+
);
|
1624
|
+
}
|
1625
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1626
|
+
if (f != null) {
|
1627
|
+
writer.writeString(
|
1628
|
+
4,
|
1629
|
+
f
|
1630
|
+
);
|
1631
|
+
}
|
1632
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1633
|
+
if (f != null) {
|
1634
|
+
writer.writeInt32(
|
1635
|
+
5,
|
1636
|
+
f
|
1637
|
+
);
|
1638
|
+
}
|
1639
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1640
|
+
if (f != null) {
|
1641
|
+
writer.writeString(
|
1642
|
+
6,
|
1643
|
+
f
|
1644
|
+
);
|
1645
|
+
}
|
1646
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
1647
|
+
if (f != null) {
|
1648
|
+
writer.writeInt32(
|
1649
|
+
7,
|
1650
|
+
f
|
1651
|
+
);
|
1652
|
+
}
|
1653
|
+
};
|
1654
|
+
|
1655
|
+
|
1656
|
+
/**
|
1657
|
+
* optional int32 id = 1;
|
1658
|
+
* @return {number}
|
1659
|
+
*/
|
1660
|
+
proto.loyalty.LevelItem.prototype.getId = function() {
|
1661
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1662
|
+
};
|
1663
|
+
|
1664
|
+
|
1665
|
+
/**
|
1666
|
+
* @param {number} value
|
1667
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1668
|
+
*/
|
1669
|
+
proto.loyalty.LevelItem.prototype.setId = function(value) {
|
1670
|
+
return jspb.Message.setField(this, 1, value);
|
1671
|
+
};
|
1672
|
+
|
1673
|
+
|
1674
|
+
/**
|
1675
|
+
* Clears the field making it undefined.
|
1676
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1677
|
+
*/
|
1678
|
+
proto.loyalty.LevelItem.prototype.clearId = function() {
|
1679
|
+
return jspb.Message.setField(this, 1, undefined);
|
1680
|
+
};
|
1681
|
+
|
1682
|
+
|
1683
|
+
/**
|
1684
|
+
* Returns whether this field is set.
|
1685
|
+
* @return {boolean}
|
1686
|
+
*/
|
1687
|
+
proto.loyalty.LevelItem.prototype.hasId = function() {
|
1688
|
+
return jspb.Message.getField(this, 1) != null;
|
1689
|
+
};
|
1690
|
+
|
1691
|
+
|
1692
|
+
/**
|
1693
|
+
* optional int32 level_number = 2;
|
1694
|
+
* @return {number}
|
1695
|
+
*/
|
1696
|
+
proto.loyalty.LevelItem.prototype.getLevelNumber = function() {
|
1697
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1698
|
+
};
|
1699
|
+
|
1700
|
+
|
1701
|
+
/**
|
1702
|
+
* @param {number} value
|
1703
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1704
|
+
*/
|
1705
|
+
proto.loyalty.LevelItem.prototype.setLevelNumber = function(value) {
|
1706
|
+
return jspb.Message.setField(this, 2, value);
|
1707
|
+
};
|
1708
|
+
|
1709
|
+
|
1710
|
+
/**
|
1711
|
+
* Clears the field making it undefined.
|
1712
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1713
|
+
*/
|
1714
|
+
proto.loyalty.LevelItem.prototype.clearLevelNumber = function() {
|
1715
|
+
return jspb.Message.setField(this, 2, undefined);
|
1716
|
+
};
|
1717
|
+
|
1718
|
+
|
1719
|
+
/**
|
1720
|
+
* Returns whether this field is set.
|
1721
|
+
* @return {boolean}
|
1722
|
+
*/
|
1723
|
+
proto.loyalty.LevelItem.prototype.hasLevelNumber = function() {
|
1724
|
+
return jspb.Message.getField(this, 2) != null;
|
1725
|
+
};
|
1726
|
+
|
1727
|
+
|
1728
|
+
/**
|
1729
|
+
* optional string title = 3;
|
1730
|
+
* @return {string}
|
1731
|
+
*/
|
1732
|
+
proto.loyalty.LevelItem.prototype.getTitle = function() {
|
1733
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1734
|
+
};
|
1735
|
+
|
1736
|
+
|
1737
|
+
/**
|
1738
|
+
* @param {string} value
|
1739
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1740
|
+
*/
|
1741
|
+
proto.loyalty.LevelItem.prototype.setTitle = function(value) {
|
1742
|
+
return jspb.Message.setField(this, 3, value);
|
1743
|
+
};
|
1744
|
+
|
1745
|
+
|
1746
|
+
/**
|
1747
|
+
* Clears the field making it undefined.
|
1748
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1749
|
+
*/
|
1750
|
+
proto.loyalty.LevelItem.prototype.clearTitle = function() {
|
1751
|
+
return jspb.Message.setField(this, 3, undefined);
|
1752
|
+
};
|
1753
|
+
|
1754
|
+
|
1755
|
+
/**
|
1756
|
+
* Returns whether this field is set.
|
1757
|
+
* @return {boolean}
|
1758
|
+
*/
|
1759
|
+
proto.loyalty.LevelItem.prototype.hasTitle = function() {
|
1760
|
+
return jspb.Message.getField(this, 3) != null;
|
1761
|
+
};
|
1762
|
+
|
1763
|
+
|
1764
|
+
/**
|
1765
|
+
* optional string description = 4;
|
1766
|
+
* @return {string}
|
1767
|
+
*/
|
1768
|
+
proto.loyalty.LevelItem.prototype.getDescription = function() {
|
1769
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1770
|
+
};
|
1771
|
+
|
1772
|
+
|
1773
|
+
/**
|
1774
|
+
* @param {string} value
|
1775
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1776
|
+
*/
|
1777
|
+
proto.loyalty.LevelItem.prototype.setDescription = function(value) {
|
1778
|
+
return jspb.Message.setField(this, 4, value);
|
1779
|
+
};
|
1780
|
+
|
1781
|
+
|
1782
|
+
/**
|
1783
|
+
* Clears the field making it undefined.
|
1784
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1785
|
+
*/
|
1786
|
+
proto.loyalty.LevelItem.prototype.clearDescription = function() {
|
1787
|
+
return jspb.Message.setField(this, 4, undefined);
|
1788
|
+
};
|
1789
|
+
|
1790
|
+
|
1791
|
+
/**
|
1792
|
+
* Returns whether this field is set.
|
1793
|
+
* @return {boolean}
|
1794
|
+
*/
|
1795
|
+
proto.loyalty.LevelItem.prototype.hasDescription = function() {
|
1796
|
+
return jspb.Message.getField(this, 4) != null;
|
1797
|
+
};
|
1798
|
+
|
1799
|
+
|
1800
|
+
/**
|
1801
|
+
* optional int32 is_active = 5;
|
1802
|
+
* @return {number}
|
1803
|
+
*/
|
1804
|
+
proto.loyalty.LevelItem.prototype.getIsActive = function() {
|
1805
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1806
|
+
};
|
1807
|
+
|
1808
|
+
|
1809
|
+
/**
|
1810
|
+
* @param {number} value
|
1811
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1812
|
+
*/
|
1813
|
+
proto.loyalty.LevelItem.prototype.setIsActive = function(value) {
|
1814
|
+
return jspb.Message.setField(this, 5, value);
|
1815
|
+
};
|
1816
|
+
|
1817
|
+
|
1818
|
+
/**
|
1819
|
+
* Clears the field making it undefined.
|
1820
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1821
|
+
*/
|
1822
|
+
proto.loyalty.LevelItem.prototype.clearIsActive = function() {
|
1823
|
+
return jspb.Message.setField(this, 5, undefined);
|
1824
|
+
};
|
1825
|
+
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* Returns whether this field is set.
|
1829
|
+
* @return {boolean}
|
1830
|
+
*/
|
1831
|
+
proto.loyalty.LevelItem.prototype.hasIsActive = function() {
|
1832
|
+
return jspb.Message.getField(this, 5) != null;
|
1833
|
+
};
|
1834
|
+
|
1835
|
+
|
1836
|
+
/**
|
1837
|
+
* optional string image = 6;
|
1838
|
+
* @return {string}
|
1839
|
+
*/
|
1840
|
+
proto.loyalty.LevelItem.prototype.getImage = function() {
|
1841
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1842
|
+
};
|
1843
|
+
|
1844
|
+
|
1845
|
+
/**
|
1846
|
+
* @param {string} value
|
1847
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1848
|
+
*/
|
1849
|
+
proto.loyalty.LevelItem.prototype.setImage = function(value) {
|
1850
|
+
return jspb.Message.setField(this, 6, value);
|
1851
|
+
};
|
1852
|
+
|
1853
|
+
|
1854
|
+
/**
|
1855
|
+
* Clears the field making it undefined.
|
1856
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1857
|
+
*/
|
1858
|
+
proto.loyalty.LevelItem.prototype.clearImage = function() {
|
1859
|
+
return jspb.Message.setField(this, 6, undefined);
|
1860
|
+
};
|
1861
|
+
|
1862
|
+
|
1863
|
+
/**
|
1864
|
+
* Returns whether this field is set.
|
1865
|
+
* @return {boolean}
|
1866
|
+
*/
|
1867
|
+
proto.loyalty.LevelItem.prototype.hasImage = function() {
|
1868
|
+
return jspb.Message.getField(this, 6) != null;
|
1869
|
+
};
|
1870
|
+
|
1871
|
+
|
1872
|
+
/**
|
1873
|
+
* optional int32 value_to_complete = 7;
|
1874
|
+
* @return {number}
|
1875
|
+
*/
|
1876
|
+
proto.loyalty.LevelItem.prototype.getValueToComplete = function() {
|
1877
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
1878
|
+
};
|
1879
|
+
|
1880
|
+
|
1881
|
+
/**
|
1882
|
+
* @param {number} value
|
1883
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1884
|
+
*/
|
1885
|
+
proto.loyalty.LevelItem.prototype.setValueToComplete = function(value) {
|
1886
|
+
return jspb.Message.setField(this, 7, value);
|
1887
|
+
};
|
1888
|
+
|
1889
|
+
|
1890
|
+
/**
|
1891
|
+
* Clears the field making it undefined.
|
1892
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
1893
|
+
*/
|
1894
|
+
proto.loyalty.LevelItem.prototype.clearValueToComplete = function() {
|
1895
|
+
return jspb.Message.setField(this, 7, undefined);
|
1896
|
+
};
|
1897
|
+
|
1898
|
+
|
1899
|
+
/**
|
1900
|
+
* Returns whether this field is set.
|
1901
|
+
* @return {boolean}
|
1902
|
+
*/
|
1903
|
+
proto.loyalty.LevelItem.prototype.hasValueToComplete = function() {
|
1904
|
+
return jspb.Message.getField(this, 7) != null;
|
1905
|
+
};
|
1906
|
+
|
1907
|
+
|
1908
|
+
|
1909
|
+
/**
|
1910
|
+
* Oneof group definitions for this message. Each group defines the field
|
1911
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
1912
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
1913
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
1914
|
+
* @private {!Array<!Array<number>>}
|
1915
|
+
* @const
|
1916
|
+
*/
|
1917
|
+
proto.loyalty.LevelRequest.oneofGroups_ = [[1,2]];
|
1918
|
+
|
1919
|
+
/**
|
1920
|
+
* @enum {number}
|
1921
|
+
*/
|
1922
|
+
proto.loyalty.LevelRequest.RequestCase = {
|
1923
|
+
REQUEST_NOT_SET: 0,
|
1924
|
+
LEVEL_DATA: 1,
|
1925
|
+
FILE: 2
|
1926
|
+
};
|
1927
|
+
|
1928
|
+
/**
|
1929
|
+
* @return {proto.loyalty.LevelRequest.RequestCase}
|
1930
|
+
*/
|
1931
|
+
proto.loyalty.LevelRequest.prototype.getRequestCase = function() {
|
1932
|
+
return /** @type {proto.loyalty.LevelRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.loyalty.LevelRequest.oneofGroups_[0]));
|
1933
|
+
};
|
1934
|
+
|
1935
|
+
|
1936
|
+
|
1937
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1938
|
+
/**
|
1939
|
+
* Creates an object representation of this proto.
|
1940
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1941
|
+
* Optional fields that are not set will be set to undefined.
|
1942
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1943
|
+
* For the list of reserved names please see:
|
1944
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1945
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1946
|
+
* JSPB instance for transitional soy proto support:
|
1947
|
+
* http://goto/soy-param-migration
|
1948
|
+
* @return {!Object}
|
1949
|
+
*/
|
1950
|
+
proto.loyalty.LevelRequest.prototype.toObject = function(opt_includeInstance) {
|
1951
|
+
return proto.loyalty.LevelRequest.toObject(opt_includeInstance, this);
|
1952
|
+
};
|
1953
|
+
|
1954
|
+
|
1955
|
+
/**
|
1956
|
+
* Static version of the {@see toObject} method.
|
1957
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1958
|
+
* the JSPB instance for transitional soy proto support:
|
1959
|
+
* http://goto/soy-param-migration
|
1960
|
+
* @param {!proto.loyalty.LevelRequest} msg The msg instance to transform.
|
1961
|
+
* @return {!Object}
|
1962
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1963
|
+
*/
|
1964
|
+
proto.loyalty.LevelRequest.toObject = function(includeInstance, msg) {
|
1965
|
+
var f, obj = {
|
1966
|
+
levelData: (f = msg.getLevelData()) && proto.loyalty.LevelItemRequest.toObject(includeInstance, f),
|
1967
|
+
file: (f = msg.getFile()) && proto.loyalty.File.toObject(includeInstance, f)
|
1968
|
+
};
|
1969
|
+
|
1970
|
+
if (includeInstance) {
|
1971
|
+
obj.$jspbMessageInstance = msg;
|
1972
|
+
}
|
1973
|
+
return obj;
|
1974
|
+
};
|
1975
|
+
}
|
1976
|
+
|
1977
|
+
|
1978
|
+
/**
|
1979
|
+
* Deserializes binary data (in protobuf wire format).
|
1980
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1981
|
+
* @return {!proto.loyalty.LevelRequest}
|
1982
|
+
*/
|
1983
|
+
proto.loyalty.LevelRequest.deserializeBinary = function(bytes) {
|
1984
|
+
var reader = new jspb.BinaryReader(bytes);
|
1985
|
+
var msg = new proto.loyalty.LevelRequest;
|
1986
|
+
return proto.loyalty.LevelRequest.deserializeBinaryFromReader(msg, reader);
|
1987
|
+
};
|
1988
|
+
|
1989
|
+
|
1990
|
+
/**
|
1991
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1992
|
+
* given reader into the given message object.
|
1993
|
+
* @param {!proto.loyalty.LevelRequest} msg The message object to deserialize into.
|
1994
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1995
|
+
* @return {!proto.loyalty.LevelRequest}
|
1996
|
+
*/
|
1997
|
+
proto.loyalty.LevelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1998
|
+
while (reader.nextField()) {
|
1999
|
+
if (reader.isEndGroup()) {
|
2000
|
+
break;
|
2001
|
+
}
|
2002
|
+
var field = reader.getFieldNumber();
|
2003
|
+
switch (field) {
|
2004
|
+
case 1:
|
2005
|
+
var value = new proto.loyalty.LevelItemRequest;
|
2006
|
+
reader.readMessage(value,proto.loyalty.LevelItemRequest.deserializeBinaryFromReader);
|
2007
|
+
msg.setLevelData(value);
|
2008
|
+
break;
|
2009
|
+
case 2:
|
2010
|
+
var value = new proto.loyalty.File;
|
2011
|
+
reader.readMessage(value,proto.loyalty.File.deserializeBinaryFromReader);
|
2012
|
+
msg.setFile(value);
|
2013
|
+
break;
|
2014
|
+
default:
|
2015
|
+
reader.skipField();
|
2016
|
+
break;
|
2017
|
+
}
|
2018
|
+
}
|
2019
|
+
return msg;
|
2020
|
+
};
|
2021
|
+
|
2022
|
+
|
2023
|
+
/**
|
2024
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2025
|
+
* @return {!Uint8Array}
|
2026
|
+
*/
|
2027
|
+
proto.loyalty.LevelRequest.prototype.serializeBinary = function() {
|
2028
|
+
var writer = new jspb.BinaryWriter();
|
2029
|
+
proto.loyalty.LevelRequest.serializeBinaryToWriter(this, writer);
|
2030
|
+
return writer.getResultBuffer();
|
2031
|
+
};
|
2032
|
+
|
2033
|
+
|
2034
|
+
/**
|
2035
|
+
* Serializes the given message to binary data (in protobuf wire
|
2036
|
+
* format), writing to the given BinaryWriter.
|
2037
|
+
* @param {!proto.loyalty.LevelRequest} message
|
2038
|
+
* @param {!jspb.BinaryWriter} writer
|
2039
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2040
|
+
*/
|
2041
|
+
proto.loyalty.LevelRequest.serializeBinaryToWriter = function(message, writer) {
|
2042
|
+
var f = undefined;
|
2043
|
+
f = message.getLevelData();
|
2044
|
+
if (f != null) {
|
2045
|
+
writer.writeMessage(
|
2046
|
+
1,
|
2047
|
+
f,
|
2048
|
+
proto.loyalty.LevelItemRequest.serializeBinaryToWriter
|
2049
|
+
);
|
2050
|
+
}
|
2051
|
+
f = message.getFile();
|
2052
|
+
if (f != null) {
|
2053
|
+
writer.writeMessage(
|
2054
|
+
2,
|
2055
|
+
f,
|
2056
|
+
proto.loyalty.File.serializeBinaryToWriter
|
2057
|
+
);
|
2058
|
+
}
|
2059
|
+
};
|
2060
|
+
|
2061
|
+
|
2062
|
+
/**
|
2063
|
+
* optional LevelItemRequest level_data = 1;
|
2064
|
+
* @return {?proto.loyalty.LevelItemRequest}
|
2065
|
+
*/
|
2066
|
+
proto.loyalty.LevelRequest.prototype.getLevelData = function() {
|
2067
|
+
return /** @type{?proto.loyalty.LevelItemRequest} */ (
|
2068
|
+
jspb.Message.getWrapperField(this, proto.loyalty.LevelItemRequest, 1));
|
2069
|
+
};
|
2070
|
+
|
2071
|
+
|
2072
|
+
/**
|
2073
|
+
* @param {?proto.loyalty.LevelItemRequest|undefined} value
|
2074
|
+
* @return {!proto.loyalty.LevelRequest} returns this
|
2075
|
+
*/
|
2076
|
+
proto.loyalty.LevelRequest.prototype.setLevelData = function(value) {
|
2077
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.loyalty.LevelRequest.oneofGroups_[0], value);
|
2078
|
+
};
|
2079
|
+
|
2080
|
+
|
2081
|
+
/**
|
2082
|
+
* Clears the message field making it undefined.
|
2083
|
+
* @return {!proto.loyalty.LevelRequest} returns this
|
2084
|
+
*/
|
2085
|
+
proto.loyalty.LevelRequest.prototype.clearLevelData = function() {
|
2086
|
+
return this.setLevelData(undefined);
|
2087
|
+
};
|
2088
|
+
|
2089
|
+
|
2090
|
+
/**
|
2091
|
+
* Returns whether this field is set.
|
2092
|
+
* @return {boolean}
|
2093
|
+
*/
|
2094
|
+
proto.loyalty.LevelRequest.prototype.hasLevelData = function() {
|
2095
|
+
return jspb.Message.getField(this, 1) != null;
|
2096
|
+
};
|
2097
|
+
|
2098
|
+
|
2099
|
+
/**
|
2100
|
+
* optional File file = 2;
|
2101
|
+
* @return {?proto.loyalty.File}
|
2102
|
+
*/
|
2103
|
+
proto.loyalty.LevelRequest.prototype.getFile = function() {
|
2104
|
+
return /** @type{?proto.loyalty.File} */ (
|
2105
|
+
jspb.Message.getWrapperField(this, proto.loyalty.File, 2));
|
2106
|
+
};
|
2107
|
+
|
2108
|
+
|
2109
|
+
/**
|
2110
|
+
* @param {?proto.loyalty.File|undefined} value
|
2111
|
+
* @return {!proto.loyalty.LevelRequest} returns this
|
2112
|
+
*/
|
2113
|
+
proto.loyalty.LevelRequest.prototype.setFile = function(value) {
|
2114
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.loyalty.LevelRequest.oneofGroups_[0], value);
|
2115
|
+
};
|
2116
|
+
|
2117
|
+
|
2118
|
+
/**
|
2119
|
+
* Clears the message field making it undefined.
|
2120
|
+
* @return {!proto.loyalty.LevelRequest} returns this
|
2121
|
+
*/
|
2122
|
+
proto.loyalty.LevelRequest.prototype.clearFile = function() {
|
2123
|
+
return this.setFile(undefined);
|
2124
|
+
};
|
2125
|
+
|
2126
|
+
|
2127
|
+
/**
|
2128
|
+
* Returns whether this field is set.
|
2129
|
+
* @return {boolean}
|
2130
|
+
*/
|
2131
|
+
proto.loyalty.LevelRequest.prototype.hasFile = function() {
|
2132
|
+
return jspb.Message.getField(this, 2) != null;
|
2133
|
+
};
|
2134
|
+
|
2135
|
+
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2140
|
+
/**
|
2141
|
+
* Creates an object representation of this proto.
|
2142
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2143
|
+
* Optional fields that are not set will be set to undefined.
|
2144
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2145
|
+
* For the list of reserved names please see:
|
2146
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2147
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2148
|
+
* JSPB instance for transitional soy proto support:
|
2149
|
+
* http://goto/soy-param-migration
|
2150
|
+
* @return {!Object}
|
2151
|
+
*/
|
2152
|
+
proto.loyalty.LevelItemRequest.prototype.toObject = function(opt_includeInstance) {
|
2153
|
+
return proto.loyalty.LevelItemRequest.toObject(opt_includeInstance, this);
|
2154
|
+
};
|
2155
|
+
|
2156
|
+
|
2157
|
+
/**
|
2158
|
+
* Static version of the {@see toObject} method.
|
2159
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2160
|
+
* the JSPB instance for transitional soy proto support:
|
2161
|
+
* http://goto/soy-param-migration
|
2162
|
+
* @param {!proto.loyalty.LevelItemRequest} msg The msg instance to transform.
|
2163
|
+
* @return {!Object}
|
2164
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2165
|
+
*/
|
2166
|
+
proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
2167
|
+
var f, obj = {
|
2168
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2169
|
+
levelNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2170
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2171
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2172
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
2173
|
+
valueToComplete: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
2174
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
2175
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
2176
|
+
};
|
2177
|
+
|
2178
|
+
if (includeInstance) {
|
2179
|
+
obj.$jspbMessageInstance = msg;
|
2180
|
+
}
|
2181
|
+
return obj;
|
2182
|
+
};
|
2183
|
+
}
|
2184
|
+
|
2185
|
+
|
2186
|
+
/**
|
2187
|
+
* Deserializes binary data (in protobuf wire format).
|
2188
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2189
|
+
* @return {!proto.loyalty.LevelItemRequest}
|
2190
|
+
*/
|
2191
|
+
proto.loyalty.LevelItemRequest.deserializeBinary = function(bytes) {
|
2192
|
+
var reader = new jspb.BinaryReader(bytes);
|
2193
|
+
var msg = new proto.loyalty.LevelItemRequest;
|
2194
|
+
return proto.loyalty.LevelItemRequest.deserializeBinaryFromReader(msg, reader);
|
2195
|
+
};
|
2196
|
+
|
2197
|
+
|
2198
|
+
/**
|
2199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2200
|
+
* given reader into the given message object.
|
2201
|
+
* @param {!proto.loyalty.LevelItemRequest} msg The message object to deserialize into.
|
2202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2203
|
+
* @return {!proto.loyalty.LevelItemRequest}
|
2204
|
+
*/
|
2205
|
+
proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2206
|
+
while (reader.nextField()) {
|
2207
|
+
if (reader.isEndGroup()) {
|
2208
|
+
break;
|
2209
|
+
}
|
2210
|
+
var field = reader.getFieldNumber();
|
2211
|
+
switch (field) {
|
2212
|
+
case 1:
|
2213
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2214
|
+
msg.setId(value);
|
2215
|
+
break;
|
2216
|
+
case 2:
|
2217
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2218
|
+
msg.setLevelNumber(value);
|
2219
|
+
break;
|
2220
|
+
case 3:
|
2221
|
+
var value = /** @type {string} */ (reader.readString());
|
2222
|
+
msg.setTitle(value);
|
2223
|
+
break;
|
2224
|
+
case 4:
|
2225
|
+
var value = /** @type {string} */ (reader.readString());
|
2226
|
+
msg.setDescription(value);
|
2227
|
+
break;
|
2228
|
+
case 5:
|
2229
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2230
|
+
msg.setIsActive(value);
|
2231
|
+
break;
|
2232
|
+
case 6:
|
2233
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2234
|
+
msg.setValueToComplete(value);
|
2235
|
+
break;
|
2236
|
+
case 7:
|
2237
|
+
var value = /** @type {string} */ (reader.readString());
|
2238
|
+
msg.setFileName(value);
|
2239
|
+
break;
|
2240
|
+
case 8:
|
2241
|
+
var value = /** @type {string} */ (reader.readString());
|
2242
|
+
msg.setFileType(value);
|
2243
|
+
break;
|
2244
|
+
default:
|
2245
|
+
reader.skipField();
|
2246
|
+
break;
|
2247
|
+
}
|
2248
|
+
}
|
2249
|
+
return msg;
|
2250
|
+
};
|
2251
|
+
|
2252
|
+
|
2253
|
+
/**
|
2254
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2255
|
+
* @return {!Uint8Array}
|
2256
|
+
*/
|
2257
|
+
proto.loyalty.LevelItemRequest.prototype.serializeBinary = function() {
|
2258
|
+
var writer = new jspb.BinaryWriter();
|
2259
|
+
proto.loyalty.LevelItemRequest.serializeBinaryToWriter(this, writer);
|
2260
|
+
return writer.getResultBuffer();
|
2261
|
+
};
|
2262
|
+
|
2263
|
+
|
2264
|
+
/**
|
2265
|
+
* Serializes the given message to binary data (in protobuf wire
|
2266
|
+
* format), writing to the given BinaryWriter.
|
2267
|
+
* @param {!proto.loyalty.LevelItemRequest} message
|
2268
|
+
* @param {!jspb.BinaryWriter} writer
|
2269
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2270
|
+
*/
|
2271
|
+
proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2272
|
+
var f = undefined;
|
2273
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2274
|
+
if (f != null) {
|
2275
|
+
writer.writeInt32(
|
2276
|
+
1,
|
2277
|
+
f
|
2278
|
+
);
|
2279
|
+
}
|
2280
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2281
|
+
if (f != null) {
|
2282
|
+
writer.writeInt32(
|
2283
|
+
2,
|
2284
|
+
f
|
2285
|
+
);
|
2286
|
+
}
|
2287
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2288
|
+
if (f != null) {
|
2289
|
+
writer.writeString(
|
2290
|
+
3,
|
2291
|
+
f
|
2292
|
+
);
|
2293
|
+
}
|
2294
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2295
|
+
if (f != null) {
|
2296
|
+
writer.writeString(
|
2297
|
+
4,
|
2298
|
+
f
|
2299
|
+
);
|
2300
|
+
}
|
2301
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
2302
|
+
if (f != null) {
|
2303
|
+
writer.writeInt32(
|
2304
|
+
5,
|
2305
|
+
f
|
2306
|
+
);
|
2307
|
+
}
|
2308
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
2309
|
+
if (f != null) {
|
2310
|
+
writer.writeInt32(
|
2311
|
+
6,
|
2312
|
+
f
|
2313
|
+
);
|
2314
|
+
}
|
2315
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
2316
|
+
if (f != null) {
|
2317
|
+
writer.writeString(
|
2318
|
+
7,
|
2319
|
+
f
|
2320
|
+
);
|
2321
|
+
}
|
2322
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
2323
|
+
if (f != null) {
|
2324
|
+
writer.writeString(
|
2325
|
+
8,
|
2326
|
+
f
|
2327
|
+
);
|
2328
|
+
}
|
2329
|
+
};
|
2330
|
+
|
2331
|
+
|
2332
|
+
/**
|
2333
|
+
* optional int32 id = 1;
|
2334
|
+
* @return {number}
|
2335
|
+
*/
|
2336
|
+
proto.loyalty.LevelItemRequest.prototype.getId = function() {
|
2337
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2338
|
+
};
|
2339
|
+
|
2340
|
+
|
2341
|
+
/**
|
2342
|
+
* @param {number} value
|
2343
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2344
|
+
*/
|
2345
|
+
proto.loyalty.LevelItemRequest.prototype.setId = function(value) {
|
2346
|
+
return jspb.Message.setField(this, 1, value);
|
2347
|
+
};
|
2348
|
+
|
2349
|
+
|
2350
|
+
/**
|
2351
|
+
* Clears the field making it undefined.
|
2352
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2353
|
+
*/
|
2354
|
+
proto.loyalty.LevelItemRequest.prototype.clearId = function() {
|
2355
|
+
return jspb.Message.setField(this, 1, undefined);
|
2356
|
+
};
|
2357
|
+
|
2358
|
+
|
2359
|
+
/**
|
2360
|
+
* Returns whether this field is set.
|
2361
|
+
* @return {boolean}
|
2362
|
+
*/
|
2363
|
+
proto.loyalty.LevelItemRequest.prototype.hasId = function() {
|
2364
|
+
return jspb.Message.getField(this, 1) != null;
|
2365
|
+
};
|
2366
|
+
|
2367
|
+
|
2368
|
+
/**
|
2369
|
+
* optional int32 level_number = 2;
|
2370
|
+
* @return {number}
|
2371
|
+
*/
|
2372
|
+
proto.loyalty.LevelItemRequest.prototype.getLevelNumber = function() {
|
2373
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2374
|
+
};
|
2375
|
+
|
2376
|
+
|
2377
|
+
/**
|
2378
|
+
* @param {number} value
|
2379
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2380
|
+
*/
|
2381
|
+
proto.loyalty.LevelItemRequest.prototype.setLevelNumber = function(value) {
|
2382
|
+
return jspb.Message.setField(this, 2, value);
|
2383
|
+
};
|
2384
|
+
|
2385
|
+
|
2386
|
+
/**
|
2387
|
+
* Clears the field making it undefined.
|
2388
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2389
|
+
*/
|
2390
|
+
proto.loyalty.LevelItemRequest.prototype.clearLevelNumber = function() {
|
2391
|
+
return jspb.Message.setField(this, 2, undefined);
|
2392
|
+
};
|
2393
|
+
|
2394
|
+
|
2395
|
+
/**
|
2396
|
+
* Returns whether this field is set.
|
2397
|
+
* @return {boolean}
|
2398
|
+
*/
|
2399
|
+
proto.loyalty.LevelItemRequest.prototype.hasLevelNumber = function() {
|
2400
|
+
return jspb.Message.getField(this, 2) != null;
|
2401
|
+
};
|
2402
|
+
|
2403
|
+
|
2404
|
+
/**
|
2405
|
+
* optional string title = 3;
|
2406
|
+
* @return {string}
|
2407
|
+
*/
|
2408
|
+
proto.loyalty.LevelItemRequest.prototype.getTitle = function() {
|
2409
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2410
|
+
};
|
2411
|
+
|
2412
|
+
|
2413
|
+
/**
|
2414
|
+
* @param {string} value
|
2415
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2416
|
+
*/
|
2417
|
+
proto.loyalty.LevelItemRequest.prototype.setTitle = function(value) {
|
2418
|
+
return jspb.Message.setField(this, 3, value);
|
2419
|
+
};
|
2420
|
+
|
2421
|
+
|
2422
|
+
/**
|
2423
|
+
* Clears the field making it undefined.
|
2424
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2425
|
+
*/
|
2426
|
+
proto.loyalty.LevelItemRequest.prototype.clearTitle = function() {
|
2427
|
+
return jspb.Message.setField(this, 3, undefined);
|
2428
|
+
};
|
2429
|
+
|
2430
|
+
|
2431
|
+
/**
|
2432
|
+
* Returns whether this field is set.
|
2433
|
+
* @return {boolean}
|
2434
|
+
*/
|
2435
|
+
proto.loyalty.LevelItemRequest.prototype.hasTitle = function() {
|
2436
|
+
return jspb.Message.getField(this, 3) != null;
|
2437
|
+
};
|
2438
|
+
|
2439
|
+
|
2440
|
+
/**
|
2441
|
+
* optional string description = 4;
|
2442
|
+
* @return {string}
|
2443
|
+
*/
|
2444
|
+
proto.loyalty.LevelItemRequest.prototype.getDescription = function() {
|
2445
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2446
|
+
};
|
2447
|
+
|
2448
|
+
|
2449
|
+
/**
|
2450
|
+
* @param {string} value
|
2451
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2452
|
+
*/
|
2453
|
+
proto.loyalty.LevelItemRequest.prototype.setDescription = function(value) {
|
2454
|
+
return jspb.Message.setField(this, 4, value);
|
2455
|
+
};
|
2456
|
+
|
2457
|
+
|
2458
|
+
/**
|
2459
|
+
* Clears the field making it undefined.
|
2460
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2461
|
+
*/
|
2462
|
+
proto.loyalty.LevelItemRequest.prototype.clearDescription = function() {
|
2463
|
+
return jspb.Message.setField(this, 4, undefined);
|
2464
|
+
};
|
2465
|
+
|
2466
|
+
|
2467
|
+
/**
|
2468
|
+
* Returns whether this field is set.
|
2469
|
+
* @return {boolean}
|
2470
|
+
*/
|
2471
|
+
proto.loyalty.LevelItemRequest.prototype.hasDescription = function() {
|
2472
|
+
return jspb.Message.getField(this, 4) != null;
|
2473
|
+
};
|
2474
|
+
|
2475
|
+
|
2476
|
+
/**
|
2477
|
+
* optional int32 is_active = 5;
|
2478
|
+
* @return {number}
|
2479
|
+
*/
|
2480
|
+
proto.loyalty.LevelItemRequest.prototype.getIsActive = function() {
|
2481
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2482
|
+
};
|
2483
|
+
|
2484
|
+
|
2485
|
+
/**
|
2486
|
+
* @param {number} value
|
2487
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2488
|
+
*/
|
2489
|
+
proto.loyalty.LevelItemRequest.prototype.setIsActive = function(value) {
|
2490
|
+
return jspb.Message.setField(this, 5, value);
|
2491
|
+
};
|
2492
|
+
|
2493
|
+
|
2494
|
+
/**
|
2495
|
+
* Clears the field making it undefined.
|
2496
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2497
|
+
*/
|
2498
|
+
proto.loyalty.LevelItemRequest.prototype.clearIsActive = function() {
|
2499
|
+
return jspb.Message.setField(this, 5, undefined);
|
2500
|
+
};
|
2501
|
+
|
2502
|
+
|
2503
|
+
/**
|
2504
|
+
* Returns whether this field is set.
|
2505
|
+
* @return {boolean}
|
2506
|
+
*/
|
2507
|
+
proto.loyalty.LevelItemRequest.prototype.hasIsActive = function() {
|
2508
|
+
return jspb.Message.getField(this, 5) != null;
|
2509
|
+
};
|
2510
|
+
|
2511
|
+
|
2512
|
+
/**
|
2513
|
+
* optional int32 value_to_complete = 6;
|
2514
|
+
* @return {number}
|
2515
|
+
*/
|
2516
|
+
proto.loyalty.LevelItemRequest.prototype.getValueToComplete = function() {
|
2517
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
2518
|
+
};
|
2519
|
+
|
2520
|
+
|
2521
|
+
/**
|
2522
|
+
* @param {number} value
|
2523
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2524
|
+
*/
|
2525
|
+
proto.loyalty.LevelItemRequest.prototype.setValueToComplete = function(value) {
|
2526
|
+
return jspb.Message.setField(this, 6, value);
|
2527
|
+
};
|
2528
|
+
|
2529
|
+
|
2530
|
+
/**
|
2531
|
+
* Clears the field making it undefined.
|
2532
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2533
|
+
*/
|
2534
|
+
proto.loyalty.LevelItemRequest.prototype.clearValueToComplete = function() {
|
2535
|
+
return jspb.Message.setField(this, 6, undefined);
|
2536
|
+
};
|
2537
|
+
|
2538
|
+
|
2539
|
+
/**
|
2540
|
+
* Returns whether this field is set.
|
2541
|
+
* @return {boolean}
|
2542
|
+
*/
|
2543
|
+
proto.loyalty.LevelItemRequest.prototype.hasValueToComplete = function() {
|
2544
|
+
return jspb.Message.getField(this, 6) != null;
|
2545
|
+
};
|
2546
|
+
|
2547
|
+
|
2548
|
+
/**
|
2549
|
+
* optional string file_name = 7;
|
2550
|
+
* @return {string}
|
2551
|
+
*/
|
2552
|
+
proto.loyalty.LevelItemRequest.prototype.getFileName = function() {
|
2553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
2554
|
+
};
|
2555
|
+
|
2556
|
+
|
2557
|
+
/**
|
2558
|
+
* @param {string} value
|
2559
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2560
|
+
*/
|
2561
|
+
proto.loyalty.LevelItemRequest.prototype.setFileName = function(value) {
|
2562
|
+
return jspb.Message.setField(this, 7, value);
|
2563
|
+
};
|
2564
|
+
|
2565
|
+
|
2566
|
+
/**
|
2567
|
+
* Clears the field making it undefined.
|
2568
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2569
|
+
*/
|
2570
|
+
proto.loyalty.LevelItemRequest.prototype.clearFileName = function() {
|
2571
|
+
return jspb.Message.setField(this, 7, undefined);
|
2572
|
+
};
|
2573
|
+
|
2574
|
+
|
2575
|
+
/**
|
2576
|
+
* Returns whether this field is set.
|
2577
|
+
* @return {boolean}
|
2578
|
+
*/
|
2579
|
+
proto.loyalty.LevelItemRequest.prototype.hasFileName = function() {
|
2580
|
+
return jspb.Message.getField(this, 7) != null;
|
2581
|
+
};
|
2582
|
+
|
2583
|
+
|
2584
|
+
/**
|
2585
|
+
* optional string file_type = 8;
|
2586
|
+
* @return {string}
|
2587
|
+
*/
|
2588
|
+
proto.loyalty.LevelItemRequest.prototype.getFileType = function() {
|
2589
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
2590
|
+
};
|
2591
|
+
|
2592
|
+
|
2593
|
+
/**
|
2594
|
+
* @param {string} value
|
2595
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2596
|
+
*/
|
2597
|
+
proto.loyalty.LevelItemRequest.prototype.setFileType = function(value) {
|
2598
|
+
return jspb.Message.setField(this, 8, value);
|
2599
|
+
};
|
2600
|
+
|
2601
|
+
|
2602
|
+
/**
|
2603
|
+
* Clears the field making it undefined.
|
2604
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
2605
|
+
*/
|
2606
|
+
proto.loyalty.LevelItemRequest.prototype.clearFileType = function() {
|
2607
|
+
return jspb.Message.setField(this, 8, undefined);
|
2608
|
+
};
|
2609
|
+
|
2610
|
+
|
2611
|
+
/**
|
2612
|
+
* Returns whether this field is set.
|
2613
|
+
* @return {boolean}
|
2614
|
+
*/
|
2615
|
+
proto.loyalty.LevelItemRequest.prototype.hasFileType = function() {
|
2616
|
+
return jspb.Message.getField(this, 8) != null;
|
2617
|
+
};
|
2618
|
+
|
2619
|
+
|
2620
|
+
|
2621
|
+
|
2622
|
+
|
2623
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2624
|
+
/**
|
2625
|
+
* Creates an object representation of this proto.
|
2626
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2627
|
+
* Optional fields that are not set will be set to undefined.
|
2628
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2629
|
+
* For the list of reserved names please see:
|
2630
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2631
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2632
|
+
* JSPB instance for transitional soy proto support:
|
2633
|
+
* http://goto/soy-param-migration
|
2634
|
+
* @return {!Object}
|
2635
|
+
*/
|
2636
|
+
proto.loyalty.GetLevelRequest.prototype.toObject = function(opt_includeInstance) {
|
2637
|
+
return proto.loyalty.GetLevelRequest.toObject(opt_includeInstance, this);
|
2638
|
+
};
|
2639
|
+
|
2640
|
+
|
2641
|
+
/**
|
2642
|
+
* Static version of the {@see toObject} method.
|
2643
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2644
|
+
* the JSPB instance for transitional soy proto support:
|
2645
|
+
* http://goto/soy-param-migration
|
2646
|
+
* @param {!proto.loyalty.GetLevelRequest} msg The msg instance to transform.
|
2647
|
+
* @return {!Object}
|
2648
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2649
|
+
*/
|
2650
|
+
proto.loyalty.GetLevelRequest.toObject = function(includeInstance, msg) {
|
2651
|
+
var f, obj = {
|
2652
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
2653
|
+
};
|
2654
|
+
|
2655
|
+
if (includeInstance) {
|
2656
|
+
obj.$jspbMessageInstance = msg;
|
2657
|
+
}
|
2658
|
+
return obj;
|
2659
|
+
};
|
2660
|
+
}
|
2661
|
+
|
2662
|
+
|
2663
|
+
/**
|
2664
|
+
* Deserializes binary data (in protobuf wire format).
|
2665
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2666
|
+
* @return {!proto.loyalty.GetLevelRequest}
|
2667
|
+
*/
|
2668
|
+
proto.loyalty.GetLevelRequest.deserializeBinary = function(bytes) {
|
2669
|
+
var reader = new jspb.BinaryReader(bytes);
|
2670
|
+
var msg = new proto.loyalty.GetLevelRequest;
|
2671
|
+
return proto.loyalty.GetLevelRequest.deserializeBinaryFromReader(msg, reader);
|
2672
|
+
};
|
2673
|
+
|
2674
|
+
|
2675
|
+
/**
|
2676
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2677
|
+
* given reader into the given message object.
|
2678
|
+
* @param {!proto.loyalty.GetLevelRequest} msg The message object to deserialize into.
|
2679
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2680
|
+
* @return {!proto.loyalty.GetLevelRequest}
|
2681
|
+
*/
|
2682
|
+
proto.loyalty.GetLevelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2683
|
+
while (reader.nextField()) {
|
2684
|
+
if (reader.isEndGroup()) {
|
2685
|
+
break;
|
2686
|
+
}
|
2687
|
+
var field = reader.getFieldNumber();
|
2688
|
+
switch (field) {
|
2689
|
+
case 1:
|
2690
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2691
|
+
msg.setId(value);
|
2692
|
+
break;
|
2693
|
+
default:
|
2694
|
+
reader.skipField();
|
2695
|
+
break;
|
2696
|
+
}
|
2697
|
+
}
|
2698
|
+
return msg;
|
2699
|
+
};
|
2700
|
+
|
2701
|
+
|
2702
|
+
/**
|
2703
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2704
|
+
* @return {!Uint8Array}
|
2705
|
+
*/
|
2706
|
+
proto.loyalty.GetLevelRequest.prototype.serializeBinary = function() {
|
2707
|
+
var writer = new jspb.BinaryWriter();
|
2708
|
+
proto.loyalty.GetLevelRequest.serializeBinaryToWriter(this, writer);
|
2709
|
+
return writer.getResultBuffer();
|
2710
|
+
};
|
2711
|
+
|
2712
|
+
|
2713
|
+
/**
|
2714
|
+
* Serializes the given message to binary data (in protobuf wire
|
2715
|
+
* format), writing to the given BinaryWriter.
|
2716
|
+
* @param {!proto.loyalty.GetLevelRequest} message
|
2717
|
+
* @param {!jspb.BinaryWriter} writer
|
2718
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2719
|
+
*/
|
2720
|
+
proto.loyalty.GetLevelRequest.serializeBinaryToWriter = function(message, writer) {
|
2721
|
+
var f = undefined;
|
2722
|
+
f = message.getId();
|
2723
|
+
if (f !== 0) {
|
2724
|
+
writer.writeInt32(
|
2725
|
+
1,
|
2726
|
+
f
|
2727
|
+
);
|
2728
|
+
}
|
2729
|
+
};
|
2730
|
+
|
2731
|
+
|
2732
|
+
/**
|
2733
|
+
* optional int32 id = 1;
|
2734
|
+
* @return {number}
|
2735
|
+
*/
|
2736
|
+
proto.loyalty.GetLevelRequest.prototype.getId = function() {
|
2737
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2738
|
+
};
|
2739
|
+
|
2740
|
+
|
2741
|
+
/**
|
2742
|
+
* @param {number} value
|
2743
|
+
* @return {!proto.loyalty.GetLevelRequest} returns this
|
2744
|
+
*/
|
2745
|
+
proto.loyalty.GetLevelRequest.prototype.setId = function(value) {
|
2746
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
2747
|
+
};
|
2748
|
+
|
2749
|
+
|
2750
|
+
|
2751
|
+
|
2752
|
+
|
2753
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2754
|
+
/**
|
2755
|
+
* Creates an object representation of this proto.
|
2756
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2757
|
+
* Optional fields that are not set will be set to undefined.
|
2758
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2759
|
+
* For the list of reserved names please see:
|
2760
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2761
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2762
|
+
* JSPB instance for transitional soy proto support:
|
2763
|
+
* http://goto/soy-param-migration
|
2764
|
+
* @return {!Object}
|
2765
|
+
*/
|
2766
|
+
proto.loyalty.LevelResponse.prototype.toObject = function(opt_includeInstance) {
|
2767
|
+
return proto.loyalty.LevelResponse.toObject(opt_includeInstance, this);
|
2768
|
+
};
|
2769
|
+
|
2770
|
+
|
2771
|
+
/**
|
2772
|
+
* Static version of the {@see toObject} method.
|
2773
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2774
|
+
* the JSPB instance for transitional soy proto support:
|
2775
|
+
* http://goto/soy-param-migration
|
2776
|
+
* @param {!proto.loyalty.LevelResponse} msg The msg instance to transform.
|
2777
|
+
* @return {!Object}
|
2778
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2779
|
+
*/
|
2780
|
+
proto.loyalty.LevelResponse.toObject = function(includeInstance, msg) {
|
2781
|
+
var f, obj = {
|
2782
|
+
data: (f = msg.getData()) && proto.loyalty.LevelItem.toObject(includeInstance, f)
|
2783
|
+
};
|
2784
|
+
|
2785
|
+
if (includeInstance) {
|
2786
|
+
obj.$jspbMessageInstance = msg;
|
2787
|
+
}
|
2788
|
+
return obj;
|
2789
|
+
};
|
2790
|
+
}
|
2791
|
+
|
2792
|
+
|
2793
|
+
/**
|
2794
|
+
* Deserializes binary data (in protobuf wire format).
|
2795
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2796
|
+
* @return {!proto.loyalty.LevelResponse}
|
2797
|
+
*/
|
2798
|
+
proto.loyalty.LevelResponse.deserializeBinary = function(bytes) {
|
2799
|
+
var reader = new jspb.BinaryReader(bytes);
|
2800
|
+
var msg = new proto.loyalty.LevelResponse;
|
2801
|
+
return proto.loyalty.LevelResponse.deserializeBinaryFromReader(msg, reader);
|
2802
|
+
};
|
2803
|
+
|
2804
|
+
|
2805
|
+
/**
|
2806
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2807
|
+
* given reader into the given message object.
|
2808
|
+
* @param {!proto.loyalty.LevelResponse} msg The message object to deserialize into.
|
2809
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2810
|
+
* @return {!proto.loyalty.LevelResponse}
|
2811
|
+
*/
|
2812
|
+
proto.loyalty.LevelResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2813
|
+
while (reader.nextField()) {
|
2814
|
+
if (reader.isEndGroup()) {
|
2815
|
+
break;
|
2816
|
+
}
|
2817
|
+
var field = reader.getFieldNumber();
|
2818
|
+
switch (field) {
|
2819
|
+
case 1:
|
2820
|
+
var value = new proto.loyalty.LevelItem;
|
2821
|
+
reader.readMessage(value,proto.loyalty.LevelItem.deserializeBinaryFromReader);
|
2822
|
+
msg.setData(value);
|
2823
|
+
break;
|
2824
|
+
default:
|
2825
|
+
reader.skipField();
|
2826
|
+
break;
|
2827
|
+
}
|
2828
|
+
}
|
2829
|
+
return msg;
|
2830
|
+
};
|
2831
|
+
|
2832
|
+
|
2833
|
+
/**
|
2834
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2835
|
+
* @return {!Uint8Array}
|
2836
|
+
*/
|
2837
|
+
proto.loyalty.LevelResponse.prototype.serializeBinary = function() {
|
2838
|
+
var writer = new jspb.BinaryWriter();
|
2839
|
+
proto.loyalty.LevelResponse.serializeBinaryToWriter(this, writer);
|
2840
|
+
return writer.getResultBuffer();
|
2841
|
+
};
|
2842
|
+
|
2843
|
+
|
2844
|
+
/**
|
2845
|
+
* Serializes the given message to binary data (in protobuf wire
|
2846
|
+
* format), writing to the given BinaryWriter.
|
2847
|
+
* @param {!proto.loyalty.LevelResponse} message
|
2848
|
+
* @param {!jspb.BinaryWriter} writer
|
2849
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2850
|
+
*/
|
2851
|
+
proto.loyalty.LevelResponse.serializeBinaryToWriter = function(message, writer) {
|
2852
|
+
var f = undefined;
|
2853
|
+
f = message.getData();
|
2854
|
+
if (f != null) {
|
2855
|
+
writer.writeMessage(
|
2856
|
+
1,
|
2857
|
+
f,
|
2858
|
+
proto.loyalty.LevelItem.serializeBinaryToWriter
|
2859
|
+
);
|
2860
|
+
}
|
2861
|
+
};
|
2862
|
+
|
2863
|
+
|
2864
|
+
/**
|
2865
|
+
* optional LevelItem data = 1;
|
2866
|
+
* @return {?proto.loyalty.LevelItem}
|
2867
|
+
*/
|
2868
|
+
proto.loyalty.LevelResponse.prototype.getData = function() {
|
2869
|
+
return /** @type{?proto.loyalty.LevelItem} */ (
|
2870
|
+
jspb.Message.getWrapperField(this, proto.loyalty.LevelItem, 1));
|
2871
|
+
};
|
2872
|
+
|
2873
|
+
|
2874
|
+
/**
|
2875
|
+
* @param {?proto.loyalty.LevelItem|undefined} value
|
2876
|
+
* @return {!proto.loyalty.LevelResponse} returns this
|
2877
|
+
*/
|
2878
|
+
proto.loyalty.LevelResponse.prototype.setData = function(value) {
|
2879
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
2880
|
+
};
|
2881
|
+
|
2882
|
+
|
2883
|
+
/**
|
2884
|
+
* Clears the message field making it undefined.
|
2885
|
+
* @return {!proto.loyalty.LevelResponse} returns this
|
2886
|
+
*/
|
2887
|
+
proto.loyalty.LevelResponse.prototype.clearData = function() {
|
2888
|
+
return this.setData(undefined);
|
2889
|
+
};
|
2890
|
+
|
2891
|
+
|
2892
|
+
/**
|
2893
|
+
* Returns whether this field is set.
|
2894
|
+
* @return {boolean}
|
2895
|
+
*/
|
2896
|
+
proto.loyalty.LevelResponse.prototype.hasData = function() {
|
2897
|
+
return jspb.Message.getField(this, 1) != null;
|
2898
|
+
};
|
2899
|
+
|
2900
|
+
|
2901
|
+
|
2902
|
+
/**
|
2903
|
+
* List of repeated fields within this message type.
|
2904
|
+
* @private {!Array<number>}
|
2905
|
+
* @const
|
2906
|
+
*/
|
2907
|
+
proto.loyalty.LevelItemsResponse.repeatedFields_ = [1];
|
2908
|
+
|
2909
|
+
|
2910
|
+
|
2911
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2912
|
+
/**
|
2913
|
+
* Creates an object representation of this proto.
|
2914
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2915
|
+
* Optional fields that are not set will be set to undefined.
|
2916
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2917
|
+
* For the list of reserved names please see:
|
2918
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2919
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2920
|
+
* JSPB instance for transitional soy proto support:
|
2921
|
+
* http://goto/soy-param-migration
|
2922
|
+
* @return {!Object}
|
2923
|
+
*/
|
2924
|
+
proto.loyalty.LevelItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2925
|
+
return proto.loyalty.LevelItemsResponse.toObject(opt_includeInstance, this);
|
2926
|
+
};
|
2927
|
+
|
2928
|
+
|
2929
|
+
/**
|
2930
|
+
* Static version of the {@see toObject} method.
|
2931
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2932
|
+
* the JSPB instance for transitional soy proto support:
|
2933
|
+
* http://goto/soy-param-migration
|
2934
|
+
* @param {!proto.loyalty.LevelItemsResponse} msg The msg instance to transform.
|
2935
|
+
* @return {!Object}
|
2936
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2937
|
+
*/
|
2938
|
+
proto.loyalty.LevelItemsResponse.toObject = function(includeInstance, msg) {
|
2939
|
+
var f, obj = {
|
2940
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2941
|
+
proto.loyalty.LevelItem.toObject, includeInstance),
|
2942
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2943
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
2944
|
+
};
|
2945
|
+
|
2946
|
+
if (includeInstance) {
|
2947
|
+
obj.$jspbMessageInstance = msg;
|
2948
|
+
}
|
2949
|
+
return obj;
|
2950
|
+
};
|
2951
|
+
}
|
2952
|
+
|
2953
|
+
|
2954
|
+
/**
|
2955
|
+
* Deserializes binary data (in protobuf wire format).
|
2956
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2957
|
+
* @return {!proto.loyalty.LevelItemsResponse}
|
2958
|
+
*/
|
2959
|
+
proto.loyalty.LevelItemsResponse.deserializeBinary = function(bytes) {
|
2960
|
+
var reader = new jspb.BinaryReader(bytes);
|
2961
|
+
var msg = new proto.loyalty.LevelItemsResponse;
|
2962
|
+
return proto.loyalty.LevelItemsResponse.deserializeBinaryFromReader(msg, reader);
|
2963
|
+
};
|
2964
|
+
|
2965
|
+
|
2966
|
+
/**
|
2967
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2968
|
+
* given reader into the given message object.
|
2969
|
+
* @param {!proto.loyalty.LevelItemsResponse} msg The message object to deserialize into.
|
2970
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2971
|
+
* @return {!proto.loyalty.LevelItemsResponse}
|
2972
|
+
*/
|
2973
|
+
proto.loyalty.LevelItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2974
|
+
while (reader.nextField()) {
|
2975
|
+
if (reader.isEndGroup()) {
|
2976
|
+
break;
|
2977
|
+
}
|
2978
|
+
var field = reader.getFieldNumber();
|
2979
|
+
switch (field) {
|
2980
|
+
case 1:
|
2981
|
+
var value = new proto.loyalty.LevelItem;
|
2982
|
+
reader.readMessage(value,proto.loyalty.LevelItem.deserializeBinaryFromReader);
|
2983
|
+
msg.addItems(value);
|
2984
|
+
break;
|
2985
|
+
case 2:
|
2986
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2987
|
+
msg.setTotalPages(value);
|
2988
|
+
break;
|
2989
|
+
case 3:
|
2990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2991
|
+
msg.setTotalItems(value);
|
2992
|
+
break;
|
2993
|
+
default:
|
2994
|
+
reader.skipField();
|
2995
|
+
break;
|
2996
|
+
}
|
2997
|
+
}
|
2998
|
+
return msg;
|
2999
|
+
};
|
3000
|
+
|
3001
|
+
|
3002
|
+
/**
|
3003
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3004
|
+
* @return {!Uint8Array}
|
3005
|
+
*/
|
3006
|
+
proto.loyalty.LevelItemsResponse.prototype.serializeBinary = function() {
|
3007
|
+
var writer = new jspb.BinaryWriter();
|
3008
|
+
proto.loyalty.LevelItemsResponse.serializeBinaryToWriter(this, writer);
|
3009
|
+
return writer.getResultBuffer();
|
3010
|
+
};
|
3011
|
+
|
3012
|
+
|
3013
|
+
/**
|
3014
|
+
* Serializes the given message to binary data (in protobuf wire
|
3015
|
+
* format), writing to the given BinaryWriter.
|
3016
|
+
* @param {!proto.loyalty.LevelItemsResponse} message
|
3017
|
+
* @param {!jspb.BinaryWriter} writer
|
3018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3019
|
+
*/
|
3020
|
+
proto.loyalty.LevelItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
3021
|
+
var f = undefined;
|
3022
|
+
f = message.getItemsList();
|
3023
|
+
if (f.length > 0) {
|
3024
|
+
writer.writeRepeatedMessage(
|
3025
|
+
1,
|
3026
|
+
f,
|
3027
|
+
proto.loyalty.LevelItem.serializeBinaryToWriter
|
3028
|
+
);
|
3029
|
+
}
|
3030
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
3031
|
+
if (f != null) {
|
3032
|
+
writer.writeInt32(
|
3033
|
+
2,
|
3034
|
+
f
|
3035
|
+
);
|
3036
|
+
}
|
3037
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3038
|
+
if (f != null) {
|
3039
|
+
writer.writeInt32(
|
3040
|
+
3,
|
3041
|
+
f
|
3042
|
+
);
|
3043
|
+
}
|
3044
|
+
};
|
3045
|
+
|
3046
|
+
|
3047
|
+
/**
|
3048
|
+
* repeated LevelItem items = 1;
|
3049
|
+
* @return {!Array<!proto.loyalty.LevelItem>}
|
3050
|
+
*/
|
3051
|
+
proto.loyalty.LevelItemsResponse.prototype.getItemsList = function() {
|
3052
|
+
return /** @type{!Array<!proto.loyalty.LevelItem>} */ (
|
3053
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelItem, 1));
|
3054
|
+
};
|
3055
|
+
|
3056
|
+
|
3057
|
+
/**
|
3058
|
+
* @param {!Array<!proto.loyalty.LevelItem>} value
|
3059
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3060
|
+
*/
|
3061
|
+
proto.loyalty.LevelItemsResponse.prototype.setItemsList = function(value) {
|
3062
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
3063
|
+
};
|
3064
|
+
|
3065
|
+
|
3066
|
+
/**
|
3067
|
+
* @param {!proto.loyalty.LevelItem=} opt_value
|
3068
|
+
* @param {number=} opt_index
|
3069
|
+
* @return {!proto.loyalty.LevelItem}
|
3070
|
+
*/
|
3071
|
+
proto.loyalty.LevelItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
3072
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.loyalty.LevelItem, opt_index);
|
3073
|
+
};
|
3074
|
+
|
3075
|
+
|
3076
|
+
/**
|
3077
|
+
* Clears the list making it empty but non-null.
|
3078
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3079
|
+
*/
|
3080
|
+
proto.loyalty.LevelItemsResponse.prototype.clearItemsList = function() {
|
3081
|
+
return this.setItemsList([]);
|
3082
|
+
};
|
3083
|
+
|
3084
|
+
|
3085
|
+
/**
|
3086
|
+
* optional int32 total_pages = 2;
|
3087
|
+
* @return {number}
|
3088
|
+
*/
|
3089
|
+
proto.loyalty.LevelItemsResponse.prototype.getTotalPages = function() {
|
3090
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3091
|
+
};
|
3092
|
+
|
3093
|
+
|
3094
|
+
/**
|
3095
|
+
* @param {number} value
|
3096
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3097
|
+
*/
|
3098
|
+
proto.loyalty.LevelItemsResponse.prototype.setTotalPages = function(value) {
|
3099
|
+
return jspb.Message.setField(this, 2, value);
|
3100
|
+
};
|
3101
|
+
|
3102
|
+
|
3103
|
+
/**
|
3104
|
+
* Clears the field making it undefined.
|
3105
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3106
|
+
*/
|
3107
|
+
proto.loyalty.LevelItemsResponse.prototype.clearTotalPages = function() {
|
3108
|
+
return jspb.Message.setField(this, 2, undefined);
|
3109
|
+
};
|
3110
|
+
|
3111
|
+
|
3112
|
+
/**
|
3113
|
+
* Returns whether this field is set.
|
3114
|
+
* @return {boolean}
|
3115
|
+
*/
|
3116
|
+
proto.loyalty.LevelItemsResponse.prototype.hasTotalPages = function() {
|
3117
|
+
return jspb.Message.getField(this, 2) != null;
|
3118
|
+
};
|
3119
|
+
|
3120
|
+
|
3121
|
+
/**
|
3122
|
+
* optional int32 total_items = 3;
|
3123
|
+
* @return {number}
|
3124
|
+
*/
|
3125
|
+
proto.loyalty.LevelItemsResponse.prototype.getTotalItems = function() {
|
3126
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3127
|
+
};
|
3128
|
+
|
3129
|
+
|
3130
|
+
/**
|
3131
|
+
* @param {number} value
|
3132
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3133
|
+
*/
|
3134
|
+
proto.loyalty.LevelItemsResponse.prototype.setTotalItems = function(value) {
|
3135
|
+
return jspb.Message.setField(this, 3, value);
|
3136
|
+
};
|
3137
|
+
|
3138
|
+
|
3139
|
+
/**
|
3140
|
+
* Clears the field making it undefined.
|
3141
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
3142
|
+
*/
|
3143
|
+
proto.loyalty.LevelItemsResponse.prototype.clearTotalItems = function() {
|
3144
|
+
return jspb.Message.setField(this, 3, undefined);
|
3145
|
+
};
|
3146
|
+
|
3147
|
+
|
3148
|
+
/**
|
3149
|
+
* Returns whether this field is set.
|
3150
|
+
* @return {boolean}
|
3151
|
+
*/
|
3152
|
+
proto.loyalty.LevelItemsResponse.prototype.hasTotalItems = function() {
|
3153
|
+
return jspb.Message.getField(this, 3) != null;
|
3154
|
+
};
|
3155
|
+
|
3156
|
+
|
3157
|
+
|
3158
|
+
|
3159
|
+
|
3160
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3161
|
+
/**
|
3162
|
+
* Creates an object representation of this proto.
|
3163
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3164
|
+
* Optional fields that are not set will be set to undefined.
|
3165
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3166
|
+
* For the list of reserved names please see:
|
3167
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3168
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3169
|
+
* JSPB instance for transitional soy proto support:
|
3170
|
+
* http://goto/soy-param-migration
|
3171
|
+
* @return {!Object}
|
3172
|
+
*/
|
3173
|
+
proto.loyalty.LevelStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
3174
|
+
return proto.loyalty.LevelStatusResponse.toObject(opt_includeInstance, this);
|
3175
|
+
};
|
3176
|
+
|
3177
|
+
|
3178
|
+
/**
|
3179
|
+
* Static version of the {@see toObject} method.
|
3180
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3181
|
+
* the JSPB instance for transitional soy proto support:
|
3182
|
+
* http://goto/soy-param-migration
|
3183
|
+
* @param {!proto.loyalty.LevelStatusResponse} msg The msg instance to transform.
|
3184
|
+
* @return {!Object}
|
3185
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3186
|
+
*/
|
3187
|
+
proto.loyalty.LevelStatusResponse.toObject = function(includeInstance, msg) {
|
3188
|
+
var f, obj = {
|
3189
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
3190
|
+
};
|
3191
|
+
|
3192
|
+
if (includeInstance) {
|
3193
|
+
obj.$jspbMessageInstance = msg;
|
3194
|
+
}
|
3195
|
+
return obj;
|
3196
|
+
};
|
3197
|
+
}
|
3198
|
+
|
3199
|
+
|
3200
|
+
/**
|
3201
|
+
* Deserializes binary data (in protobuf wire format).
|
3202
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3203
|
+
* @return {!proto.loyalty.LevelStatusResponse}
|
3204
|
+
*/
|
3205
|
+
proto.loyalty.LevelStatusResponse.deserializeBinary = function(bytes) {
|
3206
|
+
var reader = new jspb.BinaryReader(bytes);
|
3207
|
+
var msg = new proto.loyalty.LevelStatusResponse;
|
3208
|
+
return proto.loyalty.LevelStatusResponse.deserializeBinaryFromReader(msg, reader);
|
3209
|
+
};
|
3210
|
+
|
3211
|
+
|
3212
|
+
/**
|
3213
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3214
|
+
* given reader into the given message object.
|
3215
|
+
* @param {!proto.loyalty.LevelStatusResponse} msg The message object to deserialize into.
|
3216
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3217
|
+
* @return {!proto.loyalty.LevelStatusResponse}
|
3218
|
+
*/
|
3219
|
+
proto.loyalty.LevelStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3220
|
+
while (reader.nextField()) {
|
3221
|
+
if (reader.isEndGroup()) {
|
3222
|
+
break;
|
3223
|
+
}
|
3224
|
+
var field = reader.getFieldNumber();
|
3225
|
+
switch (field) {
|
3226
|
+
case 1:
|
3227
|
+
var value = /** @type {string} */ (reader.readString());
|
3228
|
+
msg.setStatus(value);
|
3229
|
+
break;
|
3230
|
+
default:
|
3231
|
+
reader.skipField();
|
3232
|
+
break;
|
3233
|
+
}
|
3234
|
+
}
|
3235
|
+
return msg;
|
3236
|
+
};
|
3237
|
+
|
3238
|
+
|
3239
|
+
/**
|
3240
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3241
|
+
* @return {!Uint8Array}
|
3242
|
+
*/
|
3243
|
+
proto.loyalty.LevelStatusResponse.prototype.serializeBinary = function() {
|
3244
|
+
var writer = new jspb.BinaryWriter();
|
3245
|
+
proto.loyalty.LevelStatusResponse.serializeBinaryToWriter(this, writer);
|
3246
|
+
return writer.getResultBuffer();
|
3247
|
+
};
|
3248
|
+
|
3249
|
+
|
3250
|
+
/**
|
3251
|
+
* Serializes the given message to binary data (in protobuf wire
|
3252
|
+
* format), writing to the given BinaryWriter.
|
3253
|
+
* @param {!proto.loyalty.LevelStatusResponse} message
|
3254
|
+
* @param {!jspb.BinaryWriter} writer
|
3255
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3256
|
+
*/
|
3257
|
+
proto.loyalty.LevelStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
3258
|
+
var f = undefined;
|
3259
|
+
f = message.getStatus();
|
3260
|
+
if (f.length > 0) {
|
3261
|
+
writer.writeString(
|
3262
|
+
1,
|
3263
|
+
f
|
3264
|
+
);
|
3265
|
+
}
|
3266
|
+
};
|
3267
|
+
|
3268
|
+
|
3269
|
+
/**
|
3270
|
+
* optional string status = 1;
|
3271
|
+
* @return {string}
|
3272
|
+
*/
|
3273
|
+
proto.loyalty.LevelStatusResponse.prototype.getStatus = function() {
|
3274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3275
|
+
};
|
3276
|
+
|
3277
|
+
|
3278
|
+
/**
|
3279
|
+
* @param {string} value
|
3280
|
+
* @return {!proto.loyalty.LevelStatusResponse} returns this
|
3281
|
+
*/
|
3282
|
+
proto.loyalty.LevelStatusResponse.prototype.setStatus = function(value) {
|
3283
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
3284
|
+
};
|
3285
|
+
|
3286
|
+
|
3287
|
+
|
3288
|
+
|
3289
|
+
|
3290
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3291
|
+
/**
|
3292
|
+
* Creates an object representation of this proto.
|
3293
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3294
|
+
* Optional fields that are not set will be set to undefined.
|
3295
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3296
|
+
* For the list of reserved names please see:
|
3297
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3298
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3299
|
+
* JSPB instance for transitional soy proto support:
|
3300
|
+
* http://goto/soy-param-migration
|
3301
|
+
* @return {!Object}
|
3302
|
+
*/
|
3303
|
+
proto.loyalty.PointItem.prototype.toObject = function(opt_includeInstance) {
|
3304
|
+
return proto.loyalty.PointItem.toObject(opt_includeInstance, this);
|
3305
|
+
};
|
3306
|
+
|
3307
|
+
|
3308
|
+
/**
|
3309
|
+
* Static version of the {@see toObject} method.
|
3310
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3311
|
+
* the JSPB instance for transitional soy proto support:
|
3312
|
+
* http://goto/soy-param-migration
|
3313
|
+
* @param {!proto.loyalty.PointItem} msg The msg instance to transform.
|
3314
|
+
* @return {!Object}
|
3315
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3316
|
+
*/
|
3317
|
+
proto.loyalty.PointItem.toObject = function(includeInstance, msg) {
|
3318
|
+
var f, obj = {
|
3319
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3320
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3321
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
3322
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
3323
|
+
rewardAmount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
3324
|
+
};
|
3325
|
+
|
3326
|
+
if (includeInstance) {
|
3327
|
+
obj.$jspbMessageInstance = msg;
|
3328
|
+
}
|
3329
|
+
return obj;
|
3330
|
+
};
|
3331
|
+
}
|
3332
|
+
|
3333
|
+
|
3334
|
+
/**
|
3335
|
+
* Deserializes binary data (in protobuf wire format).
|
3336
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3337
|
+
* @return {!proto.loyalty.PointItem}
|
3338
|
+
*/
|
3339
|
+
proto.loyalty.PointItem.deserializeBinary = function(bytes) {
|
3340
|
+
var reader = new jspb.BinaryReader(bytes);
|
3341
|
+
var msg = new proto.loyalty.PointItem;
|
3342
|
+
return proto.loyalty.PointItem.deserializeBinaryFromReader(msg, reader);
|
3343
|
+
};
|
3344
|
+
|
3345
|
+
|
3346
|
+
/**
|
3347
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3348
|
+
* given reader into the given message object.
|
3349
|
+
* @param {!proto.loyalty.PointItem} msg The message object to deserialize into.
|
3350
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3351
|
+
* @return {!proto.loyalty.PointItem}
|
3352
|
+
*/
|
3353
|
+
proto.loyalty.PointItem.deserializeBinaryFromReader = function(msg, reader) {
|
3354
|
+
while (reader.nextField()) {
|
3355
|
+
if (reader.isEndGroup()) {
|
3356
|
+
break;
|
3357
|
+
}
|
3358
|
+
var field = reader.getFieldNumber();
|
3359
|
+
switch (field) {
|
3360
|
+
case 1:
|
3361
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3362
|
+
msg.setId(value);
|
3363
|
+
break;
|
3364
|
+
case 2:
|
3365
|
+
var value = /** @type {string} */ (reader.readString());
|
3366
|
+
msg.setTitle(value);
|
3367
|
+
break;
|
3368
|
+
case 3:
|
3369
|
+
var value = /** @type {string} */ (reader.readString());
|
3370
|
+
msg.setDescription(value);
|
3371
|
+
break;
|
3372
|
+
case 4:
|
3373
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3374
|
+
msg.setIsActive(value);
|
3375
|
+
break;
|
3376
|
+
case 5:
|
3377
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3378
|
+
msg.setRewardAmount(value);
|
3379
|
+
break;
|
3380
|
+
default:
|
3381
|
+
reader.skipField();
|
3382
|
+
break;
|
3383
|
+
}
|
3384
|
+
}
|
3385
|
+
return msg;
|
3386
|
+
};
|
3387
|
+
|
3388
|
+
|
3389
|
+
/**
|
3390
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3391
|
+
* @return {!Uint8Array}
|
3392
|
+
*/
|
3393
|
+
proto.loyalty.PointItem.prototype.serializeBinary = function() {
|
3394
|
+
var writer = new jspb.BinaryWriter();
|
3395
|
+
proto.loyalty.PointItem.serializeBinaryToWriter(this, writer);
|
3396
|
+
return writer.getResultBuffer();
|
3397
|
+
};
|
3398
|
+
|
3399
|
+
|
3400
|
+
/**
|
3401
|
+
* Serializes the given message to binary data (in protobuf wire
|
3402
|
+
* format), writing to the given BinaryWriter.
|
3403
|
+
* @param {!proto.loyalty.PointItem} message
|
3404
|
+
* @param {!jspb.BinaryWriter} writer
|
3405
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3406
|
+
*/
|
3407
|
+
proto.loyalty.PointItem.serializeBinaryToWriter = function(message, writer) {
|
3408
|
+
var f = undefined;
|
3409
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3410
|
+
if (f != null) {
|
3411
|
+
writer.writeInt32(
|
3412
|
+
1,
|
3413
|
+
f
|
3414
|
+
);
|
3415
|
+
}
|
3416
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3417
|
+
if (f != null) {
|
3418
|
+
writer.writeString(
|
3419
|
+
2,
|
3420
|
+
f
|
3421
|
+
);
|
3422
|
+
}
|
3423
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3424
|
+
if (f != null) {
|
3425
|
+
writer.writeString(
|
3426
|
+
3,
|
3427
|
+
f
|
3428
|
+
);
|
3429
|
+
}
|
3430
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
3431
|
+
if (f != null) {
|
3432
|
+
writer.writeInt32(
|
3433
|
+
4,
|
3434
|
+
f
|
3435
|
+
);
|
3436
|
+
}
|
3437
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
3438
|
+
if (f != null) {
|
3439
|
+
writer.writeInt32(
|
3440
|
+
5,
|
3441
|
+
f
|
3442
|
+
);
|
3443
|
+
}
|
3444
|
+
};
|
3445
|
+
|
3446
|
+
|
3447
|
+
/**
|
3448
|
+
* optional int32 id = 1;
|
3449
|
+
* @return {number}
|
3450
|
+
*/
|
3451
|
+
proto.loyalty.PointItem.prototype.getId = function() {
|
3452
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3453
|
+
};
|
3454
|
+
|
3455
|
+
|
3456
|
+
/**
|
3457
|
+
* @param {number} value
|
3458
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3459
|
+
*/
|
3460
|
+
proto.loyalty.PointItem.prototype.setId = function(value) {
|
3461
|
+
return jspb.Message.setField(this, 1, value);
|
3462
|
+
};
|
3463
|
+
|
3464
|
+
|
3465
|
+
/**
|
3466
|
+
* Clears the field making it undefined.
|
3467
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3468
|
+
*/
|
3469
|
+
proto.loyalty.PointItem.prototype.clearId = function() {
|
3470
|
+
return jspb.Message.setField(this, 1, undefined);
|
3471
|
+
};
|
3472
|
+
|
3473
|
+
|
3474
|
+
/**
|
3475
|
+
* Returns whether this field is set.
|
3476
|
+
* @return {boolean}
|
3477
|
+
*/
|
3478
|
+
proto.loyalty.PointItem.prototype.hasId = function() {
|
3479
|
+
return jspb.Message.getField(this, 1) != null;
|
3480
|
+
};
|
3481
|
+
|
3482
|
+
|
3483
|
+
/**
|
3484
|
+
* optional string title = 2;
|
3485
|
+
* @return {string}
|
3486
|
+
*/
|
3487
|
+
proto.loyalty.PointItem.prototype.getTitle = function() {
|
3488
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3489
|
+
};
|
3490
|
+
|
3491
|
+
|
3492
|
+
/**
|
3493
|
+
* @param {string} value
|
3494
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3495
|
+
*/
|
3496
|
+
proto.loyalty.PointItem.prototype.setTitle = function(value) {
|
3497
|
+
return jspb.Message.setField(this, 2, value);
|
3498
|
+
};
|
3499
|
+
|
3500
|
+
|
3501
|
+
/**
|
3502
|
+
* Clears the field making it undefined.
|
3503
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3504
|
+
*/
|
3505
|
+
proto.loyalty.PointItem.prototype.clearTitle = function() {
|
3506
|
+
return jspb.Message.setField(this, 2, undefined);
|
3507
|
+
};
|
3508
|
+
|
3509
|
+
|
3510
|
+
/**
|
3511
|
+
* Returns whether this field is set.
|
3512
|
+
* @return {boolean}
|
3513
|
+
*/
|
3514
|
+
proto.loyalty.PointItem.prototype.hasTitle = function() {
|
3515
|
+
return jspb.Message.getField(this, 2) != null;
|
3516
|
+
};
|
3517
|
+
|
3518
|
+
|
3519
|
+
/**
|
3520
|
+
* optional string description = 3;
|
3521
|
+
* @return {string}
|
3522
|
+
*/
|
3523
|
+
proto.loyalty.PointItem.prototype.getDescription = function() {
|
3524
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3525
|
+
};
|
3526
|
+
|
3527
|
+
|
3528
|
+
/**
|
3529
|
+
* @param {string} value
|
3530
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3531
|
+
*/
|
3532
|
+
proto.loyalty.PointItem.prototype.setDescription = function(value) {
|
3533
|
+
return jspb.Message.setField(this, 3, value);
|
3534
|
+
};
|
3535
|
+
|
3536
|
+
|
3537
|
+
/**
|
3538
|
+
* Clears the field making it undefined.
|
3539
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3540
|
+
*/
|
3541
|
+
proto.loyalty.PointItem.prototype.clearDescription = function() {
|
3542
|
+
return jspb.Message.setField(this, 3, undefined);
|
3543
|
+
};
|
3544
|
+
|
3545
|
+
|
3546
|
+
/**
|
3547
|
+
* Returns whether this field is set.
|
3548
|
+
* @return {boolean}
|
3549
|
+
*/
|
3550
|
+
proto.loyalty.PointItem.prototype.hasDescription = function() {
|
3551
|
+
return jspb.Message.getField(this, 3) != null;
|
3552
|
+
};
|
3553
|
+
|
3554
|
+
|
3555
|
+
/**
|
3556
|
+
* optional int32 is_active = 4;
|
3557
|
+
* @return {number}
|
3558
|
+
*/
|
3559
|
+
proto.loyalty.PointItem.prototype.getIsActive = function() {
|
3560
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
3561
|
+
};
|
3562
|
+
|
3563
|
+
|
3564
|
+
/**
|
3565
|
+
* @param {number} value
|
3566
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3567
|
+
*/
|
3568
|
+
proto.loyalty.PointItem.prototype.setIsActive = function(value) {
|
3569
|
+
return jspb.Message.setField(this, 4, value);
|
3570
|
+
};
|
3571
|
+
|
3572
|
+
|
3573
|
+
/**
|
3574
|
+
* Clears the field making it undefined.
|
3575
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3576
|
+
*/
|
3577
|
+
proto.loyalty.PointItem.prototype.clearIsActive = function() {
|
3578
|
+
return jspb.Message.setField(this, 4, undefined);
|
3579
|
+
};
|
3580
|
+
|
3581
|
+
|
3582
|
+
/**
|
3583
|
+
* Returns whether this field is set.
|
3584
|
+
* @return {boolean}
|
3585
|
+
*/
|
3586
|
+
proto.loyalty.PointItem.prototype.hasIsActive = function() {
|
3587
|
+
return jspb.Message.getField(this, 4) != null;
|
3588
|
+
};
|
3589
|
+
|
3590
|
+
|
3591
|
+
/**
|
3592
|
+
* optional int32 reward_amount = 5;
|
3593
|
+
* @return {number}
|
3594
|
+
*/
|
3595
|
+
proto.loyalty.PointItem.prototype.getRewardAmount = function() {
|
3596
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
3597
|
+
};
|
3598
|
+
|
3599
|
+
|
3600
|
+
/**
|
3601
|
+
* @param {number} value
|
3602
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3603
|
+
*/
|
3604
|
+
proto.loyalty.PointItem.prototype.setRewardAmount = function(value) {
|
3605
|
+
return jspb.Message.setField(this, 5, value);
|
3606
|
+
};
|
3607
|
+
|
3608
|
+
|
3609
|
+
/**
|
3610
|
+
* Clears the field making it undefined.
|
3611
|
+
* @return {!proto.loyalty.PointItem} returns this
|
3612
|
+
*/
|
3613
|
+
proto.loyalty.PointItem.prototype.clearRewardAmount = function() {
|
3614
|
+
return jspb.Message.setField(this, 5, undefined);
|
3615
|
+
};
|
3616
|
+
|
3617
|
+
|
3618
|
+
/**
|
3619
|
+
* Returns whether this field is set.
|
3620
|
+
* @return {boolean}
|
3621
|
+
*/
|
3622
|
+
proto.loyalty.PointItem.prototype.hasRewardAmount = function() {
|
3623
|
+
return jspb.Message.getField(this, 5) != null;
|
3624
|
+
};
|
3625
|
+
|
3626
|
+
|
3627
|
+
|
3628
|
+
|
3629
|
+
|
3630
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3631
|
+
/**
|
3632
|
+
* Creates an object representation of this proto.
|
3633
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3634
|
+
* Optional fields that are not set will be set to undefined.
|
3635
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3636
|
+
* For the list of reserved names please see:
|
3637
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3638
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3639
|
+
* JSPB instance for transitional soy proto support:
|
3640
|
+
* http://goto/soy-param-migration
|
3641
|
+
* @return {!Object}
|
3642
|
+
*/
|
3643
|
+
proto.loyalty.PointRequest.prototype.toObject = function(opt_includeInstance) {
|
3644
|
+
return proto.loyalty.PointRequest.toObject(opt_includeInstance, this);
|
3645
|
+
};
|
3646
|
+
|
3647
|
+
|
3648
|
+
/**
|
3649
|
+
* Static version of the {@see toObject} method.
|
3650
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3651
|
+
* the JSPB instance for transitional soy proto support:
|
3652
|
+
* http://goto/soy-param-migration
|
3653
|
+
* @param {!proto.loyalty.PointRequest} msg The msg instance to transform.
|
3654
|
+
* @return {!Object}
|
3655
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3656
|
+
*/
|
3657
|
+
proto.loyalty.PointRequest.toObject = function(includeInstance, msg) {
|
3658
|
+
var f, obj = {
|
3659
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3660
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3661
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
3662
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
3663
|
+
rewardAmount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
3664
|
+
};
|
3665
|
+
|
3666
|
+
if (includeInstance) {
|
3667
|
+
obj.$jspbMessageInstance = msg;
|
3668
|
+
}
|
3669
|
+
return obj;
|
3670
|
+
};
|
3671
|
+
}
|
3672
|
+
|
3673
|
+
|
3674
|
+
/**
|
3675
|
+
* Deserializes binary data (in protobuf wire format).
|
3676
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3677
|
+
* @return {!proto.loyalty.PointRequest}
|
3678
|
+
*/
|
3679
|
+
proto.loyalty.PointRequest.deserializeBinary = function(bytes) {
|
3680
|
+
var reader = new jspb.BinaryReader(bytes);
|
3681
|
+
var msg = new proto.loyalty.PointRequest;
|
3682
|
+
return proto.loyalty.PointRequest.deserializeBinaryFromReader(msg, reader);
|
3683
|
+
};
|
3684
|
+
|
3685
|
+
|
3686
|
+
/**
|
3687
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3688
|
+
* given reader into the given message object.
|
3689
|
+
* @param {!proto.loyalty.PointRequest} msg The message object to deserialize into.
|
3690
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3691
|
+
* @return {!proto.loyalty.PointRequest}
|
3692
|
+
*/
|
3693
|
+
proto.loyalty.PointRequest.deserializeBinaryFromReader = function(msg, reader) {
|
3694
|
+
while (reader.nextField()) {
|
3695
|
+
if (reader.isEndGroup()) {
|
3696
|
+
break;
|
3697
|
+
}
|
3698
|
+
var field = reader.getFieldNumber();
|
3699
|
+
switch (field) {
|
3700
|
+
case 1:
|
3701
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3702
|
+
msg.setId(value);
|
3703
|
+
break;
|
3704
|
+
case 2:
|
3705
|
+
var value = /** @type {string} */ (reader.readString());
|
3706
|
+
msg.setTitle(value);
|
3707
|
+
break;
|
3708
|
+
case 3:
|
3709
|
+
var value = /** @type {string} */ (reader.readString());
|
3710
|
+
msg.setDescription(value);
|
3711
|
+
break;
|
3712
|
+
case 4:
|
3713
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3714
|
+
msg.setIsActive(value);
|
3715
|
+
break;
|
3716
|
+
case 5:
|
3717
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3718
|
+
msg.setRewardAmount(value);
|
3719
|
+
break;
|
3720
|
+
default:
|
3721
|
+
reader.skipField();
|
3722
|
+
break;
|
3723
|
+
}
|
3724
|
+
}
|
3725
|
+
return msg;
|
3726
|
+
};
|
3727
|
+
|
3728
|
+
|
3729
|
+
/**
|
3730
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3731
|
+
* @return {!Uint8Array}
|
3732
|
+
*/
|
3733
|
+
proto.loyalty.PointRequest.prototype.serializeBinary = function() {
|
3734
|
+
var writer = new jspb.BinaryWriter();
|
3735
|
+
proto.loyalty.PointRequest.serializeBinaryToWriter(this, writer);
|
3736
|
+
return writer.getResultBuffer();
|
3737
|
+
};
|
3738
|
+
|
3739
|
+
|
3740
|
+
/**
|
3741
|
+
* Serializes the given message to binary data (in protobuf wire
|
3742
|
+
* format), writing to the given BinaryWriter.
|
3743
|
+
* @param {!proto.loyalty.PointRequest} message
|
3744
|
+
* @param {!jspb.BinaryWriter} writer
|
3745
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3746
|
+
*/
|
3747
|
+
proto.loyalty.PointRequest.serializeBinaryToWriter = function(message, writer) {
|
3748
|
+
var f = undefined;
|
3749
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3750
|
+
if (f != null) {
|
3751
|
+
writer.writeInt32(
|
3752
|
+
1,
|
3753
|
+
f
|
3754
|
+
);
|
3755
|
+
}
|
3756
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3757
|
+
if (f != null) {
|
3758
|
+
writer.writeString(
|
3759
|
+
2,
|
3760
|
+
f
|
3761
|
+
);
|
3762
|
+
}
|
3763
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3764
|
+
if (f != null) {
|
3765
|
+
writer.writeString(
|
3766
|
+
3,
|
3767
|
+
f
|
3768
|
+
);
|
3769
|
+
}
|
3770
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
3771
|
+
if (f != null) {
|
3772
|
+
writer.writeInt32(
|
3773
|
+
4,
|
3774
|
+
f
|
3775
|
+
);
|
3776
|
+
}
|
3777
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
3778
|
+
if (f != null) {
|
3779
|
+
writer.writeInt32(
|
3780
|
+
5,
|
3781
|
+
f
|
3782
|
+
);
|
3783
|
+
}
|
3784
|
+
};
|
3785
|
+
|
3786
|
+
|
3787
|
+
/**
|
3788
|
+
* optional int32 id = 1;
|
3789
|
+
* @return {number}
|
3790
|
+
*/
|
3791
|
+
proto.loyalty.PointRequest.prototype.getId = function() {
|
3792
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3793
|
+
};
|
3794
|
+
|
3795
|
+
|
3796
|
+
/**
|
3797
|
+
* @param {number} value
|
3798
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3799
|
+
*/
|
3800
|
+
proto.loyalty.PointRequest.prototype.setId = function(value) {
|
3801
|
+
return jspb.Message.setField(this, 1, value);
|
3802
|
+
};
|
3803
|
+
|
3804
|
+
|
3805
|
+
/**
|
3806
|
+
* Clears the field making it undefined.
|
3807
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3808
|
+
*/
|
3809
|
+
proto.loyalty.PointRequest.prototype.clearId = function() {
|
3810
|
+
return jspb.Message.setField(this, 1, undefined);
|
3811
|
+
};
|
3812
|
+
|
3813
|
+
|
3814
|
+
/**
|
3815
|
+
* Returns whether this field is set.
|
3816
|
+
* @return {boolean}
|
3817
|
+
*/
|
3818
|
+
proto.loyalty.PointRequest.prototype.hasId = function() {
|
3819
|
+
return jspb.Message.getField(this, 1) != null;
|
3820
|
+
};
|
3821
|
+
|
3822
|
+
|
3823
|
+
/**
|
3824
|
+
* optional string title = 2;
|
3825
|
+
* @return {string}
|
3826
|
+
*/
|
3827
|
+
proto.loyalty.PointRequest.prototype.getTitle = function() {
|
3828
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3829
|
+
};
|
3830
|
+
|
3831
|
+
|
3832
|
+
/**
|
3833
|
+
* @param {string} value
|
3834
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3835
|
+
*/
|
3836
|
+
proto.loyalty.PointRequest.prototype.setTitle = function(value) {
|
3837
|
+
return jspb.Message.setField(this, 2, value);
|
3838
|
+
};
|
3839
|
+
|
3840
|
+
|
3841
|
+
/**
|
3842
|
+
* Clears the field making it undefined.
|
3843
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3844
|
+
*/
|
3845
|
+
proto.loyalty.PointRequest.prototype.clearTitle = function() {
|
3846
|
+
return jspb.Message.setField(this, 2, undefined);
|
3847
|
+
};
|
3848
|
+
|
3849
|
+
|
3850
|
+
/**
|
3851
|
+
* Returns whether this field is set.
|
3852
|
+
* @return {boolean}
|
3853
|
+
*/
|
3854
|
+
proto.loyalty.PointRequest.prototype.hasTitle = function() {
|
3855
|
+
return jspb.Message.getField(this, 2) != null;
|
3856
|
+
};
|
3857
|
+
|
3858
|
+
|
3859
|
+
/**
|
3860
|
+
* optional string description = 3;
|
3861
|
+
* @return {string}
|
3862
|
+
*/
|
3863
|
+
proto.loyalty.PointRequest.prototype.getDescription = function() {
|
3864
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3865
|
+
};
|
3866
|
+
|
3867
|
+
|
3868
|
+
/**
|
3869
|
+
* @param {string} value
|
3870
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3871
|
+
*/
|
3872
|
+
proto.loyalty.PointRequest.prototype.setDescription = function(value) {
|
3873
|
+
return jspb.Message.setField(this, 3, value);
|
3874
|
+
};
|
3875
|
+
|
3876
|
+
|
3877
|
+
/**
|
3878
|
+
* Clears the field making it undefined.
|
3879
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3880
|
+
*/
|
3881
|
+
proto.loyalty.PointRequest.prototype.clearDescription = function() {
|
3882
|
+
return jspb.Message.setField(this, 3, undefined);
|
3883
|
+
};
|
3884
|
+
|
3885
|
+
|
3886
|
+
/**
|
3887
|
+
* Returns whether this field is set.
|
3888
|
+
* @return {boolean}
|
3889
|
+
*/
|
3890
|
+
proto.loyalty.PointRequest.prototype.hasDescription = function() {
|
3891
|
+
return jspb.Message.getField(this, 3) != null;
|
3892
|
+
};
|
3893
|
+
|
3894
|
+
|
3895
|
+
/**
|
3896
|
+
* optional int32 is_active = 4;
|
3897
|
+
* @return {number}
|
3898
|
+
*/
|
3899
|
+
proto.loyalty.PointRequest.prototype.getIsActive = function() {
|
3900
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
3901
|
+
};
|
3902
|
+
|
3903
|
+
|
3904
|
+
/**
|
3905
|
+
* @param {number} value
|
3906
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3907
|
+
*/
|
3908
|
+
proto.loyalty.PointRequest.prototype.setIsActive = function(value) {
|
3909
|
+
return jspb.Message.setField(this, 4, value);
|
3910
|
+
};
|
3911
|
+
|
3912
|
+
|
3913
|
+
/**
|
3914
|
+
* Clears the field making it undefined.
|
3915
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3916
|
+
*/
|
3917
|
+
proto.loyalty.PointRequest.prototype.clearIsActive = function() {
|
3918
|
+
return jspb.Message.setField(this, 4, undefined);
|
3919
|
+
};
|
3920
|
+
|
3921
|
+
|
3922
|
+
/**
|
3923
|
+
* Returns whether this field is set.
|
3924
|
+
* @return {boolean}
|
3925
|
+
*/
|
3926
|
+
proto.loyalty.PointRequest.prototype.hasIsActive = function() {
|
3927
|
+
return jspb.Message.getField(this, 4) != null;
|
3928
|
+
};
|
3929
|
+
|
3930
|
+
|
3931
|
+
/**
|
3932
|
+
* optional int32 reward_amount = 5;
|
3933
|
+
* @return {number}
|
3934
|
+
*/
|
3935
|
+
proto.loyalty.PointRequest.prototype.getRewardAmount = function() {
|
3936
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
3937
|
+
};
|
3938
|
+
|
3939
|
+
|
3940
|
+
/**
|
3941
|
+
* @param {number} value
|
3942
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3943
|
+
*/
|
3944
|
+
proto.loyalty.PointRequest.prototype.setRewardAmount = function(value) {
|
3945
|
+
return jspb.Message.setField(this, 5, value);
|
3946
|
+
};
|
3947
|
+
|
3948
|
+
|
3949
|
+
/**
|
3950
|
+
* Clears the field making it undefined.
|
3951
|
+
* @return {!proto.loyalty.PointRequest} returns this
|
3952
|
+
*/
|
3953
|
+
proto.loyalty.PointRequest.prototype.clearRewardAmount = function() {
|
3954
|
+
return jspb.Message.setField(this, 5, undefined);
|
3955
|
+
};
|
3956
|
+
|
3957
|
+
|
3958
|
+
/**
|
3959
|
+
* Returns whether this field is set.
|
3960
|
+
* @return {boolean}
|
3961
|
+
*/
|
3962
|
+
proto.loyalty.PointRequest.prototype.hasRewardAmount = function() {
|
3963
|
+
return jspb.Message.getField(this, 5) != null;
|
3964
|
+
};
|
3965
|
+
|
3966
|
+
|
112
3967
|
|
113
3968
|
|
114
3969
|
|
@@ -125,8 +3980,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
125
3980
|
* http://goto/soy-param-migration
|
126
3981
|
* @return {!Object}
|
127
3982
|
*/
|
128
|
-
proto.loyalty.
|
129
|
-
return proto.loyalty.
|
3983
|
+
proto.loyalty.GetPointRequest.prototype.toObject = function(opt_includeInstance) {
|
3984
|
+
return proto.loyalty.GetPointRequest.toObject(opt_includeInstance, this);
|
130
3985
|
};
|
131
3986
|
|
132
3987
|
|
@@ -135,13 +3990,13 @@ proto.loyalty.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
135
3990
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
136
3991
|
* the JSPB instance for transitional soy proto support:
|
137
3992
|
* http://goto/soy-param-migration
|
138
|
-
* @param {!proto.loyalty.
|
3993
|
+
* @param {!proto.loyalty.GetPointRequest} msg The msg instance to transform.
|
139
3994
|
* @return {!Object}
|
140
3995
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
141
3996
|
*/
|
142
|
-
proto.loyalty.
|
3997
|
+
proto.loyalty.GetPointRequest.toObject = function(includeInstance, msg) {
|
143
3998
|
var f, obj = {
|
144
|
-
|
3999
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
145
4000
|
};
|
146
4001
|
|
147
4002
|
if (includeInstance) {
|
@@ -155,23 +4010,23 @@ proto.loyalty.PingRequest.toObject = function(includeInstance, msg) {
|
|
155
4010
|
/**
|
156
4011
|
* Deserializes binary data (in protobuf wire format).
|
157
4012
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
158
|
-
* @return {!proto.loyalty.
|
4013
|
+
* @return {!proto.loyalty.GetPointRequest}
|
159
4014
|
*/
|
160
|
-
proto.loyalty.
|
4015
|
+
proto.loyalty.GetPointRequest.deserializeBinary = function(bytes) {
|
161
4016
|
var reader = new jspb.BinaryReader(bytes);
|
162
|
-
var msg = new proto.loyalty.
|
163
|
-
return proto.loyalty.
|
4017
|
+
var msg = new proto.loyalty.GetPointRequest;
|
4018
|
+
return proto.loyalty.GetPointRequest.deserializeBinaryFromReader(msg, reader);
|
164
4019
|
};
|
165
4020
|
|
166
4021
|
|
167
4022
|
/**
|
168
4023
|
* Deserializes binary data (in protobuf wire format) from the
|
169
4024
|
* given reader into the given message object.
|
170
|
-
* @param {!proto.loyalty.
|
4025
|
+
* @param {!proto.loyalty.GetPointRequest} msg The message object to deserialize into.
|
171
4026
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
172
|
-
* @return {!proto.loyalty.
|
4027
|
+
* @return {!proto.loyalty.GetPointRequest}
|
173
4028
|
*/
|
174
|
-
proto.loyalty.
|
4029
|
+
proto.loyalty.GetPointRequest.deserializeBinaryFromReader = function(msg, reader) {
|
175
4030
|
while (reader.nextField()) {
|
176
4031
|
if (reader.isEndGroup()) {
|
177
4032
|
break;
|
@@ -179,8 +4034,8 @@ proto.loyalty.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
179
4034
|
var field = reader.getFieldNumber();
|
180
4035
|
switch (field) {
|
181
4036
|
case 1:
|
182
|
-
var value = /** @type {
|
183
|
-
msg.
|
4037
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4038
|
+
msg.setId(value);
|
184
4039
|
break;
|
185
4040
|
default:
|
186
4041
|
reader.skipField();
|
@@ -195,9 +4050,9 @@ proto.loyalty.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
195
4050
|
* Serializes the message to binary data (in protobuf wire format).
|
196
4051
|
* @return {!Uint8Array}
|
197
4052
|
*/
|
198
|
-
proto.loyalty.
|
4053
|
+
proto.loyalty.GetPointRequest.prototype.serializeBinary = function() {
|
199
4054
|
var writer = new jspb.BinaryWriter();
|
200
|
-
proto.loyalty.
|
4055
|
+
proto.loyalty.GetPointRequest.serializeBinaryToWriter(this, writer);
|
201
4056
|
return writer.getResultBuffer();
|
202
4057
|
};
|
203
4058
|
|
@@ -205,15 +4060,15 @@ proto.loyalty.PingRequest.prototype.serializeBinary = function() {
|
|
205
4060
|
/**
|
206
4061
|
* Serializes the given message to binary data (in protobuf wire
|
207
4062
|
* format), writing to the given BinaryWriter.
|
208
|
-
* @param {!proto.loyalty.
|
4063
|
+
* @param {!proto.loyalty.GetPointRequest} message
|
209
4064
|
* @param {!jspb.BinaryWriter} writer
|
210
4065
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
211
4066
|
*/
|
212
|
-
proto.loyalty.
|
4067
|
+
proto.loyalty.GetPointRequest.serializeBinaryToWriter = function(message, writer) {
|
213
4068
|
var f = undefined;
|
214
|
-
f = message.
|
215
|
-
if (f
|
216
|
-
writer.
|
4069
|
+
f = message.getId();
|
4070
|
+
if (f !== 0) {
|
4071
|
+
writer.writeInt32(
|
217
4072
|
1,
|
218
4073
|
f
|
219
4074
|
);
|
@@ -222,20 +4077,20 @@ proto.loyalty.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
222
4077
|
|
223
4078
|
|
224
4079
|
/**
|
225
|
-
* optional
|
226
|
-
* @return {
|
4080
|
+
* optional int32 id = 1;
|
4081
|
+
* @return {number}
|
227
4082
|
*/
|
228
|
-
proto.loyalty.
|
229
|
-
return /** @type {
|
4083
|
+
proto.loyalty.GetPointRequest.prototype.getId = function() {
|
4084
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
230
4085
|
};
|
231
4086
|
|
232
4087
|
|
233
4088
|
/**
|
234
|
-
* @param {
|
235
|
-
* @return {!proto.loyalty.
|
4089
|
+
* @param {number} value
|
4090
|
+
* @return {!proto.loyalty.GetPointRequest} returns this
|
236
4091
|
*/
|
237
|
-
proto.loyalty.
|
238
|
-
return jspb.Message.
|
4092
|
+
proto.loyalty.GetPointRequest.prototype.setId = function(value) {
|
4093
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
239
4094
|
};
|
240
4095
|
|
241
4096
|
|
@@ -255,8 +4110,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
255
4110
|
* http://goto/soy-param-migration
|
256
4111
|
* @return {!Object}
|
257
4112
|
*/
|
258
|
-
proto.loyalty.
|
259
|
-
return proto.loyalty.
|
4113
|
+
proto.loyalty.PointResponse.prototype.toObject = function(opt_includeInstance) {
|
4114
|
+
return proto.loyalty.PointResponse.toObject(opt_includeInstance, this);
|
260
4115
|
};
|
261
4116
|
|
262
4117
|
|
@@ -265,13 +4120,13 @@ proto.loyalty.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
|
265
4120
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
266
4121
|
* the JSPB instance for transitional soy proto support:
|
267
4122
|
* http://goto/soy-param-migration
|
268
|
-
* @param {!proto.loyalty.
|
4123
|
+
* @param {!proto.loyalty.PointResponse} msg The msg instance to transform.
|
269
4124
|
* @return {!Object}
|
270
4125
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
271
4126
|
*/
|
272
|
-
proto.loyalty.
|
4127
|
+
proto.loyalty.PointResponse.toObject = function(includeInstance, msg) {
|
273
4128
|
var f, obj = {
|
274
|
-
|
4129
|
+
data: (f = msg.getData()) && proto.loyalty.PointItem.toObject(includeInstance, f)
|
275
4130
|
};
|
276
4131
|
|
277
4132
|
if (includeInstance) {
|
@@ -285,23 +4140,23 @@ proto.loyalty.PongResponse.toObject = function(includeInstance, msg) {
|
|
285
4140
|
/**
|
286
4141
|
* Deserializes binary data (in protobuf wire format).
|
287
4142
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
288
|
-
* @return {!proto.loyalty.
|
4143
|
+
* @return {!proto.loyalty.PointResponse}
|
289
4144
|
*/
|
290
|
-
proto.loyalty.
|
4145
|
+
proto.loyalty.PointResponse.deserializeBinary = function(bytes) {
|
291
4146
|
var reader = new jspb.BinaryReader(bytes);
|
292
|
-
var msg = new proto.loyalty.
|
293
|
-
return proto.loyalty.
|
4147
|
+
var msg = new proto.loyalty.PointResponse;
|
4148
|
+
return proto.loyalty.PointResponse.deserializeBinaryFromReader(msg, reader);
|
294
4149
|
};
|
295
4150
|
|
296
4151
|
|
297
4152
|
/**
|
298
4153
|
* Deserializes binary data (in protobuf wire format) from the
|
299
4154
|
* given reader into the given message object.
|
300
|
-
* @param {!proto.loyalty.
|
4155
|
+
* @param {!proto.loyalty.PointResponse} msg The message object to deserialize into.
|
301
4156
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
302
|
-
* @return {!proto.loyalty.
|
4157
|
+
* @return {!proto.loyalty.PointResponse}
|
303
4158
|
*/
|
304
|
-
proto.loyalty.
|
4159
|
+
proto.loyalty.PointResponse.deserializeBinaryFromReader = function(msg, reader) {
|
305
4160
|
while (reader.nextField()) {
|
306
4161
|
if (reader.isEndGroup()) {
|
307
4162
|
break;
|
@@ -309,8 +4164,9 @@ proto.loyalty.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
309
4164
|
var field = reader.getFieldNumber();
|
310
4165
|
switch (field) {
|
311
4166
|
case 1:
|
312
|
-
var value =
|
313
|
-
|
4167
|
+
var value = new proto.loyalty.PointItem;
|
4168
|
+
reader.readMessage(value,proto.loyalty.PointItem.deserializeBinaryFromReader);
|
4169
|
+
msg.setData(value);
|
314
4170
|
break;
|
315
4171
|
default:
|
316
4172
|
reader.skipField();
|
@@ -325,9 +4181,9 @@ proto.loyalty.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
325
4181
|
* Serializes the message to binary data (in protobuf wire format).
|
326
4182
|
* @return {!Uint8Array}
|
327
4183
|
*/
|
328
|
-
proto.loyalty.
|
4184
|
+
proto.loyalty.PointResponse.prototype.serializeBinary = function() {
|
329
4185
|
var writer = new jspb.BinaryWriter();
|
330
|
-
proto.loyalty.
|
4186
|
+
proto.loyalty.PointResponse.serializeBinaryToWriter(this, writer);
|
331
4187
|
return writer.getResultBuffer();
|
332
4188
|
};
|
333
4189
|
|
@@ -335,41 +4191,68 @@ proto.loyalty.PongResponse.prototype.serializeBinary = function() {
|
|
335
4191
|
/**
|
336
4192
|
* Serializes the given message to binary data (in protobuf wire
|
337
4193
|
* format), writing to the given BinaryWriter.
|
338
|
-
* @param {!proto.loyalty.
|
4194
|
+
* @param {!proto.loyalty.PointResponse} message
|
339
4195
|
* @param {!jspb.BinaryWriter} writer
|
340
4196
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
341
4197
|
*/
|
342
|
-
proto.loyalty.
|
4198
|
+
proto.loyalty.PointResponse.serializeBinaryToWriter = function(message, writer) {
|
343
4199
|
var f = undefined;
|
344
|
-
f = message.
|
345
|
-
if (f
|
346
|
-
writer.
|
4200
|
+
f = message.getData();
|
4201
|
+
if (f != null) {
|
4202
|
+
writer.writeMessage(
|
347
4203
|
1,
|
348
|
-
f
|
4204
|
+
f,
|
4205
|
+
proto.loyalty.PointItem.serializeBinaryToWriter
|
349
4206
|
);
|
350
4207
|
}
|
351
4208
|
};
|
352
4209
|
|
353
4210
|
|
354
4211
|
/**
|
355
|
-
* optional
|
356
|
-
* @return {
|
4212
|
+
* optional PointItem data = 1;
|
4213
|
+
* @return {?proto.loyalty.PointItem}
|
357
4214
|
*/
|
358
|
-
proto.loyalty.
|
359
|
-
return /** @type
|
4215
|
+
proto.loyalty.PointResponse.prototype.getData = function() {
|
4216
|
+
return /** @type{?proto.loyalty.PointItem} */ (
|
4217
|
+
jspb.Message.getWrapperField(this, proto.loyalty.PointItem, 1));
|
4218
|
+
};
|
4219
|
+
|
4220
|
+
|
4221
|
+
/**
|
4222
|
+
* @param {?proto.loyalty.PointItem|undefined} value
|
4223
|
+
* @return {!proto.loyalty.PointResponse} returns this
|
4224
|
+
*/
|
4225
|
+
proto.loyalty.PointResponse.prototype.setData = function(value) {
|
4226
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
4227
|
+
};
|
4228
|
+
|
4229
|
+
|
4230
|
+
/**
|
4231
|
+
* Clears the message field making it undefined.
|
4232
|
+
* @return {!proto.loyalty.PointResponse} returns this
|
4233
|
+
*/
|
4234
|
+
proto.loyalty.PointResponse.prototype.clearData = function() {
|
4235
|
+
return this.setData(undefined);
|
360
4236
|
};
|
361
4237
|
|
362
4238
|
|
363
4239
|
/**
|
364
|
-
*
|
365
|
-
* @return {
|
4240
|
+
* Returns whether this field is set.
|
4241
|
+
* @return {boolean}
|
366
4242
|
*/
|
367
|
-
proto.loyalty.
|
368
|
-
return jspb.Message.
|
4243
|
+
proto.loyalty.PointResponse.prototype.hasData = function() {
|
4244
|
+
return jspb.Message.getField(this, 1) != null;
|
369
4245
|
};
|
370
4246
|
|
371
4247
|
|
372
4248
|
|
4249
|
+
/**
|
4250
|
+
* List of repeated fields within this message type.
|
4251
|
+
* @private {!Array<number>}
|
4252
|
+
* @const
|
4253
|
+
*/
|
4254
|
+
proto.loyalty.PointItemsResponse.repeatedFields_ = [1];
|
4255
|
+
|
373
4256
|
|
374
4257
|
|
375
4258
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -385,8 +4268,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
385
4268
|
* http://goto/soy-param-migration
|
386
4269
|
* @return {!Object}
|
387
4270
|
*/
|
388
|
-
proto.loyalty.
|
389
|
-
return proto.loyalty.
|
4271
|
+
proto.loyalty.PointItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
4272
|
+
return proto.loyalty.PointItemsResponse.toObject(opt_includeInstance, this);
|
390
4273
|
};
|
391
4274
|
|
392
4275
|
|
@@ -395,15 +4278,16 @@ proto.loyalty.PaginationRequest.prototype.toObject = function(opt_includeInstanc
|
|
395
4278
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
396
4279
|
* the JSPB instance for transitional soy proto support:
|
397
4280
|
* http://goto/soy-param-migration
|
398
|
-
* @param {!proto.loyalty.
|
4281
|
+
* @param {!proto.loyalty.PointItemsResponse} msg The msg instance to transform.
|
399
4282
|
* @return {!Object}
|
400
4283
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
401
4284
|
*/
|
402
|
-
proto.loyalty.
|
4285
|
+
proto.loyalty.PointItemsResponse.toObject = function(includeInstance, msg) {
|
403
4286
|
var f, obj = {
|
404
|
-
|
405
|
-
|
406
|
-
|
4287
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4288
|
+
proto.loyalty.PointItem.toObject, includeInstance),
|
4289
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4290
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
407
4291
|
};
|
408
4292
|
|
409
4293
|
if (includeInstance) {
|
@@ -417,23 +4301,23 @@ proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
417
4301
|
/**
|
418
4302
|
* Deserializes binary data (in protobuf wire format).
|
419
4303
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
420
|
-
* @return {!proto.loyalty.
|
4304
|
+
* @return {!proto.loyalty.PointItemsResponse}
|
421
4305
|
*/
|
422
|
-
proto.loyalty.
|
4306
|
+
proto.loyalty.PointItemsResponse.deserializeBinary = function(bytes) {
|
423
4307
|
var reader = new jspb.BinaryReader(bytes);
|
424
|
-
var msg = new proto.loyalty.
|
425
|
-
return proto.loyalty.
|
4308
|
+
var msg = new proto.loyalty.PointItemsResponse;
|
4309
|
+
return proto.loyalty.PointItemsResponse.deserializeBinaryFromReader(msg, reader);
|
426
4310
|
};
|
427
4311
|
|
428
4312
|
|
429
4313
|
/**
|
430
4314
|
* Deserializes binary data (in protobuf wire format) from the
|
431
4315
|
* given reader into the given message object.
|
432
|
-
* @param {!proto.loyalty.
|
4316
|
+
* @param {!proto.loyalty.PointItemsResponse} msg The message object to deserialize into.
|
433
4317
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
434
|
-
* @return {!proto.loyalty.
|
4318
|
+
* @return {!proto.loyalty.PointItemsResponse}
|
435
4319
|
*/
|
436
|
-
proto.loyalty.
|
4320
|
+
proto.loyalty.PointItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
437
4321
|
while (reader.nextField()) {
|
438
4322
|
if (reader.isEndGroup()) {
|
439
4323
|
break;
|
@@ -441,17 +4325,17 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
|
|
441
4325
|
var field = reader.getFieldNumber();
|
442
4326
|
switch (field) {
|
443
4327
|
case 1:
|
444
|
-
var value =
|
445
|
-
|
4328
|
+
var value = new proto.loyalty.PointItem;
|
4329
|
+
reader.readMessage(value,proto.loyalty.PointItem.deserializeBinaryFromReader);
|
4330
|
+
msg.addItems(value);
|
446
4331
|
break;
|
447
4332
|
case 2:
|
448
4333
|
var value = /** @type {number} */ (reader.readInt32());
|
449
|
-
msg.
|
4334
|
+
msg.setTotalPages(value);
|
450
4335
|
break;
|
451
4336
|
case 3:
|
452
|
-
var value =
|
453
|
-
|
454
|
-
msg.setLoyaltySearchParams(value);
|
4337
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4338
|
+
msg.setTotalItems(value);
|
455
4339
|
break;
|
456
4340
|
default:
|
457
4341
|
reader.skipField();
|
@@ -466,9 +4350,9 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
|
|
466
4350
|
* Serializes the message to binary data (in protobuf wire format).
|
467
4351
|
* @return {!Uint8Array}
|
468
4352
|
*/
|
469
|
-
proto.loyalty.
|
4353
|
+
proto.loyalty.PointItemsResponse.prototype.serializeBinary = function() {
|
470
4354
|
var writer = new jspb.BinaryWriter();
|
471
|
-
proto.loyalty.
|
4355
|
+
proto.loyalty.PointItemsResponse.serializeBinaryToWriter(this, writer);
|
472
4356
|
return writer.getResultBuffer();
|
473
4357
|
};
|
474
4358
|
|
@@ -476,98 +4360,135 @@ proto.loyalty.PaginationRequest.prototype.serializeBinary = function() {
|
|
476
4360
|
/**
|
477
4361
|
* Serializes the given message to binary data (in protobuf wire
|
478
4362
|
* format), writing to the given BinaryWriter.
|
479
|
-
* @param {!proto.loyalty.
|
4363
|
+
* @param {!proto.loyalty.PointItemsResponse} message
|
480
4364
|
* @param {!jspb.BinaryWriter} writer
|
481
4365
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
482
4366
|
*/
|
483
|
-
proto.loyalty.
|
4367
|
+
proto.loyalty.PointItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
484
4368
|
var f = undefined;
|
485
|
-
f = message.
|
486
|
-
if (f
|
487
|
-
writer.
|
4369
|
+
f = message.getItemsList();
|
4370
|
+
if (f.length > 0) {
|
4371
|
+
writer.writeRepeatedMessage(
|
488
4372
|
1,
|
489
|
-
f
|
4373
|
+
f,
|
4374
|
+
proto.loyalty.PointItem.serializeBinaryToWriter
|
490
4375
|
);
|
491
4376
|
}
|
492
|
-
f =
|
493
|
-
if (f
|
4377
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
4378
|
+
if (f != null) {
|
494
4379
|
writer.writeInt32(
|
495
4380
|
2,
|
496
4381
|
f
|
497
4382
|
);
|
498
4383
|
}
|
499
|
-
f =
|
4384
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
500
4385
|
if (f != null) {
|
501
|
-
writer.
|
4386
|
+
writer.writeInt32(
|
502
4387
|
3,
|
503
|
-
f
|
504
|
-
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter
|
4388
|
+
f
|
505
4389
|
);
|
506
4390
|
}
|
507
4391
|
};
|
508
4392
|
|
509
4393
|
|
510
4394
|
/**
|
511
|
-
*
|
512
|
-
* @return {
|
4395
|
+
* repeated PointItem items = 1;
|
4396
|
+
* @return {!Array<!proto.loyalty.PointItem>}
|
513
4397
|
*/
|
514
|
-
proto.loyalty.
|
515
|
-
return /** @type
|
4398
|
+
proto.loyalty.PointItemsResponse.prototype.getItemsList = function() {
|
4399
|
+
return /** @type{!Array<!proto.loyalty.PointItem>} */ (
|
4400
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.PointItem, 1));
|
516
4401
|
};
|
517
4402
|
|
518
4403
|
|
519
4404
|
/**
|
520
|
-
* @param {
|
521
|
-
* @return {!proto.loyalty.
|
4405
|
+
* @param {!Array<!proto.loyalty.PointItem>} value
|
4406
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
4407
|
+
*/
|
4408
|
+
proto.loyalty.PointItemsResponse.prototype.setItemsList = function(value) {
|
4409
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
4410
|
+
};
|
4411
|
+
|
4412
|
+
|
4413
|
+
/**
|
4414
|
+
* @param {!proto.loyalty.PointItem=} opt_value
|
4415
|
+
* @param {number=} opt_index
|
4416
|
+
* @return {!proto.loyalty.PointItem}
|
522
4417
|
*/
|
523
|
-
proto.loyalty.
|
524
|
-
return jspb.Message.
|
4418
|
+
proto.loyalty.PointItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
4419
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.loyalty.PointItem, opt_index);
|
525
4420
|
};
|
526
4421
|
|
527
4422
|
|
528
4423
|
/**
|
529
|
-
*
|
4424
|
+
* Clears the list making it empty but non-null.
|
4425
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
4426
|
+
*/
|
4427
|
+
proto.loyalty.PointItemsResponse.prototype.clearItemsList = function() {
|
4428
|
+
return this.setItemsList([]);
|
4429
|
+
};
|
4430
|
+
|
4431
|
+
|
4432
|
+
/**
|
4433
|
+
* optional int32 total_pages = 2;
|
530
4434
|
* @return {number}
|
531
4435
|
*/
|
532
|
-
proto.loyalty.
|
4436
|
+
proto.loyalty.PointItemsResponse.prototype.getTotalPages = function() {
|
533
4437
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
534
4438
|
};
|
535
4439
|
|
536
4440
|
|
537
4441
|
/**
|
538
4442
|
* @param {number} value
|
539
|
-
* @return {!proto.loyalty.
|
4443
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
540
4444
|
*/
|
541
|
-
proto.loyalty.
|
542
|
-
return jspb.Message.
|
4445
|
+
proto.loyalty.PointItemsResponse.prototype.setTotalPages = function(value) {
|
4446
|
+
return jspb.Message.setField(this, 2, value);
|
543
4447
|
};
|
544
4448
|
|
545
4449
|
|
546
4450
|
/**
|
547
|
-
*
|
548
|
-
* @return {
|
4451
|
+
* Clears the field making it undefined.
|
4452
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
549
4453
|
*/
|
550
|
-
proto.loyalty.
|
551
|
-
return
|
552
|
-
jspb.Message.getWrapperField(this, proto.loyalty.LoyaltySearchRequest, 3));
|
4454
|
+
proto.loyalty.PointItemsResponse.prototype.clearTotalPages = function() {
|
4455
|
+
return jspb.Message.setField(this, 2, undefined);
|
553
4456
|
};
|
554
4457
|
|
555
4458
|
|
556
4459
|
/**
|
557
|
-
*
|
558
|
-
* @return {
|
559
|
-
*/
|
560
|
-
proto.loyalty.
|
561
|
-
return jspb.Message.
|
4460
|
+
* Returns whether this field is set.
|
4461
|
+
* @return {boolean}
|
4462
|
+
*/
|
4463
|
+
proto.loyalty.PointItemsResponse.prototype.hasTotalPages = function() {
|
4464
|
+
return jspb.Message.getField(this, 2) != null;
|
562
4465
|
};
|
563
4466
|
|
564
4467
|
|
565
4468
|
/**
|
566
|
-
*
|
567
|
-
* @return {
|
4469
|
+
* optional int32 total_items = 3;
|
4470
|
+
* @return {number}
|
568
4471
|
*/
|
569
|
-
proto.loyalty.
|
570
|
-
return
|
4472
|
+
proto.loyalty.PointItemsResponse.prototype.getTotalItems = function() {
|
4473
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
4474
|
+
};
|
4475
|
+
|
4476
|
+
|
4477
|
+
/**
|
4478
|
+
* @param {number} value
|
4479
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
4480
|
+
*/
|
4481
|
+
proto.loyalty.PointItemsResponse.prototype.setTotalItems = function(value) {
|
4482
|
+
return jspb.Message.setField(this, 3, value);
|
4483
|
+
};
|
4484
|
+
|
4485
|
+
|
4486
|
+
/**
|
4487
|
+
* Clears the field making it undefined.
|
4488
|
+
* @return {!proto.loyalty.PointItemsResponse} returns this
|
4489
|
+
*/
|
4490
|
+
proto.loyalty.PointItemsResponse.prototype.clearTotalItems = function() {
|
4491
|
+
return jspb.Message.setField(this, 3, undefined);
|
571
4492
|
};
|
572
4493
|
|
573
4494
|
|
@@ -575,7 +4496,7 @@ proto.loyalty.PaginationRequest.prototype.clearLoyaltySearchParams = function()
|
|
575
4496
|
* Returns whether this field is set.
|
576
4497
|
* @return {boolean}
|
577
4498
|
*/
|
578
|
-
proto.loyalty.
|
4499
|
+
proto.loyalty.PointItemsResponse.prototype.hasTotalItems = function() {
|
579
4500
|
return jspb.Message.getField(this, 3) != null;
|
580
4501
|
};
|
581
4502
|
|
@@ -596,8 +4517,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
596
4517
|
* http://goto/soy-param-migration
|
597
4518
|
* @return {!Object}
|
598
4519
|
*/
|
599
|
-
proto.loyalty.
|
600
|
-
return proto.loyalty.
|
4520
|
+
proto.loyalty.PointStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
4521
|
+
return proto.loyalty.PointStatusResponse.toObject(opt_includeInstance, this);
|
601
4522
|
};
|
602
4523
|
|
603
4524
|
|
@@ -606,15 +4527,13 @@ proto.loyalty.LoyaltySearchRequest.prototype.toObject = function(opt_includeInst
|
|
606
4527
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
607
4528
|
* the JSPB instance for transitional soy proto support:
|
608
4529
|
* http://goto/soy-param-migration
|
609
|
-
* @param {!proto.loyalty.
|
4530
|
+
* @param {!proto.loyalty.PointStatusResponse} msg The msg instance to transform.
|
610
4531
|
* @return {!Object}
|
611
4532
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
612
4533
|
*/
|
613
|
-
proto.loyalty.
|
4534
|
+
proto.loyalty.PointStatusResponse.toObject = function(includeInstance, msg) {
|
614
4535
|
var f, obj = {
|
615
|
-
|
616
|
-
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
617
|
-
loyaltyTitle: jspb.Message.getFieldWithDefault(msg, 3, "")
|
4536
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
618
4537
|
};
|
619
4538
|
|
620
4539
|
if (includeInstance) {
|
@@ -628,23 +4547,23 @@ proto.loyalty.LoyaltySearchRequest.toObject = function(includeInstance, msg) {
|
|
628
4547
|
/**
|
629
4548
|
* Deserializes binary data (in protobuf wire format).
|
630
4549
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
631
|
-
* @return {!proto.loyalty.
|
4550
|
+
* @return {!proto.loyalty.PointStatusResponse}
|
632
4551
|
*/
|
633
|
-
proto.loyalty.
|
4552
|
+
proto.loyalty.PointStatusResponse.deserializeBinary = function(bytes) {
|
634
4553
|
var reader = new jspb.BinaryReader(bytes);
|
635
|
-
var msg = new proto.loyalty.
|
636
|
-
return proto.loyalty.
|
4554
|
+
var msg = new proto.loyalty.PointStatusResponse;
|
4555
|
+
return proto.loyalty.PointStatusResponse.deserializeBinaryFromReader(msg, reader);
|
637
4556
|
};
|
638
4557
|
|
639
4558
|
|
640
4559
|
/**
|
641
4560
|
* Deserializes binary data (in protobuf wire format) from the
|
642
4561
|
* given reader into the given message object.
|
643
|
-
* @param {!proto.loyalty.
|
4562
|
+
* @param {!proto.loyalty.PointStatusResponse} msg The message object to deserialize into.
|
644
4563
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
645
|
-
* @return {!proto.loyalty.
|
4564
|
+
* @return {!proto.loyalty.PointStatusResponse}
|
646
4565
|
*/
|
647
|
-
proto.loyalty.
|
4566
|
+
proto.loyalty.PointStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
648
4567
|
while (reader.nextField()) {
|
649
4568
|
if (reader.isEndGroup()) {
|
650
4569
|
break;
|
@@ -652,16 +4571,8 @@ proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
652
4571
|
var field = reader.getFieldNumber();
|
653
4572
|
switch (field) {
|
654
4573
|
case 1:
|
655
|
-
var value = /** @type {number} */ (reader.readInt32());
|
656
|
-
msg.setLoyaltyId(value);
|
657
|
-
break;
|
658
|
-
case 2:
|
659
|
-
var value = /** @type {number} */ (reader.readInt32());
|
660
|
-
msg.setUserId(value);
|
661
|
-
break;
|
662
|
-
case 3:
|
663
4574
|
var value = /** @type {string} */ (reader.readString());
|
664
|
-
msg.
|
4575
|
+
msg.setStatus(value);
|
665
4576
|
break;
|
666
4577
|
default:
|
667
4578
|
reader.skipField();
|
@@ -676,9 +4587,9 @@ proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
676
4587
|
* Serializes the message to binary data (in protobuf wire format).
|
677
4588
|
* @return {!Uint8Array}
|
678
4589
|
*/
|
679
|
-
proto.loyalty.
|
4590
|
+
proto.loyalty.PointStatusResponse.prototype.serializeBinary = function() {
|
680
4591
|
var writer = new jspb.BinaryWriter();
|
681
|
-
proto.loyalty.
|
4592
|
+
proto.loyalty.PointStatusResponse.serializeBinaryToWriter(this, writer);
|
682
4593
|
return writer.getResultBuffer();
|
683
4594
|
};
|
684
4595
|
|
@@ -686,30 +4597,16 @@ proto.loyalty.LoyaltySearchRequest.prototype.serializeBinary = function() {
|
|
686
4597
|
/**
|
687
4598
|
* Serializes the given message to binary data (in protobuf wire
|
688
4599
|
* format), writing to the given BinaryWriter.
|
689
|
-
* @param {!proto.loyalty.
|
4600
|
+
* @param {!proto.loyalty.PointStatusResponse} message
|
690
4601
|
* @param {!jspb.BinaryWriter} writer
|
691
4602
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
692
4603
|
*/
|
693
|
-
proto.loyalty.
|
4604
|
+
proto.loyalty.PointStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
694
4605
|
var f = undefined;
|
695
|
-
f =
|
696
|
-
if (f
|
697
|
-
writer.writeInt32(
|
698
|
-
1,
|
699
|
-
f
|
700
|
-
);
|
701
|
-
}
|
702
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
703
|
-
if (f != null) {
|
704
|
-
writer.writeInt32(
|
705
|
-
2,
|
706
|
-
f
|
707
|
-
);
|
708
|
-
}
|
709
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
710
|
-
if (f != null) {
|
4606
|
+
f = message.getStatus();
|
4607
|
+
if (f.length > 0) {
|
711
4608
|
writer.writeString(
|
712
|
-
|
4609
|
+
1,
|
713
4610
|
f
|
714
4611
|
);
|
715
4612
|
}
|
@@ -717,110 +4614,20 @@ proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter = function(message, w
|
|
717
4614
|
|
718
4615
|
|
719
4616
|
/**
|
720
|
-
* optional
|
721
|
-
* @return {number}
|
722
|
-
*/
|
723
|
-
proto.loyalty.LoyaltySearchRequest.prototype.getLoyaltyId = function() {
|
724
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
725
|
-
};
|
726
|
-
|
727
|
-
|
728
|
-
/**
|
729
|
-
* @param {number} value
|
730
|
-
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
731
|
-
*/
|
732
|
-
proto.loyalty.LoyaltySearchRequest.prototype.setLoyaltyId = function(value) {
|
733
|
-
return jspb.Message.setField(this, 1, value);
|
734
|
-
};
|
735
|
-
|
736
|
-
|
737
|
-
/**
|
738
|
-
* Clears the field making it undefined.
|
739
|
-
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
740
|
-
*/
|
741
|
-
proto.loyalty.LoyaltySearchRequest.prototype.clearLoyaltyId = function() {
|
742
|
-
return jspb.Message.setField(this, 1, undefined);
|
743
|
-
};
|
744
|
-
|
745
|
-
|
746
|
-
/**
|
747
|
-
* Returns whether this field is set.
|
748
|
-
* @return {boolean}
|
749
|
-
*/
|
750
|
-
proto.loyalty.LoyaltySearchRequest.prototype.hasLoyaltyId = function() {
|
751
|
-
return jspb.Message.getField(this, 1) != null;
|
752
|
-
};
|
753
|
-
|
754
|
-
|
755
|
-
/**
|
756
|
-
* optional int32 user_id = 2;
|
757
|
-
* @return {number}
|
758
|
-
*/
|
759
|
-
proto.loyalty.LoyaltySearchRequest.prototype.getUserId = function() {
|
760
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
761
|
-
};
|
762
|
-
|
763
|
-
|
764
|
-
/**
|
765
|
-
* @param {number} value
|
766
|
-
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
767
|
-
*/
|
768
|
-
proto.loyalty.LoyaltySearchRequest.prototype.setUserId = function(value) {
|
769
|
-
return jspb.Message.setField(this, 2, value);
|
770
|
-
};
|
771
|
-
|
772
|
-
|
773
|
-
/**
|
774
|
-
* Clears the field making it undefined.
|
775
|
-
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
776
|
-
*/
|
777
|
-
proto.loyalty.LoyaltySearchRequest.prototype.clearUserId = function() {
|
778
|
-
return jspb.Message.setField(this, 2, undefined);
|
779
|
-
};
|
780
|
-
|
781
|
-
|
782
|
-
/**
|
783
|
-
* Returns whether this field is set.
|
784
|
-
* @return {boolean}
|
785
|
-
*/
|
786
|
-
proto.loyalty.LoyaltySearchRequest.prototype.hasUserId = function() {
|
787
|
-
return jspb.Message.getField(this, 2) != null;
|
788
|
-
};
|
789
|
-
|
790
|
-
|
791
|
-
/**
|
792
|
-
* optional string loyalty_title = 3;
|
4617
|
+
* optional string status = 1;
|
793
4618
|
* @return {string}
|
794
4619
|
*/
|
795
|
-
proto.loyalty.
|
796
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
4620
|
+
proto.loyalty.PointStatusResponse.prototype.getStatus = function() {
|
4621
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
797
4622
|
};
|
798
4623
|
|
799
4624
|
|
800
4625
|
/**
|
801
4626
|
* @param {string} value
|
802
|
-
* @return {!proto.loyalty.
|
803
|
-
*/
|
804
|
-
proto.loyalty.LoyaltySearchRequest.prototype.setLoyaltyTitle = function(value) {
|
805
|
-
return jspb.Message.setField(this, 3, value);
|
806
|
-
};
|
807
|
-
|
808
|
-
|
809
|
-
/**
|
810
|
-
* Clears the field making it undefined.
|
811
|
-
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
812
|
-
*/
|
813
|
-
proto.loyalty.LoyaltySearchRequest.prototype.clearLoyaltyTitle = function() {
|
814
|
-
return jspb.Message.setField(this, 3, undefined);
|
815
|
-
};
|
816
|
-
|
817
|
-
|
818
|
-
/**
|
819
|
-
* Returns whether this field is set.
|
820
|
-
* @return {boolean}
|
4627
|
+
* @return {!proto.loyalty.PointStatusResponse} returns this
|
821
4628
|
*/
|
822
|
-
proto.loyalty.
|
823
|
-
return jspb.Message.
|
4629
|
+
proto.loyalty.PointStatusResponse.prototype.setStatus = function(value) {
|
4630
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
824
4631
|
};
|
825
4632
|
|
826
4633
|
|