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