protobuf-platform 1.2.48 → 1.2.50
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 +14 -1
- package/loyalty/loyalty_grpc_pb.js +33 -0
- package/loyalty/loyalty_pb.js +718 -126
- package/package.json +1 -1
package/loyalty/loyalty.proto
CHANGED
|
@@ -12,6 +12,7 @@ service Loyalty {
|
|
|
12
12
|
rpc deleteSingleLevel(GetLevelRequest) returns (LevelStatusResponse);
|
|
13
13
|
rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
|
|
14
14
|
rpc setLoyaltyLevelTranslation(LevelTranslationRequest) returns (LevelStatusResponse);
|
|
15
|
+
rpc getLoyaltyLevelTranslation(GetLevelTranslationRequest) returns (LevelTranslationResponse);
|
|
15
16
|
//Loyalty Points
|
|
16
17
|
rpc createSinglePoint(PointRequest) returns (PointResponse);
|
|
17
18
|
rpc readSinglePoint(GetPointRequest) returns (PointResponse);
|
|
@@ -55,6 +56,7 @@ message LevelItem {
|
|
|
55
56
|
optional int32 is_active = 5;
|
|
56
57
|
optional string image = 6;
|
|
57
58
|
optional int32 value_to_complete = 7;
|
|
59
|
+
repeated LevelTranslationItem translations = 8;
|
|
58
60
|
}
|
|
59
61
|
//Level CRUD | Requests
|
|
60
62
|
message LevelRequest {
|
|
@@ -72,7 +74,6 @@ message LevelItemRequest {
|
|
|
72
74
|
optional int32 value_to_complete = 6;
|
|
73
75
|
optional string file_name = 7;
|
|
74
76
|
optional string file_type = 8;
|
|
75
|
-
repeated LevelTranslationItem translations = 9;
|
|
76
77
|
}
|
|
77
78
|
message GetLevelRequest {
|
|
78
79
|
int32 id = 1;
|
|
@@ -83,12 +84,24 @@ message LevelTranslationRequest {
|
|
|
83
84
|
optional string title = 3;
|
|
84
85
|
optional string description = 4;
|
|
85
86
|
optional string content = 5;
|
|
87
|
+
optional int32 is_active = 6;
|
|
88
|
+
}
|
|
89
|
+
message GetLevelTranslationRequest {
|
|
90
|
+
int32 loyalty_level_id = 1;
|
|
91
|
+
string locale = 2;
|
|
86
92
|
}
|
|
87
93
|
message LevelTranslationItem {
|
|
88
94
|
optional string title = 1;
|
|
89
95
|
optional string locale = 2;
|
|
90
96
|
optional string description = 3;
|
|
91
97
|
optional string content = 4;
|
|
98
|
+
optional int32 is_active = 5;
|
|
99
|
+
}
|
|
100
|
+
message LevelTranslationResponse {
|
|
101
|
+
optional string title = 1;
|
|
102
|
+
optional string description = 2;
|
|
103
|
+
optional string content = 3;
|
|
104
|
+
optional int32 is_active = 4;
|
|
92
105
|
}
|
|
93
106
|
//Level CRUD | Responses
|
|
94
107
|
message LevelResponse {
|
|
@@ -37,6 +37,17 @@ function deserialize_loyalty_GetLevelRequest(buffer_arg) {
|
|
|
37
37
|
return loyalty_pb.GetLevelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function serialize_loyalty_GetLevelTranslationRequest(arg) {
|
|
41
|
+
if (!(arg instanceof loyalty_pb.GetLevelTranslationRequest)) {
|
|
42
|
+
throw new Error('Expected argument of type loyalty.GetLevelTranslationRequest');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_loyalty_GetLevelTranslationRequest(buffer_arg) {
|
|
48
|
+
return loyalty_pb.GetLevelTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
function serialize_loyalty_GetPointRequest(arg) {
|
|
41
52
|
if (!(arg instanceof loyalty_pb.GetPointRequest)) {
|
|
42
53
|
throw new Error('Expected argument of type loyalty.GetPointRequest');
|
|
@@ -114,6 +125,17 @@ function deserialize_loyalty_LevelTranslationRequest(buffer_arg) {
|
|
|
114
125
|
return loyalty_pb.LevelTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
126
|
}
|
|
116
127
|
|
|
128
|
+
function serialize_loyalty_LevelTranslationResponse(arg) {
|
|
129
|
+
if (!(arg instanceof loyalty_pb.LevelTranslationResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type loyalty.LevelTranslationResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_loyalty_LevelTranslationResponse(buffer_arg) {
|
|
136
|
+
return loyalty_pb.LevelTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
function serialize_loyalty_PaginationRequest(arg) {
|
|
118
140
|
if (!(arg instanceof loyalty_pb.PaginationRequest)) {
|
|
119
141
|
throw new Error('Expected argument of type loyalty.PaginationRequest');
|
|
@@ -304,6 +326,17 @@ createSingleLevel: {
|
|
|
304
326
|
responseSerialize: serialize_loyalty_LevelStatusResponse,
|
|
305
327
|
responseDeserialize: deserialize_loyalty_LevelStatusResponse,
|
|
306
328
|
},
|
|
329
|
+
getLoyaltyLevelTranslation: {
|
|
330
|
+
path: '/loyalty.Loyalty/getLoyaltyLevelTranslation',
|
|
331
|
+
requestStream: false,
|
|
332
|
+
responseStream: false,
|
|
333
|
+
requestType: loyalty_pb.GetLevelTranslationRequest,
|
|
334
|
+
responseType: loyalty_pb.LevelTranslationResponse,
|
|
335
|
+
requestSerialize: serialize_loyalty_GetLevelTranslationRequest,
|
|
336
|
+
requestDeserialize: deserialize_loyalty_GetLevelTranslationRequest,
|
|
337
|
+
responseSerialize: serialize_loyalty_LevelTranslationResponse,
|
|
338
|
+
responseDeserialize: deserialize_loyalty_LevelTranslationResponse,
|
|
339
|
+
},
|
|
307
340
|
// Loyalty Points
|
|
308
341
|
createSinglePoint: {
|
|
309
342
|
path: '/loyalty.Loyalty/createSinglePoint',
|
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);
|
|
@@ -37,6 +38,7 @@ goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
|
|
|
37
38
|
goog.exportSymbol('proto.loyalty.LevelStatusResponse', null, global);
|
|
38
39
|
goog.exportSymbol('proto.loyalty.LevelTranslationItem', null, global);
|
|
39
40
|
goog.exportSymbol('proto.loyalty.LevelTranslationRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.loyalty.LevelTranslationResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.loyalty.LoyaltySearchRequest', null, global);
|
|
41
43
|
goog.exportSymbol('proto.loyalty.PaginationRequest', null, global);
|
|
42
44
|
goog.exportSymbol('proto.loyalty.PingRequest', null, global);
|
|
@@ -187,7 +189,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
187
189
|
* @constructor
|
|
188
190
|
*/
|
|
189
191
|
proto.loyalty.LevelItem = function(opt_data) {
|
|
190
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
192
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelItem.repeatedFields_, null);
|
|
191
193
|
};
|
|
192
194
|
goog.inherits(proto.loyalty.LevelItem, jspb.Message);
|
|
193
195
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -229,7 +231,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
229
231
|
* @constructor
|
|
230
232
|
*/
|
|
231
233
|
proto.loyalty.LevelItemRequest = function(opt_data) {
|
|
232
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
234
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
233
235
|
};
|
|
234
236
|
goog.inherits(proto.loyalty.LevelItemRequest, jspb.Message);
|
|
235
237
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -281,6 +283,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
281
283
|
*/
|
|
282
284
|
proto.loyalty.LevelTranslationRequest.displayName = 'proto.loyalty.LevelTranslationRequest';
|
|
283
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
|
+
}
|
|
284
307
|
/**
|
|
285
308
|
* Generated by JsPbCodeGenerator.
|
|
286
309
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -302,6 +325,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
302
325
|
*/
|
|
303
326
|
proto.loyalty.LevelTranslationItem.displayName = 'proto.loyalty.LevelTranslationItem';
|
|
304
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
|
+
}
|
|
305
349
|
/**
|
|
306
350
|
* Generated by JsPbCodeGenerator.
|
|
307
351
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2061,6 +2105,13 @@ proto.loyalty.GetFileRequest.prototype.setInstanceType = function(value) {
|
|
|
2061
2105
|
|
|
2062
2106
|
|
|
2063
2107
|
|
|
2108
|
+
/**
|
|
2109
|
+
* List of repeated fields within this message type.
|
|
2110
|
+
* @private {!Array<number>}
|
|
2111
|
+
* @const
|
|
2112
|
+
*/
|
|
2113
|
+
proto.loyalty.LevelItem.repeatedFields_ = [8];
|
|
2114
|
+
|
|
2064
2115
|
|
|
2065
2116
|
|
|
2066
2117
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2098,7 +2149,9 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
2098
2149
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2099
2150
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2100
2151
|
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2101
|
-
valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
2152
|
+
valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2153
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2154
|
+
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2102
2155
|
};
|
|
2103
2156
|
|
|
2104
2157
|
if (includeInstance) {
|
|
@@ -2163,6 +2216,11 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2163
2216
|
var value = /** @type {number} */ (reader.readInt32());
|
|
2164
2217
|
msg.setValueToComplete(value);
|
|
2165
2218
|
break;
|
|
2219
|
+
case 8:
|
|
2220
|
+
var value = new proto.loyalty.LevelTranslationItem;
|
|
2221
|
+
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2222
|
+
msg.addTranslations(value);
|
|
2223
|
+
break;
|
|
2166
2224
|
default:
|
|
2167
2225
|
reader.skipField();
|
|
2168
2226
|
break;
|
|
@@ -2241,6 +2299,14 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
2241
2299
|
f
|
|
2242
2300
|
);
|
|
2243
2301
|
}
|
|
2302
|
+
f = message.getTranslationsList();
|
|
2303
|
+
if (f.length > 0) {
|
|
2304
|
+
writer.writeRepeatedMessage(
|
|
2305
|
+
8,
|
|
2306
|
+
f,
|
|
2307
|
+
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2308
|
+
);
|
|
2309
|
+
}
|
|
2244
2310
|
};
|
|
2245
2311
|
|
|
2246
2312
|
|
|
@@ -2496,6 +2562,44 @@ proto.loyalty.LevelItem.prototype.hasValueToComplete = function() {
|
|
|
2496
2562
|
};
|
|
2497
2563
|
|
|
2498
2564
|
|
|
2565
|
+
/**
|
|
2566
|
+
* repeated LevelTranslationItem translations = 8;
|
|
2567
|
+
* @return {!Array<!proto.loyalty.LevelTranslationItem>}
|
|
2568
|
+
*/
|
|
2569
|
+
proto.loyalty.LevelItem.prototype.getTranslationsList = function() {
|
|
2570
|
+
return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
|
|
2571
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 8));
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* @param {!Array<!proto.loyalty.LevelTranslationItem>} value
|
|
2577
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
2578
|
+
*/
|
|
2579
|
+
proto.loyalty.LevelItem.prototype.setTranslationsList = function(value) {
|
|
2580
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* @param {!proto.loyalty.LevelTranslationItem=} opt_value
|
|
2586
|
+
* @param {number=} opt_index
|
|
2587
|
+
* @return {!proto.loyalty.LevelTranslationItem}
|
|
2588
|
+
*/
|
|
2589
|
+
proto.loyalty.LevelItem.prototype.addTranslations = function(opt_value, opt_index) {
|
|
2590
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* Clears the list making it empty but non-null.
|
|
2596
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
2597
|
+
*/
|
|
2598
|
+
proto.loyalty.LevelItem.prototype.clearTranslationsList = function() {
|
|
2599
|
+
return this.setTranslationsList([]);
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
|
|
2499
2603
|
|
|
2500
2604
|
/**
|
|
2501
2605
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -2725,13 +2829,6 @@ proto.loyalty.LevelRequest.prototype.hasFile = function() {
|
|
|
2725
2829
|
|
|
2726
2830
|
|
|
2727
2831
|
|
|
2728
|
-
/**
|
|
2729
|
-
* List of repeated fields within this message type.
|
|
2730
|
-
* @private {!Array<number>}
|
|
2731
|
-
* @const
|
|
2732
|
-
*/
|
|
2733
|
-
proto.loyalty.LevelItemRequest.repeatedFields_ = [9];
|
|
2734
|
-
|
|
2735
2832
|
|
|
2736
2833
|
|
|
2737
2834
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2770,9 +2867,7 @@ proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
|
|
2770
2867
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2771
2868
|
valueToComplete: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2772
2869
|
fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2773
|
-
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2774
|
-
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2775
|
-
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2870
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2776
2871
|
};
|
|
2777
2872
|
|
|
2778
2873
|
if (includeInstance) {
|
|
@@ -2841,11 +2936,6 @@ proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
2841
2936
|
var value = /** @type {string} */ (reader.readString());
|
|
2842
2937
|
msg.setFileType(value);
|
|
2843
2938
|
break;
|
|
2844
|
-
case 9:
|
|
2845
|
-
var value = new proto.loyalty.LevelTranslationItem;
|
|
2846
|
-
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2847
|
-
msg.addTranslations(value);
|
|
2848
|
-
break;
|
|
2849
2939
|
default:
|
|
2850
2940
|
reader.skipField();
|
|
2851
2941
|
break;
|
|
@@ -2931,14 +3021,6 @@ proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, write
|
|
|
2931
3021
|
f
|
|
2932
3022
|
);
|
|
2933
3023
|
}
|
|
2934
|
-
f = message.getTranslationsList();
|
|
2935
|
-
if (f.length > 0) {
|
|
2936
|
-
writer.writeRepeatedMessage(
|
|
2937
|
-
9,
|
|
2938
|
-
f,
|
|
2939
|
-
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2940
|
-
);
|
|
2941
|
-
}
|
|
2942
3024
|
};
|
|
2943
3025
|
|
|
2944
3026
|
|
|
@@ -3230,44 +3312,6 @@ proto.loyalty.LevelItemRequest.prototype.hasFileType = function() {
|
|
|
3230
3312
|
};
|
|
3231
3313
|
|
|
3232
3314
|
|
|
3233
|
-
/**
|
|
3234
|
-
* repeated LevelTranslationItem translations = 9;
|
|
3235
|
-
* @return {!Array<!proto.loyalty.LevelTranslationItem>}
|
|
3236
|
-
*/
|
|
3237
|
-
proto.loyalty.LevelItemRequest.prototype.getTranslationsList = function() {
|
|
3238
|
-
return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
|
|
3239
|
-
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 9));
|
|
3240
|
-
};
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
/**
|
|
3244
|
-
* @param {!Array<!proto.loyalty.LevelTranslationItem>} value
|
|
3245
|
-
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3246
|
-
*/
|
|
3247
|
-
proto.loyalty.LevelItemRequest.prototype.setTranslationsList = function(value) {
|
|
3248
|
-
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
3249
|
-
};
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
/**
|
|
3253
|
-
* @param {!proto.loyalty.LevelTranslationItem=} opt_value
|
|
3254
|
-
* @param {number=} opt_index
|
|
3255
|
-
* @return {!proto.loyalty.LevelTranslationItem}
|
|
3256
|
-
*/
|
|
3257
|
-
proto.loyalty.LevelItemRequest.prototype.addTranslations = function(opt_value, opt_index) {
|
|
3258
|
-
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
|
|
3259
|
-
};
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
/**
|
|
3263
|
-
* Clears the list making it empty but non-null.
|
|
3264
|
-
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3265
|
-
*/
|
|
3266
|
-
proto.loyalty.LevelItemRequest.prototype.clearTranslationsList = function() {
|
|
3267
|
-
return this.setTranslationsList([]);
|
|
3268
|
-
};
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
3315
|
|
|
3272
3316
|
|
|
3273
3317
|
|
|
@@ -3434,7 +3478,8 @@ proto.loyalty.LevelTranslationRequest.toObject = function(includeInstance, msg)
|
|
|
3434
3478
|
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3435
3479
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3436
3480
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3437
|
-
content: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
3481
|
+
content: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3482
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
3438
3483
|
};
|
|
3439
3484
|
|
|
3440
3485
|
if (includeInstance) {
|
|
@@ -3491,6 +3536,10 @@ proto.loyalty.LevelTranslationRequest.deserializeBinaryFromReader = function(msg
|
|
|
3491
3536
|
var value = /** @type {string} */ (reader.readString());
|
|
3492
3537
|
msg.setContent(value);
|
|
3493
3538
|
break;
|
|
3539
|
+
case 6:
|
|
3540
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3541
|
+
msg.setIsActive(value);
|
|
3542
|
+
break;
|
|
3494
3543
|
default:
|
|
3495
3544
|
reader.skipField();
|
|
3496
3545
|
break;
|
|
@@ -3555,6 +3604,13 @@ proto.loyalty.LevelTranslationRequest.serializeBinaryToWriter = function(message
|
|
|
3555
3604
|
f
|
|
3556
3605
|
);
|
|
3557
3606
|
}
|
|
3607
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
3608
|
+
if (f != null) {
|
|
3609
|
+
writer.writeInt32(
|
|
3610
|
+
6,
|
|
3611
|
+
f
|
|
3612
|
+
);
|
|
3613
|
+
}
|
|
3558
3614
|
};
|
|
3559
3615
|
|
|
3560
3616
|
|
|
@@ -3738,6 +3794,42 @@ proto.loyalty.LevelTranslationRequest.prototype.hasContent = function() {
|
|
|
3738
3794
|
};
|
|
3739
3795
|
|
|
3740
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
|
+
|
|
3741
3833
|
|
|
3742
3834
|
|
|
3743
3835
|
|
|
@@ -3754,8 +3846,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3754
3846
|
* http://goto/soy-param-migration
|
|
3755
3847
|
* @return {!Object}
|
|
3756
3848
|
*/
|
|
3757
|
-
proto.loyalty.
|
|
3758
|
-
return proto.loyalty.
|
|
3849
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3850
|
+
return proto.loyalty.GetLevelTranslationRequest.toObject(opt_includeInstance, this);
|
|
3759
3851
|
};
|
|
3760
3852
|
|
|
3761
3853
|
|
|
@@ -3764,16 +3856,14 @@ proto.loyalty.LevelTranslationItem.prototype.toObject = function(opt_includeInst
|
|
|
3764
3856
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3765
3857
|
* the JSPB instance for transitional soy proto support:
|
|
3766
3858
|
* http://goto/soy-param-migration
|
|
3767
|
-
* @param {!proto.loyalty.
|
|
3859
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} msg The msg instance to transform.
|
|
3768
3860
|
* @return {!Object}
|
|
3769
3861
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3770
3862
|
*/
|
|
3771
|
-
proto.loyalty.
|
|
3863
|
+
proto.loyalty.GetLevelTranslationRequest.toObject = function(includeInstance, msg) {
|
|
3772
3864
|
var f, obj = {
|
|
3773
|
-
|
|
3774
|
-
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3775
|
-
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3776
|
-
content: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3865
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3866
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3777
3867
|
};
|
|
3778
3868
|
|
|
3779
3869
|
if (includeInstance) {
|
|
@@ -3787,23 +3877,23 @@ proto.loyalty.LevelTranslationItem.toObject = function(includeInstance, msg) {
|
|
|
3787
3877
|
/**
|
|
3788
3878
|
* Deserializes binary data (in protobuf wire format).
|
|
3789
3879
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3790
|
-
* @return {!proto.loyalty.
|
|
3880
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest}
|
|
3791
3881
|
*/
|
|
3792
|
-
proto.loyalty.
|
|
3882
|
+
proto.loyalty.GetLevelTranslationRequest.deserializeBinary = function(bytes) {
|
|
3793
3883
|
var reader = new jspb.BinaryReader(bytes);
|
|
3794
|
-
var msg = new proto.loyalty.
|
|
3795
|
-
return proto.loyalty.
|
|
3884
|
+
var msg = new proto.loyalty.GetLevelTranslationRequest;
|
|
3885
|
+
return proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
3796
3886
|
};
|
|
3797
3887
|
|
|
3798
3888
|
|
|
3799
3889
|
/**
|
|
3800
3890
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3801
3891
|
* given reader into the given message object.
|
|
3802
|
-
* @param {!proto.loyalty.
|
|
3892
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} msg The message object to deserialize into.
|
|
3803
3893
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3804
|
-
* @return {!proto.loyalty.
|
|
3894
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest}
|
|
3805
3895
|
*/
|
|
3806
|
-
proto.loyalty.
|
|
3896
|
+
proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3807
3897
|
while (reader.nextField()) {
|
|
3808
3898
|
if (reader.isEndGroup()) {
|
|
3809
3899
|
break;
|
|
@@ -3811,21 +3901,13 @@ proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader = function(msg, r
|
|
|
3811
3901
|
var field = reader.getFieldNumber();
|
|
3812
3902
|
switch (field) {
|
|
3813
3903
|
case 1:
|
|
3814
|
-
var value = /** @type {
|
|
3815
|
-
msg.
|
|
3904
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3905
|
+
msg.setLoyaltyLevelId(value);
|
|
3816
3906
|
break;
|
|
3817
3907
|
case 2:
|
|
3818
3908
|
var value = /** @type {string} */ (reader.readString());
|
|
3819
3909
|
msg.setLocale(value);
|
|
3820
3910
|
break;
|
|
3821
|
-
case 3:
|
|
3822
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3823
|
-
msg.setDescription(value);
|
|
3824
|
-
break;
|
|
3825
|
-
case 4:
|
|
3826
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3827
|
-
msg.setContent(value);
|
|
3828
|
-
break;
|
|
3829
3911
|
default:
|
|
3830
3912
|
reader.skipField();
|
|
3831
3913
|
break;
|
|
@@ -3839,9 +3921,9 @@ proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader = function(msg, r
|
|
|
3839
3921
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3840
3922
|
* @return {!Uint8Array}
|
|
3841
3923
|
*/
|
|
3842
|
-
proto.loyalty.
|
|
3924
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.serializeBinary = function() {
|
|
3843
3925
|
var writer = new jspb.BinaryWriter();
|
|
3844
|
-
proto.loyalty.
|
|
3926
|
+
proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
3845
3927
|
return writer.getResultBuffer();
|
|
3846
3928
|
};
|
|
3847
3929
|
|
|
@@ -3849,72 +3931,254 @@ proto.loyalty.LevelTranslationItem.prototype.serializeBinary = function() {
|
|
|
3849
3931
|
/**
|
|
3850
3932
|
* Serializes the given message to binary data (in protobuf wire
|
|
3851
3933
|
* format), writing to the given BinaryWriter.
|
|
3852
|
-
* @param {!proto.loyalty.
|
|
3934
|
+
* @param {!proto.loyalty.GetLevelTranslationRequest} message
|
|
3853
3935
|
* @param {!jspb.BinaryWriter} writer
|
|
3854
3936
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3855
3937
|
*/
|
|
3856
|
-
proto.loyalty.
|
|
3938
|
+
proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3857
3939
|
var f = undefined;
|
|
3858
|
-
f =
|
|
3859
|
-
if (f
|
|
3860
|
-
writer.
|
|
3940
|
+
f = message.getLoyaltyLevelId();
|
|
3941
|
+
if (f !== 0) {
|
|
3942
|
+
writer.writeInt32(
|
|
3861
3943
|
1,
|
|
3862
3944
|
f
|
|
3863
3945
|
);
|
|
3864
3946
|
}
|
|
3865
|
-
f =
|
|
3866
|
-
if (f
|
|
3947
|
+
f = message.getLocale();
|
|
3948
|
+
if (f.length > 0) {
|
|
3867
3949
|
writer.writeString(
|
|
3868
3950
|
2,
|
|
3869
3951
|
f
|
|
3870
3952
|
);
|
|
3871
3953
|
}
|
|
3872
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3873
|
-
if (f != null) {
|
|
3874
|
-
writer.writeString(
|
|
3875
|
-
3,
|
|
3876
|
-
f
|
|
3877
|
-
);
|
|
3878
|
-
}
|
|
3879
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
3880
|
-
if (f != null) {
|
|
3881
|
-
writer.writeString(
|
|
3882
|
-
4,
|
|
3883
|
-
f
|
|
3884
|
-
);
|
|
3885
|
-
}
|
|
3886
3954
|
};
|
|
3887
3955
|
|
|
3888
3956
|
|
|
3889
3957
|
/**
|
|
3890
|
-
* optional
|
|
3891
|
-
* @return {
|
|
3958
|
+
* optional int32 loyalty_level_id = 1;
|
|
3959
|
+
* @return {number}
|
|
3892
3960
|
*/
|
|
3893
|
-
proto.loyalty.
|
|
3894
|
-
return /** @type {
|
|
3961
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.getLoyaltyLevelId = function() {
|
|
3962
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3895
3963
|
};
|
|
3896
3964
|
|
|
3897
3965
|
|
|
3898
3966
|
/**
|
|
3899
|
-
* @param {
|
|
3900
|
-
* @return {!proto.loyalty.
|
|
3967
|
+
* @param {number} value
|
|
3968
|
+
* @return {!proto.loyalty.GetLevelTranslationRequest} returns this
|
|
3901
3969
|
*/
|
|
3902
|
-
proto.loyalty.
|
|
3903
|
-
return jspb.Message.
|
|
3970
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.setLoyaltyLevelId = function(value) {
|
|
3971
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3904
3972
|
};
|
|
3905
3973
|
|
|
3906
3974
|
|
|
3907
3975
|
/**
|
|
3908
|
-
*
|
|
3909
|
-
* @return {
|
|
3976
|
+
* optional string locale = 2;
|
|
3977
|
+
* @return {string}
|
|
3910
3978
|
*/
|
|
3911
|
-
proto.loyalty.
|
|
3912
|
-
return jspb.Message.
|
|
3979
|
+
proto.loyalty.GetLevelTranslationRequest.prototype.getLocale = function() {
|
|
3980
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3913
3981
|
};
|
|
3914
3982
|
|
|
3915
3983
|
|
|
3916
3984
|
/**
|
|
3917
|
-
*
|
|
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.
|
|
3918
4182
|
* @return {boolean}
|
|
3919
4183
|
*/
|
|
3920
4184
|
proto.loyalty.LevelTranslationItem.prototype.hasTitle = function() {
|
|
@@ -4030,6 +4294,334 @@ proto.loyalty.LevelTranslationItem.prototype.hasContent = function() {
|
|
|
4030
4294
|
};
|
|
4031
4295
|
|
|
4032
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
|
+
|
|
4033
4625
|
|
|
4034
4626
|
|
|
4035
4627
|
|