protobuf-platform 1.2.170 → 1.2.173

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.
@@ -59,6 +59,12 @@ message DashboardResponse {
59
59
  optional int32 dep_count = 10;
60
60
  optional float dep_sum = 11;
61
61
  optional float dep_avg = 12;
62
+ optional float turnover_total = 13;
63
+ optional float turnover_real = 14;
64
+ optional float turnover_bonus = 15;
65
+ optional float ggr_total = 16;
66
+ optional float ggr_real = 17;
67
+ optional float ggr_bonus = 18;
62
68
  }
63
69
  message MainDashboardResponse {
64
70
  DashboardResponse summary = 1;
@@ -1541,7 +1541,13 @@ proto.analytic.DashboardResponse.toObject = function(includeInstance, msg) {
1541
1541
  redepAvg: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
1542
1542
  depCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
1543
1543
  depSum: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
1544
- depAvg: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0)
1544
+ depAvg: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
1545
+ turnoverTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
1546
+ turnoverReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
1547
+ turnoverBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
1548
+ ggrTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
1549
+ ggrReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
1550
+ ggrBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
1545
1551
  };
1546
1552
 
1547
1553
  if (includeInstance) {
@@ -1626,6 +1632,30 @@ proto.analytic.DashboardResponse.deserializeBinaryFromReader = function(msg, rea
1626
1632
  var value = /** @type {number} */ (reader.readFloat());
1627
1633
  msg.setDepAvg(value);
1628
1634
  break;
1635
+ case 13:
1636
+ var value = /** @type {number} */ (reader.readFloat());
1637
+ msg.setTurnoverTotal(value);
1638
+ break;
1639
+ case 14:
1640
+ var value = /** @type {number} */ (reader.readFloat());
1641
+ msg.setTurnoverReal(value);
1642
+ break;
1643
+ case 15:
1644
+ var value = /** @type {number} */ (reader.readFloat());
1645
+ msg.setTurnoverBonus(value);
1646
+ break;
1647
+ case 16:
1648
+ var value = /** @type {number} */ (reader.readFloat());
1649
+ msg.setGgrTotal(value);
1650
+ break;
1651
+ case 17:
1652
+ var value = /** @type {number} */ (reader.readFloat());
1653
+ msg.setGgrReal(value);
1654
+ break;
1655
+ case 18:
1656
+ var value = /** @type {number} */ (reader.readFloat());
1657
+ msg.setGgrBonus(value);
1658
+ break;
1629
1659
  default:
1630
1660
  reader.skipField();
1631
1661
  break;
@@ -1739,6 +1769,48 @@ proto.analytic.DashboardResponse.serializeBinaryToWriter = function(message, wri
1739
1769
  f
1740
1770
  );
1741
1771
  }
1772
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
1773
+ if (f != null) {
1774
+ writer.writeFloat(
1775
+ 13,
1776
+ f
1777
+ );
1778
+ }
1779
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
1780
+ if (f != null) {
1781
+ writer.writeFloat(
1782
+ 14,
1783
+ f
1784
+ );
1785
+ }
1786
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
1787
+ if (f != null) {
1788
+ writer.writeFloat(
1789
+ 15,
1790
+ f
1791
+ );
1792
+ }
1793
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
1794
+ if (f != null) {
1795
+ writer.writeFloat(
1796
+ 16,
1797
+ f
1798
+ );
1799
+ }
1800
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
1801
+ if (f != null) {
1802
+ writer.writeFloat(
1803
+ 17,
1804
+ f
1805
+ );
1806
+ }
1807
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
1808
+ if (f != null) {
1809
+ writer.writeFloat(
1810
+ 18,
1811
+ f
1812
+ );
1813
+ }
1742
1814
  };
1743
1815
 
1744
1816
 
@@ -2174,6 +2246,222 @@ proto.analytic.DashboardResponse.prototype.hasDepAvg = function() {
2174
2246
  };
2175
2247
 
2176
2248
 
2249
+ /**
2250
+ * optional float turnover_total = 13;
2251
+ * @return {number}
2252
+ */
2253
+ proto.analytic.DashboardResponse.prototype.getTurnoverTotal = function() {
2254
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * @param {number} value
2260
+ * @return {!proto.analytic.DashboardResponse} returns this
2261
+ */
2262
+ proto.analytic.DashboardResponse.prototype.setTurnoverTotal = function(value) {
2263
+ return jspb.Message.setField(this, 13, value);
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * Clears the field making it undefined.
2269
+ * @return {!proto.analytic.DashboardResponse} returns this
2270
+ */
2271
+ proto.analytic.DashboardResponse.prototype.clearTurnoverTotal = function() {
2272
+ return jspb.Message.setField(this, 13, undefined);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * Returns whether this field is set.
2278
+ * @return {boolean}
2279
+ */
2280
+ proto.analytic.DashboardResponse.prototype.hasTurnoverTotal = function() {
2281
+ return jspb.Message.getField(this, 13) != null;
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * optional float turnover_real = 14;
2287
+ * @return {number}
2288
+ */
2289
+ proto.analytic.DashboardResponse.prototype.getTurnoverReal = function() {
2290
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * @param {number} value
2296
+ * @return {!proto.analytic.DashboardResponse} returns this
2297
+ */
2298
+ proto.analytic.DashboardResponse.prototype.setTurnoverReal = function(value) {
2299
+ return jspb.Message.setField(this, 14, value);
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * Clears the field making it undefined.
2305
+ * @return {!proto.analytic.DashboardResponse} returns this
2306
+ */
2307
+ proto.analytic.DashboardResponse.prototype.clearTurnoverReal = function() {
2308
+ return jspb.Message.setField(this, 14, undefined);
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * Returns whether this field is set.
2314
+ * @return {boolean}
2315
+ */
2316
+ proto.analytic.DashboardResponse.prototype.hasTurnoverReal = function() {
2317
+ return jspb.Message.getField(this, 14) != null;
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * optional float turnover_bonus = 15;
2323
+ * @return {number}
2324
+ */
2325
+ proto.analytic.DashboardResponse.prototype.getTurnoverBonus = function() {
2326
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * @param {number} value
2332
+ * @return {!proto.analytic.DashboardResponse} returns this
2333
+ */
2334
+ proto.analytic.DashboardResponse.prototype.setTurnoverBonus = function(value) {
2335
+ return jspb.Message.setField(this, 15, value);
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * Clears the field making it undefined.
2341
+ * @return {!proto.analytic.DashboardResponse} returns this
2342
+ */
2343
+ proto.analytic.DashboardResponse.prototype.clearTurnoverBonus = function() {
2344
+ return jspb.Message.setField(this, 15, undefined);
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * Returns whether this field is set.
2350
+ * @return {boolean}
2351
+ */
2352
+ proto.analytic.DashboardResponse.prototype.hasTurnoverBonus = function() {
2353
+ return jspb.Message.getField(this, 15) != null;
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional float ggr_total = 16;
2359
+ * @return {number}
2360
+ */
2361
+ proto.analytic.DashboardResponse.prototype.getGgrTotal = function() {
2362
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {number} value
2368
+ * @return {!proto.analytic.DashboardResponse} returns this
2369
+ */
2370
+ proto.analytic.DashboardResponse.prototype.setGgrTotal = function(value) {
2371
+ return jspb.Message.setField(this, 16, value);
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * Clears the field making it undefined.
2377
+ * @return {!proto.analytic.DashboardResponse} returns this
2378
+ */
2379
+ proto.analytic.DashboardResponse.prototype.clearGgrTotal = function() {
2380
+ return jspb.Message.setField(this, 16, undefined);
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * Returns whether this field is set.
2386
+ * @return {boolean}
2387
+ */
2388
+ proto.analytic.DashboardResponse.prototype.hasGgrTotal = function() {
2389
+ return jspb.Message.getField(this, 16) != null;
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * optional float ggr_real = 17;
2395
+ * @return {number}
2396
+ */
2397
+ proto.analytic.DashboardResponse.prototype.getGgrReal = function() {
2398
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 17, 0.0));
2399
+ };
2400
+
2401
+
2402
+ /**
2403
+ * @param {number} value
2404
+ * @return {!proto.analytic.DashboardResponse} returns this
2405
+ */
2406
+ proto.analytic.DashboardResponse.prototype.setGgrReal = function(value) {
2407
+ return jspb.Message.setField(this, 17, value);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * Clears the field making it undefined.
2413
+ * @return {!proto.analytic.DashboardResponse} returns this
2414
+ */
2415
+ proto.analytic.DashboardResponse.prototype.clearGgrReal = function() {
2416
+ return jspb.Message.setField(this, 17, undefined);
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * Returns whether this field is set.
2422
+ * @return {boolean}
2423
+ */
2424
+ proto.analytic.DashboardResponse.prototype.hasGgrReal = function() {
2425
+ return jspb.Message.getField(this, 17) != null;
2426
+ };
2427
+
2428
+
2429
+ /**
2430
+ * optional float ggr_bonus = 18;
2431
+ * @return {number}
2432
+ */
2433
+ proto.analytic.DashboardResponse.prototype.getGgrBonus = function() {
2434
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 18, 0.0));
2435
+ };
2436
+
2437
+
2438
+ /**
2439
+ * @param {number} value
2440
+ * @return {!proto.analytic.DashboardResponse} returns this
2441
+ */
2442
+ proto.analytic.DashboardResponse.prototype.setGgrBonus = function(value) {
2443
+ return jspb.Message.setField(this, 18, value);
2444
+ };
2445
+
2446
+
2447
+ /**
2448
+ * Clears the field making it undefined.
2449
+ * @return {!proto.analytic.DashboardResponse} returns this
2450
+ */
2451
+ proto.analytic.DashboardResponse.prototype.clearGgrBonus = function() {
2452
+ return jspb.Message.setField(this, 18, undefined);
2453
+ };
2454
+
2455
+
2456
+ /**
2457
+ * Returns whether this field is set.
2458
+ * @return {boolean}
2459
+ */
2460
+ proto.analytic.DashboardResponse.prototype.hasGgrBonus = function() {
2461
+ return jspb.Message.getField(this, 18) != null;
2462
+ };
2463
+
2464
+
2177
2465
 
2178
2466
 
2179
2467
 
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 (BonusTranslationResponse);
20
+ rpc getBonusTranslation(GetBonusTranslationRequest) returns (BonusTranslationItem);
21
21
  rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
22
22
  //Users
23
23
  rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
@@ -189,13 +189,6 @@ message GetBonusTranslationRequest {
189
189
  int32 bonus_id = 1;
190
190
  string locale = 2;
191
191
  }
192
- message BonusTranslationResponse {
193
- optional string title = 1;
194
- optional string description = 2;
195
- optional string content = 3;
196
- optional int32 is_active = 4;
197
- optional string locale = 5;
198
- }
199
192
  message BonusTranslationItem {
200
193
  optional string title = 1;
201
194
  optional string locale = 2;
@@ -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 serialize_bonus_BonusTranslationRequest(arg) {
96
- if (!(arg instanceof bonus_pb.BonusTranslationRequest)) {
97
- throw new Error('Expected argument of type bonus.BonusTranslationRequest');
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 deserialize_bonus_BonusTranslationRequest(buffer_arg) {
103
- return bonus_pb.BonusTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
102
+ function deserialize_bonus_BonusTranslationItem(buffer_arg) {
103
+ return bonus_pb.BonusTranslationItem.deserializeBinary(new Uint8Array(buffer_arg));
104
104
  }
105
105
 
106
- function serialize_bonus_BonusTranslationResponse(arg) {
107
- if (!(arg instanceof bonus_pb.BonusTranslationResponse)) {
108
- throw new Error('Expected argument of type bonus.BonusTranslationResponse');
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 deserialize_bonus_BonusTranslationResponse(buffer_arg) {
114
- return bonus_pb.BonusTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
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.BonusTranslationResponse,
433
+ responseType: bonus_pb.BonusTranslationItem,
434
434
  requestSerialize: serialize_bonus_GetBonusTranslationRequest,
435
435
  requestDeserialize: deserialize_bonus_GetBonusTranslationRequest,
436
- responseSerialize: serialize_bonus_BonusTranslationResponse,
437
- responseDeserialize: deserialize_bonus_BonusTranslationResponse,
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
@@ -8231,346 +8209,6 @@ proto.bonus.GetBonusTranslationRequest.prototype.setLocale = function(value) {
8231
8209
 
8232
8210
 
8233
8211
 
8234
- if (jspb.Message.GENERATE_TO_OBJECT) {
8235
- /**
8236
- * Creates an object representation of this proto.
8237
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
8238
- * Optional fields that are not set will be set to undefined.
8239
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8240
- * For the list of reserved names please see:
8241
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8242
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8243
- * JSPB instance for transitional soy proto support:
8244
- * http://goto/soy-param-migration
8245
- * @return {!Object}
8246
- */
8247
- proto.bonus.BonusTranslationResponse.prototype.toObject = function(opt_includeInstance) {
8248
- return proto.bonus.BonusTranslationResponse.toObject(opt_includeInstance, this);
8249
- };
8250
-
8251
-
8252
- /**
8253
- * Static version of the {@see toObject} method.
8254
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8255
- * the JSPB instance for transitional soy proto support:
8256
- * http://goto/soy-param-migration
8257
- * @param {!proto.bonus.BonusTranslationResponse} msg The msg instance to transform.
8258
- * @return {!Object}
8259
- * @suppress {unusedLocalVariables} f is only used for nested messages
8260
- */
8261
- proto.bonus.BonusTranslationResponse.toObject = function(includeInstance, msg) {
8262
- var f, obj = {
8263
- title: jspb.Message.getFieldWithDefault(msg, 1, ""),
8264
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
8265
- content: jspb.Message.getFieldWithDefault(msg, 3, ""),
8266
- isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
8267
- locale: jspb.Message.getFieldWithDefault(msg, 5, "")
8268
- };
8269
-
8270
- if (includeInstance) {
8271
- obj.$jspbMessageInstance = msg;
8272
- }
8273
- return obj;
8274
- };
8275
- }
8276
-
8277
-
8278
- /**
8279
- * Deserializes binary data (in protobuf wire format).
8280
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
8281
- * @return {!proto.bonus.BonusTranslationResponse}
8282
- */
8283
- proto.bonus.BonusTranslationResponse.deserializeBinary = function(bytes) {
8284
- var reader = new jspb.BinaryReader(bytes);
8285
- var msg = new proto.bonus.BonusTranslationResponse;
8286
- return proto.bonus.BonusTranslationResponse.deserializeBinaryFromReader(msg, reader);
8287
- };
8288
-
8289
-
8290
- /**
8291
- * Deserializes binary data (in protobuf wire format) from the
8292
- * given reader into the given message object.
8293
- * @param {!proto.bonus.BonusTranslationResponse} msg The message object to deserialize into.
8294
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8295
- * @return {!proto.bonus.BonusTranslationResponse}
8296
- */
8297
- proto.bonus.BonusTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
8298
- while (reader.nextField()) {
8299
- if (reader.isEndGroup()) {
8300
- break;
8301
- }
8302
- var field = reader.getFieldNumber();
8303
- switch (field) {
8304
- case 1:
8305
- var value = /** @type {string} */ (reader.readString());
8306
- msg.setTitle(value);
8307
- break;
8308
- case 2:
8309
- var value = /** @type {string} */ (reader.readString());
8310
- msg.setDescription(value);
8311
- break;
8312
- case 3:
8313
- var value = /** @type {string} */ (reader.readString());
8314
- msg.setContent(value);
8315
- break;
8316
- case 4:
8317
- var value = /** @type {number} */ (reader.readInt32());
8318
- msg.setIsActive(value);
8319
- break;
8320
- case 5:
8321
- var value = /** @type {string} */ (reader.readString());
8322
- msg.setLocale(value);
8323
- break;
8324
- default:
8325
- reader.skipField();
8326
- break;
8327
- }
8328
- }
8329
- return msg;
8330
- };
8331
-
8332
-
8333
- /**
8334
- * Serializes the message to binary data (in protobuf wire format).
8335
- * @return {!Uint8Array}
8336
- */
8337
- proto.bonus.BonusTranslationResponse.prototype.serializeBinary = function() {
8338
- var writer = new jspb.BinaryWriter();
8339
- proto.bonus.BonusTranslationResponse.serializeBinaryToWriter(this, writer);
8340
- return writer.getResultBuffer();
8341
- };
8342
-
8343
-
8344
- /**
8345
- * Serializes the given message to binary data (in protobuf wire
8346
- * format), writing to the given BinaryWriter.
8347
- * @param {!proto.bonus.BonusTranslationResponse} message
8348
- * @param {!jspb.BinaryWriter} writer
8349
- * @suppress {unusedLocalVariables} f is only used for nested messages
8350
- */
8351
- proto.bonus.BonusTranslationResponse.serializeBinaryToWriter = function(message, writer) {
8352
- var f = undefined;
8353
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
8354
- if (f != null) {
8355
- writer.writeString(
8356
- 1,
8357
- f
8358
- );
8359
- }
8360
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
8361
- if (f != null) {
8362
- writer.writeString(
8363
- 2,
8364
- f
8365
- );
8366
- }
8367
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
8368
- if (f != null) {
8369
- writer.writeString(
8370
- 3,
8371
- f
8372
- );
8373
- }
8374
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
8375
- if (f != null) {
8376
- writer.writeInt32(
8377
- 4,
8378
- f
8379
- );
8380
- }
8381
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
8382
- if (f != null) {
8383
- writer.writeString(
8384
- 5,
8385
- f
8386
- );
8387
- }
8388
- };
8389
-
8390
-
8391
- /**
8392
- * optional string title = 1;
8393
- * @return {string}
8394
- */
8395
- proto.bonus.BonusTranslationResponse.prototype.getTitle = function() {
8396
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8397
- };
8398
-
8399
-
8400
- /**
8401
- * @param {string} value
8402
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8403
- */
8404
- proto.bonus.BonusTranslationResponse.prototype.setTitle = function(value) {
8405
- return jspb.Message.setField(this, 1, value);
8406
- };
8407
-
8408
-
8409
- /**
8410
- * Clears the field making it undefined.
8411
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8412
- */
8413
- proto.bonus.BonusTranslationResponse.prototype.clearTitle = function() {
8414
- return jspb.Message.setField(this, 1, undefined);
8415
- };
8416
-
8417
-
8418
- /**
8419
- * Returns whether this field is set.
8420
- * @return {boolean}
8421
- */
8422
- proto.bonus.BonusTranslationResponse.prototype.hasTitle = function() {
8423
- return jspb.Message.getField(this, 1) != null;
8424
- };
8425
-
8426
-
8427
- /**
8428
- * optional string description = 2;
8429
- * @return {string}
8430
- */
8431
- proto.bonus.BonusTranslationResponse.prototype.getDescription = function() {
8432
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8433
- };
8434
-
8435
-
8436
- /**
8437
- * @param {string} value
8438
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8439
- */
8440
- proto.bonus.BonusTranslationResponse.prototype.setDescription = function(value) {
8441
- return jspb.Message.setField(this, 2, value);
8442
- };
8443
-
8444
-
8445
- /**
8446
- * Clears the field making it undefined.
8447
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8448
- */
8449
- proto.bonus.BonusTranslationResponse.prototype.clearDescription = function() {
8450
- return jspb.Message.setField(this, 2, undefined);
8451
- };
8452
-
8453
-
8454
- /**
8455
- * Returns whether this field is set.
8456
- * @return {boolean}
8457
- */
8458
- proto.bonus.BonusTranslationResponse.prototype.hasDescription = function() {
8459
- return jspb.Message.getField(this, 2) != null;
8460
- };
8461
-
8462
-
8463
- /**
8464
- * optional string content = 3;
8465
- * @return {string}
8466
- */
8467
- proto.bonus.BonusTranslationResponse.prototype.getContent = function() {
8468
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8469
- };
8470
-
8471
-
8472
- /**
8473
- * @param {string} value
8474
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8475
- */
8476
- proto.bonus.BonusTranslationResponse.prototype.setContent = function(value) {
8477
- return jspb.Message.setField(this, 3, value);
8478
- };
8479
-
8480
-
8481
- /**
8482
- * Clears the field making it undefined.
8483
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8484
- */
8485
- proto.bonus.BonusTranslationResponse.prototype.clearContent = function() {
8486
- return jspb.Message.setField(this, 3, undefined);
8487
- };
8488
-
8489
-
8490
- /**
8491
- * Returns whether this field is set.
8492
- * @return {boolean}
8493
- */
8494
- proto.bonus.BonusTranslationResponse.prototype.hasContent = function() {
8495
- return jspb.Message.getField(this, 3) != null;
8496
- };
8497
-
8498
-
8499
- /**
8500
- * optional int32 is_active = 4;
8501
- * @return {number}
8502
- */
8503
- proto.bonus.BonusTranslationResponse.prototype.getIsActive = function() {
8504
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8505
- };
8506
-
8507
-
8508
- /**
8509
- * @param {number} value
8510
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8511
- */
8512
- proto.bonus.BonusTranslationResponse.prototype.setIsActive = function(value) {
8513
- return jspb.Message.setField(this, 4, value);
8514
- };
8515
-
8516
-
8517
- /**
8518
- * Clears the field making it undefined.
8519
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8520
- */
8521
- proto.bonus.BonusTranslationResponse.prototype.clearIsActive = function() {
8522
- return jspb.Message.setField(this, 4, undefined);
8523
- };
8524
-
8525
-
8526
- /**
8527
- * Returns whether this field is set.
8528
- * @return {boolean}
8529
- */
8530
- proto.bonus.BonusTranslationResponse.prototype.hasIsActive = function() {
8531
- return jspb.Message.getField(this, 4) != null;
8532
- };
8533
-
8534
-
8535
- /**
8536
- * optional string locale = 5;
8537
- * @return {string}
8538
- */
8539
- proto.bonus.BonusTranslationResponse.prototype.getLocale = function() {
8540
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8541
- };
8542
-
8543
-
8544
- /**
8545
- * @param {string} value
8546
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8547
- */
8548
- proto.bonus.BonusTranslationResponse.prototype.setLocale = function(value) {
8549
- return jspb.Message.setField(this, 5, value);
8550
- };
8551
-
8552
-
8553
- /**
8554
- * Clears the field making it undefined.
8555
- * @return {!proto.bonus.BonusTranslationResponse} returns this
8556
- */
8557
- proto.bonus.BonusTranslationResponse.prototype.clearLocale = function() {
8558
- return jspb.Message.setField(this, 5, undefined);
8559
- };
8560
-
8561
-
8562
- /**
8563
- * Returns whether this field is set.
8564
- * @return {boolean}
8565
- */
8566
- proto.bonus.BonusTranslationResponse.prototype.hasLocale = function() {
8567
- return jspb.Message.getField(this, 5) != null;
8568
- };
8569
-
8570
-
8571
-
8572
-
8573
-
8574
8212
  if (jspb.Message.GENERATE_TO_OBJECT) {
8575
8213
  /**
8576
8214
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.170",
3
+ "version": "1.2.173",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {