@coralogix/rum-cli 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/api/rum-api.ts +1 -1
- package/cli/commands/delete-source-maps-command.ts +1 -1
- package/cli/commands/index.ts +5 -4
- package/cli/commands/update-source-maps-command.ts +1 -1
- package/cli/commands/upload-react-native-source-maps-command.ts +39 -0
- package/cli/commands/upload-source-maps-command.ts +1 -1
- package/cli/rum-cli.ts +8 -7
- package/dist/api/rum-api.js +2 -2
- package/dist/cli/commands/delete-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/delete-source-maps-command.js +4 -4
- package/dist/cli/commands/index.d.ts +4 -3
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/update-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/update-source-maps-command.js +4 -4
- package/dist/cli/commands/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-react-native-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/upload-source-maps-command.js +4 -4
- package/dist/cli/rum-cli.js +9 -7
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +115 -102
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +5 -3
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +54 -49
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +24 -34
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.d.ts +69 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +189 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +526 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1560 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +98 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +475 -127
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -59
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +4 -175
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.d.ts +261 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +698 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +65 -41
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +55 -0
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +267 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.d.ts +109 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +580 -0
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +47 -24
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +43 -38
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +148 -54
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/react-native-source-maps.service.d.ts +3 -0
- package/dist/services/react-native-source-maps.service.js +42 -0
- package/dist/services/source-maps.service.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- package/proto-models/com/coralogix/rum/v2/analytics.ts +113 -108
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -4
- package/proto-models/com/coralogix/rum/v2/chunk.ts +55 -56
- package/proto-models/com/coralogix/rum/v2/file.ts +25 -39
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1837 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +533 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +818 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +65 -46
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +301 -0
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +656 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +48 -27
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +161 -59
- package/proto-models/google/protobuf/descriptor.ts +551 -464
- package/protofetch.lock +2 -2
- package/protofetch.toml +1 -1
- package/protos/com/coralogix/rum/v2/rum_react_native_source_map_service.proto +19 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +128 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +1 -1
- package/protos/com/coralogix/rum/v2/saved_filter.proto +28 -0
- package/protos/com/coralogix/rum/v2/snooze_errors.proto +55 -0
- package/protos/com/coralogix/rum/v2/template.proto +6 -0
- package/protoset.bin +0 -0
- package/services/react-native-source-maps.service.ts +40 -0
- package/services/source-maps.service.ts +2 -2
- package/utils/index.ts +3 -3
|
@@ -269,7 +269,7 @@ export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorP
|
|
|
269
269
|
case "TYPE_SINT64":
|
|
270
270
|
return FieldDescriptorProto_Type.TYPE_SINT64;
|
|
271
271
|
default:
|
|
272
|
-
throw new
|
|
272
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type");
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -312,7 +312,7 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
|
|
|
312
312
|
case FieldDescriptorProto_Type.TYPE_SINT64:
|
|
313
313
|
return "TYPE_SINT64";
|
|
314
314
|
default:
|
|
315
|
-
throw new
|
|
315
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type");
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -335,7 +335,7 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptor
|
|
|
335
335
|
case "LABEL_REPEATED":
|
|
336
336
|
return FieldDescriptorProto_Label.LABEL_REPEATED;
|
|
337
337
|
default:
|
|
338
|
-
throw new
|
|
338
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label");
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
|
|
@@ -348,7 +348,7 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
|
|
|
348
348
|
case FieldDescriptorProto_Label.LABEL_REPEATED:
|
|
349
349
|
return "LABEL_REPEATED";
|
|
350
350
|
default:
|
|
351
|
-
throw new
|
|
351
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label");
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -568,7 +568,7 @@ export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_Optim
|
|
|
568
568
|
case "LITE_RUNTIME":
|
|
569
569
|
return FileOptions_OptimizeMode.LITE_RUNTIME;
|
|
570
570
|
default:
|
|
571
|
-
throw new
|
|
571
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode");
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -581,7 +581,7 @@ export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode)
|
|
|
581
581
|
case FileOptions_OptimizeMode.LITE_RUNTIME:
|
|
582
582
|
return "LITE_RUNTIME";
|
|
583
583
|
default:
|
|
584
|
-
throw new
|
|
584
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode");
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
|
|
@@ -771,7 +771,7 @@ export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType {
|
|
|
771
771
|
case "STRING_PIECE":
|
|
772
772
|
return FieldOptions_CType.STRING_PIECE;
|
|
773
773
|
default:
|
|
774
|
-
throw new
|
|
774
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType");
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
|
|
@@ -784,7 +784,7 @@ export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string {
|
|
|
784
784
|
case FieldOptions_CType.STRING_PIECE:
|
|
785
785
|
return "STRING_PIECE";
|
|
786
786
|
default:
|
|
787
|
-
throw new
|
|
787
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType");
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
|
|
@@ -809,7 +809,7 @@ export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType {
|
|
|
809
809
|
case "JS_NUMBER":
|
|
810
810
|
return FieldOptions_JSType.JS_NUMBER;
|
|
811
811
|
default:
|
|
812
|
-
throw new
|
|
812
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType");
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
|
|
@@ -822,7 +822,7 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {
|
|
|
822
822
|
case FieldOptions_JSType.JS_NUMBER:
|
|
823
823
|
return "JS_NUMBER";
|
|
824
824
|
default:
|
|
825
|
-
throw new
|
|
825
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType");
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
|
|
@@ -849,7 +849,7 @@ export function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_
|
|
|
849
849
|
case "RETENTION_SOURCE":
|
|
850
850
|
return FieldOptions_OptionRetention.RETENTION_SOURCE;
|
|
851
851
|
default:
|
|
852
|
-
throw new
|
|
852
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_OptionRetention");
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
|
|
@@ -862,7 +862,7 @@ export function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRe
|
|
|
862
862
|
case FieldOptions_OptionRetention.RETENTION_SOURCE:
|
|
863
863
|
return "RETENTION_SOURCE";
|
|
864
864
|
default:
|
|
865
|
-
throw new
|
|
865
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_OptionRetention");
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
|
|
@@ -918,9 +918,7 @@ export function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions
|
|
|
918
918
|
case "TARGET_TYPE_METHOD":
|
|
919
919
|
return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;
|
|
920
920
|
default:
|
|
921
|
-
throw new
|
|
922
|
-
"Unrecognized enum value " + object + " for enum FieldOptions_OptionTargetType",
|
|
923
|
-
);
|
|
921
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_OptionTargetType");
|
|
924
922
|
}
|
|
925
923
|
}
|
|
926
924
|
|
|
@@ -947,9 +945,7 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT
|
|
|
947
945
|
case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:
|
|
948
946
|
return "TARGET_TYPE_METHOD";
|
|
949
947
|
default:
|
|
950
|
-
throw new
|
|
951
|
-
"Unrecognized enum value " + object + " for enum FieldOptions_OptionTargetType",
|
|
952
|
-
);
|
|
948
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_OptionTargetType");
|
|
953
949
|
}
|
|
954
950
|
}
|
|
955
951
|
|
|
@@ -1048,9 +1044,7 @@ export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptio
|
|
|
1048
1044
|
case "IDEMPOTENT":
|
|
1049
1045
|
return MethodOptions_IdempotencyLevel.IDEMPOTENT;
|
|
1050
1046
|
default:
|
|
1051
|
-
throw new
|
|
1052
|
-
"Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel",
|
|
1053
|
-
);
|
|
1047
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel");
|
|
1054
1048
|
}
|
|
1055
1049
|
}
|
|
1056
1050
|
|
|
@@ -1063,9 +1057,7 @@ export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_Idemp
|
|
|
1063
1057
|
case MethodOptions_IdempotencyLevel.IDEMPOTENT:
|
|
1064
1058
|
return "IDEMPOTENT";
|
|
1065
1059
|
default:
|
|
1066
|
-
throw new
|
|
1067
|
-
"Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel",
|
|
1068
|
-
);
|
|
1060
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel");
|
|
1069
1061
|
}
|
|
1070
1062
|
}
|
|
1071
1063
|
|
|
@@ -1305,7 +1297,7 @@ export function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): Gene
|
|
|
1305
1297
|
case "ALIAS":
|
|
1306
1298
|
return GeneratedCodeInfo_Annotation_Semantic.ALIAS;
|
|
1307
1299
|
default:
|
|
1308
|
-
throw new
|
|
1300
|
+
throw new globalThis.Error(
|
|
1309
1301
|
"Unrecognized enum value " + object + " for enum GeneratedCodeInfo_Annotation_Semantic",
|
|
1310
1302
|
);
|
|
1311
1303
|
}
|
|
@@ -1320,7 +1312,7 @@ export function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCod
|
|
|
1320
1312
|
case GeneratedCodeInfo_Annotation_Semantic.ALIAS:
|
|
1321
1313
|
return "ALIAS";
|
|
1322
1314
|
default:
|
|
1323
|
-
throw new
|
|
1315
|
+
throw new globalThis.Error(
|
|
1324
1316
|
"Unrecognized enum value " + object + " for enum GeneratedCodeInfo_Annotation_Semantic",
|
|
1325
1317
|
);
|
|
1326
1318
|
}
|
|
@@ -1362,15 +1354,15 @@ export const FileDescriptorSet = {
|
|
|
1362
1354
|
},
|
|
1363
1355
|
|
|
1364
1356
|
fromJSON(object: any): FileDescriptorSet {
|
|
1365
|
-
return {
|
|
1357
|
+
return {
|
|
1358
|
+
file: globalThis.Array.isArray(object?.file) ? object.file.map((e: any) => FileDescriptorProto.fromJSON(e)) : [],
|
|
1359
|
+
};
|
|
1366
1360
|
},
|
|
1367
1361
|
|
|
1368
1362
|
toJSON(message: FileDescriptorSet): unknown {
|
|
1369
1363
|
const obj: any = {};
|
|
1370
|
-
if (message.file) {
|
|
1371
|
-
obj.file = message.file.map((e) =>
|
|
1372
|
-
} else {
|
|
1373
|
-
obj.file = [];
|
|
1364
|
+
if (message.file?.length) {
|
|
1365
|
+
obj.file = message.file.map((e) => FileDescriptorProto.toJSON(e));
|
|
1374
1366
|
}
|
|
1375
1367
|
return obj;
|
|
1376
1368
|
},
|
|
@@ -1378,7 +1370,6 @@ export const FileDescriptorSet = {
|
|
|
1378
1370
|
create(base?: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
|
|
1379
1371
|
return FileDescriptorSet.fromPartial(base ?? {});
|
|
1380
1372
|
},
|
|
1381
|
-
|
|
1382
1373
|
fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
|
|
1383
1374
|
const message = createBaseFileDescriptorSet();
|
|
1384
1375
|
message.file = object.file?.map((e) => FileDescriptorProto.fromPartial(e)) || [];
|
|
@@ -1581,79 +1572,83 @@ export const FileDescriptorProto = {
|
|
|
1581
1572
|
|
|
1582
1573
|
fromJSON(object: any): FileDescriptorProto {
|
|
1583
1574
|
return {
|
|
1584
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
1585
|
-
package: isSet(object.package) ? String(object.package) : "",
|
|
1586
|
-
dependency: Array.isArray(object?.dependency)
|
|
1587
|
-
|
|
1588
|
-
|
|
1575
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1576
|
+
package: isSet(object.package) ? globalThis.String(object.package) : "",
|
|
1577
|
+
dependency: globalThis.Array.isArray(object?.dependency)
|
|
1578
|
+
? object.dependency.map((e: any) => globalThis.String(e))
|
|
1579
|
+
: [],
|
|
1580
|
+
publicDependency: globalThis.Array.isArray(object?.publicDependency)
|
|
1581
|
+
? object.publicDependency.map((e: any) => globalThis.Number(e))
|
|
1582
|
+
: [],
|
|
1583
|
+
weakDependency: globalThis.Array.isArray(object?.weakDependency)
|
|
1584
|
+
? object.weakDependency.map((e: any) => globalThis.Number(e))
|
|
1589
1585
|
: [],
|
|
1590
|
-
|
|
1591
|
-
messageType: Array.isArray(object?.messageType)
|
|
1586
|
+
messageType: globalThis.Array.isArray(object?.messageType)
|
|
1592
1587
|
? object.messageType.map((e: any) => DescriptorProto.fromJSON(e))
|
|
1593
1588
|
: [],
|
|
1594
|
-
enumType: Array.isArray(object?.enumType)
|
|
1595
|
-
|
|
1596
|
-
|
|
1589
|
+
enumType: globalThis.Array.isArray(object?.enumType)
|
|
1590
|
+
? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e))
|
|
1591
|
+
: [],
|
|
1592
|
+
service: globalThis.Array.isArray(object?.service)
|
|
1593
|
+
? object.service.map((e: any) => ServiceDescriptorProto.fromJSON(e))
|
|
1594
|
+
: [],
|
|
1595
|
+
extension: globalThis.Array.isArray(object?.extension)
|
|
1597
1596
|
? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e))
|
|
1598
1597
|
: [],
|
|
1599
1598
|
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
|
|
1600
1599
|
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
|
|
1601
|
-
syntax: isSet(object.syntax) ? String(object.syntax) : "",
|
|
1602
|
-
edition: isSet(object.edition) ? String(object.edition) : "",
|
|
1600
|
+
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
|
|
1601
|
+
edition: isSet(object.edition) ? globalThis.String(object.edition) : "",
|
|
1603
1602
|
};
|
|
1604
1603
|
},
|
|
1605
1604
|
|
|
1606
1605
|
toJSON(message: FileDescriptorProto): unknown {
|
|
1607
1606
|
const obj: any = {};
|
|
1608
|
-
message.name !==
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1607
|
+
if (message.name !== "") {
|
|
1608
|
+
obj.name = message.name;
|
|
1609
|
+
}
|
|
1610
|
+
if (message.package !== "") {
|
|
1611
|
+
obj.package = message.package;
|
|
1612
|
+
}
|
|
1613
|
+
if (message.dependency?.length) {
|
|
1614
|
+
obj.dependency = message.dependency;
|
|
1615
|
+
}
|
|
1616
|
+
if (message.publicDependency?.length) {
|
|
1616
1617
|
obj.publicDependency = message.publicDependency.map((e) => Math.round(e));
|
|
1617
|
-
} else {
|
|
1618
|
-
obj.publicDependency = [];
|
|
1619
1618
|
}
|
|
1620
|
-
if (message.weakDependency) {
|
|
1619
|
+
if (message.weakDependency?.length) {
|
|
1621
1620
|
obj.weakDependency = message.weakDependency.map((e) => Math.round(e));
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
obj.
|
|
1634
|
-
}
|
|
1635
|
-
if (message.
|
|
1636
|
-
obj.
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
(obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);
|
|
1648
|
-
message.syntax !== undefined && (obj.syntax = message.syntax);
|
|
1649
|
-
message.edition !== undefined && (obj.edition = message.edition);
|
|
1621
|
+
}
|
|
1622
|
+
if (message.messageType?.length) {
|
|
1623
|
+
obj.messageType = message.messageType.map((e) => DescriptorProto.toJSON(e));
|
|
1624
|
+
}
|
|
1625
|
+
if (message.enumType?.length) {
|
|
1626
|
+
obj.enumType = message.enumType.map((e) => EnumDescriptorProto.toJSON(e));
|
|
1627
|
+
}
|
|
1628
|
+
if (message.service?.length) {
|
|
1629
|
+
obj.service = message.service.map((e) => ServiceDescriptorProto.toJSON(e));
|
|
1630
|
+
}
|
|
1631
|
+
if (message.extension?.length) {
|
|
1632
|
+
obj.extension = message.extension.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1633
|
+
}
|
|
1634
|
+
if (message.options !== undefined) {
|
|
1635
|
+
obj.options = FileOptions.toJSON(message.options);
|
|
1636
|
+
}
|
|
1637
|
+
if (message.sourceCodeInfo !== undefined) {
|
|
1638
|
+
obj.sourceCodeInfo = SourceCodeInfo.toJSON(message.sourceCodeInfo);
|
|
1639
|
+
}
|
|
1640
|
+
if (message.syntax !== "") {
|
|
1641
|
+
obj.syntax = message.syntax;
|
|
1642
|
+
}
|
|
1643
|
+
if (message.edition !== "") {
|
|
1644
|
+
obj.edition = message.edition;
|
|
1645
|
+
}
|
|
1650
1646
|
return obj;
|
|
1651
1647
|
},
|
|
1652
1648
|
|
|
1653
1649
|
create(base?: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
|
|
1654
1650
|
return FileDescriptorProto.fromPartial(base ?? {});
|
|
1655
1651
|
},
|
|
1656
|
-
|
|
1657
1652
|
fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
|
|
1658
1653
|
const message = createBaseFileDescriptorProto();
|
|
1659
1654
|
message.name = object.name ?? "";
|
|
@@ -1815,73 +1810,66 @@ export const DescriptorProto = {
|
|
|
1815
1810
|
|
|
1816
1811
|
fromJSON(object: any): DescriptorProto {
|
|
1817
1812
|
return {
|
|
1818
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
1819
|
-
field: Array.isArray(object?.field)
|
|
1820
|
-
|
|
1813
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1814
|
+
field: globalThis.Array.isArray(object?.field)
|
|
1815
|
+
? object.field.map((e: any) => FieldDescriptorProto.fromJSON(e))
|
|
1816
|
+
: [],
|
|
1817
|
+
extension: globalThis.Array.isArray(object?.extension)
|
|
1821
1818
|
? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e))
|
|
1822
1819
|
: [],
|
|
1823
|
-
nestedType: Array.isArray(object?.nestedType)
|
|
1820
|
+
nestedType: globalThis.Array.isArray(object?.nestedType)
|
|
1824
1821
|
? object.nestedType.map((e: any) => DescriptorProto.fromJSON(e))
|
|
1825
1822
|
: [],
|
|
1826
|
-
enumType: Array.isArray(object?.enumType)
|
|
1827
|
-
|
|
1823
|
+
enumType: globalThis.Array.isArray(object?.enumType)
|
|
1824
|
+
? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e))
|
|
1825
|
+
: [],
|
|
1826
|
+
extensionRange: globalThis.Array.isArray(object?.extensionRange)
|
|
1828
1827
|
? object.extensionRange.map((e: any) => DescriptorProto_ExtensionRange.fromJSON(e))
|
|
1829
1828
|
: [],
|
|
1830
|
-
oneofDecl: Array.isArray(object?.oneofDecl)
|
|
1829
|
+
oneofDecl: globalThis.Array.isArray(object?.oneofDecl)
|
|
1831
1830
|
? object.oneofDecl.map((e: any) => OneofDescriptorProto.fromJSON(e))
|
|
1832
1831
|
: [],
|
|
1833
1832
|
options: isSet(object.options) ? MessageOptions.fromJSON(object.options) : undefined,
|
|
1834
|
-
reservedRange: Array.isArray(object?.reservedRange)
|
|
1833
|
+
reservedRange: globalThis.Array.isArray(object?.reservedRange)
|
|
1835
1834
|
? object.reservedRange.map((e: any) => DescriptorProto_ReservedRange.fromJSON(e))
|
|
1836
1835
|
: [],
|
|
1837
|
-
reservedName: Array.isArray(object?.reservedName)
|
|
1836
|
+
reservedName: globalThis.Array.isArray(object?.reservedName)
|
|
1837
|
+
? object.reservedName.map((e: any) => globalThis.String(e))
|
|
1838
|
+
: [],
|
|
1838
1839
|
};
|
|
1839
1840
|
},
|
|
1840
1841
|
|
|
1841
1842
|
toJSON(message: DescriptorProto): unknown {
|
|
1842
1843
|
const obj: any = {};
|
|
1843
|
-
message.name !==
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
obj.field =
|
|
1848
|
-
}
|
|
1849
|
-
if (message.extension) {
|
|
1850
|
-
obj.extension = message.extension.map((e) =>
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
obj.
|
|
1863
|
-
}
|
|
1864
|
-
if (message.
|
|
1865
|
-
obj.
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
obj.oneofDecl = [];
|
|
1873
|
-
}
|
|
1874
|
-
message.options !== undefined &&
|
|
1875
|
-
(obj.options = message.options ? MessageOptions.toJSON(message.options) : undefined);
|
|
1876
|
-
if (message.reservedRange) {
|
|
1877
|
-
obj.reservedRange = message.reservedRange.map((e) => e ? DescriptorProto_ReservedRange.toJSON(e) : undefined);
|
|
1878
|
-
} else {
|
|
1879
|
-
obj.reservedRange = [];
|
|
1880
|
-
}
|
|
1881
|
-
if (message.reservedName) {
|
|
1882
|
-
obj.reservedName = message.reservedName.map((e) => e);
|
|
1883
|
-
} else {
|
|
1884
|
-
obj.reservedName = [];
|
|
1844
|
+
if (message.name !== "") {
|
|
1845
|
+
obj.name = message.name;
|
|
1846
|
+
}
|
|
1847
|
+
if (message.field?.length) {
|
|
1848
|
+
obj.field = message.field.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1849
|
+
}
|
|
1850
|
+
if (message.extension?.length) {
|
|
1851
|
+
obj.extension = message.extension.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1852
|
+
}
|
|
1853
|
+
if (message.nestedType?.length) {
|
|
1854
|
+
obj.nestedType = message.nestedType.map((e) => DescriptorProto.toJSON(e));
|
|
1855
|
+
}
|
|
1856
|
+
if (message.enumType?.length) {
|
|
1857
|
+
obj.enumType = message.enumType.map((e) => EnumDescriptorProto.toJSON(e));
|
|
1858
|
+
}
|
|
1859
|
+
if (message.extensionRange?.length) {
|
|
1860
|
+
obj.extensionRange = message.extensionRange.map((e) => DescriptorProto_ExtensionRange.toJSON(e));
|
|
1861
|
+
}
|
|
1862
|
+
if (message.oneofDecl?.length) {
|
|
1863
|
+
obj.oneofDecl = message.oneofDecl.map((e) => OneofDescriptorProto.toJSON(e));
|
|
1864
|
+
}
|
|
1865
|
+
if (message.options !== undefined) {
|
|
1866
|
+
obj.options = MessageOptions.toJSON(message.options);
|
|
1867
|
+
}
|
|
1868
|
+
if (message.reservedRange?.length) {
|
|
1869
|
+
obj.reservedRange = message.reservedRange.map((e) => DescriptorProto_ReservedRange.toJSON(e));
|
|
1870
|
+
}
|
|
1871
|
+
if (message.reservedName?.length) {
|
|
1872
|
+
obj.reservedName = message.reservedName;
|
|
1885
1873
|
}
|
|
1886
1874
|
return obj;
|
|
1887
1875
|
},
|
|
@@ -1889,7 +1877,6 @@ export const DescriptorProto = {
|
|
|
1889
1877
|
create(base?: DeepPartial<DescriptorProto>): DescriptorProto {
|
|
1890
1878
|
return DescriptorProto.fromPartial(base ?? {});
|
|
1891
1879
|
},
|
|
1892
|
-
|
|
1893
1880
|
fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto {
|
|
1894
1881
|
const message = createBaseDescriptorProto();
|
|
1895
1882
|
message.name = object.name ?? "";
|
|
@@ -1965,25 +1952,29 @@ export const DescriptorProto_ExtensionRange = {
|
|
|
1965
1952
|
|
|
1966
1953
|
fromJSON(object: any): DescriptorProto_ExtensionRange {
|
|
1967
1954
|
return {
|
|
1968
|
-
start: isSet(object.start) ? Number(object.start) : 0,
|
|
1969
|
-
end: isSet(object.end) ? Number(object.end) : 0,
|
|
1955
|
+
start: isSet(object.start) ? globalThis.Number(object.start) : 0,
|
|
1956
|
+
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
|
|
1970
1957
|
options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined,
|
|
1971
1958
|
};
|
|
1972
1959
|
},
|
|
1973
1960
|
|
|
1974
1961
|
toJSON(message: DescriptorProto_ExtensionRange): unknown {
|
|
1975
1962
|
const obj: any = {};
|
|
1976
|
-
message.start !==
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1963
|
+
if (message.start !== 0) {
|
|
1964
|
+
obj.start = Math.round(message.start);
|
|
1965
|
+
}
|
|
1966
|
+
if (message.end !== 0) {
|
|
1967
|
+
obj.end = Math.round(message.end);
|
|
1968
|
+
}
|
|
1969
|
+
if (message.options !== undefined) {
|
|
1970
|
+
obj.options = ExtensionRangeOptions.toJSON(message.options);
|
|
1971
|
+
}
|
|
1980
1972
|
return obj;
|
|
1981
1973
|
},
|
|
1982
1974
|
|
|
1983
1975
|
create(base?: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
|
|
1984
1976
|
return DescriptorProto_ExtensionRange.fromPartial(base ?? {});
|
|
1985
1977
|
},
|
|
1986
|
-
|
|
1987
1978
|
fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
|
|
1988
1979
|
const message = createBaseDescriptorProto_ExtensionRange();
|
|
1989
1980
|
message.start = object.start ?? 0;
|
|
@@ -2041,20 +2032,26 @@ export const DescriptorProto_ReservedRange = {
|
|
|
2041
2032
|
},
|
|
2042
2033
|
|
|
2043
2034
|
fromJSON(object: any): DescriptorProto_ReservedRange {
|
|
2044
|
-
return {
|
|
2035
|
+
return {
|
|
2036
|
+
start: isSet(object.start) ? globalThis.Number(object.start) : 0,
|
|
2037
|
+
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
|
|
2038
|
+
};
|
|
2045
2039
|
},
|
|
2046
2040
|
|
|
2047
2041
|
toJSON(message: DescriptorProto_ReservedRange): unknown {
|
|
2048
2042
|
const obj: any = {};
|
|
2049
|
-
message.start !==
|
|
2050
|
-
|
|
2043
|
+
if (message.start !== 0) {
|
|
2044
|
+
obj.start = Math.round(message.start);
|
|
2045
|
+
}
|
|
2046
|
+
if (message.end !== 0) {
|
|
2047
|
+
obj.end = Math.round(message.end);
|
|
2048
|
+
}
|
|
2051
2049
|
return obj;
|
|
2052
2050
|
},
|
|
2053
2051
|
|
|
2054
2052
|
create(base?: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
|
|
2055
2053
|
return DescriptorProto_ReservedRange.fromPartial(base ?? {});
|
|
2056
2054
|
},
|
|
2057
|
-
|
|
2058
2055
|
fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
|
|
2059
2056
|
const message = createBaseDescriptorProto_ReservedRange();
|
|
2060
2057
|
message.start = object.start ?? 0;
|
|
@@ -2100,7 +2097,7 @@ export const ExtensionRangeOptions = {
|
|
|
2100
2097
|
|
|
2101
2098
|
fromJSON(object: any): ExtensionRangeOptions {
|
|
2102
2099
|
return {
|
|
2103
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
2100
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
2104
2101
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
2105
2102
|
: [],
|
|
2106
2103
|
};
|
|
@@ -2108,10 +2105,8 @@ export const ExtensionRangeOptions = {
|
|
|
2108
2105
|
|
|
2109
2106
|
toJSON(message: ExtensionRangeOptions): unknown {
|
|
2110
2107
|
const obj: any = {};
|
|
2111
|
-
if (message.uninterpretedOption) {
|
|
2112
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
2113
|
-
} else {
|
|
2114
|
-
obj.uninterpretedOption = [];
|
|
2108
|
+
if (message.uninterpretedOption?.length) {
|
|
2109
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
2115
2110
|
}
|
|
2116
2111
|
return obj;
|
|
2117
2112
|
},
|
|
@@ -2119,7 +2114,6 @@ export const ExtensionRangeOptions = {
|
|
|
2119
2114
|
create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
2120
2115
|
return ExtensionRangeOptions.fromPartial(base ?? {});
|
|
2121
2116
|
},
|
|
2122
|
-
|
|
2123
2117
|
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
2124
2118
|
const message = createBaseExtensionRangeOptions();
|
|
2125
2119
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
|
@@ -2276,40 +2270,61 @@ export const FieldDescriptorProto = {
|
|
|
2276
2270
|
|
|
2277
2271
|
fromJSON(object: any): FieldDescriptorProto {
|
|
2278
2272
|
return {
|
|
2279
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2280
|
-
number: isSet(object.number) ? Number(object.number) : 0,
|
|
2273
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2274
|
+
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
|
2281
2275
|
label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1,
|
|
2282
2276
|
type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1,
|
|
2283
|
-
typeName: isSet(object.typeName) ? String(object.typeName) : "",
|
|
2284
|
-
extendee: isSet(object.extendee) ? String(object.extendee) : "",
|
|
2285
|
-
defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "",
|
|
2286
|
-
oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0,
|
|
2287
|
-
jsonName: isSet(object.jsonName) ? String(object.jsonName) : "",
|
|
2277
|
+
typeName: isSet(object.typeName) ? globalThis.String(object.typeName) : "",
|
|
2278
|
+
extendee: isSet(object.extendee) ? globalThis.String(object.extendee) : "",
|
|
2279
|
+
defaultValue: isSet(object.defaultValue) ? globalThis.String(object.defaultValue) : "",
|
|
2280
|
+
oneofIndex: isSet(object.oneofIndex) ? globalThis.Number(object.oneofIndex) : 0,
|
|
2281
|
+
jsonName: isSet(object.jsonName) ? globalThis.String(object.jsonName) : "",
|
|
2288
2282
|
options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined,
|
|
2289
|
-
proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false,
|
|
2283
|
+
proto3Optional: isSet(object.proto3Optional) ? globalThis.Boolean(object.proto3Optional) : false,
|
|
2290
2284
|
};
|
|
2291
2285
|
},
|
|
2292
2286
|
|
|
2293
2287
|
toJSON(message: FieldDescriptorProto): unknown {
|
|
2294
2288
|
const obj: any = {};
|
|
2295
|
-
message.name !==
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
message.
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
message.
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2289
|
+
if (message.name !== "") {
|
|
2290
|
+
obj.name = message.name;
|
|
2291
|
+
}
|
|
2292
|
+
if (message.number !== 0) {
|
|
2293
|
+
obj.number = Math.round(message.number);
|
|
2294
|
+
}
|
|
2295
|
+
if (message.label !== 1) {
|
|
2296
|
+
obj.label = fieldDescriptorProto_LabelToJSON(message.label);
|
|
2297
|
+
}
|
|
2298
|
+
if (message.type !== 1) {
|
|
2299
|
+
obj.type = fieldDescriptorProto_TypeToJSON(message.type);
|
|
2300
|
+
}
|
|
2301
|
+
if (message.typeName !== "") {
|
|
2302
|
+
obj.typeName = message.typeName;
|
|
2303
|
+
}
|
|
2304
|
+
if (message.extendee !== "") {
|
|
2305
|
+
obj.extendee = message.extendee;
|
|
2306
|
+
}
|
|
2307
|
+
if (message.defaultValue !== "") {
|
|
2308
|
+
obj.defaultValue = message.defaultValue;
|
|
2309
|
+
}
|
|
2310
|
+
if (message.oneofIndex !== 0) {
|
|
2311
|
+
obj.oneofIndex = Math.round(message.oneofIndex);
|
|
2312
|
+
}
|
|
2313
|
+
if (message.jsonName !== "") {
|
|
2314
|
+
obj.jsonName = message.jsonName;
|
|
2315
|
+
}
|
|
2316
|
+
if (message.options !== undefined) {
|
|
2317
|
+
obj.options = FieldOptions.toJSON(message.options);
|
|
2318
|
+
}
|
|
2319
|
+
if (message.proto3Optional === true) {
|
|
2320
|
+
obj.proto3Optional = message.proto3Optional;
|
|
2321
|
+
}
|
|
2306
2322
|
return obj;
|
|
2307
2323
|
},
|
|
2308
2324
|
|
|
2309
2325
|
create(base?: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
|
|
2310
2326
|
return FieldDescriptorProto.fromPartial(base ?? {});
|
|
2311
2327
|
},
|
|
2312
|
-
|
|
2313
2328
|
fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
|
|
2314
2329
|
const message = createBaseFieldDescriptorProto();
|
|
2315
2330
|
message.name = object.name ?? "";
|
|
@@ -2376,22 +2391,25 @@ export const OneofDescriptorProto = {
|
|
|
2376
2391
|
|
|
2377
2392
|
fromJSON(object: any): OneofDescriptorProto {
|
|
2378
2393
|
return {
|
|
2379
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2394
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2380
2395
|
options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined,
|
|
2381
2396
|
};
|
|
2382
2397
|
},
|
|
2383
2398
|
|
|
2384
2399
|
toJSON(message: OneofDescriptorProto): unknown {
|
|
2385
2400
|
const obj: any = {};
|
|
2386
|
-
message.name !==
|
|
2387
|
-
|
|
2401
|
+
if (message.name !== "") {
|
|
2402
|
+
obj.name = message.name;
|
|
2403
|
+
}
|
|
2404
|
+
if (message.options !== undefined) {
|
|
2405
|
+
obj.options = OneofOptions.toJSON(message.options);
|
|
2406
|
+
}
|
|
2388
2407
|
return obj;
|
|
2389
2408
|
},
|
|
2390
2409
|
|
|
2391
2410
|
create(base?: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
|
|
2392
2411
|
return OneofDescriptorProto.fromPartial(base ?? {});
|
|
2393
2412
|
},
|
|
2394
|
-
|
|
2395
2413
|
fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
|
|
2396
2414
|
const message = createBaseOneofDescriptorProto();
|
|
2397
2415
|
message.name = object.name ?? "";
|
|
@@ -2479,36 +2497,36 @@ export const EnumDescriptorProto = {
|
|
|
2479
2497
|
|
|
2480
2498
|
fromJSON(object: any): EnumDescriptorProto {
|
|
2481
2499
|
return {
|
|
2482
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2483
|
-
value: Array.isArray(object?.value)
|
|
2500
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2501
|
+
value: globalThis.Array.isArray(object?.value)
|
|
2502
|
+
? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e))
|
|
2503
|
+
: [],
|
|
2484
2504
|
options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined,
|
|
2485
|
-
reservedRange: Array.isArray(object?.reservedRange)
|
|
2505
|
+
reservedRange: globalThis.Array.isArray(object?.reservedRange)
|
|
2486
2506
|
? object.reservedRange.map((e: any) => EnumDescriptorProto_EnumReservedRange.fromJSON(e))
|
|
2487
2507
|
: [],
|
|
2488
|
-
reservedName: Array.isArray(object?.reservedName)
|
|
2508
|
+
reservedName: globalThis.Array.isArray(object?.reservedName)
|
|
2509
|
+
? object.reservedName.map((e: any) => globalThis.String(e))
|
|
2510
|
+
: [],
|
|
2489
2511
|
};
|
|
2490
2512
|
},
|
|
2491
2513
|
|
|
2492
2514
|
toJSON(message: EnumDescriptorProto): unknown {
|
|
2493
2515
|
const obj: any = {};
|
|
2494
|
-
message.name !==
|
|
2495
|
-
|
|
2496
|
-
obj.value = message.value.map((e) => e ? EnumValueDescriptorProto.toJSON(e) : undefined);
|
|
2497
|
-
} else {
|
|
2498
|
-
obj.value = [];
|
|
2499
|
-
}
|
|
2500
|
-
message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined);
|
|
2501
|
-
if (message.reservedRange) {
|
|
2502
|
-
obj.reservedRange = message.reservedRange.map((e) =>
|
|
2503
|
-
e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined
|
|
2504
|
-
);
|
|
2505
|
-
} else {
|
|
2506
|
-
obj.reservedRange = [];
|
|
2516
|
+
if (message.name !== "") {
|
|
2517
|
+
obj.name = message.name;
|
|
2507
2518
|
}
|
|
2508
|
-
if (message.
|
|
2509
|
-
obj.
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2519
|
+
if (message.value?.length) {
|
|
2520
|
+
obj.value = message.value.map((e) => EnumValueDescriptorProto.toJSON(e));
|
|
2521
|
+
}
|
|
2522
|
+
if (message.options !== undefined) {
|
|
2523
|
+
obj.options = EnumOptions.toJSON(message.options);
|
|
2524
|
+
}
|
|
2525
|
+
if (message.reservedRange?.length) {
|
|
2526
|
+
obj.reservedRange = message.reservedRange.map((e) => EnumDescriptorProto_EnumReservedRange.toJSON(e));
|
|
2527
|
+
}
|
|
2528
|
+
if (message.reservedName?.length) {
|
|
2529
|
+
obj.reservedName = message.reservedName;
|
|
2512
2530
|
}
|
|
2513
2531
|
return obj;
|
|
2514
2532
|
},
|
|
@@ -2516,7 +2534,6 @@ export const EnumDescriptorProto = {
|
|
|
2516
2534
|
create(base?: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
|
|
2517
2535
|
return EnumDescriptorProto.fromPartial(base ?? {});
|
|
2518
2536
|
},
|
|
2519
|
-
|
|
2520
2537
|
fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
|
|
2521
2538
|
const message = createBaseEnumDescriptorProto();
|
|
2522
2539
|
message.name = object.name ?? "";
|
|
@@ -2577,20 +2594,26 @@ export const EnumDescriptorProto_EnumReservedRange = {
|
|
|
2577
2594
|
},
|
|
2578
2595
|
|
|
2579
2596
|
fromJSON(object: any): EnumDescriptorProto_EnumReservedRange {
|
|
2580
|
-
return {
|
|
2597
|
+
return {
|
|
2598
|
+
start: isSet(object.start) ? globalThis.Number(object.start) : 0,
|
|
2599
|
+
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
|
|
2600
|
+
};
|
|
2581
2601
|
},
|
|
2582
2602
|
|
|
2583
2603
|
toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown {
|
|
2584
2604
|
const obj: any = {};
|
|
2585
|
-
message.start !==
|
|
2586
|
-
|
|
2605
|
+
if (message.start !== 0) {
|
|
2606
|
+
obj.start = Math.round(message.start);
|
|
2607
|
+
}
|
|
2608
|
+
if (message.end !== 0) {
|
|
2609
|
+
obj.end = Math.round(message.end);
|
|
2610
|
+
}
|
|
2587
2611
|
return obj;
|
|
2588
2612
|
},
|
|
2589
2613
|
|
|
2590
2614
|
create(base?: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
|
|
2591
2615
|
return EnumDescriptorProto_EnumReservedRange.fromPartial(base ?? {});
|
|
2592
2616
|
},
|
|
2593
|
-
|
|
2594
2617
|
fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
|
|
2595
2618
|
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
2596
2619
|
message.start = object.start ?? 0;
|
|
@@ -2656,25 +2679,29 @@ export const EnumValueDescriptorProto = {
|
|
|
2656
2679
|
|
|
2657
2680
|
fromJSON(object: any): EnumValueDescriptorProto {
|
|
2658
2681
|
return {
|
|
2659
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2660
|
-
number: isSet(object.number) ? Number(object.number) : 0,
|
|
2682
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2683
|
+
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
|
2661
2684
|
options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined,
|
|
2662
2685
|
};
|
|
2663
2686
|
},
|
|
2664
2687
|
|
|
2665
2688
|
toJSON(message: EnumValueDescriptorProto): unknown {
|
|
2666
2689
|
const obj: any = {};
|
|
2667
|
-
message.name !==
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2690
|
+
if (message.name !== "") {
|
|
2691
|
+
obj.name = message.name;
|
|
2692
|
+
}
|
|
2693
|
+
if (message.number !== 0) {
|
|
2694
|
+
obj.number = Math.round(message.number);
|
|
2695
|
+
}
|
|
2696
|
+
if (message.options !== undefined) {
|
|
2697
|
+
obj.options = EnumValueOptions.toJSON(message.options);
|
|
2698
|
+
}
|
|
2671
2699
|
return obj;
|
|
2672
2700
|
},
|
|
2673
2701
|
|
|
2674
2702
|
create(base?: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
|
|
2675
2703
|
return EnumValueDescriptorProto.fromPartial(base ?? {});
|
|
2676
2704
|
},
|
|
2677
|
-
|
|
2678
2705
|
fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
|
|
2679
2706
|
const message = createBaseEnumValueDescriptorProto();
|
|
2680
2707
|
message.name = object.name ?? "";
|
|
@@ -2743,29 +2770,31 @@ export const ServiceDescriptorProto = {
|
|
|
2743
2770
|
|
|
2744
2771
|
fromJSON(object: any): ServiceDescriptorProto {
|
|
2745
2772
|
return {
|
|
2746
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2747
|
-
method: Array.isArray(object?.method)
|
|
2773
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2774
|
+
method: globalThis.Array.isArray(object?.method)
|
|
2775
|
+
? object.method.map((e: any) => MethodDescriptorProto.fromJSON(e))
|
|
2776
|
+
: [],
|
|
2748
2777
|
options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined,
|
|
2749
2778
|
};
|
|
2750
2779
|
},
|
|
2751
2780
|
|
|
2752
2781
|
toJSON(message: ServiceDescriptorProto): unknown {
|
|
2753
2782
|
const obj: any = {};
|
|
2754
|
-
message.name !==
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
obj.method =
|
|
2759
|
-
}
|
|
2760
|
-
message.options !== undefined
|
|
2761
|
-
|
|
2783
|
+
if (message.name !== "") {
|
|
2784
|
+
obj.name = message.name;
|
|
2785
|
+
}
|
|
2786
|
+
if (message.method?.length) {
|
|
2787
|
+
obj.method = message.method.map((e) => MethodDescriptorProto.toJSON(e));
|
|
2788
|
+
}
|
|
2789
|
+
if (message.options !== undefined) {
|
|
2790
|
+
obj.options = ServiceOptions.toJSON(message.options);
|
|
2791
|
+
}
|
|
2762
2792
|
return obj;
|
|
2763
2793
|
},
|
|
2764
2794
|
|
|
2765
2795
|
create(base?: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
|
|
2766
2796
|
return ServiceDescriptorProto.fromPartial(base ?? {});
|
|
2767
2797
|
},
|
|
2768
|
-
|
|
2769
2798
|
fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
|
|
2770
2799
|
const message = createBaseServiceDescriptorProto();
|
|
2771
2800
|
message.name = object.name ?? "";
|
|
@@ -2871,31 +2900,41 @@ export const MethodDescriptorProto = {
|
|
|
2871
2900
|
|
|
2872
2901
|
fromJSON(object: any): MethodDescriptorProto {
|
|
2873
2902
|
return {
|
|
2874
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
2875
|
-
inputType: isSet(object.inputType) ? String(object.inputType) : "",
|
|
2876
|
-
outputType: isSet(object.outputType) ? String(object.outputType) : "",
|
|
2903
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2904
|
+
inputType: isSet(object.inputType) ? globalThis.String(object.inputType) : "",
|
|
2905
|
+
outputType: isSet(object.outputType) ? globalThis.String(object.outputType) : "",
|
|
2877
2906
|
options: isSet(object.options) ? MethodOptions.fromJSON(object.options) : undefined,
|
|
2878
|
-
clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false,
|
|
2879
|
-
serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false,
|
|
2907
|
+
clientStreaming: isSet(object.clientStreaming) ? globalThis.Boolean(object.clientStreaming) : false,
|
|
2908
|
+
serverStreaming: isSet(object.serverStreaming) ? globalThis.Boolean(object.serverStreaming) : false,
|
|
2880
2909
|
};
|
|
2881
2910
|
},
|
|
2882
2911
|
|
|
2883
2912
|
toJSON(message: MethodDescriptorProto): unknown {
|
|
2884
2913
|
const obj: any = {};
|
|
2885
|
-
message.name !==
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
message.
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
message.
|
|
2914
|
+
if (message.name !== "") {
|
|
2915
|
+
obj.name = message.name;
|
|
2916
|
+
}
|
|
2917
|
+
if (message.inputType !== "") {
|
|
2918
|
+
obj.inputType = message.inputType;
|
|
2919
|
+
}
|
|
2920
|
+
if (message.outputType !== "") {
|
|
2921
|
+
obj.outputType = message.outputType;
|
|
2922
|
+
}
|
|
2923
|
+
if (message.options !== undefined) {
|
|
2924
|
+
obj.options = MethodOptions.toJSON(message.options);
|
|
2925
|
+
}
|
|
2926
|
+
if (message.clientStreaming === true) {
|
|
2927
|
+
obj.clientStreaming = message.clientStreaming;
|
|
2928
|
+
}
|
|
2929
|
+
if (message.serverStreaming === true) {
|
|
2930
|
+
obj.serverStreaming = message.serverStreaming;
|
|
2931
|
+
}
|
|
2892
2932
|
return obj;
|
|
2893
2933
|
},
|
|
2894
2934
|
|
|
2895
2935
|
create(base?: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
|
|
2896
2936
|
return MethodDescriptorProto.fromPartial(base ?? {});
|
|
2897
2937
|
},
|
|
2898
|
-
|
|
2899
2938
|
fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
|
|
2900
2939
|
const message = createBaseMethodDescriptorProto();
|
|
2901
2940
|
message.name = object.name ?? "";
|
|
@@ -3169,29 +3208,29 @@ export const FileOptions = {
|
|
|
3169
3208
|
|
|
3170
3209
|
fromJSON(object: any): FileOptions {
|
|
3171
3210
|
return {
|
|
3172
|
-
javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "",
|
|
3173
|
-
javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "",
|
|
3174
|
-
javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false,
|
|
3211
|
+
javaPackage: isSet(object.javaPackage) ? globalThis.String(object.javaPackage) : "",
|
|
3212
|
+
javaOuterClassname: isSet(object.javaOuterClassname) ? globalThis.String(object.javaOuterClassname) : "",
|
|
3213
|
+
javaMultipleFiles: isSet(object.javaMultipleFiles) ? globalThis.Boolean(object.javaMultipleFiles) : false,
|
|
3175
3214
|
javaGenerateEqualsAndHash: isSet(object.javaGenerateEqualsAndHash)
|
|
3176
|
-
? Boolean(object.javaGenerateEqualsAndHash)
|
|
3215
|
+
? globalThis.Boolean(object.javaGenerateEqualsAndHash)
|
|
3177
3216
|
: false,
|
|
3178
|
-
javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false,
|
|
3217
|
+
javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? globalThis.Boolean(object.javaStringCheckUtf8) : false,
|
|
3179
3218
|
optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : 1,
|
|
3180
|
-
goPackage: isSet(object.goPackage) ? String(object.goPackage) : "",
|
|
3181
|
-
ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false,
|
|
3182
|
-
javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false,
|
|
3183
|
-
pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false,
|
|
3184
|
-
phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false,
|
|
3185
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3186
|
-
ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false,
|
|
3187
|
-
objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "",
|
|
3188
|
-
csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "",
|
|
3189
|
-
swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "",
|
|
3190
|
-
phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "",
|
|
3191
|
-
phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "",
|
|
3192
|
-
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "",
|
|
3193
|
-
rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "",
|
|
3194
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3219
|
+
goPackage: isSet(object.goPackage) ? globalThis.String(object.goPackage) : "",
|
|
3220
|
+
ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,
|
|
3221
|
+
javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,
|
|
3222
|
+
pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,
|
|
3223
|
+
phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,
|
|
3224
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3225
|
+
ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : false,
|
|
3226
|
+
objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",
|
|
3227
|
+
csharpNamespace: isSet(object.csharpNamespace) ? globalThis.String(object.csharpNamespace) : "",
|
|
3228
|
+
swiftPrefix: isSet(object.swiftPrefix) ? globalThis.String(object.swiftPrefix) : "",
|
|
3229
|
+
phpClassPrefix: isSet(object.phpClassPrefix) ? globalThis.String(object.phpClassPrefix) : "",
|
|
3230
|
+
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
|
|
3231
|
+
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
|
|
3232
|
+
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
|
|
3233
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3195
3234
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3196
3235
|
: [],
|
|
3197
3236
|
};
|
|
@@ -3199,31 +3238,68 @@ export const FileOptions = {
|
|
|
3199
3238
|
|
|
3200
3239
|
toJSON(message: FileOptions): unknown {
|
|
3201
3240
|
const obj: any = {};
|
|
3202
|
-
message.javaPackage !==
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
message.
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
message.
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
message.
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
if (message.
|
|
3224
|
-
obj.
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3241
|
+
if (message.javaPackage !== "") {
|
|
3242
|
+
obj.javaPackage = message.javaPackage;
|
|
3243
|
+
}
|
|
3244
|
+
if (message.javaOuterClassname !== "") {
|
|
3245
|
+
obj.javaOuterClassname = message.javaOuterClassname;
|
|
3246
|
+
}
|
|
3247
|
+
if (message.javaMultipleFiles === true) {
|
|
3248
|
+
obj.javaMultipleFiles = message.javaMultipleFiles;
|
|
3249
|
+
}
|
|
3250
|
+
if (message.javaGenerateEqualsAndHash === true) {
|
|
3251
|
+
obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash;
|
|
3252
|
+
}
|
|
3253
|
+
if (message.javaStringCheckUtf8 === true) {
|
|
3254
|
+
obj.javaStringCheckUtf8 = message.javaStringCheckUtf8;
|
|
3255
|
+
}
|
|
3256
|
+
if (message.optimizeFor !== 1) {
|
|
3257
|
+
obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor);
|
|
3258
|
+
}
|
|
3259
|
+
if (message.goPackage !== "") {
|
|
3260
|
+
obj.goPackage = message.goPackage;
|
|
3261
|
+
}
|
|
3262
|
+
if (message.ccGenericServices === true) {
|
|
3263
|
+
obj.ccGenericServices = message.ccGenericServices;
|
|
3264
|
+
}
|
|
3265
|
+
if (message.javaGenericServices === true) {
|
|
3266
|
+
obj.javaGenericServices = message.javaGenericServices;
|
|
3267
|
+
}
|
|
3268
|
+
if (message.pyGenericServices === true) {
|
|
3269
|
+
obj.pyGenericServices = message.pyGenericServices;
|
|
3270
|
+
}
|
|
3271
|
+
if (message.phpGenericServices === true) {
|
|
3272
|
+
obj.phpGenericServices = message.phpGenericServices;
|
|
3273
|
+
}
|
|
3274
|
+
if (message.deprecated === true) {
|
|
3275
|
+
obj.deprecated = message.deprecated;
|
|
3276
|
+
}
|
|
3277
|
+
if (message.ccEnableArenas === true) {
|
|
3278
|
+
obj.ccEnableArenas = message.ccEnableArenas;
|
|
3279
|
+
}
|
|
3280
|
+
if (message.objcClassPrefix !== "") {
|
|
3281
|
+
obj.objcClassPrefix = message.objcClassPrefix;
|
|
3282
|
+
}
|
|
3283
|
+
if (message.csharpNamespace !== "") {
|
|
3284
|
+
obj.csharpNamespace = message.csharpNamespace;
|
|
3285
|
+
}
|
|
3286
|
+
if (message.swiftPrefix !== "") {
|
|
3287
|
+
obj.swiftPrefix = message.swiftPrefix;
|
|
3288
|
+
}
|
|
3289
|
+
if (message.phpClassPrefix !== "") {
|
|
3290
|
+
obj.phpClassPrefix = message.phpClassPrefix;
|
|
3291
|
+
}
|
|
3292
|
+
if (message.phpNamespace !== "") {
|
|
3293
|
+
obj.phpNamespace = message.phpNamespace;
|
|
3294
|
+
}
|
|
3295
|
+
if (message.phpMetadataNamespace !== "") {
|
|
3296
|
+
obj.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
3297
|
+
}
|
|
3298
|
+
if (message.rubyPackage !== "") {
|
|
3299
|
+
obj.rubyPackage = message.rubyPackage;
|
|
3300
|
+
}
|
|
3301
|
+
if (message.uninterpretedOption?.length) {
|
|
3302
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3227
3303
|
}
|
|
3228
3304
|
return obj;
|
|
3229
3305
|
},
|
|
@@ -3231,7 +3307,6 @@ export const FileOptions = {
|
|
|
3231
3307
|
create(base?: DeepPartial<FileOptions>): FileOptions {
|
|
3232
3308
|
return FileOptions.fromPartial(base ?? {});
|
|
3233
3309
|
},
|
|
3234
|
-
|
|
3235
3310
|
fromPartial(object: DeepPartial<FileOptions>): FileOptions {
|
|
3236
3311
|
const message = createBaseFileOptions();
|
|
3237
3312
|
message.javaPackage = object.javaPackage ?? "";
|
|
@@ -3353,16 +3428,18 @@ export const MessageOptions = {
|
|
|
3353
3428
|
|
|
3354
3429
|
fromJSON(object: any): MessageOptions {
|
|
3355
3430
|
return {
|
|
3356
|
-
messageSetWireFormat: isSet(object.messageSetWireFormat)
|
|
3431
|
+
messageSetWireFormat: isSet(object.messageSetWireFormat)
|
|
3432
|
+
? globalThis.Boolean(object.messageSetWireFormat)
|
|
3433
|
+
: false,
|
|
3357
3434
|
noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor)
|
|
3358
|
-
? Boolean(object.noStandardDescriptorAccessor)
|
|
3435
|
+
? globalThis.Boolean(object.noStandardDescriptorAccessor)
|
|
3359
3436
|
: false,
|
|
3360
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3361
|
-
mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false,
|
|
3437
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3438
|
+
mapEntry: isSet(object.mapEntry) ? globalThis.Boolean(object.mapEntry) : false,
|
|
3362
3439
|
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
|
3363
|
-
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
3440
|
+
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
3364
3441
|
: false,
|
|
3365
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3442
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3366
3443
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3367
3444
|
: [],
|
|
3368
3445
|
};
|
|
@@ -3370,17 +3447,23 @@ export const MessageOptions = {
|
|
|
3370
3447
|
|
|
3371
3448
|
toJSON(message: MessageOptions): unknown {
|
|
3372
3449
|
const obj: any = {};
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
obj.
|
|
3450
|
+
if (message.messageSetWireFormat === true) {
|
|
3451
|
+
obj.messageSetWireFormat = message.messageSetWireFormat;
|
|
3452
|
+
}
|
|
3453
|
+
if (message.noStandardDescriptorAccessor === true) {
|
|
3454
|
+
obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor;
|
|
3455
|
+
}
|
|
3456
|
+
if (message.deprecated === true) {
|
|
3457
|
+
obj.deprecated = message.deprecated;
|
|
3458
|
+
}
|
|
3459
|
+
if (message.mapEntry === true) {
|
|
3460
|
+
obj.mapEntry = message.mapEntry;
|
|
3461
|
+
}
|
|
3462
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3463
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
3464
|
+
}
|
|
3465
|
+
if (message.uninterpretedOption?.length) {
|
|
3466
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3384
3467
|
}
|
|
3385
3468
|
return obj;
|
|
3386
3469
|
},
|
|
@@ -3388,7 +3471,6 @@ export const MessageOptions = {
|
|
|
3388
3471
|
create(base?: DeepPartial<MessageOptions>): MessageOptions {
|
|
3389
3472
|
return MessageOptions.fromPartial(base ?? {});
|
|
3390
3473
|
},
|
|
3391
|
-
|
|
3392
3474
|
fromPartial(object: DeepPartial<MessageOptions>): MessageOptions {
|
|
3393
3475
|
const message = createBaseMessageOptions();
|
|
3394
3476
|
message.messageSetWireFormat = object.messageSetWireFormat ?? false;
|
|
@@ -3551,16 +3633,16 @@ export const FieldOptions = {
|
|
|
3551
3633
|
fromJSON(object: any): FieldOptions {
|
|
3552
3634
|
return {
|
|
3553
3635
|
ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0,
|
|
3554
|
-
packed: isSet(object.packed) ? Boolean(object.packed) : false,
|
|
3636
|
+
packed: isSet(object.packed) ? globalThis.Boolean(object.packed) : false,
|
|
3555
3637
|
jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0,
|
|
3556
|
-
lazy: isSet(object.lazy) ? Boolean(object.lazy) : false,
|
|
3557
|
-
unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false,
|
|
3558
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3559
|
-
weak: isSet(object.weak) ? Boolean(object.weak) : false,
|
|
3560
|
-
debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false,
|
|
3638
|
+
lazy: isSet(object.lazy) ? globalThis.Boolean(object.lazy) : false,
|
|
3639
|
+
unverifiedLazy: isSet(object.unverifiedLazy) ? globalThis.Boolean(object.unverifiedLazy) : false,
|
|
3640
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3641
|
+
weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,
|
|
3642
|
+
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
|
|
3561
3643
|
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
|
|
3562
3644
|
target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
|
|
3563
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3645
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3564
3646
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3565
3647
|
: [],
|
|
3566
3648
|
};
|
|
@@ -3568,20 +3650,38 @@ export const FieldOptions = {
|
|
|
3568
3650
|
|
|
3569
3651
|
toJSON(message: FieldOptions): unknown {
|
|
3570
3652
|
const obj: any = {};
|
|
3571
|
-
message.ctype !==
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
message.
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
obj.
|
|
3653
|
+
if (message.ctype !== 0) {
|
|
3654
|
+
obj.ctype = fieldOptions_CTypeToJSON(message.ctype);
|
|
3655
|
+
}
|
|
3656
|
+
if (message.packed === true) {
|
|
3657
|
+
obj.packed = message.packed;
|
|
3658
|
+
}
|
|
3659
|
+
if (message.jstype !== 0) {
|
|
3660
|
+
obj.jstype = fieldOptions_JSTypeToJSON(message.jstype);
|
|
3661
|
+
}
|
|
3662
|
+
if (message.lazy === true) {
|
|
3663
|
+
obj.lazy = message.lazy;
|
|
3664
|
+
}
|
|
3665
|
+
if (message.unverifiedLazy === true) {
|
|
3666
|
+
obj.unverifiedLazy = message.unverifiedLazy;
|
|
3667
|
+
}
|
|
3668
|
+
if (message.deprecated === true) {
|
|
3669
|
+
obj.deprecated = message.deprecated;
|
|
3670
|
+
}
|
|
3671
|
+
if (message.weak === true) {
|
|
3672
|
+
obj.weak = message.weak;
|
|
3673
|
+
}
|
|
3674
|
+
if (message.debugRedact === true) {
|
|
3675
|
+
obj.debugRedact = message.debugRedact;
|
|
3676
|
+
}
|
|
3677
|
+
if (message.retention !== 0) {
|
|
3678
|
+
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
|
|
3679
|
+
}
|
|
3680
|
+
if (message.target !== 0) {
|
|
3681
|
+
obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
|
|
3682
|
+
}
|
|
3683
|
+
if (message.uninterpretedOption?.length) {
|
|
3684
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3585
3685
|
}
|
|
3586
3686
|
return obj;
|
|
3587
3687
|
},
|
|
@@ -3589,7 +3689,6 @@ export const FieldOptions = {
|
|
|
3589
3689
|
create(base?: DeepPartial<FieldOptions>): FieldOptions {
|
|
3590
3690
|
return FieldOptions.fromPartial(base ?? {});
|
|
3591
3691
|
},
|
|
3592
|
-
|
|
3593
3692
|
fromPartial(object: DeepPartial<FieldOptions>): FieldOptions {
|
|
3594
3693
|
const message = createBaseFieldOptions();
|
|
3595
3694
|
message.ctype = object.ctype ?? 0;
|
|
@@ -3644,7 +3743,7 @@ export const OneofOptions = {
|
|
|
3644
3743
|
|
|
3645
3744
|
fromJSON(object: any): OneofOptions {
|
|
3646
3745
|
return {
|
|
3647
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3746
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3648
3747
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3649
3748
|
: [],
|
|
3650
3749
|
};
|
|
@@ -3652,10 +3751,8 @@ export const OneofOptions = {
|
|
|
3652
3751
|
|
|
3653
3752
|
toJSON(message: OneofOptions): unknown {
|
|
3654
3753
|
const obj: any = {};
|
|
3655
|
-
if (message.uninterpretedOption) {
|
|
3656
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
3657
|
-
} else {
|
|
3658
|
-
obj.uninterpretedOption = [];
|
|
3754
|
+
if (message.uninterpretedOption?.length) {
|
|
3755
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3659
3756
|
}
|
|
3660
3757
|
return obj;
|
|
3661
3758
|
},
|
|
@@ -3663,7 +3760,6 @@ export const OneofOptions = {
|
|
|
3663
3760
|
create(base?: DeepPartial<OneofOptions>): OneofOptions {
|
|
3664
3761
|
return OneofOptions.fromPartial(base ?? {});
|
|
3665
3762
|
},
|
|
3666
|
-
|
|
3667
3763
|
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
|
|
3668
3764
|
const message = createBaseOneofOptions();
|
|
3669
3765
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
|
@@ -3738,12 +3834,12 @@ export const EnumOptions = {
|
|
|
3738
3834
|
|
|
3739
3835
|
fromJSON(object: any): EnumOptions {
|
|
3740
3836
|
return {
|
|
3741
|
-
allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false,
|
|
3742
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3837
|
+
allowAlias: isSet(object.allowAlias) ? globalThis.Boolean(object.allowAlias) : false,
|
|
3838
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3743
3839
|
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
|
3744
|
-
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
3840
|
+
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
3745
3841
|
: false,
|
|
3746
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3842
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3747
3843
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3748
3844
|
: [],
|
|
3749
3845
|
};
|
|
@@ -3751,14 +3847,17 @@ export const EnumOptions = {
|
|
|
3751
3847
|
|
|
3752
3848
|
toJSON(message: EnumOptions): unknown {
|
|
3753
3849
|
const obj: any = {};
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
obj.
|
|
3850
|
+
if (message.allowAlias === true) {
|
|
3851
|
+
obj.allowAlias = message.allowAlias;
|
|
3852
|
+
}
|
|
3853
|
+
if (message.deprecated === true) {
|
|
3854
|
+
obj.deprecated = message.deprecated;
|
|
3855
|
+
}
|
|
3856
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3857
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
3858
|
+
}
|
|
3859
|
+
if (message.uninterpretedOption?.length) {
|
|
3860
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3762
3861
|
}
|
|
3763
3862
|
return obj;
|
|
3764
3863
|
},
|
|
@@ -3766,7 +3865,6 @@ export const EnumOptions = {
|
|
|
3766
3865
|
create(base?: DeepPartial<EnumOptions>): EnumOptions {
|
|
3767
3866
|
return EnumOptions.fromPartial(base ?? {});
|
|
3768
3867
|
},
|
|
3769
|
-
|
|
3770
3868
|
fromPartial(object: DeepPartial<EnumOptions>): EnumOptions {
|
|
3771
3869
|
const message = createBaseEnumOptions();
|
|
3772
3870
|
message.allowAlias = object.allowAlias ?? false;
|
|
@@ -3824,8 +3922,8 @@ export const EnumValueOptions = {
|
|
|
3824
3922
|
|
|
3825
3923
|
fromJSON(object: any): EnumValueOptions {
|
|
3826
3924
|
return {
|
|
3827
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3828
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
3925
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3926
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3829
3927
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3830
3928
|
: [],
|
|
3831
3929
|
};
|
|
@@ -3833,11 +3931,11 @@ export const EnumValueOptions = {
|
|
|
3833
3931
|
|
|
3834
3932
|
toJSON(message: EnumValueOptions): unknown {
|
|
3835
3933
|
const obj: any = {};
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
obj.uninterpretedOption =
|
|
3934
|
+
if (message.deprecated === true) {
|
|
3935
|
+
obj.deprecated = message.deprecated;
|
|
3936
|
+
}
|
|
3937
|
+
if (message.uninterpretedOption?.length) {
|
|
3938
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3841
3939
|
}
|
|
3842
3940
|
return obj;
|
|
3843
3941
|
},
|
|
@@ -3845,7 +3943,6 @@ export const EnumValueOptions = {
|
|
|
3845
3943
|
create(base?: DeepPartial<EnumValueOptions>): EnumValueOptions {
|
|
3846
3944
|
return EnumValueOptions.fromPartial(base ?? {});
|
|
3847
3945
|
},
|
|
3848
|
-
|
|
3849
3946
|
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
|
|
3850
3947
|
const message = createBaseEnumValueOptions();
|
|
3851
3948
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -3901,8 +3998,8 @@ export const ServiceOptions = {
|
|
|
3901
3998
|
|
|
3902
3999
|
fromJSON(object: any): ServiceOptions {
|
|
3903
4000
|
return {
|
|
3904
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3905
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
4001
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
4002
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3906
4003
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3907
4004
|
: [],
|
|
3908
4005
|
};
|
|
@@ -3910,11 +4007,11 @@ export const ServiceOptions = {
|
|
|
3910
4007
|
|
|
3911
4008
|
toJSON(message: ServiceOptions): unknown {
|
|
3912
4009
|
const obj: any = {};
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
obj.uninterpretedOption =
|
|
4010
|
+
if (message.deprecated === true) {
|
|
4011
|
+
obj.deprecated = message.deprecated;
|
|
4012
|
+
}
|
|
4013
|
+
if (message.uninterpretedOption?.length) {
|
|
4014
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3918
4015
|
}
|
|
3919
4016
|
return obj;
|
|
3920
4017
|
},
|
|
@@ -3922,7 +4019,6 @@ export const ServiceOptions = {
|
|
|
3922
4019
|
create(base?: DeepPartial<ServiceOptions>): ServiceOptions {
|
|
3923
4020
|
return ServiceOptions.fromPartial(base ?? {});
|
|
3924
4021
|
},
|
|
3925
|
-
|
|
3926
4022
|
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
|
|
3927
4023
|
const message = createBaseServiceOptions();
|
|
3928
4024
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -3988,11 +4084,11 @@ export const MethodOptions = {
|
|
|
3988
4084
|
|
|
3989
4085
|
fromJSON(object: any): MethodOptions {
|
|
3990
4086
|
return {
|
|
3991
|
-
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
4087
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3992
4088
|
idempotencyLevel: isSet(object.idempotencyLevel)
|
|
3993
4089
|
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
|
|
3994
4090
|
: 0,
|
|
3995
|
-
uninterpretedOption: Array.isArray(object?.uninterpretedOption)
|
|
4091
|
+
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
|
3996
4092
|
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
|
|
3997
4093
|
: [],
|
|
3998
4094
|
};
|
|
@@ -4000,13 +4096,14 @@ export const MethodOptions = {
|
|
|
4000
4096
|
|
|
4001
4097
|
toJSON(message: MethodOptions): unknown {
|
|
4002
4098
|
const obj: any = {};
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
if (message.
|
|
4007
|
-
obj.
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4099
|
+
if (message.deprecated === true) {
|
|
4100
|
+
obj.deprecated = message.deprecated;
|
|
4101
|
+
}
|
|
4102
|
+
if (message.idempotencyLevel !== 0) {
|
|
4103
|
+
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
|
|
4104
|
+
}
|
|
4105
|
+
if (message.uninterpretedOption?.length) {
|
|
4106
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
4010
4107
|
}
|
|
4011
4108
|
return obj;
|
|
4012
4109
|
},
|
|
@@ -4014,7 +4111,6 @@ export const MethodOptions = {
|
|
|
4014
4111
|
create(base?: DeepPartial<MethodOptions>): MethodOptions {
|
|
4015
4112
|
return MethodOptions.fromPartial(base ?? {});
|
|
4016
4113
|
},
|
|
4017
|
-
|
|
4018
4114
|
fromPartial(object: DeepPartial<MethodOptions>): MethodOptions {
|
|
4019
4115
|
const message = createBaseMethodOptions();
|
|
4020
4116
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -4031,7 +4127,7 @@ function createBaseUninterpretedOption(): UninterpretedOption {
|
|
|
4031
4127
|
positiveIntValue: 0,
|
|
4032
4128
|
negativeIntValue: 0,
|
|
4033
4129
|
doubleValue: 0,
|
|
4034
|
-
stringValue: new Uint8Array(),
|
|
4130
|
+
stringValue: new Uint8Array(0),
|
|
4035
4131
|
aggregateValue: "",
|
|
4036
4132
|
};
|
|
4037
4133
|
}
|
|
@@ -4129,37 +4225,47 @@ export const UninterpretedOption = {
|
|
|
4129
4225
|
|
|
4130
4226
|
fromJSON(object: any): UninterpretedOption {
|
|
4131
4227
|
return {
|
|
4132
|
-
name: Array.isArray(object?.name)
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4228
|
+
name: globalThis.Array.isArray(object?.name)
|
|
4229
|
+
? object.name.map((e: any) => UninterpretedOption_NamePart.fromJSON(e))
|
|
4230
|
+
: [],
|
|
4231
|
+
identifierValue: isSet(object.identifierValue) ? globalThis.String(object.identifierValue) : "",
|
|
4232
|
+
positiveIntValue: isSet(object.positiveIntValue) ? globalThis.Number(object.positiveIntValue) : 0,
|
|
4233
|
+
negativeIntValue: isSet(object.negativeIntValue) ? globalThis.Number(object.negativeIntValue) : 0,
|
|
4234
|
+
doubleValue: isSet(object.doubleValue) ? globalThis.Number(object.doubleValue) : 0,
|
|
4235
|
+
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(0),
|
|
4236
|
+
aggregateValue: isSet(object.aggregateValue) ? globalThis.String(object.aggregateValue) : "",
|
|
4139
4237
|
};
|
|
4140
4238
|
},
|
|
4141
4239
|
|
|
4142
4240
|
toJSON(message: UninterpretedOption): unknown {
|
|
4143
4241
|
const obj: any = {};
|
|
4144
|
-
if (message.name) {
|
|
4145
|
-
obj.name = message.name.map((e) =>
|
|
4146
|
-
}
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
message.positiveIntValue !==
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
message.
|
|
4154
|
-
|
|
4155
|
-
|
|
4242
|
+
if (message.name?.length) {
|
|
4243
|
+
obj.name = message.name.map((e) => UninterpretedOption_NamePart.toJSON(e));
|
|
4244
|
+
}
|
|
4245
|
+
if (message.identifierValue !== "") {
|
|
4246
|
+
obj.identifierValue = message.identifierValue;
|
|
4247
|
+
}
|
|
4248
|
+
if (message.positiveIntValue !== 0) {
|
|
4249
|
+
obj.positiveIntValue = Math.round(message.positiveIntValue);
|
|
4250
|
+
}
|
|
4251
|
+
if (message.negativeIntValue !== 0) {
|
|
4252
|
+
obj.negativeIntValue = Math.round(message.negativeIntValue);
|
|
4253
|
+
}
|
|
4254
|
+
if (message.doubleValue !== 0) {
|
|
4255
|
+
obj.doubleValue = message.doubleValue;
|
|
4256
|
+
}
|
|
4257
|
+
if (message.stringValue.length !== 0) {
|
|
4258
|
+
obj.stringValue = base64FromBytes(message.stringValue);
|
|
4259
|
+
}
|
|
4260
|
+
if (message.aggregateValue !== "") {
|
|
4261
|
+
obj.aggregateValue = message.aggregateValue;
|
|
4262
|
+
}
|
|
4156
4263
|
return obj;
|
|
4157
4264
|
},
|
|
4158
4265
|
|
|
4159
4266
|
create(base?: DeepPartial<UninterpretedOption>): UninterpretedOption {
|
|
4160
4267
|
return UninterpretedOption.fromPartial(base ?? {});
|
|
4161
4268
|
},
|
|
4162
|
-
|
|
4163
4269
|
fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption {
|
|
4164
4270
|
const message = createBaseUninterpretedOption();
|
|
4165
4271
|
message.name = object.name?.map((e) => UninterpretedOption_NamePart.fromPartial(e)) || [];
|
|
@@ -4167,7 +4273,7 @@ export const UninterpretedOption = {
|
|
|
4167
4273
|
message.positiveIntValue = object.positiveIntValue ?? 0;
|
|
4168
4274
|
message.negativeIntValue = object.negativeIntValue ?? 0;
|
|
4169
4275
|
message.doubleValue = object.doubleValue ?? 0;
|
|
4170
|
-
message.stringValue = object.stringValue ?? new Uint8Array();
|
|
4276
|
+
message.stringValue = object.stringValue ?? new Uint8Array(0);
|
|
4171
4277
|
message.aggregateValue = object.aggregateValue ?? "";
|
|
4172
4278
|
return message;
|
|
4173
4279
|
},
|
|
@@ -4220,22 +4326,25 @@ export const UninterpretedOption_NamePart = {
|
|
|
4220
4326
|
|
|
4221
4327
|
fromJSON(object: any): UninterpretedOption_NamePart {
|
|
4222
4328
|
return {
|
|
4223
|
-
namePart: isSet(object.namePart) ? String(object.namePart) : "",
|
|
4224
|
-
isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false,
|
|
4329
|
+
namePart: isSet(object.namePart) ? globalThis.String(object.namePart) : "",
|
|
4330
|
+
isExtension: isSet(object.isExtension) ? globalThis.Boolean(object.isExtension) : false,
|
|
4225
4331
|
};
|
|
4226
4332
|
},
|
|
4227
4333
|
|
|
4228
4334
|
toJSON(message: UninterpretedOption_NamePart): unknown {
|
|
4229
4335
|
const obj: any = {};
|
|
4230
|
-
message.namePart !==
|
|
4231
|
-
|
|
4336
|
+
if (message.namePart !== "") {
|
|
4337
|
+
obj.namePart = message.namePart;
|
|
4338
|
+
}
|
|
4339
|
+
if (message.isExtension === true) {
|
|
4340
|
+
obj.isExtension = message.isExtension;
|
|
4341
|
+
}
|
|
4232
4342
|
return obj;
|
|
4233
4343
|
},
|
|
4234
4344
|
|
|
4235
4345
|
create(base?: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
|
|
4236
4346
|
return UninterpretedOption_NamePart.fromPartial(base ?? {});
|
|
4237
4347
|
},
|
|
4238
|
-
|
|
4239
4348
|
fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
|
|
4240
4349
|
const message = createBaseUninterpretedOption_NamePart();
|
|
4241
4350
|
message.namePart = object.namePart ?? "";
|
|
@@ -4281,7 +4390,7 @@ export const SourceCodeInfo = {
|
|
|
4281
4390
|
|
|
4282
4391
|
fromJSON(object: any): SourceCodeInfo {
|
|
4283
4392
|
return {
|
|
4284
|
-
location: Array.isArray(object?.location)
|
|
4393
|
+
location: globalThis.Array.isArray(object?.location)
|
|
4285
4394
|
? object.location.map((e: any) => SourceCodeInfo_Location.fromJSON(e))
|
|
4286
4395
|
: [],
|
|
4287
4396
|
};
|
|
@@ -4289,10 +4398,8 @@ export const SourceCodeInfo = {
|
|
|
4289
4398
|
|
|
4290
4399
|
toJSON(message: SourceCodeInfo): unknown {
|
|
4291
4400
|
const obj: any = {};
|
|
4292
|
-
if (message.location) {
|
|
4293
|
-
obj.location = message.location.map((e) =>
|
|
4294
|
-
} else {
|
|
4295
|
-
obj.location = [];
|
|
4401
|
+
if (message.location?.length) {
|
|
4402
|
+
obj.location = message.location.map((e) => SourceCodeInfo_Location.toJSON(e));
|
|
4296
4403
|
}
|
|
4297
4404
|
return obj;
|
|
4298
4405
|
},
|
|
@@ -4300,7 +4407,6 @@ export const SourceCodeInfo = {
|
|
|
4300
4407
|
create(base?: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
|
|
4301
4408
|
return SourceCodeInfo.fromPartial(base ?? {});
|
|
4302
4409
|
},
|
|
4303
|
-
|
|
4304
4410
|
fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
|
|
4305
4411
|
const message = createBaseSourceCodeInfo();
|
|
4306
4412
|
message.location = object.location?.map((e) => SourceCodeInfo_Location.fromPartial(e)) || [];
|
|
@@ -4409,34 +4515,32 @@ export const SourceCodeInfo_Location = {
|
|
|
4409
4515
|
|
|
4410
4516
|
fromJSON(object: any): SourceCodeInfo_Location {
|
|
4411
4517
|
return {
|
|
4412
|
-
path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [],
|
|
4413
|
-
span: Array.isArray(object?.span) ? object.span.map((e: any) => Number(e)) : [],
|
|
4414
|
-
leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "",
|
|
4415
|
-
trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "",
|
|
4416
|
-
leadingDetachedComments: Array.isArray(object?.leadingDetachedComments)
|
|
4417
|
-
? object.leadingDetachedComments.map((e: any) => String(e))
|
|
4518
|
+
path: globalThis.Array.isArray(object?.path) ? object.path.map((e: any) => globalThis.Number(e)) : [],
|
|
4519
|
+
span: globalThis.Array.isArray(object?.span) ? object.span.map((e: any) => globalThis.Number(e)) : [],
|
|
4520
|
+
leadingComments: isSet(object.leadingComments) ? globalThis.String(object.leadingComments) : "",
|
|
4521
|
+
trailingComments: isSet(object.trailingComments) ? globalThis.String(object.trailingComments) : "",
|
|
4522
|
+
leadingDetachedComments: globalThis.Array.isArray(object?.leadingDetachedComments)
|
|
4523
|
+
? object.leadingDetachedComments.map((e: any) => globalThis.String(e))
|
|
4418
4524
|
: [],
|
|
4419
4525
|
};
|
|
4420
4526
|
},
|
|
4421
4527
|
|
|
4422
4528
|
toJSON(message: SourceCodeInfo_Location): unknown {
|
|
4423
4529
|
const obj: any = {};
|
|
4424
|
-
if (message.path) {
|
|
4530
|
+
if (message.path?.length) {
|
|
4425
4531
|
obj.path = message.path.map((e) => Math.round(e));
|
|
4426
|
-
} else {
|
|
4427
|
-
obj.path = [];
|
|
4428
4532
|
}
|
|
4429
|
-
if (message.span) {
|
|
4533
|
+
if (message.span?.length) {
|
|
4430
4534
|
obj.span = message.span.map((e) => Math.round(e));
|
|
4431
|
-
} else {
|
|
4432
|
-
obj.span = [];
|
|
4433
4535
|
}
|
|
4434
|
-
message.leadingComments !==
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4536
|
+
if (message.leadingComments !== "") {
|
|
4537
|
+
obj.leadingComments = message.leadingComments;
|
|
4538
|
+
}
|
|
4539
|
+
if (message.trailingComments !== "") {
|
|
4540
|
+
obj.trailingComments = message.trailingComments;
|
|
4541
|
+
}
|
|
4542
|
+
if (message.leadingDetachedComments?.length) {
|
|
4543
|
+
obj.leadingDetachedComments = message.leadingDetachedComments;
|
|
4440
4544
|
}
|
|
4441
4545
|
return obj;
|
|
4442
4546
|
},
|
|
@@ -4444,7 +4548,6 @@ export const SourceCodeInfo_Location = {
|
|
|
4444
4548
|
create(base?: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
|
|
4445
4549
|
return SourceCodeInfo_Location.fromPartial(base ?? {});
|
|
4446
4550
|
},
|
|
4447
|
-
|
|
4448
4551
|
fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
|
|
4449
4552
|
const message = createBaseSourceCodeInfo_Location();
|
|
4450
4553
|
message.path = object.path?.map((e) => e) || [];
|
|
@@ -4493,7 +4596,7 @@ export const GeneratedCodeInfo = {
|
|
|
4493
4596
|
|
|
4494
4597
|
fromJSON(object: any): GeneratedCodeInfo {
|
|
4495
4598
|
return {
|
|
4496
|
-
annotation: Array.isArray(object?.annotation)
|
|
4599
|
+
annotation: globalThis.Array.isArray(object?.annotation)
|
|
4497
4600
|
? object.annotation.map((e: any) => GeneratedCodeInfo_Annotation.fromJSON(e))
|
|
4498
4601
|
: [],
|
|
4499
4602
|
};
|
|
@@ -4501,10 +4604,8 @@ export const GeneratedCodeInfo = {
|
|
|
4501
4604
|
|
|
4502
4605
|
toJSON(message: GeneratedCodeInfo): unknown {
|
|
4503
4606
|
const obj: any = {};
|
|
4504
|
-
if (message.annotation) {
|
|
4505
|
-
obj.annotation = message.annotation.map((e) =>
|
|
4506
|
-
} else {
|
|
4507
|
-
obj.annotation = [];
|
|
4607
|
+
if (message.annotation?.length) {
|
|
4608
|
+
obj.annotation = message.annotation.map((e) => GeneratedCodeInfo_Annotation.toJSON(e));
|
|
4508
4609
|
}
|
|
4509
4610
|
return obj;
|
|
4510
4611
|
},
|
|
@@ -4512,7 +4613,6 @@ export const GeneratedCodeInfo = {
|
|
|
4512
4613
|
create(base?: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
|
|
4513
4614
|
return GeneratedCodeInfo.fromPartial(base ?? {});
|
|
4514
4615
|
},
|
|
4515
|
-
|
|
4516
4616
|
fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
|
|
4517
4617
|
const message = createBaseGeneratedCodeInfo();
|
|
4518
4618
|
message.annotation = object.annotation?.map((e) => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
|
|
@@ -4609,32 +4709,37 @@ export const GeneratedCodeInfo_Annotation = {
|
|
|
4609
4709
|
|
|
4610
4710
|
fromJSON(object: any): GeneratedCodeInfo_Annotation {
|
|
4611
4711
|
return {
|
|
4612
|
-
path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [],
|
|
4613
|
-
sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "",
|
|
4614
|
-
begin: isSet(object.begin) ? Number(object.begin) : 0,
|
|
4615
|
-
end: isSet(object.end) ? Number(object.end) : 0,
|
|
4712
|
+
path: globalThis.Array.isArray(object?.path) ? object.path.map((e: any) => globalThis.Number(e)) : [],
|
|
4713
|
+
sourceFile: isSet(object.sourceFile) ? globalThis.String(object.sourceFile) : "",
|
|
4714
|
+
begin: isSet(object.begin) ? globalThis.Number(object.begin) : 0,
|
|
4715
|
+
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
|
|
4616
4716
|
semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0,
|
|
4617
4717
|
};
|
|
4618
4718
|
},
|
|
4619
4719
|
|
|
4620
4720
|
toJSON(message: GeneratedCodeInfo_Annotation): unknown {
|
|
4621
4721
|
const obj: any = {};
|
|
4622
|
-
if (message.path) {
|
|
4722
|
+
if (message.path?.length) {
|
|
4623
4723
|
obj.path = message.path.map((e) => Math.round(e));
|
|
4624
|
-
} else {
|
|
4625
|
-
obj.path = [];
|
|
4626
4724
|
}
|
|
4627
|
-
message.sourceFile !==
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
message.
|
|
4725
|
+
if (message.sourceFile !== "") {
|
|
4726
|
+
obj.sourceFile = message.sourceFile;
|
|
4727
|
+
}
|
|
4728
|
+
if (message.begin !== 0) {
|
|
4729
|
+
obj.begin = Math.round(message.begin);
|
|
4730
|
+
}
|
|
4731
|
+
if (message.end !== 0) {
|
|
4732
|
+
obj.end = Math.round(message.end);
|
|
4733
|
+
}
|
|
4734
|
+
if (message.semantic !== 0) {
|
|
4735
|
+
obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic);
|
|
4736
|
+
}
|
|
4631
4737
|
return obj;
|
|
4632
4738
|
},
|
|
4633
4739
|
|
|
4634
4740
|
create(base?: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
|
4635
4741
|
return GeneratedCodeInfo_Annotation.fromPartial(base ?? {});
|
|
4636
4742
|
},
|
|
4637
|
-
|
|
4638
4743
|
fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
|
4639
4744
|
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
4640
4745
|
message.path = object.path?.map((e) => e) || [];
|
|
@@ -4646,30 +4751,11 @@ export const GeneratedCodeInfo_Annotation = {
|
|
|
4646
4751
|
},
|
|
4647
4752
|
};
|
|
4648
4753
|
|
|
4649
|
-
declare var self: any | undefined;
|
|
4650
|
-
declare var window: any | undefined;
|
|
4651
|
-
declare var global: any | undefined;
|
|
4652
|
-
var tsProtoGlobalThis: any = (() => {
|
|
4653
|
-
if (typeof globalThis !== "undefined") {
|
|
4654
|
-
return globalThis;
|
|
4655
|
-
}
|
|
4656
|
-
if (typeof self !== "undefined") {
|
|
4657
|
-
return self;
|
|
4658
|
-
}
|
|
4659
|
-
if (typeof window !== "undefined") {
|
|
4660
|
-
return window;
|
|
4661
|
-
}
|
|
4662
|
-
if (typeof global !== "undefined") {
|
|
4663
|
-
return global;
|
|
4664
|
-
}
|
|
4665
|
-
throw "Unable to locate global object";
|
|
4666
|
-
})();
|
|
4667
|
-
|
|
4668
4754
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
4669
|
-
if (
|
|
4670
|
-
return Uint8Array.from(
|
|
4755
|
+
if (globalThis.Buffer) {
|
|
4756
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
4671
4757
|
} else {
|
|
4672
|
-
const bin =
|
|
4758
|
+
const bin = globalThis.atob(b64);
|
|
4673
4759
|
const arr = new Uint8Array(bin.length);
|
|
4674
4760
|
for (let i = 0; i < bin.length; ++i) {
|
|
4675
4761
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -4679,28 +4765,29 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
4679
4765
|
}
|
|
4680
4766
|
|
|
4681
4767
|
function base64FromBytes(arr: Uint8Array): string {
|
|
4682
|
-
if (
|
|
4683
|
-
return
|
|
4768
|
+
if (globalThis.Buffer) {
|
|
4769
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
4684
4770
|
} else {
|
|
4685
4771
|
const bin: string[] = [];
|
|
4686
4772
|
arr.forEach((byte) => {
|
|
4687
|
-
bin.push(String.fromCharCode(byte));
|
|
4773
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
4688
4774
|
});
|
|
4689
|
-
return
|
|
4775
|
+
return globalThis.btoa(bin.join(""));
|
|
4690
4776
|
}
|
|
4691
4777
|
}
|
|
4692
4778
|
|
|
4693
4779
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
4694
4780
|
|
|
4695
4781
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
4696
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
4782
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
4783
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
4697
4784
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
4698
4785
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
4699
4786
|
: Partial<T>;
|
|
4700
4787
|
|
|
4701
4788
|
function longToNumber(long: Long): number {
|
|
4702
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
4703
|
-
throw new
|
|
4789
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
4790
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4704
4791
|
}
|
|
4705
4792
|
return long.toNumber();
|
|
4706
4793
|
}
|