@sentio/protos 2.2.0 → 2.3.0-rc.2

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.
@@ -319,6 +319,9 @@ export const ProjectConfig = {
319
319
  message.version !== undefined && (obj.version = message.version);
320
320
  return obj;
321
321
  },
322
+ create(base) {
323
+ return ProjectConfig.fromPartial(base ?? {});
324
+ },
322
325
  fromPartial(object) {
323
326
  const message = createBaseProjectConfig();
324
327
  message.name = object.name ?? "";
@@ -354,6 +357,9 @@ export const ProcessConfigRequest = {
354
357
  const obj = {};
355
358
  return obj;
356
359
  },
360
+ create(base) {
361
+ return ProcessConfigRequest.fromPartial(base ?? {});
362
+ },
357
363
  fromPartial(_) {
358
364
  const message = createBaseProcessConfigRequest();
359
365
  return message;
@@ -494,6 +500,9 @@ export const ProcessConfigResponse = {
494
500
  }
495
501
  return obj;
496
502
  },
503
+ create(base) {
504
+ return ProcessConfigResponse.fromPartial(base ?? {});
505
+ },
497
506
  fromPartial(object) {
498
507
  const message = createBaseProcessConfigResponse();
499
508
  message.config = (object.config !== undefined && object.config !== null)
@@ -684,6 +693,9 @@ export const ContractConfig = {
684
693
  message.processorType !== undefined && (obj.processorType = message.processorType);
685
694
  return obj;
686
695
  },
696
+ create(base) {
697
+ return ContractConfig.fromPartial(base ?? {});
698
+ },
687
699
  fromPartial(object) {
688
700
  const message = createBaseContractConfig();
689
701
  message.contract = (object.contract !== undefined && object.contract !== null)
@@ -732,6 +744,9 @@ export const TotalPerEntityAggregation = {
732
744
  const obj = {};
733
745
  return obj;
734
746
  },
747
+ create(base) {
748
+ return TotalPerEntityAggregation.fromPartial(base ?? {});
749
+ },
735
750
  fromPartial(_) {
736
751
  const message = createBaseTotalPerEntityAggregation();
737
752
  return message;
@@ -782,6 +797,9 @@ export const RetentionConfig = {
782
797
  message.days !== undefined && (obj.days = Math.round(message.days));
783
798
  return obj;
784
799
  },
800
+ create(base) {
801
+ return RetentionConfig.fromPartial(base ?? {});
802
+ },
785
803
  fromPartial(object) {
786
804
  const message = createBaseRetentionConfig();
787
805
  message.retentionEventName = object.retentionEventName ?? "";
@@ -895,6 +913,9 @@ export const EventTrackingConfig = {
895
913
  (obj.retentionConfig = message.retentionConfig ? RetentionConfig.toJSON(message.retentionConfig) : undefined);
896
914
  return obj;
897
915
  },
916
+ create(base) {
917
+ return EventTrackingConfig.fromPartial(base ?? {});
918
+ },
898
919
  fromPartial(object) {
899
920
  const message = createBaseEventTrackingConfig();
900
921
  message.eventName = object.eventName ?? "";
@@ -955,6 +976,9 @@ export const ExportConfig = {
955
976
  message.channel !== undefined && (obj.channel = message.channel);
956
977
  return obj;
957
978
  },
979
+ create(base) {
980
+ return ExportConfig.fromPartial(base ?? {});
981
+ },
958
982
  fromPartial(object) {
959
983
  const message = createBaseExportConfig();
960
984
  message.name = object.name ?? "";
@@ -1061,6 +1085,9 @@ export const MetricConfig = {
1061
1085
  : undefined);
1062
1086
  return obj;
1063
1087
  },
1088
+ create(base) {
1089
+ return MetricConfig.fromPartial(base ?? {});
1090
+ },
1064
1091
  fromPartial(object) {
1065
1092
  const message = createBaseMetricConfig();
1066
1093
  message.name = object.name ?? "";
@@ -1160,6 +1187,9 @@ export const AggregationConfig = {
1160
1187
  message.discardOrigin !== undefined && (obj.discardOrigin = message.discardOrigin);
1161
1188
  return obj;
1162
1189
  },
1190
+ create(base) {
1191
+ return AggregationConfig.fromPartial(base ?? {});
1192
+ },
1163
1193
  fromPartial(object) {
1164
1194
  const message = createBaseAggregationConfig();
1165
1195
  message.intervalInMinutes = object.intervalInMinutes?.map((e) => e) || [];
@@ -1273,6 +1303,9 @@ export const AccountConfig = {
1273
1303
  }
1274
1304
  return obj;
1275
1305
  },
1306
+ create(base) {
1307
+ return AccountConfig.fromPartial(base ?? {});
1308
+ },
1276
1309
  fromPartial(object) {
1277
1310
  const message = createBaseAccountConfig();
1278
1311
  message.chainId = object.chainId ?? "";
@@ -1329,6 +1362,9 @@ export const HandleInterval = {
1329
1362
  message.backfillInterval !== undefined && (obj.backfillInterval = Math.round(message.backfillInterval));
1330
1363
  return obj;
1331
1364
  },
1365
+ create(base) {
1366
+ return HandleInterval.fromPartial(base ?? {});
1367
+ },
1332
1368
  fromPartial(object) {
1333
1369
  const message = createBaseHandleInterval();
1334
1370
  message.recentInterval = object.recentInterval ?? 0;
@@ -1407,6 +1443,9 @@ export const OnIntervalConfig = {
1407
1443
  (obj.slotInterval = message.slotInterval ? HandleInterval.toJSON(message.slotInterval) : undefined);
1408
1444
  return obj;
1409
1445
  },
1446
+ create(base) {
1447
+ return OnIntervalConfig.fromPartial(base ?? {});
1448
+ },
1410
1449
  fromPartial(object) {
1411
1450
  const message = createBaseOnIntervalConfig();
1412
1451
  message.handlerId = object.handlerId ?? 0;
@@ -1467,6 +1506,9 @@ export const AptosOnIntervalConfig = {
1467
1506
  message.type !== undefined && (obj.type = message.type);
1468
1507
  return obj;
1469
1508
  },
1509
+ create(base) {
1510
+ return AptosOnIntervalConfig.fromPartial(base ?? {});
1511
+ },
1470
1512
  fromPartial(object) {
1471
1513
  const message = createBaseAptosOnIntervalConfig();
1472
1514
  message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
@@ -1537,6 +1579,9 @@ export const ContractInfo = {
1537
1579
  message.abi !== undefined && (obj.abi = message.abi);
1538
1580
  return obj;
1539
1581
  },
1582
+ create(base) {
1583
+ return ContractInfo.fromPartial(base ?? {});
1584
+ },
1540
1585
  fromPartial(object) {
1541
1586
  const message = createBaseContractInfo();
1542
1587
  message.name = object.name ?? "";
@@ -1608,6 +1653,9 @@ export const TemplateInstance = {
1608
1653
  message.templateId !== undefined && (obj.templateId = Math.round(message.templateId));
1609
1654
  return obj;
1610
1655
  },
1656
+ create(base) {
1657
+ return TemplateInstance.fromPartial(base ?? {});
1658
+ },
1611
1659
  fromPartial(object) {
1612
1660
  const message = createBaseTemplateInstance();
1613
1661
  message.contract = (object.contract !== undefined && object.contract !== null)
@@ -1663,6 +1711,9 @@ export const StartRequest = {
1663
1711
  }
1664
1712
  return obj;
1665
1713
  },
1714
+ create(base) {
1715
+ return StartRequest.fromPartial(base ?? {});
1716
+ },
1666
1717
  fromPartial(object) {
1667
1718
  const message = createBaseStartRequest();
1668
1719
  message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
@@ -1704,6 +1755,9 @@ export const BlockHandlerConfig = {
1704
1755
  message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
1705
1756
  return obj;
1706
1757
  },
1758
+ create(base) {
1759
+ return BlockHandlerConfig.fromPartial(base ?? {});
1760
+ },
1707
1761
  fromPartial(object) {
1708
1762
  const message = createBaseBlockHandlerConfig();
1709
1763
  message.handlerId = object.handlerId ?? 0;
@@ -1763,6 +1817,9 @@ export const EthFetchConfig = {
1763
1817
  message.block !== undefined && (obj.block = message.block);
1764
1818
  return obj;
1765
1819
  },
1820
+ create(base) {
1821
+ return EthFetchConfig.fromPartial(base ?? {});
1822
+ },
1766
1823
  fromPartial(object) {
1767
1824
  const message = createBaseEthFetchConfig();
1768
1825
  message.transaction = object.transaction ?? false;
@@ -1825,6 +1882,9 @@ export const TraceHandlerConfig = {
1825
1882
  (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
1826
1883
  return obj;
1827
1884
  },
1885
+ create(base) {
1886
+ return TraceHandlerConfig.fromPartial(base ?? {});
1887
+ },
1828
1888
  fromPartial(object) {
1829
1889
  const message = createBaseTraceHandlerConfig();
1830
1890
  message.signature = object.signature ?? "";
@@ -1881,6 +1941,9 @@ export const TransactionHandlerConfig = {
1881
1941
  (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
1882
1942
  return obj;
1883
1943
  },
1944
+ create(base) {
1945
+ return TransactionHandlerConfig.fromPartial(base ?? {});
1946
+ },
1884
1947
  fromPartial(object) {
1885
1948
  const message = createBaseTransactionHandlerConfig();
1886
1949
  message.handlerId = object.handlerId ?? 0;
@@ -1949,6 +2012,9 @@ export const LogHandlerConfig = {
1949
2012
  (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
1950
2013
  return obj;
1951
2014
  },
2015
+ create(base) {
2016
+ return LogHandlerConfig.fromPartial(base ?? {});
2017
+ },
1952
2018
  fromPartial(object) {
1953
2019
  const message = createBaseLogHandlerConfig();
1954
2020
  message.filters = object.filters?.map((e) => LogFilter.fromPartial(e)) || [];
@@ -2018,6 +2084,9 @@ export const LogFilter = {
2018
2084
  (obj.addressType = message.addressType !== undefined ? addressTypeToJSON(message.addressType) : undefined);
2019
2085
  return obj;
2020
2086
  },
2087
+ create(base) {
2088
+ return LogFilter.fromPartial(base ?? {});
2089
+ },
2021
2090
  fromPartial(object) {
2022
2091
  const message = createBaseLogFilter();
2023
2092
  message.topics = object.topics?.map((e) => Topic.fromPartial(e)) || [];
@@ -2079,6 +2148,9 @@ export const InstructionHandlerConfig = {
2079
2148
  message.rawDataInstruction !== undefined && (obj.rawDataInstruction = message.rawDataInstruction);
2080
2149
  return obj;
2081
2150
  },
2151
+ create(base) {
2152
+ return InstructionHandlerConfig.fromPartial(base ?? {});
2153
+ },
2082
2154
  fromPartial(object) {
2083
2155
  const message = createBaseInstructionHandlerConfig();
2084
2156
  message.innerInstruction = object.innerInstruction ?? false;
@@ -2122,6 +2194,9 @@ export const MoveFetchConfig = {
2122
2194
  message.resourceChanges !== undefined && (obj.resourceChanges = message.resourceChanges);
2123
2195
  return obj;
2124
2196
  },
2197
+ create(base) {
2198
+ return MoveFetchConfig.fromPartial(base ?? {});
2199
+ },
2125
2200
  fromPartial(object) {
2126
2201
  const message = createBaseMoveFetchConfig();
2127
2202
  message.resourceChanges = object.resourceChanges ?? false;
@@ -2187,6 +2262,9 @@ export const MoveEventHandlerConfig = {
2187
2262
  (obj.fetchConfig = message.fetchConfig ? MoveFetchConfig.toJSON(message.fetchConfig) : undefined);
2188
2263
  return obj;
2189
2264
  },
2265
+ create(base) {
2266
+ return MoveEventHandlerConfig.fromPartial(base ?? {});
2267
+ },
2190
2268
  fromPartial(object) {
2191
2269
  const message = createBaseMoveEventHandlerConfig();
2192
2270
  message.filters = object.filters?.map((e) => MoveEventFilter.fromPartial(e)) || [];
@@ -2242,6 +2320,9 @@ export const MoveEventFilter = {
2242
2320
  message.account !== undefined && (obj.account = message.account);
2243
2321
  return obj;
2244
2322
  },
2323
+ create(base) {
2324
+ return MoveEventFilter.fromPartial(base ?? {});
2325
+ },
2245
2326
  fromPartial(object) {
2246
2327
  const message = createBaseMoveEventFilter();
2247
2328
  message.type = object.type ?? "";
@@ -2308,6 +2389,9 @@ export const MoveCallHandlerConfig = {
2308
2389
  (obj.fetchConfig = message.fetchConfig ? MoveFetchConfig.toJSON(message.fetchConfig) : undefined);
2309
2390
  return obj;
2310
2391
  },
2392
+ create(base) {
2393
+ return MoveCallHandlerConfig.fromPartial(base ?? {});
2394
+ },
2311
2395
  fromPartial(object) {
2312
2396
  const message = createBaseMoveCallHandlerConfig();
2313
2397
  message.filters = object.filters?.map((e) => MoveCallFilter.fromPartial(e)) || [];
@@ -2384,6 +2468,9 @@ export const MoveCallFilter = {
2384
2468
  message.includeFailed !== undefined && (obj.includeFailed = message.includeFailed);
2385
2469
  return obj;
2386
2470
  },
2471
+ create(base) {
2472
+ return MoveCallFilter.fromPartial(base ?? {});
2473
+ },
2387
2474
  fromPartial(object) {
2388
2475
  const message = createBaseMoveCallFilter();
2389
2476
  message.function = object.function ?? "";
@@ -2433,6 +2520,9 @@ export const Topic = {
2433
2520
  }
2434
2521
  return obj;
2435
2522
  },
2523
+ create(base) {
2524
+ return Topic.fromPartial(base ?? {});
2525
+ },
2436
2526
  fromPartial(object) {
2437
2527
  const message = createBaseTopic();
2438
2528
  message.hashes = object.hashes?.map((e) => e) || [];
@@ -2481,6 +2571,9 @@ export const ProcessBindingsRequest = {
2481
2571
  }
2482
2572
  return obj;
2483
2573
  },
2574
+ create(base) {
2575
+ return ProcessBindingsRequest.fromPartial(base ?? {});
2576
+ },
2484
2577
  fromPartial(object) {
2485
2578
  const message = createBaseProcessBindingsRequest();
2486
2579
  message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
@@ -2532,6 +2625,9 @@ export const ProcessBindingResponse = {
2532
2625
  message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
2533
2626
  return obj;
2534
2627
  },
2628
+ create(base) {
2629
+ return ProcessBindingResponse.fromPartial(base ?? {});
2630
+ },
2535
2631
  fromPartial(object) {
2536
2632
  const message = createBaseProcessBindingResponse();
2537
2633
  message.result = (object.result !== undefined && object.result !== null)
@@ -2668,6 +2764,9 @@ export const Data = {
2668
2764
  message.suiCall !== undefined && (obj.suiCall = message.suiCall ? Data_SuiCall.toJSON(message.suiCall) : undefined);
2669
2765
  return obj;
2670
2766
  },
2767
+ create(base) {
2768
+ return Data.fromPartial(base ?? {});
2769
+ },
2671
2770
  fromPartial(object) {
2672
2771
  const message = createBaseData();
2673
2772
  message.ethLog = (object.ethLog !== undefined && object.ethLog !== null)
@@ -2778,6 +2877,9 @@ export const Data_EthLog = {
2778
2877
  message.block !== undefined && (obj.block = message.block);
2779
2878
  return obj;
2780
2879
  },
2880
+ create(base) {
2881
+ return Data_EthLog.fromPartial(base ?? {});
2882
+ },
2781
2883
  fromPartial(object) {
2782
2884
  const message = createBaseData_EthLog();
2783
2885
  message.log = object.log ?? undefined;
@@ -2823,6 +2925,9 @@ export const Data_EthBlock = {
2823
2925
  message.block !== undefined && (obj.block = message.block);
2824
2926
  return obj;
2825
2927
  },
2928
+ create(base) {
2929
+ return Data_EthBlock.fromPartial(base ?? {});
2930
+ },
2826
2931
  fromPartial(object) {
2827
2932
  const message = createBaseData_EthBlock();
2828
2933
  message.block = object.block ?? undefined;
@@ -2890,6 +2995,9 @@ export const Data_EthTransaction = {
2890
2995
  message.block !== undefined && (obj.block = message.block);
2891
2996
  return obj;
2892
2997
  },
2998
+ create(base) {
2999
+ return Data_EthTransaction.fromPartial(base ?? {});
3000
+ },
2893
3001
  fromPartial(object) {
2894
3002
  const message = createBaseData_EthTransaction();
2895
3003
  message.transaction = object.transaction ?? undefined;
@@ -2974,6 +3082,9 @@ export const Data_EthTrace = {
2974
3082
  message.block !== undefined && (obj.block = message.block);
2975
3083
  return obj;
2976
3084
  },
3085
+ create(base) {
3086
+ return Data_EthTrace.fromPartial(base ?? {});
3087
+ },
2977
3088
  fromPartial(object) {
2978
3089
  const message = createBaseData_EthTrace();
2979
3090
  message.trace = object.trace ?? undefined;
@@ -3058,6 +3169,9 @@ export const Data_SolInstruction = {
3058
3169
  message.parsed !== undefined && (obj.parsed = message.parsed);
3059
3170
  return obj;
3060
3171
  },
3172
+ create(base) {
3173
+ return Data_SolInstruction.fromPartial(base ?? {});
3174
+ },
3061
3175
  fromPartial(object) {
3062
3176
  const message = createBaseData_SolInstruction();
3063
3177
  message.instructionData = object.instructionData ?? "";
@@ -3103,6 +3217,9 @@ export const Data_AptEvent = {
3103
3217
  message.transaction !== undefined && (obj.transaction = message.transaction);
3104
3218
  return obj;
3105
3219
  },
3220
+ create(base) {
3221
+ return Data_AptEvent.fromPartial(base ?? {});
3222
+ },
3106
3223
  fromPartial(object) {
3107
3224
  const message = createBaseData_AptEvent();
3108
3225
  message.transaction = object.transaction ?? undefined;
@@ -3144,6 +3261,9 @@ export const Data_AptCall = {
3144
3261
  message.transaction !== undefined && (obj.transaction = message.transaction);
3145
3262
  return obj;
3146
3263
  },
3264
+ create(base) {
3265
+ return Data_AptCall.fromPartial(base ?? {});
3266
+ },
3147
3267
  fromPartial(object) {
3148
3268
  const message = createBaseData_AptCall();
3149
3269
  message.transaction = object.transaction ?? undefined;
@@ -3208,6 +3328,9 @@ export const Data_AptResource = {
3208
3328
  message.timestampMicros !== undefined && (obj.timestampMicros = message.timestampMicros.toString());
3209
3329
  return obj;
3210
3330
  },
3331
+ create(base) {
3332
+ return Data_AptResource.fromPartial(base ?? {});
3333
+ },
3211
3334
  fromPartial(object) {
3212
3335
  const message = createBaseData_AptResource();
3213
3336
  message.resources = object.resources?.map((e) => e) || [];
@@ -3251,6 +3374,9 @@ export const Data_SuiEvent = {
3251
3374
  message.transaction !== undefined && (obj.transaction = message.transaction);
3252
3375
  return obj;
3253
3376
  },
3377
+ create(base) {
3378
+ return Data_SuiEvent.fromPartial(base ?? {});
3379
+ },
3254
3380
  fromPartial(object) {
3255
3381
  const message = createBaseData_SuiEvent();
3256
3382
  message.transaction = object.transaction ?? undefined;
@@ -3292,6 +3418,9 @@ export const Data_SuiCall = {
3292
3418
  message.transaction !== undefined && (obj.transaction = message.transaction);
3293
3419
  return obj;
3294
3420
  },
3421
+ create(base) {
3422
+ return Data_SuiCall.fromPartial(base ?? {});
3423
+ },
3295
3424
  fromPartial(object) {
3296
3425
  const message = createBaseData_SuiCall();
3297
3426
  message.transaction = object.transaction ?? undefined;
@@ -3366,6 +3495,9 @@ export const DataBinding = {
3366
3495
  }
3367
3496
  return obj;
3368
3497
  },
3498
+ create(base) {
3499
+ return DataBinding.fromPartial(base ?? {});
3500
+ },
3369
3501
  fromPartial(object) {
3370
3502
  const message = createBaseDataBinding();
3371
3503
  message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
@@ -3375,7 +3507,7 @@ export const DataBinding = {
3375
3507
  },
3376
3508
  };
3377
3509
  function createBaseProcessResult() {
3378
- return { gauges: [], counters: [], logs: [], events: [], exports: [] };
3510
+ return { gauges: [], counters: [], events: [], exports: [] };
3379
3511
  }
3380
3512
  export const ProcessResult = {
3381
3513
  encode(message, writer = _m0.Writer.create()) {
@@ -3385,9 +3517,6 @@ export const ProcessResult = {
3385
3517
  for (const v of message.counters) {
3386
3518
  CounterResult.encode(v, writer.uint32(18).fork()).ldelim();
3387
3519
  }
3388
- for (const v of message.logs) {
3389
- LogResult.encode(v, writer.uint32(26).fork()).ldelim();
3390
- }
3391
3520
  for (const v of message.events) {
3392
3521
  EventTrackingResult.encode(v, writer.uint32(34).fork()).ldelim();
3393
3522
  }
@@ -3409,9 +3538,6 @@ export const ProcessResult = {
3409
3538
  case 2:
3410
3539
  message.counters.push(CounterResult.decode(reader, reader.uint32()));
3411
3540
  break;
3412
- case 3:
3413
- message.logs.push(LogResult.decode(reader, reader.uint32()));
3414
- break;
3415
3541
  case 4:
3416
3542
  message.events.push(EventTrackingResult.decode(reader, reader.uint32()));
3417
3543
  break;
@@ -3429,7 +3555,6 @@ export const ProcessResult = {
3429
3555
  return {
3430
3556
  gauges: Array.isArray(object?.gauges) ? object.gauges.map((e) => GaugeResult.fromJSON(e)) : [],
3431
3557
  counters: Array.isArray(object?.counters) ? object.counters.map((e) => CounterResult.fromJSON(e)) : [],
3432
- logs: Array.isArray(object?.logs) ? object.logs.map((e) => LogResult.fromJSON(e)) : [],
3433
3558
  events: Array.isArray(object?.events) ? object.events.map((e) => EventTrackingResult.fromJSON(e)) : [],
3434
3559
  exports: Array.isArray(object?.exports) ? object.exports.map((e) => ExportResult.fromJSON(e)) : [],
3435
3560
  };
@@ -3448,12 +3573,6 @@ export const ProcessResult = {
3448
3573
  else {
3449
3574
  obj.counters = [];
3450
3575
  }
3451
- if (message.logs) {
3452
- obj.logs = message.logs.map((e) => e ? LogResult.toJSON(e) : undefined);
3453
- }
3454
- else {
3455
- obj.logs = [];
3456
- }
3457
3576
  if (message.events) {
3458
3577
  obj.events = message.events.map((e) => e ? EventTrackingResult.toJSON(e) : undefined);
3459
3578
  }
@@ -3468,11 +3587,13 @@ export const ProcessResult = {
3468
3587
  }
3469
3588
  return obj;
3470
3589
  },
3590
+ create(base) {
3591
+ return ProcessResult.fromPartial(base ?? {});
3592
+ },
3471
3593
  fromPartial(object) {
3472
3594
  const message = createBaseProcessResult();
3473
3595
  message.gauges = object.gauges?.map((e) => GaugeResult.fromPartial(e)) || [];
3474
3596
  message.counters = object.counters?.map((e) => CounterResult.fromPartial(e)) || [];
3475
- message.logs = object.logs?.map((e) => LogResult.fromPartial(e)) || [];
3476
3597
  message.events = object.events?.map((e) => EventTrackingResult.fromPartial(e)) || [];
3477
3598
  message.exports = object.exports?.map((e) => ExportResult.fromPartial(e)) || [];
3478
3599
  return message;
@@ -3602,6 +3723,9 @@ export const RecordMetaData = {
3602
3723
  }
3603
3724
  return obj;
3604
3725
  },
3726
+ create(base) {
3727
+ return RecordMetaData.fromPartial(base ?? {});
3728
+ },
3605
3729
  fromPartial(object) {
3606
3730
  const message = createBaseRecordMetaData();
3607
3731
  message.address = object.address ?? "";
@@ -3663,6 +3787,9 @@ export const RecordMetaData_LabelsEntry = {
3663
3787
  message.value !== undefined && (obj.value = message.value);
3664
3788
  return obj;
3665
3789
  },
3790
+ create(base) {
3791
+ return RecordMetaData_LabelsEntry.fromPartial(base ?? {});
3792
+ },
3666
3793
  fromPartial(object) {
3667
3794
  const message = createBaseRecordMetaData_LabelsEntry();
3668
3795
  message.key = object.key ?? "";
@@ -3724,6 +3851,9 @@ export const MetricValue = {
3724
3851
  (obj.bigInteger = message.bigInteger ? BigInteger.toJSON(message.bigInteger) : undefined);
3725
3852
  return obj;
3726
3853
  },
3854
+ create(base) {
3855
+ return MetricValue.fromPartial(base ?? {});
3856
+ },
3727
3857
  fromPartial(object) {
3728
3858
  const message = createBaseMetricValue();
3729
3859
  message.bigDecimal = object.bigDecimal ?? undefined;
@@ -3780,6 +3910,9 @@ export const BigInteger = {
3780
3910
  (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
3781
3911
  return obj;
3782
3912
  },
3913
+ create(base) {
3914
+ return BigInteger.fromPartial(base ?? {});
3915
+ },
3783
3916
  fromPartial(object) {
3784
3917
  const message = createBaseBigInteger();
3785
3918
  message.negative = object.negative ?? false;
@@ -3822,6 +3955,9 @@ export const RuntimeInfo = {
3822
3955
  message.from !== undefined && (obj.from = handlerTypeToJSON(message.from));
3823
3956
  return obj;
3824
3957
  },
3958
+ create(base) {
3959
+ return RuntimeInfo.fromPartial(base ?? {});
3960
+ },
3825
3961
  fromPartial(object) {
3826
3962
  const message = createBaseRuntimeInfo();
3827
3963
  message.from = object.from ?? 0;
@@ -3884,6 +4020,9 @@ export const GaugeResult = {
3884
4020
  (obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
3885
4021
  return obj;
3886
4022
  },
4023
+ create(base) {
4024
+ return GaugeResult.fromPartial(base ?? {});
4025
+ },
3887
4026
  fromPartial(object) {
3888
4027
  const message = createBaseGaugeResult();
3889
4028
  message.metadata = (object.metadata !== undefined && object.metadata !== null)
@@ -3962,6 +4101,9 @@ export const CounterResult = {
3962
4101
  (obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
3963
4102
  return obj;
3964
4103
  },
4104
+ create(base) {
4105
+ return CounterResult.fromPartial(base ?? {});
4106
+ },
3965
4107
  fromPartial(object) {
3966
4108
  const message = createBaseCounterResult();
3967
4109
  message.metadata = (object.metadata !== undefined && object.metadata !== null)
@@ -3977,91 +4119,6 @@ export const CounterResult = {
3977
4119
  return message;
3978
4120
  },
3979
4121
  };
3980
- function createBaseLogResult() {
3981
- return { metadata: undefined, level: 0, message: "", attributes2: undefined, runtimeInfo: undefined };
3982
- }
3983
- export const LogResult = {
3984
- encode(message, writer = _m0.Writer.create()) {
3985
- if (message.metadata !== undefined) {
3986
- RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
3987
- }
3988
- if (message.level !== 0) {
3989
- writer.uint32(16).int32(message.level);
3990
- }
3991
- if (message.message !== "") {
3992
- writer.uint32(26).string(message.message);
3993
- }
3994
- if (message.attributes2 !== undefined) {
3995
- Struct.encode(Struct.wrap(message.attributes2), writer.uint32(58).fork()).ldelim();
3996
- }
3997
- if (message.runtimeInfo !== undefined) {
3998
- RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
3999
- }
4000
- return writer;
4001
- },
4002
- decode(input, length) {
4003
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
4004
- let end = length === undefined ? reader.len : reader.pos + length;
4005
- const message = createBaseLogResult();
4006
- while (reader.pos < end) {
4007
- const tag = reader.uint32();
4008
- switch (tag >>> 3) {
4009
- case 1:
4010
- message.metadata = RecordMetaData.decode(reader, reader.uint32());
4011
- break;
4012
- case 2:
4013
- message.level = reader.int32();
4014
- break;
4015
- case 3:
4016
- message.message = reader.string();
4017
- break;
4018
- case 7:
4019
- message.attributes2 = Struct.unwrap(Struct.decode(reader, reader.uint32()));
4020
- break;
4021
- case 4:
4022
- message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
4023
- break;
4024
- default:
4025
- reader.skipType(tag & 7);
4026
- break;
4027
- }
4028
- }
4029
- return message;
4030
- },
4031
- fromJSON(object) {
4032
- return {
4033
- metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
4034
- level: isSet(object.level) ? logLevelFromJSON(object.level) : 0,
4035
- message: isSet(object.message) ? String(object.message) : "",
4036
- attributes2: isObject(object.attributes2) ? object.attributes2 : undefined,
4037
- runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
4038
- };
4039
- },
4040
- toJSON(message) {
4041
- const obj = {};
4042
- message.metadata !== undefined &&
4043
- (obj.metadata = message.metadata ? RecordMetaData.toJSON(message.metadata) : undefined);
4044
- message.level !== undefined && (obj.level = logLevelToJSON(message.level));
4045
- message.message !== undefined && (obj.message = message.message);
4046
- message.attributes2 !== undefined && (obj.attributes2 = message.attributes2);
4047
- message.runtimeInfo !== undefined &&
4048
- (obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
4049
- return obj;
4050
- },
4051
- fromPartial(object) {
4052
- const message = createBaseLogResult();
4053
- message.metadata = (object.metadata !== undefined && object.metadata !== null)
4054
- ? RecordMetaData.fromPartial(object.metadata)
4055
- : undefined;
4056
- message.level = object.level ?? 0;
4057
- message.message = object.message ?? "";
4058
- message.attributes2 = object.attributes2 ?? undefined;
4059
- message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
4060
- ? RuntimeInfo.fromPartial(object.runtimeInfo)
4061
- : undefined;
4062
- return message;
4063
- },
4064
- };
4065
4122
  function createBaseEventTrackingResult() {
4066
4123
  return {
4067
4124
  metadata: undefined,
@@ -4157,6 +4214,9 @@ export const EventTrackingResult = {
4157
4214
  message.noMetric !== undefined && (obj.noMetric = message.noMetric);
4158
4215
  return obj;
4159
4216
  },
4217
+ create(base) {
4218
+ return EventTrackingResult.fromPartial(base ?? {});
4219
+ },
4160
4220
  fromPartial(object) {
4161
4221
  const message = createBaseEventTrackingResult();
4162
4222
  message.metadata = (object.metadata !== undefined && object.metadata !== null)
@@ -4228,6 +4288,9 @@ export const ExportResult = {
4228
4288
  (obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
4229
4289
  return obj;
4230
4290
  },
4291
+ create(base) {
4292
+ return ExportResult.fromPartial(base ?? {});
4293
+ },
4231
4294
  fromPartial(object) {
4232
4295
  const message = createBaseExportResult();
4233
4296
  message.metadata = (object.metadata !== undefined && object.metadata !== null)