protobuf-platform 1.2.47 → 1.2.49
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 +28 -0
- package/loyalty/loyalty_grpc_pb.js +55 -0
- package/loyalty/loyalty_pb.js +1330 -2
- package/package.json +1 -1
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.loyalty.DepositPoint', null, global);
|
|
|
26
26
|
goog.exportSymbol('proto.loyalty.File', null, global);
|
|
27
27
|
goog.exportSymbol('proto.loyalty.GetFileRequest', null, global);
|
|
28
28
|
goog.exportSymbol('proto.loyalty.GetLevelRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.loyalty.GetLevelTranslationRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.loyalty.GetPointRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.loyalty.GetUserLoyaltyRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.loyalty.LevelItem', null, global);
|
|
@@ -35,6 +36,9 @@ goog.exportSymbol('proto.loyalty.LevelRequest', null, global);
|
|
|
35
36
|
goog.exportSymbol('proto.loyalty.LevelRequest.RequestCase', null, global);
|
|
36
37
|
goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
|
|
37
38
|
goog.exportSymbol('proto.loyalty.LevelStatusResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.loyalty.LevelTranslationItem', null, global);
|
|
40
|
+
goog.exportSymbol('proto.loyalty.LevelTranslationRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.loyalty.LevelTranslationResponse', null, global);
|
|
38
42
|
goog.exportSymbol('proto.loyalty.LoyaltySearchRequest', null, global);
|
|
39
43
|
goog.exportSymbol('proto.loyalty.PaginationRequest', null, global);
|
|
40
44
|
goog.exportSymbol('proto.loyalty.PingRequest', null, global);
|
|
@@ -227,7 +231,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
227
231
|
* @constructor
|
|
228
232
|
*/
|
|
229
233
|
proto.loyalty.LevelItemRequest = function(opt_data) {
|
|
230
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
234
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelItemRequest.repeatedFields_, null);
|
|
231
235
|
};
|
|
232
236
|
goog.inherits(proto.loyalty.LevelItemRequest, jspb.Message);
|
|
233
237
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -258,6 +262,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
258
262
|
*/
|
|
259
263
|
proto.loyalty.GetLevelRequest.displayName = 'proto.loyalty.GetLevelRequest';
|
|
260
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Generated by JsPbCodeGenerator.
|
|
267
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
268
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
269
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
270
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
271
|
+
* valid.
|
|
272
|
+
* @extends {jspb.Message}
|
|
273
|
+
* @constructor
|
|
274
|
+
*/
|
|
275
|
+
proto.loyalty.LevelTranslationRequest = function(opt_data) {
|
|
276
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
277
|
+
};
|
|
278
|
+
goog.inherits(proto.loyalty.LevelTranslationRequest, jspb.Message);
|
|
279
|
+
if (goog.DEBUG && !COMPILED) {
|
|
280
|
+
/**
|
|
281
|
+
* @public
|
|
282
|
+
* @override
|
|
283
|
+
*/
|
|
284
|
+
proto.loyalty.LevelTranslationRequest.displayName = 'proto.loyalty.LevelTranslationRequest';
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Generated by JsPbCodeGenerator.
|
|
288
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
289
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
290
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
291
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
292
|
+
* valid.
|
|
293
|
+
* @extends {jspb.Message}
|
|
294
|
+
* @constructor
|
|
295
|
+
*/
|
|
296
|
+
proto.loyalty.GetLevelTranslationRequest = function(opt_data) {
|
|
297
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
298
|
+
};
|
|
299
|
+
goog.inherits(proto.loyalty.GetLevelTranslationRequest, jspb.Message);
|
|
300
|
+
if (goog.DEBUG && !COMPILED) {
|
|
301
|
+
/**
|
|
302
|
+
* @public
|
|
303
|
+
* @override
|
|
304
|
+
*/
|
|
305
|
+
proto.loyalty.GetLevelTranslationRequest.displayName = 'proto.loyalty.GetLevelTranslationRequest';
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Generated by JsPbCodeGenerator.
|
|
309
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
310
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
311
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
312
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
313
|
+
* valid.
|
|
314
|
+
* @extends {jspb.Message}
|
|
315
|
+
* @constructor
|
|
316
|
+
*/
|
|
317
|
+
proto.loyalty.LevelTranslationItem = function(opt_data) {
|
|
318
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
319
|
+
};
|
|
320
|
+
goog.inherits(proto.loyalty.LevelTranslationItem, jspb.Message);
|
|
321
|
+
if (goog.DEBUG && !COMPILED) {
|
|
322
|
+
/**
|
|
323
|
+
* @public
|
|
324
|
+
* @override
|
|
325
|
+
*/
|
|
326
|
+
proto.loyalty.LevelTranslationItem.displayName = 'proto.loyalty.LevelTranslationItem';
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Generated by JsPbCodeGenerator.
|
|
330
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
331
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
332
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
333
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
334
|
+
* valid.
|
|
335
|
+
* @extends {jspb.Message}
|
|
336
|
+
* @constructor
|
|
337
|
+
*/
|
|
338
|
+
proto.loyalty.LevelTranslationResponse = function(opt_data) {
|
|
339
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
340
|
+
};
|
|
341
|
+
goog.inherits(proto.loyalty.LevelTranslationResponse, jspb.Message);
|
|
342
|
+
if (goog.DEBUG && !COMPILED) {
|
|
343
|
+
/**
|
|
344
|
+
* @public
|
|
345
|
+
* @override
|
|
346
|
+
*/
|
|
347
|
+
proto.loyalty.LevelTranslationResponse.displayName = 'proto.loyalty.LevelTranslationResponse';
|
|
348
|
+
}
|
|
261
349
|
/**
|
|
262
350
|
* Generated by JsPbCodeGenerator.
|
|
263
351
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2681,6 +2769,13 @@ proto.loyalty.LevelRequest.prototype.hasFile = function() {
|
|
|
2681
2769
|
|
|
2682
2770
|
|
|
2683
2771
|
|
|
2772
|
+
/**
|
|
2773
|
+
* List of repeated fields within this message type.
|
|
2774
|
+
* @private {!Array<number>}
|
|
2775
|
+
* @const
|
|
2776
|
+
*/
|
|
2777
|
+
proto.loyalty.LevelItemRequest.repeatedFields_ = [9];
|
|
2778
|
+
|
|
2684
2779
|
|
|
2685
2780
|
|
|
2686
2781
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2719,7 +2814,9 @@ proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
|
|
2719
2814
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2720
2815
|
valueToComplete: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2721
2816
|
fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2722
|
-
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2817
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2818
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2819
|
+
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2723
2820
|
};
|
|
2724
2821
|
|
|
2725
2822
|
if (includeInstance) {
|
|
@@ -2788,6 +2885,11 @@ proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
2788
2885
|
var value = /** @type {string} */ (reader.readString());
|
|
2789
2886
|
msg.setFileType(value);
|
|
2790
2887
|
break;
|
|
2888
|
+
case 9:
|
|
2889
|
+
var value = new proto.loyalty.LevelTranslationItem;
|
|
2890
|
+
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2891
|
+
msg.addTranslations(value);
|
|
2892
|
+
break;
|
|
2791
2893
|
default:
|
|
2792
2894
|
reader.skipField();
|
|
2793
2895
|
break;
|
|
@@ -2873,6 +2975,14 @@ proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, write
|
|
|
2873
2975
|
f
|
|
2874
2976
|
);
|
|
2875
2977
|
}
|
|
2978
|
+
f = message.getTranslationsList();
|
|
2979
|
+
if (f.length > 0) {
|
|
2980
|
+
writer.writeRepeatedMessage(
|
|
2981
|
+
9,
|
|
2982
|
+
f,
|
|
2983
|
+
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2984
|
+
);
|
|
2985
|
+
}
|
|
2876
2986
|
};
|
|
2877
2987
|
|
|
2878
2988
|
|
|
@@ -3164,6 +3274,44 @@ proto.loyalty.LevelItemRequest.prototype.hasFileType = function() {
|
|
|
3164
3274
|
};
|
|
3165
3275
|
|
|
3166
3276
|
|
|
3277
|
+
/**
|
|
3278
|
+
* repeated LevelTranslationItem translations = 9;
|
|
3279
|
+
* @return {!Array<!proto.loyalty.LevelTranslationItem>}
|
|
3280
|
+
*/
|
|
3281
|
+
proto.loyalty.LevelItemRequest.prototype.getTranslationsList = function() {
|
|
3282
|
+
return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
|
|
3283
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 9));
|
|
3284
|
+
};
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* @param {!Array<!proto.loyalty.LevelTranslationItem>} value
|
|
3289
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3290
|
+
*/
|
|
3291
|
+
proto.loyalty.LevelItemRequest.prototype.setTranslationsList = function(value) {
|
|
3292
|
+
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
* @param {!proto.loyalty.LevelTranslationItem=} opt_value
|
|
3298
|
+
* @param {number=} opt_index
|
|
3299
|
+
* @return {!proto.loyalty.LevelTranslationItem}
|
|
3300
|
+
*/
|
|
3301
|
+
proto.loyalty.LevelItemRequest.prototype.addTranslations = function(opt_value, opt_index) {
|
|
3302
|
+
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* Clears the list making it empty but non-null.
|
|
3308
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3309
|
+
*/
|
|
3310
|
+
proto.loyalty.LevelItemRequest.prototype.clearTranslationsList = function() {
|
|
3311
|
+
return this.setTranslationsList([]);
|
|
3312
|
+
};
|
|
3313
|
+
|
|
3314
|
+
|
|
3167
3315
|
|
|
3168
3316
|
|
|
3169
3317
|
|
|
@@ -3297,6 +3445,1186 @@ proto.loyalty.GetLevelRequest.prototype.setId = function(value) {
|
|
|
3297
3445
|
|
|
3298
3446
|
|
|
3299
3447
|
|
|
3448
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3449
|
+
/**
|
|
3450
|
+
* Creates an object representation of this proto.
|
|
3451
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3452
|
+
* Optional fields that are not set will be set to undefined.
|
|
3453
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3454
|
+
* For the list of reserved names please see:
|
|
3455
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3456
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3457
|
+
* JSPB instance for transitional soy proto support:
|
|
3458
|
+
* http://goto/soy-param-migration
|
|
3459
|
+
* @return {!Object}
|
|
3460
|
+
*/
|
|
3461
|
+
proto.loyalty.LevelTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3462
|
+
return proto.loyalty.LevelTranslationRequest.toObject(opt_includeInstance, this);
|
|
3463
|
+
};
|
|
3464
|
+
|
|
3465
|
+
|
|
3466
|
+
/**
|
|
3467
|
+
* Static version of the {@see toObject} method.
|
|
3468
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3469
|
+
* the JSPB instance for transitional soy proto support:
|
|
3470
|
+
* http://goto/soy-param-migration
|
|
3471
|
+
* @param {!proto.loyalty.LevelTranslationRequest} msg The msg instance to transform.
|
|
3472
|
+
* @return {!Object}
|
|
3473
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3474
|
+
*/
|
|
3475
|
+
proto.loyalty.LevelTranslationRequest.toObject = function(includeInstance, msg) {
|
|
3476
|
+
var f, obj = {
|
|
3477
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3478
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3479
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3480
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3481
|
+
content: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3482
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
3483
|
+
};
|
|
3484
|
+
|
|
3485
|
+
if (includeInstance) {
|
|
3486
|
+
obj.$jspbMessageInstance = msg;
|
|
3487
|
+
}
|
|
3488
|
+
return obj;
|
|
3489
|
+
};
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
/**
|
|
3494
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3495
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3496
|
+
* @return {!proto.loyalty.LevelTranslationRequest}
|
|
3497
|
+
*/
|
|
3498
|
+
proto.loyalty.LevelTranslationRequest.deserializeBinary = function(bytes) {
|
|
3499
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3500
|
+
var msg = new proto.loyalty.LevelTranslationRequest;
|
|
3501
|
+
return proto.loyalty.LevelTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3507
|
+
* given reader into the given message object.
|
|
3508
|
+
* @param {!proto.loyalty.LevelTranslationRequest} msg The message object to deserialize into.
|
|
3509
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3510
|
+
* @return {!proto.loyalty.LevelTranslationRequest}
|
|
3511
|
+
*/
|
|
3512
|
+
proto.loyalty.LevelTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3513
|
+
while (reader.nextField()) {
|
|
3514
|
+
if (reader.isEndGroup()) {
|
|
3515
|
+
break;
|
|
3516
|
+
}
|
|
3517
|
+
var field = reader.getFieldNumber();
|
|
3518
|
+
switch (field) {
|
|
3519
|
+
case 1:
|
|
3520
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3521
|
+
msg.setLoyaltyLevelId(value);
|
|
3522
|
+
break;
|
|
3523
|
+
case 2:
|
|
3524
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3525
|
+
msg.setLocale(value);
|
|
3526
|
+
break;
|
|
3527
|
+
case 3:
|
|
3528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3529
|
+
msg.setTitle(value);
|
|
3530
|
+
break;
|
|
3531
|
+
case 4:
|
|
3532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3533
|
+
msg.setDescription(value);
|
|
3534
|
+
break;
|
|
3535
|
+
case 5:
|
|
3536
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3537
|
+
msg.setContent(value);
|
|
3538
|
+
break;
|
|
3539
|
+
case 6:
|
|
3540
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3541
|
+
msg.setIsActive(value);
|
|
3542
|
+
break;
|
|
3543
|
+
default:
|
|
3544
|
+
reader.skipField();
|
|
3545
|
+
break;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
return msg;
|
|
3549
|
+
};
|
|
3550
|
+
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3554
|
+
* @return {!Uint8Array}
|
|
3555
|
+
*/
|
|
3556
|
+
proto.loyalty.LevelTranslationRequest.prototype.serializeBinary = function() {
|
|
3557
|
+
var writer = new jspb.BinaryWriter();
|
|
3558
|
+
proto.loyalty.LevelTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
3559
|
+
return writer.getResultBuffer();
|
|
3560
|
+
};
|
|
3561
|
+
|
|
3562
|
+
|
|
3563
|
+
/**
|
|
3564
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3565
|
+
* format), writing to the given BinaryWriter.
|
|
3566
|
+
* @param {!proto.loyalty.LevelTranslationRequest} message
|
|
3567
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3568
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3569
|
+
*/
|
|
3570
|
+
proto.loyalty.LevelTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3571
|
+
var f = undefined;
|
|
3572
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
3573
|
+
if (f != null) {
|
|
3574
|
+
writer.writeInt32(
|
|
3575
|
+
1,
|
|
3576
|
+
f
|
|
3577
|
+
);
|
|
3578
|
+
}
|
|
3579
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
3580
|
+
if (f != null) {
|
|
3581
|
+
writer.writeString(
|
|
3582
|
+
2,
|
|
3583
|
+
f
|
|
3584
|
+
);
|
|
3585
|
+
}
|
|
3586
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3587
|
+
if (f != null) {
|
|
3588
|
+
writer.writeString(
|
|
3589
|
+
3,
|
|
3590
|
+
f
|
|
3591
|
+
);
|
|
3592
|
+
}
|
|
3593
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
3594
|
+
if (f != null) {
|
|
3595
|
+
writer.writeString(
|
|
3596
|
+
4,
|
|
3597
|
+
f
|
|
3598
|
+
);
|
|
3599
|
+
}
|
|
3600
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
3601
|
+
if (f != null) {
|
|
3602
|
+
writer.writeString(
|
|
3603
|
+
5,
|
|
3604
|
+
f
|
|
3605
|
+
);
|
|
3606
|
+
}
|
|
3607
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
3608
|
+
if (f != null) {
|
|
3609
|
+
writer.writeInt32(
|
|
3610
|
+
6,
|
|
3611
|
+
f
|
|
3612
|
+
);
|
|
3613
|
+
}
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* optional int32 loyalty_level_id = 1;
|
|
3619
|
+
* @return {number}
|
|
3620
|
+
*/
|
|
3621
|
+
proto.loyalty.LevelTranslationRequest.prototype.getLoyaltyLevelId = function() {
|
|
3622
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3623
|
+
};
|
|
3624
|
+
|
|
3625
|
+
|
|
3626
|
+
/**
|
|
3627
|
+
* @param {number} value
|
|
3628
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3629
|
+
*/
|
|
3630
|
+
proto.loyalty.LevelTranslationRequest.prototype.setLoyaltyLevelId = function(value) {
|
|
3631
|
+
return jspb.Message.setField(this, 1, value);
|
|
3632
|
+
};
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
* Clears the field making it undefined.
|
|
3637
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3638
|
+
*/
|
|
3639
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearLoyaltyLevelId = function() {
|
|
3640
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* Returns whether this field is set.
|
|
3646
|
+
* @return {boolean}
|
|
3647
|
+
*/
|
|
3648
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasLoyaltyLevelId = function() {
|
|
3649
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3650
|
+
};
|
|
3651
|
+
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* optional string locale = 2;
|
|
3655
|
+
* @return {string}
|
|
3656
|
+
*/
|
|
3657
|
+
proto.loyalty.LevelTranslationRequest.prototype.getLocale = function() {
|
|
3658
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3659
|
+
};
|
|
3660
|
+
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* @param {string} value
|
|
3664
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3665
|
+
*/
|
|
3666
|
+
proto.loyalty.LevelTranslationRequest.prototype.setLocale = function(value) {
|
|
3667
|
+
return jspb.Message.setField(this, 2, value);
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
/**
|
|
3672
|
+
* Clears the field making it undefined.
|
|
3673
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3674
|
+
*/
|
|
3675
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearLocale = function() {
|
|
3676
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* Returns whether this field is set.
|
|
3682
|
+
* @return {boolean}
|
|
3683
|
+
*/
|
|
3684
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasLocale = function() {
|
|
3685
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3686
|
+
};
|
|
3687
|
+
|
|
3688
|
+
|
|
3689
|
+
/**
|
|
3690
|
+
* optional string title = 3;
|
|
3691
|
+
* @return {string}
|
|
3692
|
+
*/
|
|
3693
|
+
proto.loyalty.LevelTranslationRequest.prototype.getTitle = function() {
|
|
3694
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
|
|
3698
|
+
/**
|
|
3699
|
+
* @param {string} value
|
|
3700
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3701
|
+
*/
|
|
3702
|
+
proto.loyalty.LevelTranslationRequest.prototype.setTitle = function(value) {
|
|
3703
|
+
return jspb.Message.setField(this, 3, value);
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* Clears the field making it undefined.
|
|
3709
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3710
|
+
*/
|
|
3711
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearTitle = function() {
|
|
3712
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
3713
|
+
};
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Returns whether this field is set.
|
|
3718
|
+
* @return {boolean}
|
|
3719
|
+
*/
|
|
3720
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasTitle = function() {
|
|
3721
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3722
|
+
};
|
|
3723
|
+
|
|
3724
|
+
|
|
3725
|
+
/**
|
|
3726
|
+
* optional string description = 4;
|
|
3727
|
+
* @return {string}
|
|
3728
|
+
*/
|
|
3729
|
+
proto.loyalty.LevelTranslationRequest.prototype.getDescription = function() {
|
|
3730
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3731
|
+
};
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
/**
|
|
3735
|
+
* @param {string} value
|
|
3736
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3737
|
+
*/
|
|
3738
|
+
proto.loyalty.LevelTranslationRequest.prototype.setDescription = function(value) {
|
|
3739
|
+
return jspb.Message.setField(this, 4, value);
|
|
3740
|
+
};
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
/**
|
|
3744
|
+
* Clears the field making it undefined.
|
|
3745
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3746
|
+
*/
|
|
3747
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearDescription = function() {
|
|
3748
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
3749
|
+
};
|
|
3750
|
+
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
* Returns whether this field is set.
|
|
3754
|
+
* @return {boolean}
|
|
3755
|
+
*/
|
|
3756
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasDescription = function() {
|
|
3757
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* optional string content = 5;
|
|
3763
|
+
* @return {string}
|
|
3764
|
+
*/
|
|
3765
|
+
proto.loyalty.LevelTranslationRequest.prototype.getContent = function() {
|
|
3766
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3767
|
+
};
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* @param {string} value
|
|
3772
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3773
|
+
*/
|
|
3774
|
+
proto.loyalty.LevelTranslationRequest.prototype.setContent = function(value) {
|
|
3775
|
+
return jspb.Message.setField(this, 5, value);
|
|
3776
|
+
};
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* Clears the field making it undefined.
|
|
3781
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3782
|
+
*/
|
|
3783
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearContent = function() {
|
|
3784
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* Returns whether this field is set.
|
|
3790
|
+
* @return {boolean}
|
|
3791
|
+
*/
|
|
3792
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasContent = function() {
|
|
3793
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3794
|
+
};
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
/**
|
|
3798
|
+
* optional int32 is_active = 6;
|
|
3799
|
+
* @return {number}
|
|
3800
|
+
*/
|
|
3801
|
+
proto.loyalty.LevelTranslationRequest.prototype.getIsActive = function() {
|
|
3802
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
/**
|
|
3807
|
+
* @param {number} value
|
|
3808
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3809
|
+
*/
|
|
3810
|
+
proto.loyalty.LevelTranslationRequest.prototype.setIsActive = function(value) {
|
|
3811
|
+
return jspb.Message.setField(this, 6, value);
|
|
3812
|
+
};
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
/**
|
|
3816
|
+
* Clears the field making it undefined.
|
|
3817
|
+
* @return {!proto.loyalty.LevelTranslationRequest} returns this
|
|
3818
|
+
*/
|
|
3819
|
+
proto.loyalty.LevelTranslationRequest.prototype.clearIsActive = function() {
|
|
3820
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
3821
|
+
};
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
/**
|
|
3825
|
+
* Returns whether this field is set.
|
|
3826
|
+
* @return {boolean}
|
|
3827
|
+
*/
|
|
3828
|
+
proto.loyalty.LevelTranslationRequest.prototype.hasIsActive = function() {
|
|
3829
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3830
|
+
};
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
|
|
3836
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3837
|
+
/**
|
|
3838
|
+
* Creates an object representation of this proto.
|
|
3839
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3840
|
+
* Optional fields that are not set will be set to undefined.
|
|
3841
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3842
|
+
* For the list of reserved names please see:
|
|
3843
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3844
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3845
|
+
* JSPB instance for transitional soy proto support:
|
|
3846
|
+
* http://goto/soy-param-migration
|
|
3847
|
+
* @return {!Object}
|
|
3848
|
+
*/
|
|
3849
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3850
|
+
return proto.loyalty.GetLevelTranslationRequest.toObject(opt_includeInstance, this);
|
|
3851
|
+
};
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* Static version of the {@see toObject} method.
|
|
3856
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3857
|
+
* the JSPB instance for transitional soy proto support:
|
|
3858
|
+
* http://goto/soy-param-migration
|
|
3859
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} msg The msg instance to transform.
|
|
3860
|
+
* @return {!Object}
|
|
3861
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3862
|
+
*/
|
|
3863
|
+
proto.loyalty.GetLevelTranslationRequest.toObject = function(includeInstance, msg) {
|
|
3864
|
+
var f, obj = {
|
|
3865
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3866
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3867
|
+
};
|
|
3868
|
+
|
|
3869
|
+
if (includeInstance) {
|
|
3870
|
+
obj.$jspbMessageInstance = msg;
|
|
3871
|
+
}
|
|
3872
|
+
return obj;
|
|
3873
|
+
};
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
/**
|
|
3878
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3879
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3880
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest}
|
|
3881
|
+
*/
|
|
3882
|
+
proto.loyalty.GetLevelTranslationRequest.deserializeBinary = function(bytes) {
|
|
3883
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3884
|
+
var msg = new proto.loyalty.GetLevelTranslationRequest;
|
|
3885
|
+
return proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3891
|
+
* given reader into the given message object.
|
|
3892
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} msg The message object to deserialize into.
|
|
3893
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3894
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest}
|
|
3895
|
+
*/
|
|
3896
|
+
proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3897
|
+
while (reader.nextField()) {
|
|
3898
|
+
if (reader.isEndGroup()) {
|
|
3899
|
+
break;
|
|
3900
|
+
}
|
|
3901
|
+
var field = reader.getFieldNumber();
|
|
3902
|
+
switch (field) {
|
|
3903
|
+
case 1:
|
|
3904
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3905
|
+
msg.setLoyaltyLevelId(value);
|
|
3906
|
+
break;
|
|
3907
|
+
case 2:
|
|
3908
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3909
|
+
msg.setLocale(value);
|
|
3910
|
+
break;
|
|
3911
|
+
default:
|
|
3912
|
+
reader.skipField();
|
|
3913
|
+
break;
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
return msg;
|
|
3917
|
+
};
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3922
|
+
* @return {!Uint8Array}
|
|
3923
|
+
*/
|
|
3924
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.serializeBinary = function() {
|
|
3925
|
+
var writer = new jspb.BinaryWriter();
|
|
3926
|
+
proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
3927
|
+
return writer.getResultBuffer();
|
|
3928
|
+
};
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3933
|
+
* format), writing to the given BinaryWriter.
|
|
3934
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} message
|
|
3935
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3936
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3937
|
+
*/
|
|
3938
|
+
proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3939
|
+
var f = undefined;
|
|
3940
|
+
f = message.getLoyaltyLevelId();
|
|
3941
|
+
if (f !== 0) {
|
|
3942
|
+
writer.writeInt32(
|
|
3943
|
+
1,
|
|
3944
|
+
f
|
|
3945
|
+
);
|
|
3946
|
+
}
|
|
3947
|
+
f = message.getLocale();
|
|
3948
|
+
if (f.length > 0) {
|
|
3949
|
+
writer.writeString(
|
|
3950
|
+
2,
|
|
3951
|
+
f
|
|
3952
|
+
);
|
|
3953
|
+
}
|
|
3954
|
+
};
|
|
3955
|
+
|
|
3956
|
+
|
|
3957
|
+
/**
|
|
3958
|
+
* optional int32 loyalty_level_id = 1;
|
|
3959
|
+
* @return {number}
|
|
3960
|
+
*/
|
|
3961
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.getLoyaltyLevelId = function() {
|
|
3962
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3963
|
+
};
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
/**
|
|
3967
|
+
* @param {number} value
|
|
3968
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest} returns this
|
|
3969
|
+
*/
|
|
3970
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.setLoyaltyLevelId = function(value) {
|
|
3971
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3972
|
+
};
|
|
3973
|
+
|
|
3974
|
+
|
|
3975
|
+
/**
|
|
3976
|
+
* optional string locale = 2;
|
|
3977
|
+
* @return {string}
|
|
3978
|
+
*/
|
|
3979
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.getLocale = function() {
|
|
3980
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3981
|
+
};
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* @param {string} value
|
|
3986
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest} returns this
|
|
3987
|
+
*/
|
|
3988
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.setLocale = function(value) {
|
|
3989
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3990
|
+
};
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3997
|
+
/**
|
|
3998
|
+
* Creates an object representation of this proto.
|
|
3999
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4000
|
+
* Optional fields that are not set will be set to undefined.
|
|
4001
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4002
|
+
* For the list of reserved names please see:
|
|
4003
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4004
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4005
|
+
* JSPB instance for transitional soy proto support:
|
|
4006
|
+
* http://goto/soy-param-migration
|
|
4007
|
+
* @return {!Object}
|
|
4008
|
+
*/
|
|
4009
|
+
proto.loyalty.LevelTranslationItem.prototype.toObject = function(opt_includeInstance) {
|
|
4010
|
+
return proto.loyalty.LevelTranslationItem.toObject(opt_includeInstance, this);
|
|
4011
|
+
};
|
|
4012
|
+
|
|
4013
|
+
|
|
4014
|
+
/**
|
|
4015
|
+
* Static version of the {@see toObject} method.
|
|
4016
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4017
|
+
* the JSPB instance for transitional soy proto support:
|
|
4018
|
+
* http://goto/soy-param-migration
|
|
4019
|
+
* @param {!proto.loyalty.LevelTranslationItem} msg The msg instance to transform.
|
|
4020
|
+
* @return {!Object}
|
|
4021
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4022
|
+
*/
|
|
4023
|
+
proto.loyalty.LevelTranslationItem.toObject = function(includeInstance, msg) {
|
|
4024
|
+
var f, obj = {
|
|
4025
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4026
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4027
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4028
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4029
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
4030
|
+
};
|
|
4031
|
+
|
|
4032
|
+
if (includeInstance) {
|
|
4033
|
+
obj.$jspbMessageInstance = msg;
|
|
4034
|
+
}
|
|
4035
|
+
return obj;
|
|
4036
|
+
};
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
/**
|
|
4041
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4042
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4043
|
+
* @return {!proto.loyalty.LevelTranslationItem}
|
|
4044
|
+
*/
|
|
4045
|
+
proto.loyalty.LevelTranslationItem.deserializeBinary = function(bytes) {
|
|
4046
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4047
|
+
var msg = new proto.loyalty.LevelTranslationItem;
|
|
4048
|
+
return proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader(msg, reader);
|
|
4049
|
+
};
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4054
|
+
* given reader into the given message object.
|
|
4055
|
+
* @param {!proto.loyalty.LevelTranslationItem} msg The message object to deserialize into.
|
|
4056
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4057
|
+
* @return {!proto.loyalty.LevelTranslationItem}
|
|
4058
|
+
*/
|
|
4059
|
+
proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
4060
|
+
while (reader.nextField()) {
|
|
4061
|
+
if (reader.isEndGroup()) {
|
|
4062
|
+
break;
|
|
4063
|
+
}
|
|
4064
|
+
var field = reader.getFieldNumber();
|
|
4065
|
+
switch (field) {
|
|
4066
|
+
case 1:
|
|
4067
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4068
|
+
msg.setTitle(value);
|
|
4069
|
+
break;
|
|
4070
|
+
case 2:
|
|
4071
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4072
|
+
msg.setLocale(value);
|
|
4073
|
+
break;
|
|
4074
|
+
case 3:
|
|
4075
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4076
|
+
msg.setDescription(value);
|
|
4077
|
+
break;
|
|
4078
|
+
case 4:
|
|
4079
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4080
|
+
msg.setContent(value);
|
|
4081
|
+
break;
|
|
4082
|
+
case 5:
|
|
4083
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4084
|
+
msg.setIsActive(value);
|
|
4085
|
+
break;
|
|
4086
|
+
default:
|
|
4087
|
+
reader.skipField();
|
|
4088
|
+
break;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return msg;
|
|
4092
|
+
};
|
|
4093
|
+
|
|
4094
|
+
|
|
4095
|
+
/**
|
|
4096
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4097
|
+
* @return {!Uint8Array}
|
|
4098
|
+
*/
|
|
4099
|
+
proto.loyalty.LevelTranslationItem.prototype.serializeBinary = function() {
|
|
4100
|
+
var writer = new jspb.BinaryWriter();
|
|
4101
|
+
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter(this, writer);
|
|
4102
|
+
return writer.getResultBuffer();
|
|
4103
|
+
};
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4108
|
+
* format), writing to the given BinaryWriter.
|
|
4109
|
+
* @param {!proto.loyalty.LevelTranslationItem} message
|
|
4110
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4112
|
+
*/
|
|
4113
|
+
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter = function(message, writer) {
|
|
4114
|
+
var f = undefined;
|
|
4115
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
4116
|
+
if (f != null) {
|
|
4117
|
+
writer.writeString(
|
|
4118
|
+
1,
|
|
4119
|
+
f
|
|
4120
|
+
);
|
|
4121
|
+
}
|
|
4122
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
4123
|
+
if (f != null) {
|
|
4124
|
+
writer.writeString(
|
|
4125
|
+
2,
|
|
4126
|
+
f
|
|
4127
|
+
);
|
|
4128
|
+
}
|
|
4129
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4130
|
+
if (f != null) {
|
|
4131
|
+
writer.writeString(
|
|
4132
|
+
3,
|
|
4133
|
+
f
|
|
4134
|
+
);
|
|
4135
|
+
}
|
|
4136
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
4137
|
+
if (f != null) {
|
|
4138
|
+
writer.writeString(
|
|
4139
|
+
4,
|
|
4140
|
+
f
|
|
4141
|
+
);
|
|
4142
|
+
}
|
|
4143
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
4144
|
+
if (f != null) {
|
|
4145
|
+
writer.writeInt32(
|
|
4146
|
+
5,
|
|
4147
|
+
f
|
|
4148
|
+
);
|
|
4149
|
+
}
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
/**
|
|
4154
|
+
* optional string title = 1;
|
|
4155
|
+
* @return {string}
|
|
4156
|
+
*/
|
|
4157
|
+
proto.loyalty.LevelTranslationItem.prototype.getTitle = function() {
|
|
4158
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
/**
|
|
4163
|
+
* @param {string} value
|
|
4164
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4165
|
+
*/
|
|
4166
|
+
proto.loyalty.LevelTranslationItem.prototype.setTitle = function(value) {
|
|
4167
|
+
return jspb.Message.setField(this, 1, value);
|
|
4168
|
+
};
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* Clears the field making it undefined.
|
|
4173
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4174
|
+
*/
|
|
4175
|
+
proto.loyalty.LevelTranslationItem.prototype.clearTitle = function() {
|
|
4176
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
4177
|
+
};
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
/**
|
|
4181
|
+
* Returns whether this field is set.
|
|
4182
|
+
* @return {boolean}
|
|
4183
|
+
*/
|
|
4184
|
+
proto.loyalty.LevelTranslationItem.prototype.hasTitle = function() {
|
|
4185
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4186
|
+
};
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* optional string locale = 2;
|
|
4191
|
+
* @return {string}
|
|
4192
|
+
*/
|
|
4193
|
+
proto.loyalty.LevelTranslationItem.prototype.getLocale = function() {
|
|
4194
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4195
|
+
};
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
/**
|
|
4199
|
+
* @param {string} value
|
|
4200
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4201
|
+
*/
|
|
4202
|
+
proto.loyalty.LevelTranslationItem.prototype.setLocale = function(value) {
|
|
4203
|
+
return jspb.Message.setField(this, 2, value);
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* Clears the field making it undefined.
|
|
4209
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4210
|
+
*/
|
|
4211
|
+
proto.loyalty.LevelTranslationItem.prototype.clearLocale = function() {
|
|
4212
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
|
|
4216
|
+
/**
|
|
4217
|
+
* Returns whether this field is set.
|
|
4218
|
+
* @return {boolean}
|
|
4219
|
+
*/
|
|
4220
|
+
proto.loyalty.LevelTranslationItem.prototype.hasLocale = function() {
|
|
4221
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
|
|
4225
|
+
/**
|
|
4226
|
+
* optional string description = 3;
|
|
4227
|
+
* @return {string}
|
|
4228
|
+
*/
|
|
4229
|
+
proto.loyalty.LevelTranslationItem.prototype.getDescription = function() {
|
|
4230
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4231
|
+
};
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
/**
|
|
4235
|
+
* @param {string} value
|
|
4236
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4237
|
+
*/
|
|
4238
|
+
proto.loyalty.LevelTranslationItem.prototype.setDescription = function(value) {
|
|
4239
|
+
return jspb.Message.setField(this, 3, value);
|
|
4240
|
+
};
|
|
4241
|
+
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* Clears the field making it undefined.
|
|
4245
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4246
|
+
*/
|
|
4247
|
+
proto.loyalty.LevelTranslationItem.prototype.clearDescription = function() {
|
|
4248
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4249
|
+
};
|
|
4250
|
+
|
|
4251
|
+
|
|
4252
|
+
/**
|
|
4253
|
+
* Returns whether this field is set.
|
|
4254
|
+
* @return {boolean}
|
|
4255
|
+
*/
|
|
4256
|
+
proto.loyalty.LevelTranslationItem.prototype.hasDescription = function() {
|
|
4257
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4258
|
+
};
|
|
4259
|
+
|
|
4260
|
+
|
|
4261
|
+
/**
|
|
4262
|
+
* optional string content = 4;
|
|
4263
|
+
* @return {string}
|
|
4264
|
+
*/
|
|
4265
|
+
proto.loyalty.LevelTranslationItem.prototype.getContent = function() {
|
|
4266
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
4267
|
+
};
|
|
4268
|
+
|
|
4269
|
+
|
|
4270
|
+
/**
|
|
4271
|
+
* @param {string} value
|
|
4272
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4273
|
+
*/
|
|
4274
|
+
proto.loyalty.LevelTranslationItem.prototype.setContent = function(value) {
|
|
4275
|
+
return jspb.Message.setField(this, 4, value);
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
/**
|
|
4280
|
+
* Clears the field making it undefined.
|
|
4281
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4282
|
+
*/
|
|
4283
|
+
proto.loyalty.LevelTranslationItem.prototype.clearContent = function() {
|
|
4284
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
4285
|
+
};
|
|
4286
|
+
|
|
4287
|
+
|
|
4288
|
+
/**
|
|
4289
|
+
* Returns whether this field is set.
|
|
4290
|
+
* @return {boolean}
|
|
4291
|
+
*/
|
|
4292
|
+
proto.loyalty.LevelTranslationItem.prototype.hasContent = function() {
|
|
4293
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4296
|
+
|
|
4297
|
+
/**
|
|
4298
|
+
* optional int32 is_active = 5;
|
|
4299
|
+
* @return {number}
|
|
4300
|
+
*/
|
|
4301
|
+
proto.loyalty.LevelTranslationItem.prototype.getIsActive = function() {
|
|
4302
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
4303
|
+
};
|
|
4304
|
+
|
|
4305
|
+
|
|
4306
|
+
/**
|
|
4307
|
+
* @param {number} value
|
|
4308
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4309
|
+
*/
|
|
4310
|
+
proto.loyalty.LevelTranslationItem.prototype.setIsActive = function(value) {
|
|
4311
|
+
return jspb.Message.setField(this, 5, value);
|
|
4312
|
+
};
|
|
4313
|
+
|
|
4314
|
+
|
|
4315
|
+
/**
|
|
4316
|
+
* Clears the field making it undefined.
|
|
4317
|
+
* @return {!proto.loyalty.LevelTranslationItem} returns this
|
|
4318
|
+
*/
|
|
4319
|
+
proto.loyalty.LevelTranslationItem.prototype.clearIsActive = function() {
|
|
4320
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
4321
|
+
};
|
|
4322
|
+
|
|
4323
|
+
|
|
4324
|
+
/**
|
|
4325
|
+
* Returns whether this field is set.
|
|
4326
|
+
* @return {boolean}
|
|
4327
|
+
*/
|
|
4328
|
+
proto.loyalty.LevelTranslationItem.prototype.hasIsActive = function() {
|
|
4329
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4330
|
+
};
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4337
|
+
/**
|
|
4338
|
+
* Creates an object representation of this proto.
|
|
4339
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4340
|
+
* Optional fields that are not set will be set to undefined.
|
|
4341
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4342
|
+
* For the list of reserved names please see:
|
|
4343
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4344
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4345
|
+
* JSPB instance for transitional soy proto support:
|
|
4346
|
+
* http://goto/soy-param-migration
|
|
4347
|
+
* @return {!Object}
|
|
4348
|
+
*/
|
|
4349
|
+
proto.loyalty.LevelTranslationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4350
|
+
return proto.loyalty.LevelTranslationResponse.toObject(opt_includeInstance, this);
|
|
4351
|
+
};
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
/**
|
|
4355
|
+
* Static version of the {@see toObject} method.
|
|
4356
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4357
|
+
* the JSPB instance for transitional soy proto support:
|
|
4358
|
+
* http://goto/soy-param-migration
|
|
4359
|
+
* @param {!proto.loyalty.LevelTranslationResponse} msg The msg instance to transform.
|
|
4360
|
+
* @return {!Object}
|
|
4361
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4362
|
+
*/
|
|
4363
|
+
proto.loyalty.LevelTranslationResponse.toObject = function(includeInstance, msg) {
|
|
4364
|
+
var f, obj = {
|
|
4365
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4366
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4367
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4368
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
4369
|
+
};
|
|
4370
|
+
|
|
4371
|
+
if (includeInstance) {
|
|
4372
|
+
obj.$jspbMessageInstance = msg;
|
|
4373
|
+
}
|
|
4374
|
+
return obj;
|
|
4375
|
+
};
|
|
4376
|
+
}
|
|
4377
|
+
|
|
4378
|
+
|
|
4379
|
+
/**
|
|
4380
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4381
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4382
|
+
* @return {!proto.loyalty.LevelTranslationResponse}
|
|
4383
|
+
*/
|
|
4384
|
+
proto.loyalty.LevelTranslationResponse.deserializeBinary = function(bytes) {
|
|
4385
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4386
|
+
var msg = new proto.loyalty.LevelTranslationResponse;
|
|
4387
|
+
return proto.loyalty.LevelTranslationResponse.deserializeBinaryFromReader(msg, reader);
|
|
4388
|
+
};
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
/**
|
|
4392
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4393
|
+
* given reader into the given message object.
|
|
4394
|
+
* @param {!proto.loyalty.LevelTranslationResponse} msg The message object to deserialize into.
|
|
4395
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4396
|
+
* @return {!proto.loyalty.LevelTranslationResponse}
|
|
4397
|
+
*/
|
|
4398
|
+
proto.loyalty.LevelTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4399
|
+
while (reader.nextField()) {
|
|
4400
|
+
if (reader.isEndGroup()) {
|
|
4401
|
+
break;
|
|
4402
|
+
}
|
|
4403
|
+
var field = reader.getFieldNumber();
|
|
4404
|
+
switch (field) {
|
|
4405
|
+
case 1:
|
|
4406
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4407
|
+
msg.setTitle(value);
|
|
4408
|
+
break;
|
|
4409
|
+
case 2:
|
|
4410
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4411
|
+
msg.setDescription(value);
|
|
4412
|
+
break;
|
|
4413
|
+
case 3:
|
|
4414
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4415
|
+
msg.setContent(value);
|
|
4416
|
+
break;
|
|
4417
|
+
case 4:
|
|
4418
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4419
|
+
msg.setIsActive(value);
|
|
4420
|
+
break;
|
|
4421
|
+
default:
|
|
4422
|
+
reader.skipField();
|
|
4423
|
+
break;
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
return msg;
|
|
4427
|
+
};
|
|
4428
|
+
|
|
4429
|
+
|
|
4430
|
+
/**
|
|
4431
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4432
|
+
* @return {!Uint8Array}
|
|
4433
|
+
*/
|
|
4434
|
+
proto.loyalty.LevelTranslationResponse.prototype.serializeBinary = function() {
|
|
4435
|
+
var writer = new jspb.BinaryWriter();
|
|
4436
|
+
proto.loyalty.LevelTranslationResponse.serializeBinaryToWriter(this, writer);
|
|
4437
|
+
return writer.getResultBuffer();
|
|
4438
|
+
};
|
|
4439
|
+
|
|
4440
|
+
|
|
4441
|
+
/**
|
|
4442
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4443
|
+
* format), writing to the given BinaryWriter.
|
|
4444
|
+
* @param {!proto.loyalty.LevelTranslationResponse} message
|
|
4445
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4446
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4447
|
+
*/
|
|
4448
|
+
proto.loyalty.LevelTranslationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4449
|
+
var f = undefined;
|
|
4450
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
4451
|
+
if (f != null) {
|
|
4452
|
+
writer.writeString(
|
|
4453
|
+
1,
|
|
4454
|
+
f
|
|
4455
|
+
);
|
|
4456
|
+
}
|
|
4457
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
4458
|
+
if (f != null) {
|
|
4459
|
+
writer.writeString(
|
|
4460
|
+
2,
|
|
4461
|
+
f
|
|
4462
|
+
);
|
|
4463
|
+
}
|
|
4464
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4465
|
+
if (f != null) {
|
|
4466
|
+
writer.writeString(
|
|
4467
|
+
3,
|
|
4468
|
+
f
|
|
4469
|
+
);
|
|
4470
|
+
}
|
|
4471
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
4472
|
+
if (f != null) {
|
|
4473
|
+
writer.writeInt32(
|
|
4474
|
+
4,
|
|
4475
|
+
f
|
|
4476
|
+
);
|
|
4477
|
+
}
|
|
4478
|
+
};
|
|
4479
|
+
|
|
4480
|
+
|
|
4481
|
+
/**
|
|
4482
|
+
* optional string title = 1;
|
|
4483
|
+
* @return {string}
|
|
4484
|
+
*/
|
|
4485
|
+
proto.loyalty.LevelTranslationResponse.prototype.getTitle = function() {
|
|
4486
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
|
|
4490
|
+
/**
|
|
4491
|
+
* @param {string} value
|
|
4492
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4493
|
+
*/
|
|
4494
|
+
proto.loyalty.LevelTranslationResponse.prototype.setTitle = function(value) {
|
|
4495
|
+
return jspb.Message.setField(this, 1, value);
|
|
4496
|
+
};
|
|
4497
|
+
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* Clears the field making it undefined.
|
|
4501
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4502
|
+
*/
|
|
4503
|
+
proto.loyalty.LevelTranslationResponse.prototype.clearTitle = function() {
|
|
4504
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
/**
|
|
4509
|
+
* Returns whether this field is set.
|
|
4510
|
+
* @return {boolean}
|
|
4511
|
+
*/
|
|
4512
|
+
proto.loyalty.LevelTranslationResponse.prototype.hasTitle = function() {
|
|
4513
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4514
|
+
};
|
|
4515
|
+
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* optional string description = 2;
|
|
4519
|
+
* @return {string}
|
|
4520
|
+
*/
|
|
4521
|
+
proto.loyalty.LevelTranslationResponse.prototype.getDescription = function() {
|
|
4522
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* @param {string} value
|
|
4528
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4529
|
+
*/
|
|
4530
|
+
proto.loyalty.LevelTranslationResponse.prototype.setDescription = function(value) {
|
|
4531
|
+
return jspb.Message.setField(this, 2, value);
|
|
4532
|
+
};
|
|
4533
|
+
|
|
4534
|
+
|
|
4535
|
+
/**
|
|
4536
|
+
* Clears the field making it undefined.
|
|
4537
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4538
|
+
*/
|
|
4539
|
+
proto.loyalty.LevelTranslationResponse.prototype.clearDescription = function() {
|
|
4540
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
4541
|
+
};
|
|
4542
|
+
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* Returns whether this field is set.
|
|
4546
|
+
* @return {boolean}
|
|
4547
|
+
*/
|
|
4548
|
+
proto.loyalty.LevelTranslationResponse.prototype.hasDescription = function() {
|
|
4549
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4550
|
+
};
|
|
4551
|
+
|
|
4552
|
+
|
|
4553
|
+
/**
|
|
4554
|
+
* optional string content = 3;
|
|
4555
|
+
* @return {string}
|
|
4556
|
+
*/
|
|
4557
|
+
proto.loyalty.LevelTranslationResponse.prototype.getContent = function() {
|
|
4558
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4559
|
+
};
|
|
4560
|
+
|
|
4561
|
+
|
|
4562
|
+
/**
|
|
4563
|
+
* @param {string} value
|
|
4564
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4565
|
+
*/
|
|
4566
|
+
proto.loyalty.LevelTranslationResponse.prototype.setContent = function(value) {
|
|
4567
|
+
return jspb.Message.setField(this, 3, value);
|
|
4568
|
+
};
|
|
4569
|
+
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* Clears the field making it undefined.
|
|
4573
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4574
|
+
*/
|
|
4575
|
+
proto.loyalty.LevelTranslationResponse.prototype.clearContent = function() {
|
|
4576
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4577
|
+
};
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
/**
|
|
4581
|
+
* Returns whether this field is set.
|
|
4582
|
+
* @return {boolean}
|
|
4583
|
+
*/
|
|
4584
|
+
proto.loyalty.LevelTranslationResponse.prototype.hasContent = function() {
|
|
4585
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4586
|
+
};
|
|
4587
|
+
|
|
4588
|
+
|
|
4589
|
+
/**
|
|
4590
|
+
* optional int32 is_active = 4;
|
|
4591
|
+
* @return {number}
|
|
4592
|
+
*/
|
|
4593
|
+
proto.loyalty.LevelTranslationResponse.prototype.getIsActive = function() {
|
|
4594
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* @param {number} value
|
|
4600
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4601
|
+
*/
|
|
4602
|
+
proto.loyalty.LevelTranslationResponse.prototype.setIsActive = function(value) {
|
|
4603
|
+
return jspb.Message.setField(this, 4, value);
|
|
4604
|
+
};
|
|
4605
|
+
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* Clears the field making it undefined.
|
|
4609
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4610
|
+
*/
|
|
4611
|
+
proto.loyalty.LevelTranslationResponse.prototype.clearIsActive = function() {
|
|
4612
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* Returns whether this field is set.
|
|
4618
|
+
* @return {boolean}
|
|
4619
|
+
*/
|
|
4620
|
+
proto.loyalty.LevelTranslationResponse.prototype.hasIsActive = function() {
|
|
4621
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4622
|
+
};
|
|
4623
|
+
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
|
|
3300
4628
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3301
4629
|
/**
|
|
3302
4630
|
* Creates an object representation of this proto.
|