protobuf-platform 1.2.169 → 1.2.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bonus/bonus.proto +2 -8
- package/bonus/bonus_grpc_pb.js +13 -13
- package/bonus/bonus_pb.js +49 -363
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -17,7 +17,7 @@ service Bonus {
|
|
|
17
17
|
rpc setBonusRewards(BonusRewardsRequest) returns (BonusStatusResponse);
|
|
18
18
|
rpc setBonusBetRanges(BonusBetRangesRequest) returns (BonusStatusResponse);
|
|
19
19
|
rpc setBonusTranslation(BonusTranslationRequest) returns (BonusStatusResponse);
|
|
20
|
-
rpc getBonusTranslation(GetBonusTranslationRequest) returns (
|
|
20
|
+
rpc getBonusTranslation(GetBonusTranslationRequest) returns (BonusTranslationItem);
|
|
21
21
|
rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
|
|
22
22
|
//Users
|
|
23
23
|
rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
@@ -135,6 +135,7 @@ message GetBonusRequest {
|
|
|
135
135
|
}
|
|
136
136
|
message GetBonusBySlugRequest {
|
|
137
137
|
string slug = 1;
|
|
138
|
+
optional string locale = 2;
|
|
138
139
|
}
|
|
139
140
|
message BonusResponse {
|
|
140
141
|
BonusItem data = 1;
|
|
@@ -188,13 +189,6 @@ message GetBonusTranslationRequest {
|
|
|
188
189
|
int32 bonus_id = 1;
|
|
189
190
|
string locale = 2;
|
|
190
191
|
}
|
|
191
|
-
message BonusTranslationResponse {
|
|
192
|
-
optional string title = 1;
|
|
193
|
-
optional string description = 2;
|
|
194
|
-
optional string content = 3;
|
|
195
|
-
optional int32 is_active = 4;
|
|
196
|
-
optional string locale = 5;
|
|
197
|
-
}
|
|
198
192
|
message BonusTranslationItem {
|
|
199
193
|
optional string title = 1;
|
|
200
194
|
optional string locale = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -92,26 +92,26 @@ function deserialize_bonus_BonusStatusesResponse(buffer_arg) {
|
|
|
92
92
|
return bonus_pb.BonusStatusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function
|
|
96
|
-
if (!(arg instanceof bonus_pb.
|
|
97
|
-
throw new Error('Expected argument of type bonus.
|
|
95
|
+
function serialize_bonus_BonusTranslationItem(arg) {
|
|
96
|
+
if (!(arg instanceof bonus_pb.BonusTranslationItem)) {
|
|
97
|
+
throw new Error('Expected argument of type bonus.BonusTranslationItem');
|
|
98
98
|
}
|
|
99
99
|
return Buffer.from(arg.serializeBinary());
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
function
|
|
103
|
-
return bonus_pb.
|
|
102
|
+
function deserialize_bonus_BonusTranslationItem(buffer_arg) {
|
|
103
|
+
return bonus_pb.BonusTranslationItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function
|
|
107
|
-
if (!(arg instanceof bonus_pb.
|
|
108
|
-
throw new Error('Expected argument of type bonus.
|
|
106
|
+
function serialize_bonus_BonusTranslationRequest(arg) {
|
|
107
|
+
if (!(arg instanceof bonus_pb.BonusTranslationRequest)) {
|
|
108
|
+
throw new Error('Expected argument of type bonus.BonusTranslationRequest');
|
|
109
109
|
}
|
|
110
110
|
return Buffer.from(arg.serializeBinary());
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
function
|
|
114
|
-
return bonus_pb.
|
|
113
|
+
function deserialize_bonus_BonusTranslationRequest(buffer_arg) {
|
|
114
|
+
return bonus_pb.BonusTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
function serialize_bonus_BonusTypesResponse(arg) {
|
|
@@ -430,11 +430,11 @@ createSingleBonus: {
|
|
|
430
430
|
requestStream: false,
|
|
431
431
|
responseStream: false,
|
|
432
432
|
requestType: bonus_pb.GetBonusTranslationRequest,
|
|
433
|
-
responseType: bonus_pb.
|
|
433
|
+
responseType: bonus_pb.BonusTranslationItem,
|
|
434
434
|
requestSerialize: serialize_bonus_GetBonusTranslationRequest,
|
|
435
435
|
requestDeserialize: deserialize_bonus_GetBonusTranslationRequest,
|
|
436
|
-
responseSerialize:
|
|
437
|
-
responseDeserialize:
|
|
436
|
+
responseSerialize: serialize_bonus_BonusTranslationItem,
|
|
437
|
+
responseDeserialize: deserialize_bonus_BonusTranslationItem,
|
|
438
438
|
},
|
|
439
439
|
updateBonusesInBunch: {
|
|
440
440
|
path: '/bonus.Bonus/updateBonusesInBunch',
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -38,7 +38,6 @@ goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
|
|
|
38
38
|
goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
|
|
39
39
|
goog.exportSymbol('proto.bonus.BonusTranslationItem', null, global);
|
|
40
40
|
goog.exportSymbol('proto.bonus.BonusTranslationRequest', null, global);
|
|
41
|
-
goog.exportSymbol('proto.bonus.BonusTranslationResponse', null, global);
|
|
42
41
|
goog.exportSymbol('proto.bonus.BonusType', null, global);
|
|
43
42
|
goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
|
|
44
43
|
goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
|
|
@@ -541,27 +540,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
541
540
|
*/
|
|
542
541
|
proto.bonus.GetBonusTranslationRequest.displayName = 'proto.bonus.GetBonusTranslationRequest';
|
|
543
542
|
}
|
|
544
|
-
/**
|
|
545
|
-
* Generated by JsPbCodeGenerator.
|
|
546
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
547
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
548
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
549
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
550
|
-
* valid.
|
|
551
|
-
* @extends {jspb.Message}
|
|
552
|
-
* @constructor
|
|
553
|
-
*/
|
|
554
|
-
proto.bonus.BonusTranslationResponse = function(opt_data) {
|
|
555
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
556
|
-
};
|
|
557
|
-
goog.inherits(proto.bonus.BonusTranslationResponse, jspb.Message);
|
|
558
|
-
if (goog.DEBUG && !COMPILED) {
|
|
559
|
-
/**
|
|
560
|
-
* @public
|
|
561
|
-
* @override
|
|
562
|
-
*/
|
|
563
|
-
proto.bonus.BonusTranslationResponse.displayName = 'proto.bonus.BonusTranslationResponse';
|
|
564
|
-
}
|
|
565
543
|
/**
|
|
566
544
|
* Generated by JsPbCodeGenerator.
|
|
567
545
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5566,7 +5544,8 @@ proto.bonus.GetBonusBySlugRequest.prototype.toObject = function(opt_includeInsta
|
|
|
5566
5544
|
*/
|
|
5567
5545
|
proto.bonus.GetBonusBySlugRequest.toObject = function(includeInstance, msg) {
|
|
5568
5546
|
var f, obj = {
|
|
5569
|
-
slug: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5547
|
+
slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5548
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5570
5549
|
};
|
|
5571
5550
|
|
|
5572
5551
|
if (includeInstance) {
|
|
@@ -5607,6 +5586,10 @@ proto.bonus.GetBonusBySlugRequest.deserializeBinaryFromReader = function(msg, re
|
|
|
5607
5586
|
var value = /** @type {string} */ (reader.readString());
|
|
5608
5587
|
msg.setSlug(value);
|
|
5609
5588
|
break;
|
|
5589
|
+
case 2:
|
|
5590
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5591
|
+
msg.setLocale(value);
|
|
5592
|
+
break;
|
|
5610
5593
|
default:
|
|
5611
5594
|
reader.skipField();
|
|
5612
5595
|
break;
|
|
@@ -5643,6 +5626,13 @@ proto.bonus.GetBonusBySlugRequest.serializeBinaryToWriter = function(message, wr
|
|
|
5643
5626
|
f
|
|
5644
5627
|
);
|
|
5645
5628
|
}
|
|
5629
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
5630
|
+
if (f != null) {
|
|
5631
|
+
writer.writeString(
|
|
5632
|
+
2,
|
|
5633
|
+
f
|
|
5634
|
+
);
|
|
5635
|
+
}
|
|
5646
5636
|
};
|
|
5647
5637
|
|
|
5648
5638
|
|
|
@@ -5664,6 +5654,42 @@ proto.bonus.GetBonusBySlugRequest.prototype.setSlug = function(value) {
|
|
|
5664
5654
|
};
|
|
5665
5655
|
|
|
5666
5656
|
|
|
5657
|
+
/**
|
|
5658
|
+
* optional string locale = 2;
|
|
5659
|
+
* @return {string}
|
|
5660
|
+
*/
|
|
5661
|
+
proto.bonus.GetBonusBySlugRequest.prototype.getLocale = function() {
|
|
5662
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5663
|
+
};
|
|
5664
|
+
|
|
5665
|
+
|
|
5666
|
+
/**
|
|
5667
|
+
* @param {string} value
|
|
5668
|
+
* @return {!proto.bonus.GetBonusBySlugRequest} returns this
|
|
5669
|
+
*/
|
|
5670
|
+
proto.bonus.GetBonusBySlugRequest.prototype.setLocale = function(value) {
|
|
5671
|
+
return jspb.Message.setField(this, 2, value);
|
|
5672
|
+
};
|
|
5673
|
+
|
|
5674
|
+
|
|
5675
|
+
/**
|
|
5676
|
+
* Clears the field making it undefined.
|
|
5677
|
+
* @return {!proto.bonus.GetBonusBySlugRequest} returns this
|
|
5678
|
+
*/
|
|
5679
|
+
proto.bonus.GetBonusBySlugRequest.prototype.clearLocale = function() {
|
|
5680
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5681
|
+
};
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* Returns whether this field is set.
|
|
5686
|
+
* @return {boolean}
|
|
5687
|
+
*/
|
|
5688
|
+
proto.bonus.GetBonusBySlugRequest.prototype.hasLocale = function() {
|
|
5689
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5692
|
+
|
|
5667
5693
|
|
|
5668
5694
|
|
|
5669
5695
|
|
|
@@ -8183,346 +8209,6 @@ proto.bonus.GetBonusTranslationRequest.prototype.setLocale = function(value) {
|
|
|
8183
8209
|
|
|
8184
8210
|
|
|
8185
8211
|
|
|
8186
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8187
|
-
/**
|
|
8188
|
-
* Creates an object representation of this proto.
|
|
8189
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8190
|
-
* Optional fields that are not set will be set to undefined.
|
|
8191
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8192
|
-
* For the list of reserved names please see:
|
|
8193
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8194
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8195
|
-
* JSPB instance for transitional soy proto support:
|
|
8196
|
-
* http://goto/soy-param-migration
|
|
8197
|
-
* @return {!Object}
|
|
8198
|
-
*/
|
|
8199
|
-
proto.bonus.BonusTranslationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8200
|
-
return proto.bonus.BonusTranslationResponse.toObject(opt_includeInstance, this);
|
|
8201
|
-
};
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
/**
|
|
8205
|
-
* Static version of the {@see toObject} method.
|
|
8206
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8207
|
-
* the JSPB instance for transitional soy proto support:
|
|
8208
|
-
* http://goto/soy-param-migration
|
|
8209
|
-
* @param {!proto.bonus.BonusTranslationResponse} msg The msg instance to transform.
|
|
8210
|
-
* @return {!Object}
|
|
8211
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8212
|
-
*/
|
|
8213
|
-
proto.bonus.BonusTranslationResponse.toObject = function(includeInstance, msg) {
|
|
8214
|
-
var f, obj = {
|
|
8215
|
-
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8216
|
-
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8217
|
-
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8218
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
8219
|
-
locale: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
8220
|
-
};
|
|
8221
|
-
|
|
8222
|
-
if (includeInstance) {
|
|
8223
|
-
obj.$jspbMessageInstance = msg;
|
|
8224
|
-
}
|
|
8225
|
-
return obj;
|
|
8226
|
-
};
|
|
8227
|
-
}
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
/**
|
|
8231
|
-
* Deserializes binary data (in protobuf wire format).
|
|
8232
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8233
|
-
* @return {!proto.bonus.BonusTranslationResponse}
|
|
8234
|
-
*/
|
|
8235
|
-
proto.bonus.BonusTranslationResponse.deserializeBinary = function(bytes) {
|
|
8236
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
8237
|
-
var msg = new proto.bonus.BonusTranslationResponse;
|
|
8238
|
-
return proto.bonus.BonusTranslationResponse.deserializeBinaryFromReader(msg, reader);
|
|
8239
|
-
};
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
/**
|
|
8243
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
8244
|
-
* given reader into the given message object.
|
|
8245
|
-
* @param {!proto.bonus.BonusTranslationResponse} msg The message object to deserialize into.
|
|
8246
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8247
|
-
* @return {!proto.bonus.BonusTranslationResponse}
|
|
8248
|
-
*/
|
|
8249
|
-
proto.bonus.BonusTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8250
|
-
while (reader.nextField()) {
|
|
8251
|
-
if (reader.isEndGroup()) {
|
|
8252
|
-
break;
|
|
8253
|
-
}
|
|
8254
|
-
var field = reader.getFieldNumber();
|
|
8255
|
-
switch (field) {
|
|
8256
|
-
case 1:
|
|
8257
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8258
|
-
msg.setTitle(value);
|
|
8259
|
-
break;
|
|
8260
|
-
case 2:
|
|
8261
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8262
|
-
msg.setDescription(value);
|
|
8263
|
-
break;
|
|
8264
|
-
case 3:
|
|
8265
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8266
|
-
msg.setContent(value);
|
|
8267
|
-
break;
|
|
8268
|
-
case 4:
|
|
8269
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
8270
|
-
msg.setIsActive(value);
|
|
8271
|
-
break;
|
|
8272
|
-
case 5:
|
|
8273
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8274
|
-
msg.setLocale(value);
|
|
8275
|
-
break;
|
|
8276
|
-
default:
|
|
8277
|
-
reader.skipField();
|
|
8278
|
-
break;
|
|
8279
|
-
}
|
|
8280
|
-
}
|
|
8281
|
-
return msg;
|
|
8282
|
-
};
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
/**
|
|
8286
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
8287
|
-
* @return {!Uint8Array}
|
|
8288
|
-
*/
|
|
8289
|
-
proto.bonus.BonusTranslationResponse.prototype.serializeBinary = function() {
|
|
8290
|
-
var writer = new jspb.BinaryWriter();
|
|
8291
|
-
proto.bonus.BonusTranslationResponse.serializeBinaryToWriter(this, writer);
|
|
8292
|
-
return writer.getResultBuffer();
|
|
8293
|
-
};
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
/**
|
|
8297
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
8298
|
-
* format), writing to the given BinaryWriter.
|
|
8299
|
-
* @param {!proto.bonus.BonusTranslationResponse} message
|
|
8300
|
-
* @param {!jspb.BinaryWriter} writer
|
|
8301
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8302
|
-
*/
|
|
8303
|
-
proto.bonus.BonusTranslationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8304
|
-
var f = undefined;
|
|
8305
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
8306
|
-
if (f != null) {
|
|
8307
|
-
writer.writeString(
|
|
8308
|
-
1,
|
|
8309
|
-
f
|
|
8310
|
-
);
|
|
8311
|
-
}
|
|
8312
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
8313
|
-
if (f != null) {
|
|
8314
|
-
writer.writeString(
|
|
8315
|
-
2,
|
|
8316
|
-
f
|
|
8317
|
-
);
|
|
8318
|
-
}
|
|
8319
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
8320
|
-
if (f != null) {
|
|
8321
|
-
writer.writeString(
|
|
8322
|
-
3,
|
|
8323
|
-
f
|
|
8324
|
-
);
|
|
8325
|
-
}
|
|
8326
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
8327
|
-
if (f != null) {
|
|
8328
|
-
writer.writeInt32(
|
|
8329
|
-
4,
|
|
8330
|
-
f
|
|
8331
|
-
);
|
|
8332
|
-
}
|
|
8333
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
8334
|
-
if (f != null) {
|
|
8335
|
-
writer.writeString(
|
|
8336
|
-
5,
|
|
8337
|
-
f
|
|
8338
|
-
);
|
|
8339
|
-
}
|
|
8340
|
-
};
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
/**
|
|
8344
|
-
* optional string title = 1;
|
|
8345
|
-
* @return {string}
|
|
8346
|
-
*/
|
|
8347
|
-
proto.bonus.BonusTranslationResponse.prototype.getTitle = function() {
|
|
8348
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8349
|
-
};
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
/**
|
|
8353
|
-
* @param {string} value
|
|
8354
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8355
|
-
*/
|
|
8356
|
-
proto.bonus.BonusTranslationResponse.prototype.setTitle = function(value) {
|
|
8357
|
-
return jspb.Message.setField(this, 1, value);
|
|
8358
|
-
};
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
/**
|
|
8362
|
-
* Clears the field making it undefined.
|
|
8363
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8364
|
-
*/
|
|
8365
|
-
proto.bonus.BonusTranslationResponse.prototype.clearTitle = function() {
|
|
8366
|
-
return jspb.Message.setField(this, 1, undefined);
|
|
8367
|
-
};
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
/**
|
|
8371
|
-
* Returns whether this field is set.
|
|
8372
|
-
* @return {boolean}
|
|
8373
|
-
*/
|
|
8374
|
-
proto.bonus.BonusTranslationResponse.prototype.hasTitle = function() {
|
|
8375
|
-
return jspb.Message.getField(this, 1) != null;
|
|
8376
|
-
};
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
/**
|
|
8380
|
-
* optional string description = 2;
|
|
8381
|
-
* @return {string}
|
|
8382
|
-
*/
|
|
8383
|
-
proto.bonus.BonusTranslationResponse.prototype.getDescription = function() {
|
|
8384
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8385
|
-
};
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
/**
|
|
8389
|
-
* @param {string} value
|
|
8390
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8391
|
-
*/
|
|
8392
|
-
proto.bonus.BonusTranslationResponse.prototype.setDescription = function(value) {
|
|
8393
|
-
return jspb.Message.setField(this, 2, value);
|
|
8394
|
-
};
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
/**
|
|
8398
|
-
* Clears the field making it undefined.
|
|
8399
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8400
|
-
*/
|
|
8401
|
-
proto.bonus.BonusTranslationResponse.prototype.clearDescription = function() {
|
|
8402
|
-
return jspb.Message.setField(this, 2, undefined);
|
|
8403
|
-
};
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
/**
|
|
8407
|
-
* Returns whether this field is set.
|
|
8408
|
-
* @return {boolean}
|
|
8409
|
-
*/
|
|
8410
|
-
proto.bonus.BonusTranslationResponse.prototype.hasDescription = function() {
|
|
8411
|
-
return jspb.Message.getField(this, 2) != null;
|
|
8412
|
-
};
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
/**
|
|
8416
|
-
* optional string content = 3;
|
|
8417
|
-
* @return {string}
|
|
8418
|
-
*/
|
|
8419
|
-
proto.bonus.BonusTranslationResponse.prototype.getContent = function() {
|
|
8420
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8421
|
-
};
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
/**
|
|
8425
|
-
* @param {string} value
|
|
8426
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8427
|
-
*/
|
|
8428
|
-
proto.bonus.BonusTranslationResponse.prototype.setContent = function(value) {
|
|
8429
|
-
return jspb.Message.setField(this, 3, value);
|
|
8430
|
-
};
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
/**
|
|
8434
|
-
* Clears the field making it undefined.
|
|
8435
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8436
|
-
*/
|
|
8437
|
-
proto.bonus.BonusTranslationResponse.prototype.clearContent = function() {
|
|
8438
|
-
return jspb.Message.setField(this, 3, undefined);
|
|
8439
|
-
};
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
/**
|
|
8443
|
-
* Returns whether this field is set.
|
|
8444
|
-
* @return {boolean}
|
|
8445
|
-
*/
|
|
8446
|
-
proto.bonus.BonusTranslationResponse.prototype.hasContent = function() {
|
|
8447
|
-
return jspb.Message.getField(this, 3) != null;
|
|
8448
|
-
};
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
/**
|
|
8452
|
-
* optional int32 is_active = 4;
|
|
8453
|
-
* @return {number}
|
|
8454
|
-
*/
|
|
8455
|
-
proto.bonus.BonusTranslationResponse.prototype.getIsActive = function() {
|
|
8456
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
8457
|
-
};
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
/**
|
|
8461
|
-
* @param {number} value
|
|
8462
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8463
|
-
*/
|
|
8464
|
-
proto.bonus.BonusTranslationResponse.prototype.setIsActive = function(value) {
|
|
8465
|
-
return jspb.Message.setField(this, 4, value);
|
|
8466
|
-
};
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
/**
|
|
8470
|
-
* Clears the field making it undefined.
|
|
8471
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8472
|
-
*/
|
|
8473
|
-
proto.bonus.BonusTranslationResponse.prototype.clearIsActive = function() {
|
|
8474
|
-
return jspb.Message.setField(this, 4, undefined);
|
|
8475
|
-
};
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
/**
|
|
8479
|
-
* Returns whether this field is set.
|
|
8480
|
-
* @return {boolean}
|
|
8481
|
-
*/
|
|
8482
|
-
proto.bonus.BonusTranslationResponse.prototype.hasIsActive = function() {
|
|
8483
|
-
return jspb.Message.getField(this, 4) != null;
|
|
8484
|
-
};
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
/**
|
|
8488
|
-
* optional string locale = 5;
|
|
8489
|
-
* @return {string}
|
|
8490
|
-
*/
|
|
8491
|
-
proto.bonus.BonusTranslationResponse.prototype.getLocale = function() {
|
|
8492
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
8493
|
-
};
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
/**
|
|
8497
|
-
* @param {string} value
|
|
8498
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8499
|
-
*/
|
|
8500
|
-
proto.bonus.BonusTranslationResponse.prototype.setLocale = function(value) {
|
|
8501
|
-
return jspb.Message.setField(this, 5, value);
|
|
8502
|
-
};
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
/**
|
|
8506
|
-
* Clears the field making it undefined.
|
|
8507
|
-
* @return {!proto.bonus.BonusTranslationResponse} returns this
|
|
8508
|
-
*/
|
|
8509
|
-
proto.bonus.BonusTranslationResponse.prototype.clearLocale = function() {
|
|
8510
|
-
return jspb.Message.setField(this, 5, undefined);
|
|
8511
|
-
};
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
/**
|
|
8515
|
-
* Returns whether this field is set.
|
|
8516
|
-
* @return {boolean}
|
|
8517
|
-
*/
|
|
8518
|
-
proto.bonus.BonusTranslationResponse.prototype.hasLocale = function() {
|
|
8519
|
-
return jspb.Message.getField(this, 5) != null;
|
|
8520
|
-
};
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
8212
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8527
8213
|
/**
|
|
8528
8214
|
* Creates an object representation of this proto.
|