@coralogix/rum-cli 1.1.13 → 1.1.14
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/dist/proto-models/com/coralogix/rum/v2/audit_log.js +4 -2
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +40 -20
- package/dist/proto-models/com/coralogix/rum/v2/file.js +14 -9
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +26 -16
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +18 -10
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +35 -15
- package/dist/proto-models/google/protobuf/descriptor.js +366 -273
- package/package.json +2 -2
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +3 -2
- package/proto-models/com/coralogix/rum/v2/chunk.ts +42 -25
- package/proto-models/com/coralogix/rum/v2/file.ts +16 -12
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +25 -17
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +17 -11
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +34 -17
- package/proto-models/google/protobuf/descriptor.ts +381 -300
- package/protoset.bin +0 -0
|
@@ -1367,10 +1367,8 @@ export const FileDescriptorSet = {
|
|
|
1367
1367
|
|
|
1368
1368
|
toJSON(message: FileDescriptorSet): unknown {
|
|
1369
1369
|
const obj: any = {};
|
|
1370
|
-
if (message.file) {
|
|
1371
|
-
obj.file = message.file.map((e) =>
|
|
1372
|
-
} else {
|
|
1373
|
-
obj.file = [];
|
|
1370
|
+
if (message.file?.length) {
|
|
1371
|
+
obj.file = message.file.map((e) => FileDescriptorProto.toJSON(e));
|
|
1374
1372
|
}
|
|
1375
1373
|
return obj;
|
|
1376
1374
|
},
|
|
@@ -1378,7 +1376,6 @@ export const FileDescriptorSet = {
|
|
|
1378
1376
|
create(base?: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
|
|
1379
1377
|
return FileDescriptorSet.fromPartial(base ?? {});
|
|
1380
1378
|
},
|
|
1381
|
-
|
|
1382
1379
|
fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
|
|
1383
1380
|
const message = createBaseFileDescriptorSet();
|
|
1384
1381
|
message.file = object.file?.map((e) => FileDescriptorProto.fromPartial(e)) || [];
|
|
@@ -1605,55 +1602,51 @@ export const FileDescriptorProto = {
|
|
|
1605
1602
|
|
|
1606
1603
|
toJSON(message: FileDescriptorProto): unknown {
|
|
1607
1604
|
const obj: any = {};
|
|
1608
|
-
message.name !==
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1605
|
+
if (message.name !== "") {
|
|
1606
|
+
obj.name = message.name;
|
|
1607
|
+
}
|
|
1608
|
+
if (message.package !== "") {
|
|
1609
|
+
obj.package = message.package;
|
|
1610
|
+
}
|
|
1611
|
+
if (message.dependency?.length) {
|
|
1612
|
+
obj.dependency = message.dependency;
|
|
1613
|
+
}
|
|
1614
|
+
if (message.publicDependency?.length) {
|
|
1616
1615
|
obj.publicDependency = message.publicDependency.map((e) => Math.round(e));
|
|
1617
|
-
} else {
|
|
1618
|
-
obj.publicDependency = [];
|
|
1619
1616
|
}
|
|
1620
|
-
if (message.weakDependency) {
|
|
1617
|
+
if (message.weakDependency?.length) {
|
|
1621
1618
|
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);
|
|
1619
|
+
}
|
|
1620
|
+
if (message.messageType?.length) {
|
|
1621
|
+
obj.messageType = message.messageType.map((e) => DescriptorProto.toJSON(e));
|
|
1622
|
+
}
|
|
1623
|
+
if (message.enumType?.length) {
|
|
1624
|
+
obj.enumType = message.enumType.map((e) => EnumDescriptorProto.toJSON(e));
|
|
1625
|
+
}
|
|
1626
|
+
if (message.service?.length) {
|
|
1627
|
+
obj.service = message.service.map((e) => ServiceDescriptorProto.toJSON(e));
|
|
1628
|
+
}
|
|
1629
|
+
if (message.extension?.length) {
|
|
1630
|
+
obj.extension = message.extension.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1631
|
+
}
|
|
1632
|
+
if (message.options !== undefined) {
|
|
1633
|
+
obj.options = FileOptions.toJSON(message.options);
|
|
1634
|
+
}
|
|
1635
|
+
if (message.sourceCodeInfo !== undefined) {
|
|
1636
|
+
obj.sourceCodeInfo = SourceCodeInfo.toJSON(message.sourceCodeInfo);
|
|
1637
|
+
}
|
|
1638
|
+
if (message.syntax !== "") {
|
|
1639
|
+
obj.syntax = message.syntax;
|
|
1640
|
+
}
|
|
1641
|
+
if (message.edition !== "") {
|
|
1642
|
+
obj.edition = message.edition;
|
|
1643
|
+
}
|
|
1650
1644
|
return obj;
|
|
1651
1645
|
},
|
|
1652
1646
|
|
|
1653
1647
|
create(base?: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
|
|
1654
1648
|
return FileDescriptorProto.fromPartial(base ?? {});
|
|
1655
1649
|
},
|
|
1656
|
-
|
|
1657
1650
|
fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
|
|
1658
1651
|
const message = createBaseFileDescriptorProto();
|
|
1659
1652
|
message.name = object.name ?? "";
|
|
@@ -1840,48 +1833,35 @@ export const DescriptorProto = {
|
|
|
1840
1833
|
|
|
1841
1834
|
toJSON(message: DescriptorProto): unknown {
|
|
1842
1835
|
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 = [];
|
|
1836
|
+
if (message.name !== "") {
|
|
1837
|
+
obj.name = message.name;
|
|
1838
|
+
}
|
|
1839
|
+
if (message.field?.length) {
|
|
1840
|
+
obj.field = message.field.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1841
|
+
}
|
|
1842
|
+
if (message.extension?.length) {
|
|
1843
|
+
obj.extension = message.extension.map((e) => FieldDescriptorProto.toJSON(e));
|
|
1844
|
+
}
|
|
1845
|
+
if (message.nestedType?.length) {
|
|
1846
|
+
obj.nestedType = message.nestedType.map((e) => DescriptorProto.toJSON(e));
|
|
1847
|
+
}
|
|
1848
|
+
if (message.enumType?.length) {
|
|
1849
|
+
obj.enumType = message.enumType.map((e) => EnumDescriptorProto.toJSON(e));
|
|
1850
|
+
}
|
|
1851
|
+
if (message.extensionRange?.length) {
|
|
1852
|
+
obj.extensionRange = message.extensionRange.map((e) => DescriptorProto_ExtensionRange.toJSON(e));
|
|
1853
|
+
}
|
|
1854
|
+
if (message.oneofDecl?.length) {
|
|
1855
|
+
obj.oneofDecl = message.oneofDecl.map((e) => OneofDescriptorProto.toJSON(e));
|
|
1856
|
+
}
|
|
1857
|
+
if (message.options !== undefined) {
|
|
1858
|
+
obj.options = MessageOptions.toJSON(message.options);
|
|
1859
|
+
}
|
|
1860
|
+
if (message.reservedRange?.length) {
|
|
1861
|
+
obj.reservedRange = message.reservedRange.map((e) => DescriptorProto_ReservedRange.toJSON(e));
|
|
1862
|
+
}
|
|
1863
|
+
if (message.reservedName?.length) {
|
|
1864
|
+
obj.reservedName = message.reservedName;
|
|
1885
1865
|
}
|
|
1886
1866
|
return obj;
|
|
1887
1867
|
},
|
|
@@ -1889,7 +1869,6 @@ export const DescriptorProto = {
|
|
|
1889
1869
|
create(base?: DeepPartial<DescriptorProto>): DescriptorProto {
|
|
1890
1870
|
return DescriptorProto.fromPartial(base ?? {});
|
|
1891
1871
|
},
|
|
1892
|
-
|
|
1893
1872
|
fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto {
|
|
1894
1873
|
const message = createBaseDescriptorProto();
|
|
1895
1874
|
message.name = object.name ?? "";
|
|
@@ -1973,17 +1952,21 @@ export const DescriptorProto_ExtensionRange = {
|
|
|
1973
1952
|
|
|
1974
1953
|
toJSON(message: DescriptorProto_ExtensionRange): unknown {
|
|
1975
1954
|
const obj: any = {};
|
|
1976
|
-
message.start !==
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1955
|
+
if (message.start !== 0) {
|
|
1956
|
+
obj.start = Math.round(message.start);
|
|
1957
|
+
}
|
|
1958
|
+
if (message.end !== 0) {
|
|
1959
|
+
obj.end = Math.round(message.end);
|
|
1960
|
+
}
|
|
1961
|
+
if (message.options !== undefined) {
|
|
1962
|
+
obj.options = ExtensionRangeOptions.toJSON(message.options);
|
|
1963
|
+
}
|
|
1980
1964
|
return obj;
|
|
1981
1965
|
},
|
|
1982
1966
|
|
|
1983
1967
|
create(base?: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
|
|
1984
1968
|
return DescriptorProto_ExtensionRange.fromPartial(base ?? {});
|
|
1985
1969
|
},
|
|
1986
|
-
|
|
1987
1970
|
fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
|
|
1988
1971
|
const message = createBaseDescriptorProto_ExtensionRange();
|
|
1989
1972
|
message.start = object.start ?? 0;
|
|
@@ -2046,15 +2029,18 @@ export const DescriptorProto_ReservedRange = {
|
|
|
2046
2029
|
|
|
2047
2030
|
toJSON(message: DescriptorProto_ReservedRange): unknown {
|
|
2048
2031
|
const obj: any = {};
|
|
2049
|
-
message.start !==
|
|
2050
|
-
|
|
2032
|
+
if (message.start !== 0) {
|
|
2033
|
+
obj.start = Math.round(message.start);
|
|
2034
|
+
}
|
|
2035
|
+
if (message.end !== 0) {
|
|
2036
|
+
obj.end = Math.round(message.end);
|
|
2037
|
+
}
|
|
2051
2038
|
return obj;
|
|
2052
2039
|
},
|
|
2053
2040
|
|
|
2054
2041
|
create(base?: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
|
|
2055
2042
|
return DescriptorProto_ReservedRange.fromPartial(base ?? {});
|
|
2056
2043
|
},
|
|
2057
|
-
|
|
2058
2044
|
fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
|
|
2059
2045
|
const message = createBaseDescriptorProto_ReservedRange();
|
|
2060
2046
|
message.start = object.start ?? 0;
|
|
@@ -2108,10 +2094,8 @@ export const ExtensionRangeOptions = {
|
|
|
2108
2094
|
|
|
2109
2095
|
toJSON(message: ExtensionRangeOptions): unknown {
|
|
2110
2096
|
const obj: any = {};
|
|
2111
|
-
if (message.uninterpretedOption) {
|
|
2112
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
2113
|
-
} else {
|
|
2114
|
-
obj.uninterpretedOption = [];
|
|
2097
|
+
if (message.uninterpretedOption?.length) {
|
|
2098
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
2115
2099
|
}
|
|
2116
2100
|
return obj;
|
|
2117
2101
|
},
|
|
@@ -2119,7 +2103,6 @@ export const ExtensionRangeOptions = {
|
|
|
2119
2103
|
create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
2120
2104
|
return ExtensionRangeOptions.fromPartial(base ?? {});
|
|
2121
2105
|
},
|
|
2122
|
-
|
|
2123
2106
|
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
2124
2107
|
const message = createBaseExtensionRangeOptions();
|
|
2125
2108
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
|
@@ -2292,24 +2275,45 @@ export const FieldDescriptorProto = {
|
|
|
2292
2275
|
|
|
2293
2276
|
toJSON(message: FieldDescriptorProto): unknown {
|
|
2294
2277
|
const obj: any = {};
|
|
2295
|
-
message.name !==
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
message.
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
message.
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2278
|
+
if (message.name !== "") {
|
|
2279
|
+
obj.name = message.name;
|
|
2280
|
+
}
|
|
2281
|
+
if (message.number !== 0) {
|
|
2282
|
+
obj.number = Math.round(message.number);
|
|
2283
|
+
}
|
|
2284
|
+
if (message.label !== 1) {
|
|
2285
|
+
obj.label = fieldDescriptorProto_LabelToJSON(message.label);
|
|
2286
|
+
}
|
|
2287
|
+
if (message.type !== 1) {
|
|
2288
|
+
obj.type = fieldDescriptorProto_TypeToJSON(message.type);
|
|
2289
|
+
}
|
|
2290
|
+
if (message.typeName !== "") {
|
|
2291
|
+
obj.typeName = message.typeName;
|
|
2292
|
+
}
|
|
2293
|
+
if (message.extendee !== "") {
|
|
2294
|
+
obj.extendee = message.extendee;
|
|
2295
|
+
}
|
|
2296
|
+
if (message.defaultValue !== "") {
|
|
2297
|
+
obj.defaultValue = message.defaultValue;
|
|
2298
|
+
}
|
|
2299
|
+
if (message.oneofIndex !== 0) {
|
|
2300
|
+
obj.oneofIndex = Math.round(message.oneofIndex);
|
|
2301
|
+
}
|
|
2302
|
+
if (message.jsonName !== "") {
|
|
2303
|
+
obj.jsonName = message.jsonName;
|
|
2304
|
+
}
|
|
2305
|
+
if (message.options !== undefined) {
|
|
2306
|
+
obj.options = FieldOptions.toJSON(message.options);
|
|
2307
|
+
}
|
|
2308
|
+
if (message.proto3Optional === true) {
|
|
2309
|
+
obj.proto3Optional = message.proto3Optional;
|
|
2310
|
+
}
|
|
2306
2311
|
return obj;
|
|
2307
2312
|
},
|
|
2308
2313
|
|
|
2309
2314
|
create(base?: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
|
|
2310
2315
|
return FieldDescriptorProto.fromPartial(base ?? {});
|
|
2311
2316
|
},
|
|
2312
|
-
|
|
2313
2317
|
fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
|
|
2314
2318
|
const message = createBaseFieldDescriptorProto();
|
|
2315
2319
|
message.name = object.name ?? "";
|
|
@@ -2383,15 +2387,18 @@ export const OneofDescriptorProto = {
|
|
|
2383
2387
|
|
|
2384
2388
|
toJSON(message: OneofDescriptorProto): unknown {
|
|
2385
2389
|
const obj: any = {};
|
|
2386
|
-
message.name !==
|
|
2387
|
-
|
|
2390
|
+
if (message.name !== "") {
|
|
2391
|
+
obj.name = message.name;
|
|
2392
|
+
}
|
|
2393
|
+
if (message.options !== undefined) {
|
|
2394
|
+
obj.options = OneofOptions.toJSON(message.options);
|
|
2395
|
+
}
|
|
2388
2396
|
return obj;
|
|
2389
2397
|
},
|
|
2390
2398
|
|
|
2391
2399
|
create(base?: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
|
|
2392
2400
|
return OneofDescriptorProto.fromPartial(base ?? {});
|
|
2393
2401
|
},
|
|
2394
|
-
|
|
2395
2402
|
fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
|
|
2396
2403
|
const message = createBaseOneofDescriptorProto();
|
|
2397
2404
|
message.name = object.name ?? "";
|
|
@@ -2491,24 +2498,20 @@ export const EnumDescriptorProto = {
|
|
|
2491
2498
|
|
|
2492
2499
|
toJSON(message: EnumDescriptorProto): unknown {
|
|
2493
2500
|
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 = [];
|
|
2501
|
+
if (message.name !== "") {
|
|
2502
|
+
obj.name = message.name;
|
|
2507
2503
|
}
|
|
2508
|
-
if (message.
|
|
2509
|
-
obj.
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2504
|
+
if (message.value?.length) {
|
|
2505
|
+
obj.value = message.value.map((e) => EnumValueDescriptorProto.toJSON(e));
|
|
2506
|
+
}
|
|
2507
|
+
if (message.options !== undefined) {
|
|
2508
|
+
obj.options = EnumOptions.toJSON(message.options);
|
|
2509
|
+
}
|
|
2510
|
+
if (message.reservedRange?.length) {
|
|
2511
|
+
obj.reservedRange = message.reservedRange.map((e) => EnumDescriptorProto_EnumReservedRange.toJSON(e));
|
|
2512
|
+
}
|
|
2513
|
+
if (message.reservedName?.length) {
|
|
2514
|
+
obj.reservedName = message.reservedName;
|
|
2512
2515
|
}
|
|
2513
2516
|
return obj;
|
|
2514
2517
|
},
|
|
@@ -2516,7 +2519,6 @@ export const EnumDescriptorProto = {
|
|
|
2516
2519
|
create(base?: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
|
|
2517
2520
|
return EnumDescriptorProto.fromPartial(base ?? {});
|
|
2518
2521
|
},
|
|
2519
|
-
|
|
2520
2522
|
fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
|
|
2521
2523
|
const message = createBaseEnumDescriptorProto();
|
|
2522
2524
|
message.name = object.name ?? "";
|
|
@@ -2582,15 +2584,18 @@ export const EnumDescriptorProto_EnumReservedRange = {
|
|
|
2582
2584
|
|
|
2583
2585
|
toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown {
|
|
2584
2586
|
const obj: any = {};
|
|
2585
|
-
message.start !==
|
|
2586
|
-
|
|
2587
|
+
if (message.start !== 0) {
|
|
2588
|
+
obj.start = Math.round(message.start);
|
|
2589
|
+
}
|
|
2590
|
+
if (message.end !== 0) {
|
|
2591
|
+
obj.end = Math.round(message.end);
|
|
2592
|
+
}
|
|
2587
2593
|
return obj;
|
|
2588
2594
|
},
|
|
2589
2595
|
|
|
2590
2596
|
create(base?: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
|
|
2591
2597
|
return EnumDescriptorProto_EnumReservedRange.fromPartial(base ?? {});
|
|
2592
2598
|
},
|
|
2593
|
-
|
|
2594
2599
|
fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
|
|
2595
2600
|
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
2596
2601
|
message.start = object.start ?? 0;
|
|
@@ -2664,17 +2669,21 @@ export const EnumValueDescriptorProto = {
|
|
|
2664
2669
|
|
|
2665
2670
|
toJSON(message: EnumValueDescriptorProto): unknown {
|
|
2666
2671
|
const obj: any = {};
|
|
2667
|
-
message.name !==
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2672
|
+
if (message.name !== "") {
|
|
2673
|
+
obj.name = message.name;
|
|
2674
|
+
}
|
|
2675
|
+
if (message.number !== 0) {
|
|
2676
|
+
obj.number = Math.round(message.number);
|
|
2677
|
+
}
|
|
2678
|
+
if (message.options !== undefined) {
|
|
2679
|
+
obj.options = EnumValueOptions.toJSON(message.options);
|
|
2680
|
+
}
|
|
2671
2681
|
return obj;
|
|
2672
2682
|
},
|
|
2673
2683
|
|
|
2674
2684
|
create(base?: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
|
|
2675
2685
|
return EnumValueDescriptorProto.fromPartial(base ?? {});
|
|
2676
2686
|
},
|
|
2677
|
-
|
|
2678
2687
|
fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
|
|
2679
2688
|
const message = createBaseEnumValueDescriptorProto();
|
|
2680
2689
|
message.name = object.name ?? "";
|
|
@@ -2751,21 +2760,21 @@ export const ServiceDescriptorProto = {
|
|
|
2751
2760
|
|
|
2752
2761
|
toJSON(message: ServiceDescriptorProto): unknown {
|
|
2753
2762
|
const obj: any = {};
|
|
2754
|
-
message.name !==
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
obj.method =
|
|
2759
|
-
}
|
|
2760
|
-
message.options !== undefined
|
|
2761
|
-
|
|
2763
|
+
if (message.name !== "") {
|
|
2764
|
+
obj.name = message.name;
|
|
2765
|
+
}
|
|
2766
|
+
if (message.method?.length) {
|
|
2767
|
+
obj.method = message.method.map((e) => MethodDescriptorProto.toJSON(e));
|
|
2768
|
+
}
|
|
2769
|
+
if (message.options !== undefined) {
|
|
2770
|
+
obj.options = ServiceOptions.toJSON(message.options);
|
|
2771
|
+
}
|
|
2762
2772
|
return obj;
|
|
2763
2773
|
},
|
|
2764
2774
|
|
|
2765
2775
|
create(base?: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
|
|
2766
2776
|
return ServiceDescriptorProto.fromPartial(base ?? {});
|
|
2767
2777
|
},
|
|
2768
|
-
|
|
2769
2778
|
fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
|
|
2770
2779
|
const message = createBaseServiceDescriptorProto();
|
|
2771
2780
|
message.name = object.name ?? "";
|
|
@@ -2882,20 +2891,30 @@ export const MethodDescriptorProto = {
|
|
|
2882
2891
|
|
|
2883
2892
|
toJSON(message: MethodDescriptorProto): unknown {
|
|
2884
2893
|
const obj: any = {};
|
|
2885
|
-
message.name !==
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
message.
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
message.
|
|
2894
|
+
if (message.name !== "") {
|
|
2895
|
+
obj.name = message.name;
|
|
2896
|
+
}
|
|
2897
|
+
if (message.inputType !== "") {
|
|
2898
|
+
obj.inputType = message.inputType;
|
|
2899
|
+
}
|
|
2900
|
+
if (message.outputType !== "") {
|
|
2901
|
+
obj.outputType = message.outputType;
|
|
2902
|
+
}
|
|
2903
|
+
if (message.options !== undefined) {
|
|
2904
|
+
obj.options = MethodOptions.toJSON(message.options);
|
|
2905
|
+
}
|
|
2906
|
+
if (message.clientStreaming === true) {
|
|
2907
|
+
obj.clientStreaming = message.clientStreaming;
|
|
2908
|
+
}
|
|
2909
|
+
if (message.serverStreaming === true) {
|
|
2910
|
+
obj.serverStreaming = message.serverStreaming;
|
|
2911
|
+
}
|
|
2892
2912
|
return obj;
|
|
2893
2913
|
},
|
|
2894
2914
|
|
|
2895
2915
|
create(base?: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
|
|
2896
2916
|
return MethodDescriptorProto.fromPartial(base ?? {});
|
|
2897
2917
|
},
|
|
2898
|
-
|
|
2899
2918
|
fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
|
|
2900
2919
|
const message = createBaseMethodDescriptorProto();
|
|
2901
2920
|
message.name = object.name ?? "";
|
|
@@ -3199,31 +3218,68 @@ export const FileOptions = {
|
|
|
3199
3218
|
|
|
3200
3219
|
toJSON(message: FileOptions): unknown {
|
|
3201
3220
|
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
|
-
|
|
3221
|
+
if (message.javaPackage !== "") {
|
|
3222
|
+
obj.javaPackage = message.javaPackage;
|
|
3223
|
+
}
|
|
3224
|
+
if (message.javaOuterClassname !== "") {
|
|
3225
|
+
obj.javaOuterClassname = message.javaOuterClassname;
|
|
3226
|
+
}
|
|
3227
|
+
if (message.javaMultipleFiles === true) {
|
|
3228
|
+
obj.javaMultipleFiles = message.javaMultipleFiles;
|
|
3229
|
+
}
|
|
3230
|
+
if (message.javaGenerateEqualsAndHash === true) {
|
|
3231
|
+
obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash;
|
|
3232
|
+
}
|
|
3233
|
+
if (message.javaStringCheckUtf8 === true) {
|
|
3234
|
+
obj.javaStringCheckUtf8 = message.javaStringCheckUtf8;
|
|
3235
|
+
}
|
|
3236
|
+
if (message.optimizeFor !== 1) {
|
|
3237
|
+
obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor);
|
|
3238
|
+
}
|
|
3239
|
+
if (message.goPackage !== "") {
|
|
3240
|
+
obj.goPackage = message.goPackage;
|
|
3241
|
+
}
|
|
3242
|
+
if (message.ccGenericServices === true) {
|
|
3243
|
+
obj.ccGenericServices = message.ccGenericServices;
|
|
3244
|
+
}
|
|
3245
|
+
if (message.javaGenericServices === true) {
|
|
3246
|
+
obj.javaGenericServices = message.javaGenericServices;
|
|
3247
|
+
}
|
|
3248
|
+
if (message.pyGenericServices === true) {
|
|
3249
|
+
obj.pyGenericServices = message.pyGenericServices;
|
|
3250
|
+
}
|
|
3251
|
+
if (message.phpGenericServices === true) {
|
|
3252
|
+
obj.phpGenericServices = message.phpGenericServices;
|
|
3253
|
+
}
|
|
3254
|
+
if (message.deprecated === true) {
|
|
3255
|
+
obj.deprecated = message.deprecated;
|
|
3256
|
+
}
|
|
3257
|
+
if (message.ccEnableArenas === true) {
|
|
3258
|
+
obj.ccEnableArenas = message.ccEnableArenas;
|
|
3259
|
+
}
|
|
3260
|
+
if (message.objcClassPrefix !== "") {
|
|
3261
|
+
obj.objcClassPrefix = message.objcClassPrefix;
|
|
3262
|
+
}
|
|
3263
|
+
if (message.csharpNamespace !== "") {
|
|
3264
|
+
obj.csharpNamespace = message.csharpNamespace;
|
|
3265
|
+
}
|
|
3266
|
+
if (message.swiftPrefix !== "") {
|
|
3267
|
+
obj.swiftPrefix = message.swiftPrefix;
|
|
3268
|
+
}
|
|
3269
|
+
if (message.phpClassPrefix !== "") {
|
|
3270
|
+
obj.phpClassPrefix = message.phpClassPrefix;
|
|
3271
|
+
}
|
|
3272
|
+
if (message.phpNamespace !== "") {
|
|
3273
|
+
obj.phpNamespace = message.phpNamespace;
|
|
3274
|
+
}
|
|
3275
|
+
if (message.phpMetadataNamespace !== "") {
|
|
3276
|
+
obj.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
3277
|
+
}
|
|
3278
|
+
if (message.rubyPackage !== "") {
|
|
3279
|
+
obj.rubyPackage = message.rubyPackage;
|
|
3280
|
+
}
|
|
3281
|
+
if (message.uninterpretedOption?.length) {
|
|
3282
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3227
3283
|
}
|
|
3228
3284
|
return obj;
|
|
3229
3285
|
},
|
|
@@ -3231,7 +3287,6 @@ export const FileOptions = {
|
|
|
3231
3287
|
create(base?: DeepPartial<FileOptions>): FileOptions {
|
|
3232
3288
|
return FileOptions.fromPartial(base ?? {});
|
|
3233
3289
|
},
|
|
3234
|
-
|
|
3235
3290
|
fromPartial(object: DeepPartial<FileOptions>): FileOptions {
|
|
3236
3291
|
const message = createBaseFileOptions();
|
|
3237
3292
|
message.javaPackage = object.javaPackage ?? "";
|
|
@@ -3370,17 +3425,23 @@ export const MessageOptions = {
|
|
|
3370
3425
|
|
|
3371
3426
|
toJSON(message: MessageOptions): unknown {
|
|
3372
3427
|
const obj: any = {};
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
obj.
|
|
3428
|
+
if (message.messageSetWireFormat === true) {
|
|
3429
|
+
obj.messageSetWireFormat = message.messageSetWireFormat;
|
|
3430
|
+
}
|
|
3431
|
+
if (message.noStandardDescriptorAccessor === true) {
|
|
3432
|
+
obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor;
|
|
3433
|
+
}
|
|
3434
|
+
if (message.deprecated === true) {
|
|
3435
|
+
obj.deprecated = message.deprecated;
|
|
3436
|
+
}
|
|
3437
|
+
if (message.mapEntry === true) {
|
|
3438
|
+
obj.mapEntry = message.mapEntry;
|
|
3439
|
+
}
|
|
3440
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3441
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
3442
|
+
}
|
|
3443
|
+
if (message.uninterpretedOption?.length) {
|
|
3444
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3384
3445
|
}
|
|
3385
3446
|
return obj;
|
|
3386
3447
|
},
|
|
@@ -3388,7 +3449,6 @@ export const MessageOptions = {
|
|
|
3388
3449
|
create(base?: DeepPartial<MessageOptions>): MessageOptions {
|
|
3389
3450
|
return MessageOptions.fromPartial(base ?? {});
|
|
3390
3451
|
},
|
|
3391
|
-
|
|
3392
3452
|
fromPartial(object: DeepPartial<MessageOptions>): MessageOptions {
|
|
3393
3453
|
const message = createBaseMessageOptions();
|
|
3394
3454
|
message.messageSetWireFormat = object.messageSetWireFormat ?? false;
|
|
@@ -3568,20 +3628,38 @@ export const FieldOptions = {
|
|
|
3568
3628
|
|
|
3569
3629
|
toJSON(message: FieldOptions): unknown {
|
|
3570
3630
|
const obj: any = {};
|
|
3571
|
-
message.ctype !==
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
message.
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
obj.
|
|
3631
|
+
if (message.ctype !== 0) {
|
|
3632
|
+
obj.ctype = fieldOptions_CTypeToJSON(message.ctype);
|
|
3633
|
+
}
|
|
3634
|
+
if (message.packed === true) {
|
|
3635
|
+
obj.packed = message.packed;
|
|
3636
|
+
}
|
|
3637
|
+
if (message.jstype !== 0) {
|
|
3638
|
+
obj.jstype = fieldOptions_JSTypeToJSON(message.jstype);
|
|
3639
|
+
}
|
|
3640
|
+
if (message.lazy === true) {
|
|
3641
|
+
obj.lazy = message.lazy;
|
|
3642
|
+
}
|
|
3643
|
+
if (message.unverifiedLazy === true) {
|
|
3644
|
+
obj.unverifiedLazy = message.unverifiedLazy;
|
|
3645
|
+
}
|
|
3646
|
+
if (message.deprecated === true) {
|
|
3647
|
+
obj.deprecated = message.deprecated;
|
|
3648
|
+
}
|
|
3649
|
+
if (message.weak === true) {
|
|
3650
|
+
obj.weak = message.weak;
|
|
3651
|
+
}
|
|
3652
|
+
if (message.debugRedact === true) {
|
|
3653
|
+
obj.debugRedact = message.debugRedact;
|
|
3654
|
+
}
|
|
3655
|
+
if (message.retention !== 0) {
|
|
3656
|
+
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
|
|
3657
|
+
}
|
|
3658
|
+
if (message.target !== 0) {
|
|
3659
|
+
obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
|
|
3660
|
+
}
|
|
3661
|
+
if (message.uninterpretedOption?.length) {
|
|
3662
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3585
3663
|
}
|
|
3586
3664
|
return obj;
|
|
3587
3665
|
},
|
|
@@ -3589,7 +3667,6 @@ export const FieldOptions = {
|
|
|
3589
3667
|
create(base?: DeepPartial<FieldOptions>): FieldOptions {
|
|
3590
3668
|
return FieldOptions.fromPartial(base ?? {});
|
|
3591
3669
|
},
|
|
3592
|
-
|
|
3593
3670
|
fromPartial(object: DeepPartial<FieldOptions>): FieldOptions {
|
|
3594
3671
|
const message = createBaseFieldOptions();
|
|
3595
3672
|
message.ctype = object.ctype ?? 0;
|
|
@@ -3652,10 +3729,8 @@ export const OneofOptions = {
|
|
|
3652
3729
|
|
|
3653
3730
|
toJSON(message: OneofOptions): unknown {
|
|
3654
3731
|
const obj: any = {};
|
|
3655
|
-
if (message.uninterpretedOption) {
|
|
3656
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) =>
|
|
3657
|
-
} else {
|
|
3658
|
-
obj.uninterpretedOption = [];
|
|
3732
|
+
if (message.uninterpretedOption?.length) {
|
|
3733
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3659
3734
|
}
|
|
3660
3735
|
return obj;
|
|
3661
3736
|
},
|
|
@@ -3663,7 +3738,6 @@ export const OneofOptions = {
|
|
|
3663
3738
|
create(base?: DeepPartial<OneofOptions>): OneofOptions {
|
|
3664
3739
|
return OneofOptions.fromPartial(base ?? {});
|
|
3665
3740
|
},
|
|
3666
|
-
|
|
3667
3741
|
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
|
|
3668
3742
|
const message = createBaseOneofOptions();
|
|
3669
3743
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
|
@@ -3751,14 +3825,17 @@ export const EnumOptions = {
|
|
|
3751
3825
|
|
|
3752
3826
|
toJSON(message: EnumOptions): unknown {
|
|
3753
3827
|
const obj: any = {};
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
obj.
|
|
3828
|
+
if (message.allowAlias === true) {
|
|
3829
|
+
obj.allowAlias = message.allowAlias;
|
|
3830
|
+
}
|
|
3831
|
+
if (message.deprecated === true) {
|
|
3832
|
+
obj.deprecated = message.deprecated;
|
|
3833
|
+
}
|
|
3834
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3835
|
+
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
3836
|
+
}
|
|
3837
|
+
if (message.uninterpretedOption?.length) {
|
|
3838
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3762
3839
|
}
|
|
3763
3840
|
return obj;
|
|
3764
3841
|
},
|
|
@@ -3766,7 +3843,6 @@ export const EnumOptions = {
|
|
|
3766
3843
|
create(base?: DeepPartial<EnumOptions>): EnumOptions {
|
|
3767
3844
|
return EnumOptions.fromPartial(base ?? {});
|
|
3768
3845
|
},
|
|
3769
|
-
|
|
3770
3846
|
fromPartial(object: DeepPartial<EnumOptions>): EnumOptions {
|
|
3771
3847
|
const message = createBaseEnumOptions();
|
|
3772
3848
|
message.allowAlias = object.allowAlias ?? false;
|
|
@@ -3833,11 +3909,11 @@ export const EnumValueOptions = {
|
|
|
3833
3909
|
|
|
3834
3910
|
toJSON(message: EnumValueOptions): unknown {
|
|
3835
3911
|
const obj: any = {};
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
obj.uninterpretedOption =
|
|
3912
|
+
if (message.deprecated === true) {
|
|
3913
|
+
obj.deprecated = message.deprecated;
|
|
3914
|
+
}
|
|
3915
|
+
if (message.uninterpretedOption?.length) {
|
|
3916
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3841
3917
|
}
|
|
3842
3918
|
return obj;
|
|
3843
3919
|
},
|
|
@@ -3845,7 +3921,6 @@ export const EnumValueOptions = {
|
|
|
3845
3921
|
create(base?: DeepPartial<EnumValueOptions>): EnumValueOptions {
|
|
3846
3922
|
return EnumValueOptions.fromPartial(base ?? {});
|
|
3847
3923
|
},
|
|
3848
|
-
|
|
3849
3924
|
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
|
|
3850
3925
|
const message = createBaseEnumValueOptions();
|
|
3851
3926
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -3910,11 +3985,11 @@ export const ServiceOptions = {
|
|
|
3910
3985
|
|
|
3911
3986
|
toJSON(message: ServiceOptions): unknown {
|
|
3912
3987
|
const obj: any = {};
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
obj.uninterpretedOption =
|
|
3988
|
+
if (message.deprecated === true) {
|
|
3989
|
+
obj.deprecated = message.deprecated;
|
|
3990
|
+
}
|
|
3991
|
+
if (message.uninterpretedOption?.length) {
|
|
3992
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
3918
3993
|
}
|
|
3919
3994
|
return obj;
|
|
3920
3995
|
},
|
|
@@ -3922,7 +3997,6 @@ export const ServiceOptions = {
|
|
|
3922
3997
|
create(base?: DeepPartial<ServiceOptions>): ServiceOptions {
|
|
3923
3998
|
return ServiceOptions.fromPartial(base ?? {});
|
|
3924
3999
|
},
|
|
3925
|
-
|
|
3926
4000
|
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
|
|
3927
4001
|
const message = createBaseServiceOptions();
|
|
3928
4002
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -4000,13 +4074,14 @@ export const MethodOptions = {
|
|
|
4000
4074
|
|
|
4001
4075
|
toJSON(message: MethodOptions): unknown {
|
|
4002
4076
|
const obj: any = {};
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
if (message.
|
|
4007
|
-
obj.
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4077
|
+
if (message.deprecated === true) {
|
|
4078
|
+
obj.deprecated = message.deprecated;
|
|
4079
|
+
}
|
|
4080
|
+
if (message.idempotencyLevel !== 0) {
|
|
4081
|
+
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
|
|
4082
|
+
}
|
|
4083
|
+
if (message.uninterpretedOption?.length) {
|
|
4084
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
|
4010
4085
|
}
|
|
4011
4086
|
return obj;
|
|
4012
4087
|
},
|
|
@@ -4014,7 +4089,6 @@ export const MethodOptions = {
|
|
|
4014
4089
|
create(base?: DeepPartial<MethodOptions>): MethodOptions {
|
|
4015
4090
|
return MethodOptions.fromPartial(base ?? {});
|
|
4016
4091
|
},
|
|
4017
|
-
|
|
4018
4092
|
fromPartial(object: DeepPartial<MethodOptions>): MethodOptions {
|
|
4019
4093
|
const message = createBaseMethodOptions();
|
|
4020
4094
|
message.deprecated = object.deprecated ?? false;
|
|
@@ -4031,7 +4105,7 @@ function createBaseUninterpretedOption(): UninterpretedOption {
|
|
|
4031
4105
|
positiveIntValue: 0,
|
|
4032
4106
|
negativeIntValue: 0,
|
|
4033
4107
|
doubleValue: 0,
|
|
4034
|
-
stringValue: new Uint8Array(),
|
|
4108
|
+
stringValue: new Uint8Array(0),
|
|
4035
4109
|
aggregateValue: "",
|
|
4036
4110
|
};
|
|
4037
4111
|
}
|
|
@@ -4134,32 +4208,40 @@ export const UninterpretedOption = {
|
|
|
4134
4208
|
positiveIntValue: isSet(object.positiveIntValue) ? Number(object.positiveIntValue) : 0,
|
|
4135
4209
|
negativeIntValue: isSet(object.negativeIntValue) ? Number(object.negativeIntValue) : 0,
|
|
4136
4210
|
doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0,
|
|
4137
|
-
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(),
|
|
4211
|
+
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(0),
|
|
4138
4212
|
aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "",
|
|
4139
4213
|
};
|
|
4140
4214
|
},
|
|
4141
4215
|
|
|
4142
4216
|
toJSON(message: UninterpretedOption): unknown {
|
|
4143
4217
|
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
|
-
|
|
4218
|
+
if (message.name?.length) {
|
|
4219
|
+
obj.name = message.name.map((e) => UninterpretedOption_NamePart.toJSON(e));
|
|
4220
|
+
}
|
|
4221
|
+
if (message.identifierValue !== "") {
|
|
4222
|
+
obj.identifierValue = message.identifierValue;
|
|
4223
|
+
}
|
|
4224
|
+
if (message.positiveIntValue !== 0) {
|
|
4225
|
+
obj.positiveIntValue = Math.round(message.positiveIntValue);
|
|
4226
|
+
}
|
|
4227
|
+
if (message.negativeIntValue !== 0) {
|
|
4228
|
+
obj.negativeIntValue = Math.round(message.negativeIntValue);
|
|
4229
|
+
}
|
|
4230
|
+
if (message.doubleValue !== 0) {
|
|
4231
|
+
obj.doubleValue = message.doubleValue;
|
|
4232
|
+
}
|
|
4233
|
+
if (message.stringValue.length !== 0) {
|
|
4234
|
+
obj.stringValue = base64FromBytes(message.stringValue);
|
|
4235
|
+
}
|
|
4236
|
+
if (message.aggregateValue !== "") {
|
|
4237
|
+
obj.aggregateValue = message.aggregateValue;
|
|
4238
|
+
}
|
|
4156
4239
|
return obj;
|
|
4157
4240
|
},
|
|
4158
4241
|
|
|
4159
4242
|
create(base?: DeepPartial<UninterpretedOption>): UninterpretedOption {
|
|
4160
4243
|
return UninterpretedOption.fromPartial(base ?? {});
|
|
4161
4244
|
},
|
|
4162
|
-
|
|
4163
4245
|
fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption {
|
|
4164
4246
|
const message = createBaseUninterpretedOption();
|
|
4165
4247
|
message.name = object.name?.map((e) => UninterpretedOption_NamePart.fromPartial(e)) || [];
|
|
@@ -4167,7 +4249,7 @@ export const UninterpretedOption = {
|
|
|
4167
4249
|
message.positiveIntValue = object.positiveIntValue ?? 0;
|
|
4168
4250
|
message.negativeIntValue = object.negativeIntValue ?? 0;
|
|
4169
4251
|
message.doubleValue = object.doubleValue ?? 0;
|
|
4170
|
-
message.stringValue = object.stringValue ?? new Uint8Array();
|
|
4252
|
+
message.stringValue = object.stringValue ?? new Uint8Array(0);
|
|
4171
4253
|
message.aggregateValue = object.aggregateValue ?? "";
|
|
4172
4254
|
return message;
|
|
4173
4255
|
},
|
|
@@ -4227,15 +4309,18 @@ export const UninterpretedOption_NamePart = {
|
|
|
4227
4309
|
|
|
4228
4310
|
toJSON(message: UninterpretedOption_NamePart): unknown {
|
|
4229
4311
|
const obj: any = {};
|
|
4230
|
-
message.namePart !==
|
|
4231
|
-
|
|
4312
|
+
if (message.namePart !== "") {
|
|
4313
|
+
obj.namePart = message.namePart;
|
|
4314
|
+
}
|
|
4315
|
+
if (message.isExtension === true) {
|
|
4316
|
+
obj.isExtension = message.isExtension;
|
|
4317
|
+
}
|
|
4232
4318
|
return obj;
|
|
4233
4319
|
},
|
|
4234
4320
|
|
|
4235
4321
|
create(base?: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
|
|
4236
4322
|
return UninterpretedOption_NamePart.fromPartial(base ?? {});
|
|
4237
4323
|
},
|
|
4238
|
-
|
|
4239
4324
|
fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
|
|
4240
4325
|
const message = createBaseUninterpretedOption_NamePart();
|
|
4241
4326
|
message.namePart = object.namePart ?? "";
|
|
@@ -4289,10 +4374,8 @@ export const SourceCodeInfo = {
|
|
|
4289
4374
|
|
|
4290
4375
|
toJSON(message: SourceCodeInfo): unknown {
|
|
4291
4376
|
const obj: any = {};
|
|
4292
|
-
if (message.location) {
|
|
4293
|
-
obj.location = message.location.map((e) =>
|
|
4294
|
-
} else {
|
|
4295
|
-
obj.location = [];
|
|
4377
|
+
if (message.location?.length) {
|
|
4378
|
+
obj.location = message.location.map((e) => SourceCodeInfo_Location.toJSON(e));
|
|
4296
4379
|
}
|
|
4297
4380
|
return obj;
|
|
4298
4381
|
},
|
|
@@ -4300,7 +4383,6 @@ export const SourceCodeInfo = {
|
|
|
4300
4383
|
create(base?: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
|
|
4301
4384
|
return SourceCodeInfo.fromPartial(base ?? {});
|
|
4302
4385
|
},
|
|
4303
|
-
|
|
4304
4386
|
fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
|
|
4305
4387
|
const message = createBaseSourceCodeInfo();
|
|
4306
4388
|
message.location = object.location?.map((e) => SourceCodeInfo_Location.fromPartial(e)) || [];
|
|
@@ -4421,22 +4503,20 @@ export const SourceCodeInfo_Location = {
|
|
|
4421
4503
|
|
|
4422
4504
|
toJSON(message: SourceCodeInfo_Location): unknown {
|
|
4423
4505
|
const obj: any = {};
|
|
4424
|
-
if (message.path) {
|
|
4506
|
+
if (message.path?.length) {
|
|
4425
4507
|
obj.path = message.path.map((e) => Math.round(e));
|
|
4426
|
-
} else {
|
|
4427
|
-
obj.path = [];
|
|
4428
4508
|
}
|
|
4429
|
-
if (message.span) {
|
|
4509
|
+
if (message.span?.length) {
|
|
4430
4510
|
obj.span = message.span.map((e) => Math.round(e));
|
|
4431
|
-
} else {
|
|
4432
|
-
obj.span = [];
|
|
4433
4511
|
}
|
|
4434
|
-
message.leadingComments !==
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4512
|
+
if (message.leadingComments !== "") {
|
|
4513
|
+
obj.leadingComments = message.leadingComments;
|
|
4514
|
+
}
|
|
4515
|
+
if (message.trailingComments !== "") {
|
|
4516
|
+
obj.trailingComments = message.trailingComments;
|
|
4517
|
+
}
|
|
4518
|
+
if (message.leadingDetachedComments?.length) {
|
|
4519
|
+
obj.leadingDetachedComments = message.leadingDetachedComments;
|
|
4440
4520
|
}
|
|
4441
4521
|
return obj;
|
|
4442
4522
|
},
|
|
@@ -4444,7 +4524,6 @@ export const SourceCodeInfo_Location = {
|
|
|
4444
4524
|
create(base?: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
|
|
4445
4525
|
return SourceCodeInfo_Location.fromPartial(base ?? {});
|
|
4446
4526
|
},
|
|
4447
|
-
|
|
4448
4527
|
fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
|
|
4449
4528
|
const message = createBaseSourceCodeInfo_Location();
|
|
4450
4529
|
message.path = object.path?.map((e) => e) || [];
|
|
@@ -4501,10 +4580,8 @@ export const GeneratedCodeInfo = {
|
|
|
4501
4580
|
|
|
4502
4581
|
toJSON(message: GeneratedCodeInfo): unknown {
|
|
4503
4582
|
const obj: any = {};
|
|
4504
|
-
if (message.annotation) {
|
|
4505
|
-
obj.annotation = message.annotation.map((e) =>
|
|
4506
|
-
} else {
|
|
4507
|
-
obj.annotation = [];
|
|
4583
|
+
if (message.annotation?.length) {
|
|
4584
|
+
obj.annotation = message.annotation.map((e) => GeneratedCodeInfo_Annotation.toJSON(e));
|
|
4508
4585
|
}
|
|
4509
4586
|
return obj;
|
|
4510
4587
|
},
|
|
@@ -4512,7 +4589,6 @@ export const GeneratedCodeInfo = {
|
|
|
4512
4589
|
create(base?: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
|
|
4513
4590
|
return GeneratedCodeInfo.fromPartial(base ?? {});
|
|
4514
4591
|
},
|
|
4515
|
-
|
|
4516
4592
|
fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
|
|
4517
4593
|
const message = createBaseGeneratedCodeInfo();
|
|
4518
4594
|
message.annotation = object.annotation?.map((e) => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
|
|
@@ -4619,22 +4695,27 @@ export const GeneratedCodeInfo_Annotation = {
|
|
|
4619
4695
|
|
|
4620
4696
|
toJSON(message: GeneratedCodeInfo_Annotation): unknown {
|
|
4621
4697
|
const obj: any = {};
|
|
4622
|
-
if (message.path) {
|
|
4698
|
+
if (message.path?.length) {
|
|
4623
4699
|
obj.path = message.path.map((e) => Math.round(e));
|
|
4624
|
-
} else {
|
|
4625
|
-
obj.path = [];
|
|
4626
4700
|
}
|
|
4627
|
-
message.sourceFile !==
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
message.
|
|
4701
|
+
if (message.sourceFile !== "") {
|
|
4702
|
+
obj.sourceFile = message.sourceFile;
|
|
4703
|
+
}
|
|
4704
|
+
if (message.begin !== 0) {
|
|
4705
|
+
obj.begin = Math.round(message.begin);
|
|
4706
|
+
}
|
|
4707
|
+
if (message.end !== 0) {
|
|
4708
|
+
obj.end = Math.round(message.end);
|
|
4709
|
+
}
|
|
4710
|
+
if (message.semantic !== 0) {
|
|
4711
|
+
obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic);
|
|
4712
|
+
}
|
|
4631
4713
|
return obj;
|
|
4632
4714
|
},
|
|
4633
4715
|
|
|
4634
4716
|
create(base?: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
|
4635
4717
|
return GeneratedCodeInfo_Annotation.fromPartial(base ?? {});
|
|
4636
4718
|
},
|
|
4637
|
-
|
|
4638
4719
|
fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
|
4639
4720
|
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
4640
4721
|
message.path = object.path?.map((e) => e) || [];
|
|
@@ -4646,10 +4727,10 @@ export const GeneratedCodeInfo_Annotation = {
|
|
|
4646
4727
|
},
|
|
4647
4728
|
};
|
|
4648
4729
|
|
|
4649
|
-
declare
|
|
4650
|
-
declare
|
|
4651
|
-
declare
|
|
4652
|
-
|
|
4730
|
+
declare const self: any | undefined;
|
|
4731
|
+
declare const window: any | undefined;
|
|
4732
|
+
declare const global: any | undefined;
|
|
4733
|
+
const tsProtoGlobalThis: any = (() => {
|
|
4653
4734
|
if (typeof globalThis !== "undefined") {
|
|
4654
4735
|
return globalThis;
|
|
4655
4736
|
}
|