protobuf-platform 1.2.641 → 1.2.643
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/bonus/bonus.proto +7 -0
- package/cashback/cashback.proto +11 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +424 -0
- package/game/game.proto +2 -0
- package/game/game_pb.js +49 -1
- package/loyalty/loyalty.proto +25 -0
- package/loyalty/loyalty_grpc_pb.js +22 -0
- package/loyalty/loyalty_pb.js +1173 -2
- package/package.json +1 -1
- package/sport/sport.proto +4 -0
- package/sport/sport_pb.js +97 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +454 -0
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -36,6 +36,9 @@ goog.exportSymbol('proto.loyalty.LevelItemsResponse', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.loyalty.LevelRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.loyalty.LevelRequest.RequestCase', null, global);
|
|
38
38
|
goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.loyalty.LevelRewardItem', null, global);
|
|
40
|
+
goog.exportSymbol('proto.loyalty.LevelRewardRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.loyalty.LevelRewardTranslationItem', null, global);
|
|
39
42
|
goog.exportSymbol('proto.loyalty.LevelStatusResponse', null, global);
|
|
40
43
|
goog.exportSymbol('proto.loyalty.LevelTranslationItem', null, global);
|
|
41
44
|
goog.exportSymbol('proto.loyalty.LevelTranslationRequest', null, global);
|
|
@@ -49,6 +52,7 @@ goog.exportSymbol('proto.loyalty.PointRequest', null, global);
|
|
|
49
52
|
goog.exportSymbol('proto.loyalty.PointResponse', null, global);
|
|
50
53
|
goog.exportSymbol('proto.loyalty.PointStatusResponse', null, global);
|
|
51
54
|
goog.exportSymbol('proto.loyalty.PongResponse', null, global);
|
|
55
|
+
goog.exportSymbol('proto.loyalty.ReplaceLevelRewardsRequest', null, global);
|
|
52
56
|
goog.exportSymbol('proto.loyalty.SignUpPoint', null, global);
|
|
53
57
|
goog.exportSymbol('proto.loyalty.UserLoyaltyPoint', null, global);
|
|
54
58
|
goog.exportSymbol('proto.loyalty.UserLoyaltyPointsResponse', null, global);
|
|
@@ -222,6 +226,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
222
226
|
*/
|
|
223
227
|
proto.loyalty.LevelItem.displayName = 'proto.loyalty.LevelItem';
|
|
224
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* Generated by JsPbCodeGenerator.
|
|
231
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
232
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
233
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
234
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
235
|
+
* valid.
|
|
236
|
+
* @extends {jspb.Message}
|
|
237
|
+
* @constructor
|
|
238
|
+
*/
|
|
239
|
+
proto.loyalty.LevelRewardTranslationItem = function(opt_data) {
|
|
240
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
241
|
+
};
|
|
242
|
+
goog.inherits(proto.loyalty.LevelRewardTranslationItem, jspb.Message);
|
|
243
|
+
if (goog.DEBUG && !COMPILED) {
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
* @override
|
|
247
|
+
*/
|
|
248
|
+
proto.loyalty.LevelRewardTranslationItem.displayName = 'proto.loyalty.LevelRewardTranslationItem';
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Generated by JsPbCodeGenerator.
|
|
252
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
253
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
254
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
255
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
256
|
+
* valid.
|
|
257
|
+
* @extends {jspb.Message}
|
|
258
|
+
* @constructor
|
|
259
|
+
*/
|
|
260
|
+
proto.loyalty.LevelRewardItem = function(opt_data) {
|
|
261
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelRewardItem.repeatedFields_, null);
|
|
262
|
+
};
|
|
263
|
+
goog.inherits(proto.loyalty.LevelRewardItem, jspb.Message);
|
|
264
|
+
if (goog.DEBUG && !COMPILED) {
|
|
265
|
+
/**
|
|
266
|
+
* @public
|
|
267
|
+
* @override
|
|
268
|
+
*/
|
|
269
|
+
proto.loyalty.LevelRewardItem.displayName = 'proto.loyalty.LevelRewardItem';
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Generated by JsPbCodeGenerator.
|
|
273
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
274
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
275
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
276
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
277
|
+
* valid.
|
|
278
|
+
* @extends {jspb.Message}
|
|
279
|
+
* @constructor
|
|
280
|
+
*/
|
|
281
|
+
proto.loyalty.LevelRewardRequest = function(opt_data) {
|
|
282
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelRewardRequest.repeatedFields_, null);
|
|
283
|
+
};
|
|
284
|
+
goog.inherits(proto.loyalty.LevelRewardRequest, jspb.Message);
|
|
285
|
+
if (goog.DEBUG && !COMPILED) {
|
|
286
|
+
/**
|
|
287
|
+
* @public
|
|
288
|
+
* @override
|
|
289
|
+
*/
|
|
290
|
+
proto.loyalty.LevelRewardRequest.displayName = 'proto.loyalty.LevelRewardRequest';
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Generated by JsPbCodeGenerator.
|
|
294
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
295
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
296
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
297
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
298
|
+
* valid.
|
|
299
|
+
* @extends {jspb.Message}
|
|
300
|
+
* @constructor
|
|
301
|
+
*/
|
|
302
|
+
proto.loyalty.ReplaceLevelRewardsRequest = function(opt_data) {
|
|
303
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.ReplaceLevelRewardsRequest.repeatedFields_, null);
|
|
304
|
+
};
|
|
305
|
+
goog.inherits(proto.loyalty.ReplaceLevelRewardsRequest, jspb.Message);
|
|
306
|
+
if (goog.DEBUG && !COMPILED) {
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
* @override
|
|
310
|
+
*/
|
|
311
|
+
proto.loyalty.ReplaceLevelRewardsRequest.displayName = 'proto.loyalty.ReplaceLevelRewardsRequest';
|
|
312
|
+
}
|
|
225
313
|
/**
|
|
226
314
|
* Generated by JsPbCodeGenerator.
|
|
227
315
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2456,7 +2544,7 @@ proto.loyalty.GetFileRequest.prototype.setInstanceType = function(value) {
|
|
|
2456
2544
|
* @private {!Array<number>}
|
|
2457
2545
|
* @const
|
|
2458
2546
|
*/
|
|
2459
|
-
proto.loyalty.LevelItem.repeatedFields_ = [10];
|
|
2547
|
+
proto.loyalty.LevelItem.repeatedFields_ = [10,11];
|
|
2460
2548
|
|
|
2461
2549
|
|
|
2462
2550
|
|
|
@@ -2499,7 +2587,9 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
2499
2587
|
valueToComplete: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
2500
2588
|
valueFrom: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
2501
2589
|
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2502
|
-
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2590
|
+
proto.loyalty.LevelTranslationItem.toObject, includeInstance),
|
|
2591
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
2592
|
+
proto.loyalty.LevelRewardItem.toObject, includeInstance)
|
|
2503
2593
|
};
|
|
2504
2594
|
|
|
2505
2595
|
if (includeInstance) {
|
|
@@ -2577,6 +2667,11 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2577
2667
|
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2578
2668
|
msg.addTranslations(value);
|
|
2579
2669
|
break;
|
|
2670
|
+
case 11:
|
|
2671
|
+
var value = new proto.loyalty.LevelRewardItem;
|
|
2672
|
+
reader.readMessage(value,proto.loyalty.LevelRewardItem.deserializeBinaryFromReader);
|
|
2673
|
+
msg.addRewards(value);
|
|
2674
|
+
break;
|
|
2580
2675
|
default:
|
|
2581
2676
|
reader.skipField();
|
|
2582
2677
|
break;
|
|
@@ -2677,6 +2772,14 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
2677
2772
|
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2678
2773
|
);
|
|
2679
2774
|
}
|
|
2775
|
+
f = message.getRewardsList();
|
|
2776
|
+
if (f.length > 0) {
|
|
2777
|
+
writer.writeRepeatedMessage(
|
|
2778
|
+
11,
|
|
2779
|
+
f,
|
|
2780
|
+
proto.loyalty.LevelRewardItem.serializeBinaryToWriter
|
|
2781
|
+
);
|
|
2782
|
+
}
|
|
2680
2783
|
};
|
|
2681
2784
|
|
|
2682
2785
|
|
|
@@ -3042,6 +3145,1074 @@ proto.loyalty.LevelItem.prototype.clearTranslationsList = function() {
|
|
|
3042
3145
|
};
|
|
3043
3146
|
|
|
3044
3147
|
|
|
3148
|
+
/**
|
|
3149
|
+
* repeated LevelRewardItem rewards = 11;
|
|
3150
|
+
* @return {!Array<!proto.loyalty.LevelRewardItem>}
|
|
3151
|
+
*/
|
|
3152
|
+
proto.loyalty.LevelItem.prototype.getRewardsList = function() {
|
|
3153
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardItem>} */ (
|
|
3154
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardItem, 11));
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
/**
|
|
3159
|
+
* @param {!Array<!proto.loyalty.LevelRewardItem>} value
|
|
3160
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3161
|
+
*/
|
|
3162
|
+
proto.loyalty.LevelItem.prototype.setRewardsList = function(value) {
|
|
3163
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
|
3164
|
+
};
|
|
3165
|
+
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* @param {!proto.loyalty.LevelRewardItem=} opt_value
|
|
3169
|
+
* @param {number=} opt_index
|
|
3170
|
+
* @return {!proto.loyalty.LevelRewardItem}
|
|
3171
|
+
*/
|
|
3172
|
+
proto.loyalty.LevelItem.prototype.addRewards = function(opt_value, opt_index) {
|
|
3173
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.loyalty.LevelRewardItem, opt_index);
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
/**
|
|
3178
|
+
* Clears the list making it empty but non-null.
|
|
3179
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3180
|
+
*/
|
|
3181
|
+
proto.loyalty.LevelItem.prototype.clearRewardsList = function() {
|
|
3182
|
+
return this.setRewardsList([]);
|
|
3183
|
+
};
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3190
|
+
/**
|
|
3191
|
+
* Creates an object representation of this proto.
|
|
3192
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3193
|
+
* Optional fields that are not set will be set to undefined.
|
|
3194
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3195
|
+
* For the list of reserved names please see:
|
|
3196
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3197
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3198
|
+
* JSPB instance for transitional soy proto support:
|
|
3199
|
+
* http://goto/soy-param-migration
|
|
3200
|
+
* @return {!Object}
|
|
3201
|
+
*/
|
|
3202
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.toObject = function(opt_includeInstance) {
|
|
3203
|
+
return proto.loyalty.LevelRewardTranslationItem.toObject(opt_includeInstance, this);
|
|
3204
|
+
};
|
|
3205
|
+
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* Static version of the {@see toObject} method.
|
|
3209
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3210
|
+
* the JSPB instance for transitional soy proto support:
|
|
3211
|
+
* http://goto/soy-param-migration
|
|
3212
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem} msg The msg instance to transform.
|
|
3213
|
+
* @return {!Object}
|
|
3214
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3215
|
+
*/
|
|
3216
|
+
proto.loyalty.LevelRewardTranslationItem.toObject = function(includeInstance, msg) {
|
|
3217
|
+
var f, obj = {
|
|
3218
|
+
locale: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3219
|
+
value: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3220
|
+
};
|
|
3221
|
+
|
|
3222
|
+
if (includeInstance) {
|
|
3223
|
+
obj.$jspbMessageInstance = msg;
|
|
3224
|
+
}
|
|
3225
|
+
return obj;
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3232
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3233
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem}
|
|
3234
|
+
*/
|
|
3235
|
+
proto.loyalty.LevelRewardTranslationItem.deserializeBinary = function(bytes) {
|
|
3236
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3237
|
+
var msg = new proto.loyalty.LevelRewardTranslationItem;
|
|
3238
|
+
return proto.loyalty.LevelRewardTranslationItem.deserializeBinaryFromReader(msg, reader);
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
/**
|
|
3243
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3244
|
+
* given reader into the given message object.
|
|
3245
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem} msg The message object to deserialize into.
|
|
3246
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3247
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem}
|
|
3248
|
+
*/
|
|
3249
|
+
proto.loyalty.LevelRewardTranslationItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3250
|
+
while (reader.nextField()) {
|
|
3251
|
+
if (reader.isEndGroup()) {
|
|
3252
|
+
break;
|
|
3253
|
+
}
|
|
3254
|
+
var field = reader.getFieldNumber();
|
|
3255
|
+
switch (field) {
|
|
3256
|
+
case 1:
|
|
3257
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3258
|
+
msg.setLocale(value);
|
|
3259
|
+
break;
|
|
3260
|
+
case 2:
|
|
3261
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3262
|
+
msg.setValue(value);
|
|
3263
|
+
break;
|
|
3264
|
+
default:
|
|
3265
|
+
reader.skipField();
|
|
3266
|
+
break;
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
return msg;
|
|
3270
|
+
};
|
|
3271
|
+
|
|
3272
|
+
|
|
3273
|
+
/**
|
|
3274
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3275
|
+
* @return {!Uint8Array}
|
|
3276
|
+
*/
|
|
3277
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.serializeBinary = function() {
|
|
3278
|
+
var writer = new jspb.BinaryWriter();
|
|
3279
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter(this, writer);
|
|
3280
|
+
return writer.getResultBuffer();
|
|
3281
|
+
};
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3286
|
+
* format), writing to the given BinaryWriter.
|
|
3287
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem} message
|
|
3288
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3289
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3290
|
+
*/
|
|
3291
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter = function(message, writer) {
|
|
3292
|
+
var f = undefined;
|
|
3293
|
+
f = message.getLocale();
|
|
3294
|
+
if (f.length > 0) {
|
|
3295
|
+
writer.writeString(
|
|
3296
|
+
1,
|
|
3297
|
+
f
|
|
3298
|
+
);
|
|
3299
|
+
}
|
|
3300
|
+
f = message.getValue();
|
|
3301
|
+
if (f.length > 0) {
|
|
3302
|
+
writer.writeString(
|
|
3303
|
+
2,
|
|
3304
|
+
f
|
|
3305
|
+
);
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* optional string locale = 1;
|
|
3312
|
+
* @return {string}
|
|
3313
|
+
*/
|
|
3314
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.getLocale = function() {
|
|
3315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* @param {string} value
|
|
3321
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem} returns this
|
|
3322
|
+
*/
|
|
3323
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.setLocale = function(value) {
|
|
3324
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* optional string value = 2;
|
|
3330
|
+
* @return {string}
|
|
3331
|
+
*/
|
|
3332
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.getValue = function() {
|
|
3333
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* @param {string} value
|
|
3339
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem} returns this
|
|
3340
|
+
*/
|
|
3341
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.setValue = function(value) {
|
|
3342
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* List of repeated fields within this message type.
|
|
3349
|
+
* @private {!Array<number>}
|
|
3350
|
+
* @const
|
|
3351
|
+
*/
|
|
3352
|
+
proto.loyalty.LevelRewardItem.repeatedFields_ = [6];
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3357
|
+
/**
|
|
3358
|
+
* Creates an object representation of this proto.
|
|
3359
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3360
|
+
* Optional fields that are not set will be set to undefined.
|
|
3361
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3362
|
+
* For the list of reserved names please see:
|
|
3363
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3364
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3365
|
+
* JSPB instance for transitional soy proto support:
|
|
3366
|
+
* http://goto/soy-param-migration
|
|
3367
|
+
* @return {!Object}
|
|
3368
|
+
*/
|
|
3369
|
+
proto.loyalty.LevelRewardItem.prototype.toObject = function(opt_includeInstance) {
|
|
3370
|
+
return proto.loyalty.LevelRewardItem.toObject(opt_includeInstance, this);
|
|
3371
|
+
};
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Static version of the {@see toObject} method.
|
|
3376
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3377
|
+
* the JSPB instance for transitional soy proto support:
|
|
3378
|
+
* http://goto/soy-param-migration
|
|
3379
|
+
* @param {!proto.loyalty.LevelRewardItem} msg The msg instance to transform.
|
|
3380
|
+
* @return {!Object}
|
|
3381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3382
|
+
*/
|
|
3383
|
+
proto.loyalty.LevelRewardItem.toObject = function(includeInstance, msg) {
|
|
3384
|
+
var f, obj = {
|
|
3385
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3386
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3387
|
+
position: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3388
|
+
targetReference: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3389
|
+
config: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3390
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
3391
|
+
proto.loyalty.LevelRewardTranslationItem.toObject, includeInstance)
|
|
3392
|
+
};
|
|
3393
|
+
|
|
3394
|
+
if (includeInstance) {
|
|
3395
|
+
obj.$jspbMessageInstance = msg;
|
|
3396
|
+
}
|
|
3397
|
+
return obj;
|
|
3398
|
+
};
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3404
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3405
|
+
* @return {!proto.loyalty.LevelRewardItem}
|
|
3406
|
+
*/
|
|
3407
|
+
proto.loyalty.LevelRewardItem.deserializeBinary = function(bytes) {
|
|
3408
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3409
|
+
var msg = new proto.loyalty.LevelRewardItem;
|
|
3410
|
+
return proto.loyalty.LevelRewardItem.deserializeBinaryFromReader(msg, reader);
|
|
3411
|
+
};
|
|
3412
|
+
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3416
|
+
* given reader into the given message object.
|
|
3417
|
+
* @param {!proto.loyalty.LevelRewardItem} msg The message object to deserialize into.
|
|
3418
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3419
|
+
* @return {!proto.loyalty.LevelRewardItem}
|
|
3420
|
+
*/
|
|
3421
|
+
proto.loyalty.LevelRewardItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3422
|
+
while (reader.nextField()) {
|
|
3423
|
+
if (reader.isEndGroup()) {
|
|
3424
|
+
break;
|
|
3425
|
+
}
|
|
3426
|
+
var field = reader.getFieldNumber();
|
|
3427
|
+
switch (field) {
|
|
3428
|
+
case 1:
|
|
3429
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3430
|
+
msg.setId(value);
|
|
3431
|
+
break;
|
|
3432
|
+
case 2:
|
|
3433
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3434
|
+
msg.setType(value);
|
|
3435
|
+
break;
|
|
3436
|
+
case 3:
|
|
3437
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3438
|
+
msg.setPosition(value);
|
|
3439
|
+
break;
|
|
3440
|
+
case 4:
|
|
3441
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3442
|
+
msg.setTargetReference(value);
|
|
3443
|
+
break;
|
|
3444
|
+
case 5:
|
|
3445
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3446
|
+
msg.setConfig(value);
|
|
3447
|
+
break;
|
|
3448
|
+
case 6:
|
|
3449
|
+
var value = new proto.loyalty.LevelRewardTranslationItem;
|
|
3450
|
+
reader.readMessage(value,proto.loyalty.LevelRewardTranslationItem.deserializeBinaryFromReader);
|
|
3451
|
+
msg.addTranslations(value);
|
|
3452
|
+
break;
|
|
3453
|
+
default:
|
|
3454
|
+
reader.skipField();
|
|
3455
|
+
break;
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3458
|
+
return msg;
|
|
3459
|
+
};
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3464
|
+
* @return {!Uint8Array}
|
|
3465
|
+
*/
|
|
3466
|
+
proto.loyalty.LevelRewardItem.prototype.serializeBinary = function() {
|
|
3467
|
+
var writer = new jspb.BinaryWriter();
|
|
3468
|
+
proto.loyalty.LevelRewardItem.serializeBinaryToWriter(this, writer);
|
|
3469
|
+
return writer.getResultBuffer();
|
|
3470
|
+
};
|
|
3471
|
+
|
|
3472
|
+
|
|
3473
|
+
/**
|
|
3474
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3475
|
+
* format), writing to the given BinaryWriter.
|
|
3476
|
+
* @param {!proto.loyalty.LevelRewardItem} message
|
|
3477
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3478
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3479
|
+
*/
|
|
3480
|
+
proto.loyalty.LevelRewardItem.serializeBinaryToWriter = function(message, writer) {
|
|
3481
|
+
var f = undefined;
|
|
3482
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
3483
|
+
if (f != null) {
|
|
3484
|
+
writer.writeInt32(
|
|
3485
|
+
1,
|
|
3486
|
+
f
|
|
3487
|
+
);
|
|
3488
|
+
}
|
|
3489
|
+
f = message.getType();
|
|
3490
|
+
if (f.length > 0) {
|
|
3491
|
+
writer.writeString(
|
|
3492
|
+
2,
|
|
3493
|
+
f
|
|
3494
|
+
);
|
|
3495
|
+
}
|
|
3496
|
+
f = message.getPosition();
|
|
3497
|
+
if (f !== 0) {
|
|
3498
|
+
writer.writeInt32(
|
|
3499
|
+
3,
|
|
3500
|
+
f
|
|
3501
|
+
);
|
|
3502
|
+
}
|
|
3503
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
3504
|
+
if (f != null) {
|
|
3505
|
+
writer.writeString(
|
|
3506
|
+
4,
|
|
3507
|
+
f
|
|
3508
|
+
);
|
|
3509
|
+
}
|
|
3510
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
3511
|
+
if (f != null) {
|
|
3512
|
+
writer.writeString(
|
|
3513
|
+
5,
|
|
3514
|
+
f
|
|
3515
|
+
);
|
|
3516
|
+
}
|
|
3517
|
+
f = message.getTranslationsList();
|
|
3518
|
+
if (f.length > 0) {
|
|
3519
|
+
writer.writeRepeatedMessage(
|
|
3520
|
+
6,
|
|
3521
|
+
f,
|
|
3522
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter
|
|
3523
|
+
);
|
|
3524
|
+
}
|
|
3525
|
+
};
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* optional int32 id = 1;
|
|
3530
|
+
* @return {number}
|
|
3531
|
+
*/
|
|
3532
|
+
proto.loyalty.LevelRewardItem.prototype.getId = function() {
|
|
3533
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3534
|
+
};
|
|
3535
|
+
|
|
3536
|
+
|
|
3537
|
+
/**
|
|
3538
|
+
* @param {number} value
|
|
3539
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3540
|
+
*/
|
|
3541
|
+
proto.loyalty.LevelRewardItem.prototype.setId = function(value) {
|
|
3542
|
+
return jspb.Message.setField(this, 1, value);
|
|
3543
|
+
};
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
/**
|
|
3547
|
+
* Clears the field making it undefined.
|
|
3548
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3549
|
+
*/
|
|
3550
|
+
proto.loyalty.LevelRewardItem.prototype.clearId = function() {
|
|
3551
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
3552
|
+
};
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
/**
|
|
3556
|
+
* Returns whether this field is set.
|
|
3557
|
+
* @return {boolean}
|
|
3558
|
+
*/
|
|
3559
|
+
proto.loyalty.LevelRewardItem.prototype.hasId = function() {
|
|
3560
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3561
|
+
};
|
|
3562
|
+
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
* optional string type = 2;
|
|
3566
|
+
* @return {string}
|
|
3567
|
+
*/
|
|
3568
|
+
proto.loyalty.LevelRewardItem.prototype.getType = function() {
|
|
3569
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* @param {string} value
|
|
3575
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3576
|
+
*/
|
|
3577
|
+
proto.loyalty.LevelRewardItem.prototype.setType = function(value) {
|
|
3578
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3579
|
+
};
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
/**
|
|
3583
|
+
* optional int32 position = 3;
|
|
3584
|
+
* @return {number}
|
|
3585
|
+
*/
|
|
3586
|
+
proto.loyalty.LevelRewardItem.prototype.getPosition = function() {
|
|
3587
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3588
|
+
};
|
|
3589
|
+
|
|
3590
|
+
|
|
3591
|
+
/**
|
|
3592
|
+
* @param {number} value
|
|
3593
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3594
|
+
*/
|
|
3595
|
+
proto.loyalty.LevelRewardItem.prototype.setPosition = function(value) {
|
|
3596
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* optional string target_reference = 4;
|
|
3602
|
+
* @return {string}
|
|
3603
|
+
*/
|
|
3604
|
+
proto.loyalty.LevelRewardItem.prototype.getTargetReference = function() {
|
|
3605
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* @param {string} value
|
|
3611
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3612
|
+
*/
|
|
3613
|
+
proto.loyalty.LevelRewardItem.prototype.setTargetReference = function(value) {
|
|
3614
|
+
return jspb.Message.setField(this, 4, value);
|
|
3615
|
+
};
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
/**
|
|
3619
|
+
* Clears the field making it undefined.
|
|
3620
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3621
|
+
*/
|
|
3622
|
+
proto.loyalty.LevelRewardItem.prototype.clearTargetReference = function() {
|
|
3623
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* Returns whether this field is set.
|
|
3629
|
+
* @return {boolean}
|
|
3630
|
+
*/
|
|
3631
|
+
proto.loyalty.LevelRewardItem.prototype.hasTargetReference = function() {
|
|
3632
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3633
|
+
};
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* optional string config = 5;
|
|
3638
|
+
* @return {string}
|
|
3639
|
+
*/
|
|
3640
|
+
proto.loyalty.LevelRewardItem.prototype.getConfig = function() {
|
|
3641
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* @param {string} value
|
|
3647
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3648
|
+
*/
|
|
3649
|
+
proto.loyalty.LevelRewardItem.prototype.setConfig = function(value) {
|
|
3650
|
+
return jspb.Message.setField(this, 5, value);
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* Clears the field making it undefined.
|
|
3656
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3657
|
+
*/
|
|
3658
|
+
proto.loyalty.LevelRewardItem.prototype.clearConfig = function() {
|
|
3659
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
3660
|
+
};
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* Returns whether this field is set.
|
|
3665
|
+
* @return {boolean}
|
|
3666
|
+
*/
|
|
3667
|
+
proto.loyalty.LevelRewardItem.prototype.hasConfig = function() {
|
|
3668
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3669
|
+
};
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
/**
|
|
3673
|
+
* repeated LevelRewardTranslationItem translations = 6;
|
|
3674
|
+
* @return {!Array<!proto.loyalty.LevelRewardTranslationItem>}
|
|
3675
|
+
*/
|
|
3676
|
+
proto.loyalty.LevelRewardItem.prototype.getTranslationsList = function() {
|
|
3677
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardTranslationItem>} */ (
|
|
3678
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardTranslationItem, 6));
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* @param {!Array<!proto.loyalty.LevelRewardTranslationItem>} value
|
|
3684
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3685
|
+
*/
|
|
3686
|
+
proto.loyalty.LevelRewardItem.prototype.setTranslationsList = function(value) {
|
|
3687
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
3688
|
+
};
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem=} opt_value
|
|
3693
|
+
* @param {number=} opt_index
|
|
3694
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem}
|
|
3695
|
+
*/
|
|
3696
|
+
proto.loyalty.LevelRewardItem.prototype.addTranslations = function(opt_value, opt_index) {
|
|
3697
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.loyalty.LevelRewardTranslationItem, opt_index);
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Clears the list making it empty but non-null.
|
|
3703
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
3704
|
+
*/
|
|
3705
|
+
proto.loyalty.LevelRewardItem.prototype.clearTranslationsList = function() {
|
|
3706
|
+
return this.setTranslationsList([]);
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* List of repeated fields within this message type.
|
|
3713
|
+
* @private {!Array<number>}
|
|
3714
|
+
* @const
|
|
3715
|
+
*/
|
|
3716
|
+
proto.loyalty.LevelRewardRequest.repeatedFields_ = [5];
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
|
|
3720
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3721
|
+
/**
|
|
3722
|
+
* Creates an object representation of this proto.
|
|
3723
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3724
|
+
* Optional fields that are not set will be set to undefined.
|
|
3725
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3726
|
+
* For the list of reserved names please see:
|
|
3727
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3728
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3729
|
+
* JSPB instance for transitional soy proto support:
|
|
3730
|
+
* http://goto/soy-param-migration
|
|
3731
|
+
* @return {!Object}
|
|
3732
|
+
*/
|
|
3733
|
+
proto.loyalty.LevelRewardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3734
|
+
return proto.loyalty.LevelRewardRequest.toObject(opt_includeInstance, this);
|
|
3735
|
+
};
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* Static version of the {@see toObject} method.
|
|
3740
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3741
|
+
* the JSPB instance for transitional soy proto support:
|
|
3742
|
+
* http://goto/soy-param-migration
|
|
3743
|
+
* @param {!proto.loyalty.LevelRewardRequest} msg The msg instance to transform.
|
|
3744
|
+
* @return {!Object}
|
|
3745
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3746
|
+
*/
|
|
3747
|
+
proto.loyalty.LevelRewardRequest.toObject = function(includeInstance, msg) {
|
|
3748
|
+
var f, obj = {
|
|
3749
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3750
|
+
position: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3751
|
+
targetReference: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3752
|
+
config: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3753
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
3754
|
+
proto.loyalty.LevelRewardTranslationItem.toObject, includeInstance)
|
|
3755
|
+
};
|
|
3756
|
+
|
|
3757
|
+
if (includeInstance) {
|
|
3758
|
+
obj.$jspbMessageInstance = msg;
|
|
3759
|
+
}
|
|
3760
|
+
return obj;
|
|
3761
|
+
};
|
|
3762
|
+
}
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
/**
|
|
3766
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3767
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3768
|
+
* @return {!proto.loyalty.LevelRewardRequest}
|
|
3769
|
+
*/
|
|
3770
|
+
proto.loyalty.LevelRewardRequest.deserializeBinary = function(bytes) {
|
|
3771
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3772
|
+
var msg = new proto.loyalty.LevelRewardRequest;
|
|
3773
|
+
return proto.loyalty.LevelRewardRequest.deserializeBinaryFromReader(msg, reader);
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
/**
|
|
3778
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3779
|
+
* given reader into the given message object.
|
|
3780
|
+
* @param {!proto.loyalty.LevelRewardRequest} msg The message object to deserialize into.
|
|
3781
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3782
|
+
* @return {!proto.loyalty.LevelRewardRequest}
|
|
3783
|
+
*/
|
|
3784
|
+
proto.loyalty.LevelRewardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3785
|
+
while (reader.nextField()) {
|
|
3786
|
+
if (reader.isEndGroup()) {
|
|
3787
|
+
break;
|
|
3788
|
+
}
|
|
3789
|
+
var field = reader.getFieldNumber();
|
|
3790
|
+
switch (field) {
|
|
3791
|
+
case 1:
|
|
3792
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3793
|
+
msg.setType(value);
|
|
3794
|
+
break;
|
|
3795
|
+
case 2:
|
|
3796
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3797
|
+
msg.setPosition(value);
|
|
3798
|
+
break;
|
|
3799
|
+
case 3:
|
|
3800
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3801
|
+
msg.setTargetReference(value);
|
|
3802
|
+
break;
|
|
3803
|
+
case 4:
|
|
3804
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3805
|
+
msg.setConfig(value);
|
|
3806
|
+
break;
|
|
3807
|
+
case 5:
|
|
3808
|
+
var value = new proto.loyalty.LevelRewardTranslationItem;
|
|
3809
|
+
reader.readMessage(value,proto.loyalty.LevelRewardTranslationItem.deserializeBinaryFromReader);
|
|
3810
|
+
msg.addTranslations(value);
|
|
3811
|
+
break;
|
|
3812
|
+
default:
|
|
3813
|
+
reader.skipField();
|
|
3814
|
+
break;
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
return msg;
|
|
3818
|
+
};
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3823
|
+
* @return {!Uint8Array}
|
|
3824
|
+
*/
|
|
3825
|
+
proto.loyalty.LevelRewardRequest.prototype.serializeBinary = function() {
|
|
3826
|
+
var writer = new jspb.BinaryWriter();
|
|
3827
|
+
proto.loyalty.LevelRewardRequest.serializeBinaryToWriter(this, writer);
|
|
3828
|
+
return writer.getResultBuffer();
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
/**
|
|
3833
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3834
|
+
* format), writing to the given BinaryWriter.
|
|
3835
|
+
* @param {!proto.loyalty.LevelRewardRequest} message
|
|
3836
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3838
|
+
*/
|
|
3839
|
+
proto.loyalty.LevelRewardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3840
|
+
var f = undefined;
|
|
3841
|
+
f = message.getType();
|
|
3842
|
+
if (f.length > 0) {
|
|
3843
|
+
writer.writeString(
|
|
3844
|
+
1,
|
|
3845
|
+
f
|
|
3846
|
+
);
|
|
3847
|
+
}
|
|
3848
|
+
f = message.getPosition();
|
|
3849
|
+
if (f !== 0) {
|
|
3850
|
+
writer.writeInt32(
|
|
3851
|
+
2,
|
|
3852
|
+
f
|
|
3853
|
+
);
|
|
3854
|
+
}
|
|
3855
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3856
|
+
if (f != null) {
|
|
3857
|
+
writer.writeString(
|
|
3858
|
+
3,
|
|
3859
|
+
f
|
|
3860
|
+
);
|
|
3861
|
+
}
|
|
3862
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
3863
|
+
if (f != null) {
|
|
3864
|
+
writer.writeString(
|
|
3865
|
+
4,
|
|
3866
|
+
f
|
|
3867
|
+
);
|
|
3868
|
+
}
|
|
3869
|
+
f = message.getTranslationsList();
|
|
3870
|
+
if (f.length > 0) {
|
|
3871
|
+
writer.writeRepeatedMessage(
|
|
3872
|
+
5,
|
|
3873
|
+
f,
|
|
3874
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter
|
|
3875
|
+
);
|
|
3876
|
+
}
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* optional string type = 1;
|
|
3882
|
+
* @return {string}
|
|
3883
|
+
*/
|
|
3884
|
+
proto.loyalty.LevelRewardRequest.prototype.getType = function() {
|
|
3885
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* @param {string} value
|
|
3891
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3892
|
+
*/
|
|
3893
|
+
proto.loyalty.LevelRewardRequest.prototype.setType = function(value) {
|
|
3894
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3895
|
+
};
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
/**
|
|
3899
|
+
* optional int32 position = 2;
|
|
3900
|
+
* @return {number}
|
|
3901
|
+
*/
|
|
3902
|
+
proto.loyalty.LevelRewardRequest.prototype.getPosition = function() {
|
|
3903
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3904
|
+
};
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* @param {number} value
|
|
3909
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3910
|
+
*/
|
|
3911
|
+
proto.loyalty.LevelRewardRequest.prototype.setPosition = function(value) {
|
|
3912
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3913
|
+
};
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* optional string target_reference = 3;
|
|
3918
|
+
* @return {string}
|
|
3919
|
+
*/
|
|
3920
|
+
proto.loyalty.LevelRewardRequest.prototype.getTargetReference = function() {
|
|
3921
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* @param {string} value
|
|
3927
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3928
|
+
*/
|
|
3929
|
+
proto.loyalty.LevelRewardRequest.prototype.setTargetReference = function(value) {
|
|
3930
|
+
return jspb.Message.setField(this, 3, value);
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* Clears the field making it undefined.
|
|
3936
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3937
|
+
*/
|
|
3938
|
+
proto.loyalty.LevelRewardRequest.prototype.clearTargetReference = function() {
|
|
3939
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* Returns whether this field is set.
|
|
3945
|
+
* @return {boolean}
|
|
3946
|
+
*/
|
|
3947
|
+
proto.loyalty.LevelRewardRequest.prototype.hasTargetReference = function() {
|
|
3948
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* optional string config = 4;
|
|
3954
|
+
* @return {string}
|
|
3955
|
+
*/
|
|
3956
|
+
proto.loyalty.LevelRewardRequest.prototype.getConfig = function() {
|
|
3957
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* @param {string} value
|
|
3963
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3964
|
+
*/
|
|
3965
|
+
proto.loyalty.LevelRewardRequest.prototype.setConfig = function(value) {
|
|
3966
|
+
return jspb.Message.setField(this, 4, value);
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* Clears the field making it undefined.
|
|
3972
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
3973
|
+
*/
|
|
3974
|
+
proto.loyalty.LevelRewardRequest.prototype.clearConfig = function() {
|
|
3975
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* Returns whether this field is set.
|
|
3981
|
+
* @return {boolean}
|
|
3982
|
+
*/
|
|
3983
|
+
proto.loyalty.LevelRewardRequest.prototype.hasConfig = function() {
|
|
3984
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3985
|
+
};
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
/**
|
|
3989
|
+
* repeated LevelRewardTranslationItem translations = 5;
|
|
3990
|
+
* @return {!Array<!proto.loyalty.LevelRewardTranslationItem>}
|
|
3991
|
+
*/
|
|
3992
|
+
proto.loyalty.LevelRewardRequest.prototype.getTranslationsList = function() {
|
|
3993
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardTranslationItem>} */ (
|
|
3994
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardTranslationItem, 5));
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* @param {!Array<!proto.loyalty.LevelRewardTranslationItem>} value
|
|
4000
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
4001
|
+
*/
|
|
4002
|
+
proto.loyalty.LevelRewardRequest.prototype.setTranslationsList = function(value) {
|
|
4003
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem=} opt_value
|
|
4009
|
+
* @param {number=} opt_index
|
|
4010
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem}
|
|
4011
|
+
*/
|
|
4012
|
+
proto.loyalty.LevelRewardRequest.prototype.addTranslations = function(opt_value, opt_index) {
|
|
4013
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.loyalty.LevelRewardTranslationItem, opt_index);
|
|
4014
|
+
};
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* Clears the list making it empty but non-null.
|
|
4019
|
+
* @return {!proto.loyalty.LevelRewardRequest} returns this
|
|
4020
|
+
*/
|
|
4021
|
+
proto.loyalty.LevelRewardRequest.prototype.clearTranslationsList = function() {
|
|
4022
|
+
return this.setTranslationsList([]);
|
|
4023
|
+
};
|
|
4024
|
+
|
|
4025
|
+
|
|
4026
|
+
|
|
4027
|
+
/**
|
|
4028
|
+
* List of repeated fields within this message type.
|
|
4029
|
+
* @private {!Array<number>}
|
|
4030
|
+
* @const
|
|
4031
|
+
*/
|
|
4032
|
+
proto.loyalty.ReplaceLevelRewardsRequest.repeatedFields_ = [2];
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4037
|
+
/**
|
|
4038
|
+
* Creates an object representation of this proto.
|
|
4039
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4040
|
+
* Optional fields that are not set will be set to undefined.
|
|
4041
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4042
|
+
* For the list of reserved names please see:
|
|
4043
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4044
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4045
|
+
* JSPB instance for transitional soy proto support:
|
|
4046
|
+
* http://goto/soy-param-migration
|
|
4047
|
+
* @return {!Object}
|
|
4048
|
+
*/
|
|
4049
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4050
|
+
return proto.loyalty.ReplaceLevelRewardsRequest.toObject(opt_includeInstance, this);
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
|
|
4054
|
+
/**
|
|
4055
|
+
* Static version of the {@see toObject} method.
|
|
4056
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4057
|
+
* the JSPB instance for transitional soy proto support:
|
|
4058
|
+
* http://goto/soy-param-migration
|
|
4059
|
+
* @param {!proto.loyalty.ReplaceLevelRewardsRequest} msg The msg instance to transform.
|
|
4060
|
+
* @return {!Object}
|
|
4061
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4062
|
+
*/
|
|
4063
|
+
proto.loyalty.ReplaceLevelRewardsRequest.toObject = function(includeInstance, msg) {
|
|
4064
|
+
var f, obj = {
|
|
4065
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4066
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
4067
|
+
proto.loyalty.LevelRewardRequest.toObject, includeInstance)
|
|
4068
|
+
};
|
|
4069
|
+
|
|
4070
|
+
if (includeInstance) {
|
|
4071
|
+
obj.$jspbMessageInstance = msg;
|
|
4072
|
+
}
|
|
4073
|
+
return obj;
|
|
4074
|
+
};
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
/**
|
|
4079
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4080
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4081
|
+
* @return {!proto.loyalty.ReplaceLevelRewardsRequest}
|
|
4082
|
+
*/
|
|
4083
|
+
proto.loyalty.ReplaceLevelRewardsRequest.deserializeBinary = function(bytes) {
|
|
4084
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4085
|
+
var msg = new proto.loyalty.ReplaceLevelRewardsRequest;
|
|
4086
|
+
return proto.loyalty.ReplaceLevelRewardsRequest.deserializeBinaryFromReader(msg, reader);
|
|
4087
|
+
};
|
|
4088
|
+
|
|
4089
|
+
|
|
4090
|
+
/**
|
|
4091
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4092
|
+
* given reader into the given message object.
|
|
4093
|
+
* @param {!proto.loyalty.ReplaceLevelRewardsRequest} msg The message object to deserialize into.
|
|
4094
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4095
|
+
* @return {!proto.loyalty.ReplaceLevelRewardsRequest}
|
|
4096
|
+
*/
|
|
4097
|
+
proto.loyalty.ReplaceLevelRewardsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4098
|
+
while (reader.nextField()) {
|
|
4099
|
+
if (reader.isEndGroup()) {
|
|
4100
|
+
break;
|
|
4101
|
+
}
|
|
4102
|
+
var field = reader.getFieldNumber();
|
|
4103
|
+
switch (field) {
|
|
4104
|
+
case 1:
|
|
4105
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4106
|
+
msg.setLoyaltyLevelId(value);
|
|
4107
|
+
break;
|
|
4108
|
+
case 2:
|
|
4109
|
+
var value = new proto.loyalty.LevelRewardRequest;
|
|
4110
|
+
reader.readMessage(value,proto.loyalty.LevelRewardRequest.deserializeBinaryFromReader);
|
|
4111
|
+
msg.addRewards(value);
|
|
4112
|
+
break;
|
|
4113
|
+
default:
|
|
4114
|
+
reader.skipField();
|
|
4115
|
+
break;
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
return msg;
|
|
4119
|
+
};
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
/**
|
|
4123
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4124
|
+
* @return {!Uint8Array}
|
|
4125
|
+
*/
|
|
4126
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.serializeBinary = function() {
|
|
4127
|
+
var writer = new jspb.BinaryWriter();
|
|
4128
|
+
proto.loyalty.ReplaceLevelRewardsRequest.serializeBinaryToWriter(this, writer);
|
|
4129
|
+
return writer.getResultBuffer();
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
/**
|
|
4134
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4135
|
+
* format), writing to the given BinaryWriter.
|
|
4136
|
+
* @param {!proto.loyalty.ReplaceLevelRewardsRequest} message
|
|
4137
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4138
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4139
|
+
*/
|
|
4140
|
+
proto.loyalty.ReplaceLevelRewardsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4141
|
+
var f = undefined;
|
|
4142
|
+
f = message.getLoyaltyLevelId();
|
|
4143
|
+
if (f !== 0) {
|
|
4144
|
+
writer.writeInt32(
|
|
4145
|
+
1,
|
|
4146
|
+
f
|
|
4147
|
+
);
|
|
4148
|
+
}
|
|
4149
|
+
f = message.getRewardsList();
|
|
4150
|
+
if (f.length > 0) {
|
|
4151
|
+
writer.writeRepeatedMessage(
|
|
4152
|
+
2,
|
|
4153
|
+
f,
|
|
4154
|
+
proto.loyalty.LevelRewardRequest.serializeBinaryToWriter
|
|
4155
|
+
);
|
|
4156
|
+
}
|
|
4157
|
+
};
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* optional int32 loyalty_level_id = 1;
|
|
4162
|
+
* @return {number}
|
|
4163
|
+
*/
|
|
4164
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.getLoyaltyLevelId = function() {
|
|
4165
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4166
|
+
};
|
|
4167
|
+
|
|
4168
|
+
|
|
4169
|
+
/**
|
|
4170
|
+
* @param {number} value
|
|
4171
|
+
* @return {!proto.loyalty.ReplaceLevelRewardsRequest} returns this
|
|
4172
|
+
*/
|
|
4173
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.setLoyaltyLevelId = function(value) {
|
|
4174
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4175
|
+
};
|
|
4176
|
+
|
|
4177
|
+
|
|
4178
|
+
/**
|
|
4179
|
+
* repeated LevelRewardRequest rewards = 2;
|
|
4180
|
+
* @return {!Array<!proto.loyalty.LevelRewardRequest>}
|
|
4181
|
+
*/
|
|
4182
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.getRewardsList = function() {
|
|
4183
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardRequest>} */ (
|
|
4184
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardRequest, 2));
|
|
4185
|
+
};
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* @param {!Array<!proto.loyalty.LevelRewardRequest>} value
|
|
4190
|
+
* @return {!proto.loyalty.ReplaceLevelRewardsRequest} returns this
|
|
4191
|
+
*/
|
|
4192
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.setRewardsList = function(value) {
|
|
4193
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
4194
|
+
};
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* @param {!proto.loyalty.LevelRewardRequest=} opt_value
|
|
4199
|
+
* @param {number=} opt_index
|
|
4200
|
+
* @return {!proto.loyalty.LevelRewardRequest}
|
|
4201
|
+
*/
|
|
4202
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.addRewards = function(opt_value, opt_index) {
|
|
4203
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.loyalty.LevelRewardRequest, opt_index);
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* Clears the list making it empty but non-null.
|
|
4209
|
+
* @return {!proto.loyalty.ReplaceLevelRewardsRequest} returns this
|
|
4210
|
+
*/
|
|
4211
|
+
proto.loyalty.ReplaceLevelRewardsRequest.prototype.clearRewardsList = function() {
|
|
4212
|
+
return this.setRewardsList([]);
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
|
|
3045
4216
|
|
|
3046
4217
|
/**
|
|
3047
4218
|
* Oneof group definitions for this message. Each group defines the field
|