protobuf-platform 1.0.255 → 1.0.257

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.
@@ -6,6 +6,8 @@ service Analytic {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
7
  //Global
8
8
  rpc getGlobalCasinoStats(PaginationRequest) returns (GlobalCasinoResponse);
9
+ //Payment
10
+ rpc getPaymentProvidersStats(PaginationRequest) returns (PaymentProvidersResponse);
9
11
  }
10
12
  //Technical
11
13
  message PingRequest { string ping = 1; }
@@ -30,7 +32,7 @@ message GlobalCasinoItem {
30
32
  optional float redep_avg = 9;
31
33
  optional int32 total_dep_count = 10;
32
34
  optional float total_dep_sum = 11;
33
- optional float total_dep_agv = 12;
35
+ optional float total_dep_avg = 12;
34
36
  optional float total_turnover = 13;
35
37
  optional float total_ggr = 14;
36
38
  optional float real_turnover = 15;
@@ -45,4 +47,22 @@ message GlobalCasinoResponse {
45
47
  repeated GlobalCasinoItem items = 1;
46
48
  optional int32 total_pages = 2;
47
49
  optional int32 total_items = 3;
50
+ }
51
+ //Payment
52
+ message PaymentItem {
53
+ string date = 1;
54
+ optional string provider = 2;
55
+ optional string method = 3;
56
+ optional int32 total_deposits_count = 4;
57
+ optional int32 total_pending_count = 5;
58
+ optional int32 total_failed_count = 6;
59
+ optional int32 total_succeed_count = 7;
60
+ optional float total_conversion = 8;
61
+ optional float success_to_failure = 9;
62
+ optional int32 total_processed_count = 10;
63
+ }
64
+ message PaymentProvidersResponse {
65
+ repeated PaymentItem items = 1;
66
+ optional int32 total_pages = 2;
67
+ optional int32 total_items = 3;
48
68
  }
@@ -26,6 +26,17 @@ function deserialize_analytic_PaginationRequest(buffer_arg) {
26
26
  return analytic_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_analytic_PaymentProvidersResponse(arg) {
30
+ if (!(arg instanceof analytic_pb.PaymentProvidersResponse)) {
31
+ throw new Error('Expected argument of type analytic.PaymentProvidersResponse');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_analytic_PaymentProvidersResponse(buffer_arg) {
37
+ return analytic_pb.PaymentProvidersResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
29
40
  function serialize_analytic_PingRequest(arg) {
30
41
  if (!(arg instanceof analytic_pb.PingRequest)) {
31
42
  throw new Error('Expected argument of type analytic.PingRequest');
@@ -73,6 +84,18 @@ getGlobalCasinoStats: {
73
84
  responseSerialize: serialize_analytic_GlobalCasinoResponse,
74
85
  responseDeserialize: deserialize_analytic_GlobalCasinoResponse,
75
86
  },
87
+ // Payment
88
+ getPaymentProvidersStats: {
89
+ path: '/analytic.Analytic/getPaymentProvidersStats',
90
+ requestStream: false,
91
+ responseStream: false,
92
+ requestType: analytic_pb.PaginationRequest,
93
+ responseType: analytic_pb.PaymentProvidersResponse,
94
+ requestSerialize: serialize_analytic_PaginationRequest,
95
+ requestDeserialize: deserialize_analytic_PaginationRequest,
96
+ responseSerialize: serialize_analytic_PaymentProvidersResponse,
97
+ responseDeserialize: deserialize_analytic_PaymentProvidersResponse,
98
+ },
76
99
  };
77
100
 
78
101
  exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService);
@@ -25,6 +25,8 @@ goog.exportSymbol('proto.analytic.GlobalCasinoItem', null, global);
25
25
  goog.exportSymbol('proto.analytic.GlobalCasinoResponse', null, global);
26
26
  goog.exportSymbol('proto.analytic.GlobalSearchRequest', null, global);
27
27
  goog.exportSymbol('proto.analytic.PaginationRequest', null, global);
28
+ goog.exportSymbol('proto.analytic.PaymentItem', null, global);
29
+ goog.exportSymbol('proto.analytic.PaymentProvidersResponse', null, global);
28
30
  goog.exportSymbol('proto.analytic.PingRequest', null, global);
29
31
  goog.exportSymbol('proto.analytic.PongResponse', null, global);
30
32
  /**
@@ -153,6 +155,48 @@ if (goog.DEBUG && !COMPILED) {
153
155
  */
154
156
  proto.analytic.GlobalCasinoResponse.displayName = 'proto.analytic.GlobalCasinoResponse';
155
157
  }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.analytic.PaymentItem = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.analytic.PaymentItem, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.analytic.PaymentItem.displayName = 'proto.analytic.PaymentItem';
178
+ }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.analytic.PaymentProvidersResponse = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.PaymentProvidersResponse.repeatedFields_, null);
191
+ };
192
+ goog.inherits(proto.analytic.PaymentProvidersResponse, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.analytic.PaymentProvidersResponse.displayName = 'proto.analytic.PaymentProvidersResponse';
199
+ }
156
200
 
157
201
 
158
202
 
@@ -911,7 +955,7 @@ proto.analytic.GlobalCasinoItem.toObject = function(includeInstance, msg) {
911
955
  redepAvg: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
912
956
  totalDepCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
913
957
  totalDepSum: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
914
- totalDepAgv: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
958
+ totalDepAvg: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
915
959
  totalTurnover: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
916
960
  totalGgr: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
917
961
  realTurnover: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
@@ -1003,7 +1047,7 @@ proto.analytic.GlobalCasinoItem.deserializeBinaryFromReader = function(msg, read
1003
1047
  break;
1004
1048
  case 12:
1005
1049
  var value = /** @type {number} */ (reader.readFloat());
1006
- msg.setTotalDepAgv(value);
1050
+ msg.setTotalDepAvg(value);
1007
1051
  break;
1008
1052
  case 13:
1009
1053
  var value = /** @type {number} */ (reader.readFloat());
@@ -1599,10 +1643,10 @@ proto.analytic.GlobalCasinoItem.prototype.hasTotalDepSum = function() {
1599
1643
 
1600
1644
 
1601
1645
  /**
1602
- * optional float total_dep_agv = 12;
1646
+ * optional float total_dep_avg = 12;
1603
1647
  * @return {number}
1604
1648
  */
1605
- proto.analytic.GlobalCasinoItem.prototype.getTotalDepAgv = function() {
1649
+ proto.analytic.GlobalCasinoItem.prototype.getTotalDepAvg = function() {
1606
1650
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
1607
1651
  };
1608
1652
 
@@ -1611,7 +1655,7 @@ proto.analytic.GlobalCasinoItem.prototype.getTotalDepAgv = function() {
1611
1655
  * @param {number} value
1612
1656
  * @return {!proto.analytic.GlobalCasinoItem} returns this
1613
1657
  */
1614
- proto.analytic.GlobalCasinoItem.prototype.setTotalDepAgv = function(value) {
1658
+ proto.analytic.GlobalCasinoItem.prototype.setTotalDepAvg = function(value) {
1615
1659
  return jspb.Message.setField(this, 12, value);
1616
1660
  };
1617
1661
 
@@ -1620,7 +1664,7 @@ proto.analytic.GlobalCasinoItem.prototype.setTotalDepAgv = function(value) {
1620
1664
  * Clears the field making it undefined.
1621
1665
  * @return {!proto.analytic.GlobalCasinoItem} returns this
1622
1666
  */
1623
- proto.analytic.GlobalCasinoItem.prototype.clearTotalDepAgv = function() {
1667
+ proto.analytic.GlobalCasinoItem.prototype.clearTotalDepAvg = function() {
1624
1668
  return jspb.Message.setField(this, 12, undefined);
1625
1669
  };
1626
1670
 
@@ -1629,7 +1673,7 @@ proto.analytic.GlobalCasinoItem.prototype.clearTotalDepAgv = function() {
1629
1673
  * Returns whether this field is set.
1630
1674
  * @return {boolean}
1631
1675
  */
1632
- proto.analytic.GlobalCasinoItem.prototype.hasTotalDepAgv = function() {
1676
+ proto.analytic.GlobalCasinoItem.prototype.hasTotalDepAvg = function() {
1633
1677
  return jspb.Message.getField(this, 12) != null;
1634
1678
  };
1635
1679
 
@@ -2214,4 +2258,822 @@ proto.analytic.GlobalCasinoResponse.prototype.hasTotalItems = function() {
2214
2258
  };
2215
2259
 
2216
2260
 
2261
+
2262
+
2263
+
2264
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2265
+ /**
2266
+ * Creates an object representation of this proto.
2267
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2268
+ * Optional fields that are not set will be set to undefined.
2269
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2270
+ * For the list of reserved names please see:
2271
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2272
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2273
+ * JSPB instance for transitional soy proto support:
2274
+ * http://goto/soy-param-migration
2275
+ * @return {!Object}
2276
+ */
2277
+ proto.analytic.PaymentItem.prototype.toObject = function(opt_includeInstance) {
2278
+ return proto.analytic.PaymentItem.toObject(opt_includeInstance, this);
2279
+ };
2280
+
2281
+
2282
+ /**
2283
+ * Static version of the {@see toObject} method.
2284
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2285
+ * the JSPB instance for transitional soy proto support:
2286
+ * http://goto/soy-param-migration
2287
+ * @param {!proto.analytic.PaymentItem} msg The msg instance to transform.
2288
+ * @return {!Object}
2289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2290
+ */
2291
+ proto.analytic.PaymentItem.toObject = function(includeInstance, msg) {
2292
+ var f, obj = {
2293
+ date: jspb.Message.getFieldWithDefault(msg, 1, ""),
2294
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
2295
+ method: jspb.Message.getFieldWithDefault(msg, 3, ""),
2296
+ totalDepositsCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
2297
+ totalPendingCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
2298
+ totalFailedCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
2299
+ totalSucceedCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
2300
+ totalConversion: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
2301
+ successToFailure: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
2302
+ totalProcessedCount: jspb.Message.getFieldWithDefault(msg, 10, 0)
2303
+ };
2304
+
2305
+ if (includeInstance) {
2306
+ obj.$jspbMessageInstance = msg;
2307
+ }
2308
+ return obj;
2309
+ };
2310
+ }
2311
+
2312
+
2313
+ /**
2314
+ * Deserializes binary data (in protobuf wire format).
2315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2316
+ * @return {!proto.analytic.PaymentItem}
2317
+ */
2318
+ proto.analytic.PaymentItem.deserializeBinary = function(bytes) {
2319
+ var reader = new jspb.BinaryReader(bytes);
2320
+ var msg = new proto.analytic.PaymentItem;
2321
+ return proto.analytic.PaymentItem.deserializeBinaryFromReader(msg, reader);
2322
+ };
2323
+
2324
+
2325
+ /**
2326
+ * Deserializes binary data (in protobuf wire format) from the
2327
+ * given reader into the given message object.
2328
+ * @param {!proto.analytic.PaymentItem} msg The message object to deserialize into.
2329
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2330
+ * @return {!proto.analytic.PaymentItem}
2331
+ */
2332
+ proto.analytic.PaymentItem.deserializeBinaryFromReader = function(msg, reader) {
2333
+ while (reader.nextField()) {
2334
+ if (reader.isEndGroup()) {
2335
+ break;
2336
+ }
2337
+ var field = reader.getFieldNumber();
2338
+ switch (field) {
2339
+ case 1:
2340
+ var value = /** @type {string} */ (reader.readString());
2341
+ msg.setDate(value);
2342
+ break;
2343
+ case 2:
2344
+ var value = /** @type {string} */ (reader.readString());
2345
+ msg.setProvider(value);
2346
+ break;
2347
+ case 3:
2348
+ var value = /** @type {string} */ (reader.readString());
2349
+ msg.setMethod(value);
2350
+ break;
2351
+ case 4:
2352
+ var value = /** @type {number} */ (reader.readInt32());
2353
+ msg.setTotalDepositsCount(value);
2354
+ break;
2355
+ case 5:
2356
+ var value = /** @type {number} */ (reader.readInt32());
2357
+ msg.setTotalPendingCount(value);
2358
+ break;
2359
+ case 6:
2360
+ var value = /** @type {number} */ (reader.readInt32());
2361
+ msg.setTotalFailedCount(value);
2362
+ break;
2363
+ case 7:
2364
+ var value = /** @type {number} */ (reader.readInt32());
2365
+ msg.setTotalSucceedCount(value);
2366
+ break;
2367
+ case 8:
2368
+ var value = /** @type {number} */ (reader.readFloat());
2369
+ msg.setTotalConversion(value);
2370
+ break;
2371
+ case 9:
2372
+ var value = /** @type {number} */ (reader.readFloat());
2373
+ msg.setSuccessToFailure(value);
2374
+ break;
2375
+ case 10:
2376
+ var value = /** @type {number} */ (reader.readInt32());
2377
+ msg.setTotalProcessedCount(value);
2378
+ break;
2379
+ default:
2380
+ reader.skipField();
2381
+ break;
2382
+ }
2383
+ }
2384
+ return msg;
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * Serializes the message to binary data (in protobuf wire format).
2390
+ * @return {!Uint8Array}
2391
+ */
2392
+ proto.analytic.PaymentItem.prototype.serializeBinary = function() {
2393
+ var writer = new jspb.BinaryWriter();
2394
+ proto.analytic.PaymentItem.serializeBinaryToWriter(this, writer);
2395
+ return writer.getResultBuffer();
2396
+ };
2397
+
2398
+
2399
+ /**
2400
+ * Serializes the given message to binary data (in protobuf wire
2401
+ * format), writing to the given BinaryWriter.
2402
+ * @param {!proto.analytic.PaymentItem} message
2403
+ * @param {!jspb.BinaryWriter} writer
2404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2405
+ */
2406
+ proto.analytic.PaymentItem.serializeBinaryToWriter = function(message, writer) {
2407
+ var f = undefined;
2408
+ f = message.getDate();
2409
+ if (f.length > 0) {
2410
+ writer.writeString(
2411
+ 1,
2412
+ f
2413
+ );
2414
+ }
2415
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2416
+ if (f != null) {
2417
+ writer.writeString(
2418
+ 2,
2419
+ f
2420
+ );
2421
+ }
2422
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2423
+ if (f != null) {
2424
+ writer.writeString(
2425
+ 3,
2426
+ f
2427
+ );
2428
+ }
2429
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
2430
+ if (f != null) {
2431
+ writer.writeInt32(
2432
+ 4,
2433
+ f
2434
+ );
2435
+ }
2436
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
2437
+ if (f != null) {
2438
+ writer.writeInt32(
2439
+ 5,
2440
+ f
2441
+ );
2442
+ }
2443
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
2444
+ if (f != null) {
2445
+ writer.writeInt32(
2446
+ 6,
2447
+ f
2448
+ );
2449
+ }
2450
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
2451
+ if (f != null) {
2452
+ writer.writeInt32(
2453
+ 7,
2454
+ f
2455
+ );
2456
+ }
2457
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
2458
+ if (f != null) {
2459
+ writer.writeFloat(
2460
+ 8,
2461
+ f
2462
+ );
2463
+ }
2464
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
2465
+ if (f != null) {
2466
+ writer.writeFloat(
2467
+ 9,
2468
+ f
2469
+ );
2470
+ }
2471
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
2472
+ if (f != null) {
2473
+ writer.writeInt32(
2474
+ 10,
2475
+ f
2476
+ );
2477
+ }
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * optional string date = 1;
2483
+ * @return {string}
2484
+ */
2485
+ proto.analytic.PaymentItem.prototype.getDate = function() {
2486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * @param {string} value
2492
+ * @return {!proto.analytic.PaymentItem} returns this
2493
+ */
2494
+ proto.analytic.PaymentItem.prototype.setDate = function(value) {
2495
+ return jspb.Message.setProto3StringField(this, 1, value);
2496
+ };
2497
+
2498
+
2499
+ /**
2500
+ * optional string provider = 2;
2501
+ * @return {string}
2502
+ */
2503
+ proto.analytic.PaymentItem.prototype.getProvider = function() {
2504
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2505
+ };
2506
+
2507
+
2508
+ /**
2509
+ * @param {string} value
2510
+ * @return {!proto.analytic.PaymentItem} returns this
2511
+ */
2512
+ proto.analytic.PaymentItem.prototype.setProvider = function(value) {
2513
+ return jspb.Message.setField(this, 2, value);
2514
+ };
2515
+
2516
+
2517
+ /**
2518
+ * Clears the field making it undefined.
2519
+ * @return {!proto.analytic.PaymentItem} returns this
2520
+ */
2521
+ proto.analytic.PaymentItem.prototype.clearProvider = function() {
2522
+ return jspb.Message.setField(this, 2, undefined);
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * Returns whether this field is set.
2528
+ * @return {boolean}
2529
+ */
2530
+ proto.analytic.PaymentItem.prototype.hasProvider = function() {
2531
+ return jspb.Message.getField(this, 2) != null;
2532
+ };
2533
+
2534
+
2535
+ /**
2536
+ * optional string method = 3;
2537
+ * @return {string}
2538
+ */
2539
+ proto.analytic.PaymentItem.prototype.getMethod = function() {
2540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * @param {string} value
2546
+ * @return {!proto.analytic.PaymentItem} returns this
2547
+ */
2548
+ proto.analytic.PaymentItem.prototype.setMethod = function(value) {
2549
+ return jspb.Message.setField(this, 3, value);
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * Clears the field making it undefined.
2555
+ * @return {!proto.analytic.PaymentItem} returns this
2556
+ */
2557
+ proto.analytic.PaymentItem.prototype.clearMethod = function() {
2558
+ return jspb.Message.setField(this, 3, undefined);
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Returns whether this field is set.
2564
+ * @return {boolean}
2565
+ */
2566
+ proto.analytic.PaymentItem.prototype.hasMethod = function() {
2567
+ return jspb.Message.getField(this, 3) != null;
2568
+ };
2569
+
2570
+
2571
+ /**
2572
+ * optional int32 total_deposits_count = 4;
2573
+ * @return {number}
2574
+ */
2575
+ proto.analytic.PaymentItem.prototype.getTotalDepositsCount = function() {
2576
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2577
+ };
2578
+
2579
+
2580
+ /**
2581
+ * @param {number} value
2582
+ * @return {!proto.analytic.PaymentItem} returns this
2583
+ */
2584
+ proto.analytic.PaymentItem.prototype.setTotalDepositsCount = function(value) {
2585
+ return jspb.Message.setField(this, 4, value);
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * Clears the field making it undefined.
2591
+ * @return {!proto.analytic.PaymentItem} returns this
2592
+ */
2593
+ proto.analytic.PaymentItem.prototype.clearTotalDepositsCount = function() {
2594
+ return jspb.Message.setField(this, 4, undefined);
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * Returns whether this field is set.
2600
+ * @return {boolean}
2601
+ */
2602
+ proto.analytic.PaymentItem.prototype.hasTotalDepositsCount = function() {
2603
+ return jspb.Message.getField(this, 4) != null;
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * optional int32 total_pending_count = 5;
2609
+ * @return {number}
2610
+ */
2611
+ proto.analytic.PaymentItem.prototype.getTotalPendingCount = function() {
2612
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * @param {number} value
2618
+ * @return {!proto.analytic.PaymentItem} returns this
2619
+ */
2620
+ proto.analytic.PaymentItem.prototype.setTotalPendingCount = function(value) {
2621
+ return jspb.Message.setField(this, 5, value);
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * Clears the field making it undefined.
2627
+ * @return {!proto.analytic.PaymentItem} returns this
2628
+ */
2629
+ proto.analytic.PaymentItem.prototype.clearTotalPendingCount = function() {
2630
+ return jspb.Message.setField(this, 5, undefined);
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * Returns whether this field is set.
2636
+ * @return {boolean}
2637
+ */
2638
+ proto.analytic.PaymentItem.prototype.hasTotalPendingCount = function() {
2639
+ return jspb.Message.getField(this, 5) != null;
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * optional int32 total_failed_count = 6;
2645
+ * @return {number}
2646
+ */
2647
+ proto.analytic.PaymentItem.prototype.getTotalFailedCount = function() {
2648
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * @param {number} value
2654
+ * @return {!proto.analytic.PaymentItem} returns this
2655
+ */
2656
+ proto.analytic.PaymentItem.prototype.setTotalFailedCount = function(value) {
2657
+ return jspb.Message.setField(this, 6, value);
2658
+ };
2659
+
2660
+
2661
+ /**
2662
+ * Clears the field making it undefined.
2663
+ * @return {!proto.analytic.PaymentItem} returns this
2664
+ */
2665
+ proto.analytic.PaymentItem.prototype.clearTotalFailedCount = function() {
2666
+ return jspb.Message.setField(this, 6, undefined);
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * Returns whether this field is set.
2672
+ * @return {boolean}
2673
+ */
2674
+ proto.analytic.PaymentItem.prototype.hasTotalFailedCount = function() {
2675
+ return jspb.Message.getField(this, 6) != null;
2676
+ };
2677
+
2678
+
2679
+ /**
2680
+ * optional int32 total_succeed_count = 7;
2681
+ * @return {number}
2682
+ */
2683
+ proto.analytic.PaymentItem.prototype.getTotalSucceedCount = function() {
2684
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * @param {number} value
2690
+ * @return {!proto.analytic.PaymentItem} returns this
2691
+ */
2692
+ proto.analytic.PaymentItem.prototype.setTotalSucceedCount = function(value) {
2693
+ return jspb.Message.setField(this, 7, value);
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * Clears the field making it undefined.
2699
+ * @return {!proto.analytic.PaymentItem} returns this
2700
+ */
2701
+ proto.analytic.PaymentItem.prototype.clearTotalSucceedCount = function() {
2702
+ return jspb.Message.setField(this, 7, undefined);
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * Returns whether this field is set.
2708
+ * @return {boolean}
2709
+ */
2710
+ proto.analytic.PaymentItem.prototype.hasTotalSucceedCount = function() {
2711
+ return jspb.Message.getField(this, 7) != null;
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * optional float total_conversion = 8;
2717
+ * @return {number}
2718
+ */
2719
+ proto.analytic.PaymentItem.prototype.getTotalConversion = function() {
2720
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
2721
+ };
2722
+
2723
+
2724
+ /**
2725
+ * @param {number} value
2726
+ * @return {!proto.analytic.PaymentItem} returns this
2727
+ */
2728
+ proto.analytic.PaymentItem.prototype.setTotalConversion = function(value) {
2729
+ return jspb.Message.setField(this, 8, value);
2730
+ };
2731
+
2732
+
2733
+ /**
2734
+ * Clears the field making it undefined.
2735
+ * @return {!proto.analytic.PaymentItem} returns this
2736
+ */
2737
+ proto.analytic.PaymentItem.prototype.clearTotalConversion = function() {
2738
+ return jspb.Message.setField(this, 8, undefined);
2739
+ };
2740
+
2741
+
2742
+ /**
2743
+ * Returns whether this field is set.
2744
+ * @return {boolean}
2745
+ */
2746
+ proto.analytic.PaymentItem.prototype.hasTotalConversion = function() {
2747
+ return jspb.Message.getField(this, 8) != null;
2748
+ };
2749
+
2750
+
2751
+ /**
2752
+ * optional float success_to_failure = 9;
2753
+ * @return {number}
2754
+ */
2755
+ proto.analytic.PaymentItem.prototype.getSuccessToFailure = function() {
2756
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
2757
+ };
2758
+
2759
+
2760
+ /**
2761
+ * @param {number} value
2762
+ * @return {!proto.analytic.PaymentItem} returns this
2763
+ */
2764
+ proto.analytic.PaymentItem.prototype.setSuccessToFailure = function(value) {
2765
+ return jspb.Message.setField(this, 9, value);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * Clears the field making it undefined.
2771
+ * @return {!proto.analytic.PaymentItem} returns this
2772
+ */
2773
+ proto.analytic.PaymentItem.prototype.clearSuccessToFailure = function() {
2774
+ return jspb.Message.setField(this, 9, undefined);
2775
+ };
2776
+
2777
+
2778
+ /**
2779
+ * Returns whether this field is set.
2780
+ * @return {boolean}
2781
+ */
2782
+ proto.analytic.PaymentItem.prototype.hasSuccessToFailure = function() {
2783
+ return jspb.Message.getField(this, 9) != null;
2784
+ };
2785
+
2786
+
2787
+ /**
2788
+ * optional int32 total_processed_count = 10;
2789
+ * @return {number}
2790
+ */
2791
+ proto.analytic.PaymentItem.prototype.getTotalProcessedCount = function() {
2792
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
2793
+ };
2794
+
2795
+
2796
+ /**
2797
+ * @param {number} value
2798
+ * @return {!proto.analytic.PaymentItem} returns this
2799
+ */
2800
+ proto.analytic.PaymentItem.prototype.setTotalProcessedCount = function(value) {
2801
+ return jspb.Message.setField(this, 10, value);
2802
+ };
2803
+
2804
+
2805
+ /**
2806
+ * Clears the field making it undefined.
2807
+ * @return {!proto.analytic.PaymentItem} returns this
2808
+ */
2809
+ proto.analytic.PaymentItem.prototype.clearTotalProcessedCount = function() {
2810
+ return jspb.Message.setField(this, 10, undefined);
2811
+ };
2812
+
2813
+
2814
+ /**
2815
+ * Returns whether this field is set.
2816
+ * @return {boolean}
2817
+ */
2818
+ proto.analytic.PaymentItem.prototype.hasTotalProcessedCount = function() {
2819
+ return jspb.Message.getField(this, 10) != null;
2820
+ };
2821
+
2822
+
2823
+
2824
+ /**
2825
+ * List of repeated fields within this message type.
2826
+ * @private {!Array<number>}
2827
+ * @const
2828
+ */
2829
+ proto.analytic.PaymentProvidersResponse.repeatedFields_ = [1];
2830
+
2831
+
2832
+
2833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2834
+ /**
2835
+ * Creates an object representation of this proto.
2836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2837
+ * Optional fields that are not set will be set to undefined.
2838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2839
+ * For the list of reserved names please see:
2840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2842
+ * JSPB instance for transitional soy proto support:
2843
+ * http://goto/soy-param-migration
2844
+ * @return {!Object}
2845
+ */
2846
+ proto.analytic.PaymentProvidersResponse.prototype.toObject = function(opt_includeInstance) {
2847
+ return proto.analytic.PaymentProvidersResponse.toObject(opt_includeInstance, this);
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * Static version of the {@see toObject} method.
2853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2854
+ * the JSPB instance for transitional soy proto support:
2855
+ * http://goto/soy-param-migration
2856
+ * @param {!proto.analytic.PaymentProvidersResponse} msg The msg instance to transform.
2857
+ * @return {!Object}
2858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2859
+ */
2860
+ proto.analytic.PaymentProvidersResponse.toObject = function(includeInstance, msg) {
2861
+ var f, obj = {
2862
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2863
+ proto.analytic.PaymentItem.toObject, includeInstance),
2864
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
2865
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
2866
+ };
2867
+
2868
+ if (includeInstance) {
2869
+ obj.$jspbMessageInstance = msg;
2870
+ }
2871
+ return obj;
2872
+ };
2873
+ }
2874
+
2875
+
2876
+ /**
2877
+ * Deserializes binary data (in protobuf wire format).
2878
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2879
+ * @return {!proto.analytic.PaymentProvidersResponse}
2880
+ */
2881
+ proto.analytic.PaymentProvidersResponse.deserializeBinary = function(bytes) {
2882
+ var reader = new jspb.BinaryReader(bytes);
2883
+ var msg = new proto.analytic.PaymentProvidersResponse;
2884
+ return proto.analytic.PaymentProvidersResponse.deserializeBinaryFromReader(msg, reader);
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * Deserializes binary data (in protobuf wire format) from the
2890
+ * given reader into the given message object.
2891
+ * @param {!proto.analytic.PaymentProvidersResponse} msg The message object to deserialize into.
2892
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2893
+ * @return {!proto.analytic.PaymentProvidersResponse}
2894
+ */
2895
+ proto.analytic.PaymentProvidersResponse.deserializeBinaryFromReader = function(msg, reader) {
2896
+ while (reader.nextField()) {
2897
+ if (reader.isEndGroup()) {
2898
+ break;
2899
+ }
2900
+ var field = reader.getFieldNumber();
2901
+ switch (field) {
2902
+ case 1:
2903
+ var value = new proto.analytic.PaymentItem;
2904
+ reader.readMessage(value,proto.analytic.PaymentItem.deserializeBinaryFromReader);
2905
+ msg.addItems(value);
2906
+ break;
2907
+ case 2:
2908
+ var value = /** @type {number} */ (reader.readInt32());
2909
+ msg.setTotalPages(value);
2910
+ break;
2911
+ case 3:
2912
+ var value = /** @type {number} */ (reader.readInt32());
2913
+ msg.setTotalItems(value);
2914
+ break;
2915
+ default:
2916
+ reader.skipField();
2917
+ break;
2918
+ }
2919
+ }
2920
+ return msg;
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * Serializes the message to binary data (in protobuf wire format).
2926
+ * @return {!Uint8Array}
2927
+ */
2928
+ proto.analytic.PaymentProvidersResponse.prototype.serializeBinary = function() {
2929
+ var writer = new jspb.BinaryWriter();
2930
+ proto.analytic.PaymentProvidersResponse.serializeBinaryToWriter(this, writer);
2931
+ return writer.getResultBuffer();
2932
+ };
2933
+
2934
+
2935
+ /**
2936
+ * Serializes the given message to binary data (in protobuf wire
2937
+ * format), writing to the given BinaryWriter.
2938
+ * @param {!proto.analytic.PaymentProvidersResponse} message
2939
+ * @param {!jspb.BinaryWriter} writer
2940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2941
+ */
2942
+ proto.analytic.PaymentProvidersResponse.serializeBinaryToWriter = function(message, writer) {
2943
+ var f = undefined;
2944
+ f = message.getItemsList();
2945
+ if (f.length > 0) {
2946
+ writer.writeRepeatedMessage(
2947
+ 1,
2948
+ f,
2949
+ proto.analytic.PaymentItem.serializeBinaryToWriter
2950
+ );
2951
+ }
2952
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2953
+ if (f != null) {
2954
+ writer.writeInt32(
2955
+ 2,
2956
+ f
2957
+ );
2958
+ }
2959
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
2960
+ if (f != null) {
2961
+ writer.writeInt32(
2962
+ 3,
2963
+ f
2964
+ );
2965
+ }
2966
+ };
2967
+
2968
+
2969
+ /**
2970
+ * repeated PaymentItem items = 1;
2971
+ * @return {!Array<!proto.analytic.PaymentItem>}
2972
+ */
2973
+ proto.analytic.PaymentProvidersResponse.prototype.getItemsList = function() {
2974
+ return /** @type{!Array<!proto.analytic.PaymentItem>} */ (
2975
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.PaymentItem, 1));
2976
+ };
2977
+
2978
+
2979
+ /**
2980
+ * @param {!Array<!proto.analytic.PaymentItem>} value
2981
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
2982
+ */
2983
+ proto.analytic.PaymentProvidersResponse.prototype.setItemsList = function(value) {
2984
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2985
+ };
2986
+
2987
+
2988
+ /**
2989
+ * @param {!proto.analytic.PaymentItem=} opt_value
2990
+ * @param {number=} opt_index
2991
+ * @return {!proto.analytic.PaymentItem}
2992
+ */
2993
+ proto.analytic.PaymentProvidersResponse.prototype.addItems = function(opt_value, opt_index) {
2994
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.analytic.PaymentItem, opt_index);
2995
+ };
2996
+
2997
+
2998
+ /**
2999
+ * Clears the list making it empty but non-null.
3000
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
3001
+ */
3002
+ proto.analytic.PaymentProvidersResponse.prototype.clearItemsList = function() {
3003
+ return this.setItemsList([]);
3004
+ };
3005
+
3006
+
3007
+ /**
3008
+ * optional int32 total_pages = 2;
3009
+ * @return {number}
3010
+ */
3011
+ proto.analytic.PaymentProvidersResponse.prototype.getTotalPages = function() {
3012
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3013
+ };
3014
+
3015
+
3016
+ /**
3017
+ * @param {number} value
3018
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
3019
+ */
3020
+ proto.analytic.PaymentProvidersResponse.prototype.setTotalPages = function(value) {
3021
+ return jspb.Message.setField(this, 2, value);
3022
+ };
3023
+
3024
+
3025
+ /**
3026
+ * Clears the field making it undefined.
3027
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
3028
+ */
3029
+ proto.analytic.PaymentProvidersResponse.prototype.clearTotalPages = function() {
3030
+ return jspb.Message.setField(this, 2, undefined);
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Returns whether this field is set.
3036
+ * @return {boolean}
3037
+ */
3038
+ proto.analytic.PaymentProvidersResponse.prototype.hasTotalPages = function() {
3039
+ return jspb.Message.getField(this, 2) != null;
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * optional int32 total_items = 3;
3045
+ * @return {number}
3046
+ */
3047
+ proto.analytic.PaymentProvidersResponse.prototype.getTotalItems = function() {
3048
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3049
+ };
3050
+
3051
+
3052
+ /**
3053
+ * @param {number} value
3054
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
3055
+ */
3056
+ proto.analytic.PaymentProvidersResponse.prototype.setTotalItems = function(value) {
3057
+ return jspb.Message.setField(this, 3, value);
3058
+ };
3059
+
3060
+
3061
+ /**
3062
+ * Clears the field making it undefined.
3063
+ * @return {!proto.analytic.PaymentProvidersResponse} returns this
3064
+ */
3065
+ proto.analytic.PaymentProvidersResponse.prototype.clearTotalItems = function() {
3066
+ return jspb.Message.setField(this, 3, undefined);
3067
+ };
3068
+
3069
+
3070
+ /**
3071
+ * Returns whether this field is set.
3072
+ * @return {boolean}
3073
+ */
3074
+ proto.analytic.PaymentProvidersResponse.prototype.hasTotalItems = function() {
3075
+ return jspb.Message.getField(this, 3) != null;
3076
+ };
3077
+
3078
+
2217
3079
  goog.object.extend(exports, proto.analytic);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.255",
3
+ "version": "1.0.257",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {