@milaboratories/pl-drivers 1.5.10 → 1.5.11
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/clients/constructors.d.ts.map +1 -1
- package/dist/clients/download.d.ts.map +1 -1
- package/dist/clients/logs.d.ts.map +1 -1
- package/dist/clients/ls_api.d.ts.map +1 -1
- package/dist/clients/progress.d.ts.map +1 -1
- package/dist/clients/upload.d.ts.map +1 -1
- package/dist/drivers/download_blob.d.ts +2 -2
- package/dist/drivers/download_blob.d.ts.map +1 -1
- package/dist/drivers/download_blob_task.d.ts +2 -2
- package/dist/drivers/download_blob_task.d.ts.map +1 -1
- package/dist/drivers/download_blob_url/driver.d.ts +46 -0
- package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/driver_id.d.ts +6 -0
- package/dist/drivers/download_blob_url/driver_id.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/snapshot.d.ts +7 -0
- package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/task.d.ts +63 -0
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/url.d.ts +6 -0
- package/dist/drivers/download_blob_url/url.d.ts.map +1 -0
- package/dist/drivers/download_url.d.ts +2 -2
- package/dist/drivers/download_url.d.ts.map +1 -1
- package/dist/drivers/helpers/download_local_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/files_cache.d.ts.map +1 -1
- package/dist/drivers/helpers/logs_handle.d.ts +1 -1
- package/dist/drivers/helpers/logs_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.d.ts +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.d.ts +1 -1
- package/dist/drivers/helpers/ls_storage_entry.d.ts.map +1 -1
- package/dist/drivers/logs.d.ts +2 -2
- package/dist/drivers/logs.d.ts.map +1 -1
- package/dist/drivers/logs_stream.d.ts +2 -2
- package/dist/drivers/logs_stream.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +1 -1
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/upload.d.ts +1 -1
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/drivers/upload_task.d.ts +1 -1
- package/dist/drivers/upload_task.d.ts.map +1 -1
- package/dist/drivers/virtual_storages.d.ts.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2310 -2067
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +28 -28
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/package.json +9 -4
- package/src/clients/constructors.ts +11 -11
- package/src/clients/download.test.ts +11 -10
- package/src/clients/download.ts +15 -14
- package/src/clients/logs.ts +13 -12
- package/src/clients/ls_api.ts +7 -7
- package/src/clients/progress.ts +15 -13
- package/src/clients/upload.test.ts +6 -5
- package/src/clients/upload.ts +28 -26
- package/src/drivers/download_blob.test.ts +21 -20
- package/src/drivers/download_blob.ts +47 -42
- package/src/drivers/download_blob_task.ts +25 -21
- package/src/drivers/download_blob_url/driver.ts +225 -0
- package/src/drivers/download_blob_url/driver_id.ts +11 -0
- package/src/drivers/download_blob_url/snapshot.ts +20 -0
- package/src/drivers/download_blob_url/task.ts +222 -0
- package/src/drivers/download_blob_url/url.test.ts +39 -0
- package/src/drivers/download_blob_url/url.ts +43 -0
- package/src/drivers/download_url.test.ts +3 -3
- package/src/drivers/download_url.ts +21 -20
- package/src/drivers/helpers/download_local_handle.ts +2 -2
- package/src/drivers/helpers/download_remote_handle.ts +8 -8
- package/src/drivers/helpers/files_cache.test.ts +7 -6
- package/src/drivers/helpers/files_cache.ts +2 -1
- package/src/drivers/helpers/helpers.ts +1 -1
- package/src/drivers/helpers/logs_handle.ts +7 -7
- package/src/drivers/helpers/ls_remote_import_handle.ts +7 -7
- package/src/drivers/helpers/ls_storage_entry.ts +6 -5
- package/src/drivers/logs.test.ts +23 -22
- package/src/drivers/logs.ts +13 -12
- package/src/drivers/logs_stream.ts +42 -37
- package/src/drivers/ls.test.ts +2 -2
- package/src/drivers/ls.ts +38 -35
- package/src/drivers/types.ts +12 -11
- package/src/drivers/upload.test.ts +19 -17
- package/src/drivers/upload.ts +30 -25
- package/src/drivers/upload_task.ts +23 -19
- package/src/drivers/virtual_storages.ts +6 -6
- package/src/helpers/download.ts +8 -8
- package/src/index.ts +2 -0
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +4 -4
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +88 -73
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +2 -2
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +71 -56
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +6 -5
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +130 -106
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +14 -10
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +142 -121
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +11 -8
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +216 -174
- package/src/proto/google/api/http.ts +95 -86
- package/src/proto/google/protobuf/descriptor.ts +674 -593
- package/src/proto/google/protobuf/duration.ts +31 -26
- package/src/proto/google/protobuf/timestamp.ts +52 -44
|
@@ -428,7 +428,7 @@ export enum FieldDescriptorProto_Type {
|
|
|
428
428
|
*
|
|
429
429
|
* @generated from protobuf enum value: TYPE_SINT64 = 18;
|
|
430
430
|
*/
|
|
431
|
-
SINT64 = 18
|
|
431
|
+
SINT64 = 18,
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
* @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label
|
|
@@ -451,7 +451,7 @@ export enum FieldDescriptorProto_Label {
|
|
|
451
451
|
/**
|
|
452
452
|
* @generated from protobuf enum value: LABEL_REPEATED = 3;
|
|
453
453
|
*/
|
|
454
|
-
REPEATED = 3
|
|
454
|
+
REPEATED = 3,
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* Describes a oneof.
|
|
@@ -829,7 +829,7 @@ export enum FileOptions_OptimizeMode {
|
|
|
829
829
|
*
|
|
830
830
|
* @generated from protobuf enum value: LITE_RUNTIME = 3;
|
|
831
831
|
*/
|
|
832
|
-
LITE_RUNTIME = 3
|
|
832
|
+
LITE_RUNTIME = 3,
|
|
833
833
|
}
|
|
834
834
|
/**
|
|
835
835
|
* @generated from protobuf message google.protobuf.MessageOptions
|
|
@@ -1033,7 +1033,7 @@ export enum FieldOptions_CType {
|
|
|
1033
1033
|
/**
|
|
1034
1034
|
* @generated from protobuf enum value: STRING_PIECE = 2;
|
|
1035
1035
|
*/
|
|
1036
|
-
STRING_PIECE = 2
|
|
1036
|
+
STRING_PIECE = 2,
|
|
1037
1037
|
}
|
|
1038
1038
|
/**
|
|
1039
1039
|
* @generated from protobuf enum google.protobuf.FieldOptions.JSType
|
|
@@ -1056,7 +1056,7 @@ export enum FieldOptions_JSType {
|
|
|
1056
1056
|
*
|
|
1057
1057
|
* @generated from protobuf enum value: JS_NUMBER = 2;
|
|
1058
1058
|
*/
|
|
1059
|
-
JS_NUMBER = 2
|
|
1059
|
+
JS_NUMBER = 2,
|
|
1060
1060
|
}
|
|
1061
1061
|
/**
|
|
1062
1062
|
* @generated from protobuf message google.protobuf.OneofOptions
|
|
@@ -1193,7 +1193,7 @@ export enum MethodOptions_IdempotencyLevel {
|
|
|
1193
1193
|
*
|
|
1194
1194
|
* @generated from protobuf enum value: IDEMPOTENT = 2;
|
|
1195
1195
|
*/
|
|
1196
|
-
IDEMPOTENT = 2
|
|
1196
|
+
IDEMPOTENT = 2,
|
|
1197
1197
|
}
|
|
1198
1198
|
/**
|
|
1199
1199
|
* A message representing a option the parser does not recognize. This only
|
|
@@ -1476,11 +1476,12 @@ class FileDescriptorSet$Type extends MessageType<FileDescriptorSet> {
|
|
|
1476
1476
|
no: 1,
|
|
1477
1477
|
name: 'file',
|
|
1478
1478
|
kind: 'message',
|
|
1479
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1480
|
-
T: () => FileDescriptorProto
|
|
1481
|
-
}
|
|
1479
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1480
|
+
T: () => FileDescriptorProto,
|
|
1481
|
+
},
|
|
1482
1482
|
]);
|
|
1483
1483
|
}
|
|
1484
|
+
|
|
1484
1485
|
create(value?: PartialMessage<FileDescriptorSet>): FileDescriptorSet {
|
|
1485
1486
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
1486
1487
|
message.file = [];
|
|
@@ -1488,63 +1489,65 @@ class FileDescriptorSet$Type extends MessageType<FileDescriptorSet> {
|
|
|
1488
1489
|
reflectionMergePartial<FileDescriptorSet>(this, message, value);
|
|
1489
1490
|
return message;
|
|
1490
1491
|
}
|
|
1492
|
+
|
|
1491
1493
|
internalBinaryRead(
|
|
1492
1494
|
reader: IBinaryReader,
|
|
1493
1495
|
length: number,
|
|
1494
1496
|
options: BinaryReadOptions,
|
|
1495
|
-
target?: FileDescriptorSet
|
|
1497
|
+
target?: FileDescriptorSet,
|
|
1496
1498
|
): FileDescriptorSet {
|
|
1497
|
-
|
|
1499
|
+
const message = target ?? this.create(),
|
|
1498
1500
|
end = reader.pos + length;
|
|
1499
1501
|
while (reader.pos < end) {
|
|
1500
|
-
|
|
1502
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1501
1503
|
switch (fieldNo) {
|
|
1502
1504
|
case /* repeated google.protobuf.FileDescriptorProto file */ 1:
|
|
1503
1505
|
message.file.push(
|
|
1504
1506
|
FileDescriptorProto.internalBinaryRead(
|
|
1505
1507
|
reader,
|
|
1506
1508
|
reader.uint32(),
|
|
1507
|
-
options
|
|
1508
|
-
)
|
|
1509
|
+
options,
|
|
1510
|
+
),
|
|
1509
1511
|
);
|
|
1510
1512
|
break;
|
|
1511
1513
|
default:
|
|
1512
|
-
|
|
1514
|
+
const u = options.readUnknownField;
|
|
1513
1515
|
if (u === 'throw')
|
|
1514
1516
|
throw new globalThis.Error(
|
|
1515
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
1517
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
1516
1518
|
);
|
|
1517
|
-
|
|
1519
|
+
const d = reader.skip(wireType);
|
|
1518
1520
|
if (u !== false)
|
|
1519
1521
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
1520
1522
|
this.typeName,
|
|
1521
1523
|
message,
|
|
1522
1524
|
fieldNo,
|
|
1523
1525
|
wireType,
|
|
1524
|
-
d
|
|
1526
|
+
d,
|
|
1525
1527
|
);
|
|
1526
1528
|
}
|
|
1527
1529
|
}
|
|
1528
1530
|
return message;
|
|
1529
1531
|
}
|
|
1532
|
+
|
|
1530
1533
|
internalBinaryWrite(
|
|
1531
1534
|
message: FileDescriptorSet,
|
|
1532
1535
|
writer: IBinaryWriter,
|
|
1533
|
-
options: BinaryWriteOptions
|
|
1536
|
+
options: BinaryWriteOptions,
|
|
1534
1537
|
): IBinaryWriter {
|
|
1535
1538
|
/* repeated google.protobuf.FileDescriptorProto file = 1; */
|
|
1536
1539
|
for (let i = 0; i < message.file.length; i++)
|
|
1537
1540
|
FileDescriptorProto.internalBinaryWrite(
|
|
1538
1541
|
message.file[i],
|
|
1539
1542
|
writer.tag(1, WireType.LengthDelimited).fork(),
|
|
1540
|
-
options
|
|
1543
|
+
options,
|
|
1541
1544
|
).join();
|
|
1542
|
-
|
|
1545
|
+
const u = options.writeUnknownFields;
|
|
1543
1546
|
if (u !== false)
|
|
1544
1547
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
1545
1548
|
this.typeName,
|
|
1546
1549
|
message,
|
|
1547
|
-
writer
|
|
1550
|
+
writer,
|
|
1548
1551
|
);
|
|
1549
1552
|
return writer;
|
|
1550
1553
|
}
|
|
@@ -1562,80 +1565,81 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1562
1565
|
name: 'name',
|
|
1563
1566
|
kind: 'scalar',
|
|
1564
1567
|
opt: true,
|
|
1565
|
-
T: 9 /*ScalarType.STRING*/
|
|
1568
|
+
T: 9, /* ScalarType.STRING */
|
|
1566
1569
|
},
|
|
1567
1570
|
{
|
|
1568
1571
|
no: 2,
|
|
1569
1572
|
name: 'package',
|
|
1570
1573
|
kind: 'scalar',
|
|
1571
1574
|
opt: true,
|
|
1572
|
-
T: 9 /*ScalarType.STRING*/
|
|
1575
|
+
T: 9, /* ScalarType.STRING */
|
|
1573
1576
|
},
|
|
1574
1577
|
{
|
|
1575
1578
|
no: 3,
|
|
1576
1579
|
name: 'dependency',
|
|
1577
1580
|
kind: 'scalar',
|
|
1578
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1579
|
-
T: 9 /*ScalarType.STRING*/
|
|
1581
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1582
|
+
T: 9, /* ScalarType.STRING */
|
|
1580
1583
|
},
|
|
1581
1584
|
{
|
|
1582
1585
|
no: 10,
|
|
1583
1586
|
name: 'public_dependency',
|
|
1584
1587
|
kind: 'scalar',
|
|
1585
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1586
|
-
T: 5 /*ScalarType.INT32*/
|
|
1588
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1589
|
+
T: 5, /* ScalarType.INT32 */
|
|
1587
1590
|
},
|
|
1588
1591
|
{
|
|
1589
1592
|
no: 11,
|
|
1590
1593
|
name: 'weak_dependency',
|
|
1591
1594
|
kind: 'scalar',
|
|
1592
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1593
|
-
T: 5 /*ScalarType.INT32*/
|
|
1595
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1596
|
+
T: 5, /* ScalarType.INT32 */
|
|
1594
1597
|
},
|
|
1595
1598
|
{
|
|
1596
1599
|
no: 4,
|
|
1597
1600
|
name: 'message_type',
|
|
1598
1601
|
kind: 'message',
|
|
1599
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1600
|
-
T: () => DescriptorProto
|
|
1602
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1603
|
+
T: () => DescriptorProto,
|
|
1601
1604
|
},
|
|
1602
1605
|
{
|
|
1603
1606
|
no: 5,
|
|
1604
1607
|
name: 'enum_type',
|
|
1605
1608
|
kind: 'message',
|
|
1606
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1607
|
-
T: () => EnumDescriptorProto
|
|
1609
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1610
|
+
T: () => EnumDescriptorProto,
|
|
1608
1611
|
},
|
|
1609
1612
|
{
|
|
1610
1613
|
no: 6,
|
|
1611
1614
|
name: 'service',
|
|
1612
1615
|
kind: 'message',
|
|
1613
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1614
|
-
T: () => ServiceDescriptorProto
|
|
1616
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1617
|
+
T: () => ServiceDescriptorProto,
|
|
1615
1618
|
},
|
|
1616
1619
|
{
|
|
1617
1620
|
no: 7,
|
|
1618
1621
|
name: 'extension',
|
|
1619
1622
|
kind: 'message',
|
|
1620
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1621
|
-
T: () => FieldDescriptorProto
|
|
1623
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1624
|
+
T: () => FieldDescriptorProto,
|
|
1622
1625
|
},
|
|
1623
1626
|
{ no: 8, name: 'options', kind: 'message', T: () => FileOptions },
|
|
1624
1627
|
{
|
|
1625
1628
|
no: 9,
|
|
1626
1629
|
name: 'source_code_info',
|
|
1627
1630
|
kind: 'message',
|
|
1628
|
-
T: () => SourceCodeInfo
|
|
1631
|
+
T: () => SourceCodeInfo,
|
|
1629
1632
|
},
|
|
1630
1633
|
{
|
|
1631
1634
|
no: 12,
|
|
1632
1635
|
name: 'syntax',
|
|
1633
1636
|
kind: 'scalar',
|
|
1634
1637
|
opt: true,
|
|
1635
|
-
T: 9 /*ScalarType.STRING*/
|
|
1636
|
-
}
|
|
1638
|
+
T: 9, /* ScalarType.STRING */
|
|
1639
|
+
},
|
|
1637
1640
|
]);
|
|
1638
1641
|
}
|
|
1642
|
+
|
|
1639
1643
|
create(value?: PartialMessage<FileDescriptorProto>): FileDescriptorProto {
|
|
1640
1644
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
1641
1645
|
message.dependency = [];
|
|
@@ -1649,16 +1653,17 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1649
1653
|
reflectionMergePartial<FileDescriptorProto>(this, message, value);
|
|
1650
1654
|
return message;
|
|
1651
1655
|
}
|
|
1656
|
+
|
|
1652
1657
|
internalBinaryRead(
|
|
1653
1658
|
reader: IBinaryReader,
|
|
1654
1659
|
length: number,
|
|
1655
1660
|
options: BinaryReadOptions,
|
|
1656
|
-
target?: FileDescriptorProto
|
|
1661
|
+
target?: FileDescriptorProto,
|
|
1657
1662
|
): FileDescriptorProto {
|
|
1658
|
-
|
|
1663
|
+
const message = target ?? this.create(),
|
|
1659
1664
|
end = reader.pos + length;
|
|
1660
1665
|
while (reader.pos < end) {
|
|
1661
|
-
|
|
1666
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1662
1667
|
switch (fieldNo) {
|
|
1663
1668
|
case /* optional string name */ 1:
|
|
1664
1669
|
message.name = reader.string();
|
|
@@ -1671,19 +1676,19 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1671
1676
|
break;
|
|
1672
1677
|
case /* repeated int32 public_dependency */ 10:
|
|
1673
1678
|
if (wireType === WireType.LengthDelimited)
|
|
1674
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;
|
|
1679
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1675
1680
|
message.publicDependency.push(reader.int32());
|
|
1676
1681
|
else message.publicDependency.push(reader.int32());
|
|
1677
1682
|
break;
|
|
1678
1683
|
case /* repeated int32 weak_dependency */ 11:
|
|
1679
1684
|
if (wireType === WireType.LengthDelimited)
|
|
1680
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;
|
|
1685
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1681
1686
|
message.weakDependency.push(reader.int32());
|
|
1682
1687
|
else message.weakDependency.push(reader.int32());
|
|
1683
1688
|
break;
|
|
1684
1689
|
case /* repeated google.protobuf.DescriptorProto message_type */ 4:
|
|
1685
1690
|
message.messageType.push(
|
|
1686
|
-
DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)
|
|
1691
|
+
DescriptorProto.internalBinaryRead(reader, reader.uint32(), options),
|
|
1687
1692
|
);
|
|
1688
1693
|
break;
|
|
1689
1694
|
case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 5:
|
|
@@ -1691,8 +1696,8 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1691
1696
|
EnumDescriptorProto.internalBinaryRead(
|
|
1692
1697
|
reader,
|
|
1693
1698
|
reader.uint32(),
|
|
1694
|
-
options
|
|
1695
|
-
)
|
|
1699
|
+
options,
|
|
1700
|
+
),
|
|
1696
1701
|
);
|
|
1697
1702
|
break;
|
|
1698
1703
|
case /* repeated google.protobuf.ServiceDescriptorProto service */ 6:
|
|
@@ -1700,8 +1705,8 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1700
1705
|
ServiceDescriptorProto.internalBinaryRead(
|
|
1701
1706
|
reader,
|
|
1702
1707
|
reader.uint32(),
|
|
1703
|
-
options
|
|
1704
|
-
)
|
|
1708
|
+
options,
|
|
1709
|
+
),
|
|
1705
1710
|
);
|
|
1706
1711
|
break;
|
|
1707
1712
|
case /* repeated google.protobuf.FieldDescriptorProto extension */ 7:
|
|
@@ -1709,8 +1714,8 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1709
1714
|
FieldDescriptorProto.internalBinaryRead(
|
|
1710
1715
|
reader,
|
|
1711
1716
|
reader.uint32(),
|
|
1712
|
-
options
|
|
1713
|
-
)
|
|
1717
|
+
options,
|
|
1718
|
+
),
|
|
1714
1719
|
);
|
|
1715
1720
|
break;
|
|
1716
1721
|
case /* optional google.protobuf.FileOptions options */ 8:
|
|
@@ -1718,7 +1723,7 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1718
1723
|
reader,
|
|
1719
1724
|
reader.uint32(),
|
|
1720
1725
|
options,
|
|
1721
|
-
message.options
|
|
1726
|
+
message.options,
|
|
1722
1727
|
);
|
|
1723
1728
|
break;
|
|
1724
1729
|
case /* optional google.protobuf.SourceCodeInfo source_code_info */ 9:
|
|
@@ -1726,35 +1731,36 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1726
1731
|
reader,
|
|
1727
1732
|
reader.uint32(),
|
|
1728
1733
|
options,
|
|
1729
|
-
message.sourceCodeInfo
|
|
1734
|
+
message.sourceCodeInfo,
|
|
1730
1735
|
);
|
|
1731
1736
|
break;
|
|
1732
1737
|
case /* optional string syntax */ 12:
|
|
1733
1738
|
message.syntax = reader.string();
|
|
1734
1739
|
break;
|
|
1735
1740
|
default:
|
|
1736
|
-
|
|
1741
|
+
const u = options.readUnknownField;
|
|
1737
1742
|
if (u === 'throw')
|
|
1738
1743
|
throw new globalThis.Error(
|
|
1739
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
1744
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
1740
1745
|
);
|
|
1741
|
-
|
|
1746
|
+
const d = reader.skip(wireType);
|
|
1742
1747
|
if (u !== false)
|
|
1743
1748
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
1744
1749
|
this.typeName,
|
|
1745
1750
|
message,
|
|
1746
1751
|
fieldNo,
|
|
1747
1752
|
wireType,
|
|
1748
|
-
d
|
|
1753
|
+
d,
|
|
1749
1754
|
);
|
|
1750
1755
|
}
|
|
1751
1756
|
}
|
|
1752
1757
|
return message;
|
|
1753
1758
|
}
|
|
1759
|
+
|
|
1754
1760
|
internalBinaryWrite(
|
|
1755
1761
|
message: FileDescriptorProto,
|
|
1756
1762
|
writer: IBinaryWriter,
|
|
1757
|
-
options: BinaryWriteOptions
|
|
1763
|
+
options: BinaryWriteOptions,
|
|
1758
1764
|
): IBinaryWriter {
|
|
1759
1765
|
/* optional string name = 1; */
|
|
1760
1766
|
if (message.name !== undefined)
|
|
@@ -1776,52 +1782,52 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1776
1782
|
DescriptorProto.internalBinaryWrite(
|
|
1777
1783
|
message.messageType[i],
|
|
1778
1784
|
writer.tag(4, WireType.LengthDelimited).fork(),
|
|
1779
|
-
options
|
|
1785
|
+
options,
|
|
1780
1786
|
).join();
|
|
1781
1787
|
/* repeated google.protobuf.EnumDescriptorProto enum_type = 5; */
|
|
1782
1788
|
for (let i = 0; i < message.enumType.length; i++)
|
|
1783
1789
|
EnumDescriptorProto.internalBinaryWrite(
|
|
1784
1790
|
message.enumType[i],
|
|
1785
1791
|
writer.tag(5, WireType.LengthDelimited).fork(),
|
|
1786
|
-
options
|
|
1792
|
+
options,
|
|
1787
1793
|
).join();
|
|
1788
1794
|
/* repeated google.protobuf.ServiceDescriptorProto service = 6; */
|
|
1789
1795
|
for (let i = 0; i < message.service.length; i++)
|
|
1790
1796
|
ServiceDescriptorProto.internalBinaryWrite(
|
|
1791
1797
|
message.service[i],
|
|
1792
1798
|
writer.tag(6, WireType.LengthDelimited).fork(),
|
|
1793
|
-
options
|
|
1799
|
+
options,
|
|
1794
1800
|
).join();
|
|
1795
1801
|
/* repeated google.protobuf.FieldDescriptorProto extension = 7; */
|
|
1796
1802
|
for (let i = 0; i < message.extension.length; i++)
|
|
1797
1803
|
FieldDescriptorProto.internalBinaryWrite(
|
|
1798
1804
|
message.extension[i],
|
|
1799
1805
|
writer.tag(7, WireType.LengthDelimited).fork(),
|
|
1800
|
-
options
|
|
1806
|
+
options,
|
|
1801
1807
|
).join();
|
|
1802
1808
|
/* optional google.protobuf.FileOptions options = 8; */
|
|
1803
1809
|
if (message.options)
|
|
1804
1810
|
FileOptions.internalBinaryWrite(
|
|
1805
1811
|
message.options,
|
|
1806
1812
|
writer.tag(8, WireType.LengthDelimited).fork(),
|
|
1807
|
-
options
|
|
1813
|
+
options,
|
|
1808
1814
|
).join();
|
|
1809
1815
|
/* optional google.protobuf.SourceCodeInfo source_code_info = 9; */
|
|
1810
1816
|
if (message.sourceCodeInfo)
|
|
1811
1817
|
SourceCodeInfo.internalBinaryWrite(
|
|
1812
1818
|
message.sourceCodeInfo,
|
|
1813
1819
|
writer.tag(9, WireType.LengthDelimited).fork(),
|
|
1814
|
-
options
|
|
1820
|
+
options,
|
|
1815
1821
|
).join();
|
|
1816
1822
|
/* optional string syntax = 12; */
|
|
1817
1823
|
if (message.syntax !== undefined)
|
|
1818
1824
|
writer.tag(12, WireType.LengthDelimited).string(message.syntax);
|
|
1819
|
-
|
|
1825
|
+
const u = options.writeUnknownFields;
|
|
1820
1826
|
if (u !== false)
|
|
1821
1827
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
1822
1828
|
this.typeName,
|
|
1823
1829
|
message,
|
|
1824
|
-
writer
|
|
1830
|
+
writer,
|
|
1825
1831
|
);
|
|
1826
1832
|
return writer;
|
|
1827
1833
|
}
|
|
@@ -1839,67 +1845,68 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1839
1845
|
name: 'name',
|
|
1840
1846
|
kind: 'scalar',
|
|
1841
1847
|
opt: true,
|
|
1842
|
-
T: 9 /*ScalarType.STRING*/
|
|
1848
|
+
T: 9, /* ScalarType.STRING */
|
|
1843
1849
|
},
|
|
1844
1850
|
{
|
|
1845
1851
|
no: 2,
|
|
1846
1852
|
name: 'field',
|
|
1847
1853
|
kind: 'message',
|
|
1848
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1849
|
-
T: () => FieldDescriptorProto
|
|
1854
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1855
|
+
T: () => FieldDescriptorProto,
|
|
1850
1856
|
},
|
|
1851
1857
|
{
|
|
1852
1858
|
no: 6,
|
|
1853
1859
|
name: 'extension',
|
|
1854
1860
|
kind: 'message',
|
|
1855
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1856
|
-
T: () => FieldDescriptorProto
|
|
1861
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1862
|
+
T: () => FieldDescriptorProto,
|
|
1857
1863
|
},
|
|
1858
1864
|
{
|
|
1859
1865
|
no: 3,
|
|
1860
1866
|
name: 'nested_type',
|
|
1861
1867
|
kind: 'message',
|
|
1862
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1863
|
-
T: () => DescriptorProto
|
|
1868
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1869
|
+
T: () => DescriptorProto,
|
|
1864
1870
|
},
|
|
1865
1871
|
{
|
|
1866
1872
|
no: 4,
|
|
1867
1873
|
name: 'enum_type',
|
|
1868
1874
|
kind: 'message',
|
|
1869
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1870
|
-
T: () => EnumDescriptorProto
|
|
1875
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1876
|
+
T: () => EnumDescriptorProto,
|
|
1871
1877
|
},
|
|
1872
1878
|
{
|
|
1873
1879
|
no: 5,
|
|
1874
1880
|
name: 'extension_range',
|
|
1875
1881
|
kind: 'message',
|
|
1876
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1877
|
-
T: () => DescriptorProto_ExtensionRange
|
|
1882
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1883
|
+
T: () => DescriptorProto_ExtensionRange,
|
|
1878
1884
|
},
|
|
1879
1885
|
{
|
|
1880
1886
|
no: 8,
|
|
1881
1887
|
name: 'oneof_decl',
|
|
1882
1888
|
kind: 'message',
|
|
1883
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1884
|
-
T: () => OneofDescriptorProto
|
|
1889
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1890
|
+
T: () => OneofDescriptorProto,
|
|
1885
1891
|
},
|
|
1886
1892
|
{ no: 7, name: 'options', kind: 'message', T: () => MessageOptions },
|
|
1887
1893
|
{
|
|
1888
1894
|
no: 9,
|
|
1889
1895
|
name: 'reserved_range',
|
|
1890
1896
|
kind: 'message',
|
|
1891
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1892
|
-
T: () => DescriptorProto_ReservedRange
|
|
1897
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1898
|
+
T: () => DescriptorProto_ReservedRange,
|
|
1893
1899
|
},
|
|
1894
1900
|
{
|
|
1895
1901
|
no: 10,
|
|
1896
1902
|
name: 'reserved_name',
|
|
1897
1903
|
kind: 'scalar',
|
|
1898
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1899
|
-
T: 9 /*ScalarType.STRING*/
|
|
1900
|
-
}
|
|
1904
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
1905
|
+
T: 9, /* ScalarType.STRING */
|
|
1906
|
+
},
|
|
1901
1907
|
]);
|
|
1902
1908
|
}
|
|
1909
|
+
|
|
1903
1910
|
create(value?: PartialMessage<DescriptorProto>): DescriptorProto {
|
|
1904
1911
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
1905
1912
|
message.field = [];
|
|
@@ -1914,16 +1921,17 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1914
1921
|
reflectionMergePartial<DescriptorProto>(this, message, value);
|
|
1915
1922
|
return message;
|
|
1916
1923
|
}
|
|
1924
|
+
|
|
1917
1925
|
internalBinaryRead(
|
|
1918
1926
|
reader: IBinaryReader,
|
|
1919
1927
|
length: number,
|
|
1920
1928
|
options: BinaryReadOptions,
|
|
1921
|
-
target?: DescriptorProto
|
|
1929
|
+
target?: DescriptorProto,
|
|
1922
1930
|
): DescriptorProto {
|
|
1923
|
-
|
|
1931
|
+
const message = target ?? this.create(),
|
|
1924
1932
|
end = reader.pos + length;
|
|
1925
1933
|
while (reader.pos < end) {
|
|
1926
|
-
|
|
1934
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1927
1935
|
switch (fieldNo) {
|
|
1928
1936
|
case /* optional string name */ 1:
|
|
1929
1937
|
message.name = reader.string();
|
|
@@ -1933,8 +1941,8 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1933
1941
|
FieldDescriptorProto.internalBinaryRead(
|
|
1934
1942
|
reader,
|
|
1935
1943
|
reader.uint32(),
|
|
1936
|
-
options
|
|
1937
|
-
)
|
|
1944
|
+
options,
|
|
1945
|
+
),
|
|
1938
1946
|
);
|
|
1939
1947
|
break;
|
|
1940
1948
|
case /* repeated google.protobuf.FieldDescriptorProto extension */ 6:
|
|
@@ -1942,13 +1950,13 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1942
1950
|
FieldDescriptorProto.internalBinaryRead(
|
|
1943
1951
|
reader,
|
|
1944
1952
|
reader.uint32(),
|
|
1945
|
-
options
|
|
1946
|
-
)
|
|
1953
|
+
options,
|
|
1954
|
+
),
|
|
1947
1955
|
);
|
|
1948
1956
|
break;
|
|
1949
1957
|
case /* repeated google.protobuf.DescriptorProto nested_type */ 3:
|
|
1950
1958
|
message.nestedType.push(
|
|
1951
|
-
DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)
|
|
1959
|
+
DescriptorProto.internalBinaryRead(reader, reader.uint32(), options),
|
|
1952
1960
|
);
|
|
1953
1961
|
break;
|
|
1954
1962
|
case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 4:
|
|
@@ -1956,8 +1964,8 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1956
1964
|
EnumDescriptorProto.internalBinaryRead(
|
|
1957
1965
|
reader,
|
|
1958
1966
|
reader.uint32(),
|
|
1959
|
-
options
|
|
1960
|
-
)
|
|
1967
|
+
options,
|
|
1968
|
+
),
|
|
1961
1969
|
);
|
|
1962
1970
|
break;
|
|
1963
1971
|
case /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range */ 5:
|
|
@@ -1965,8 +1973,8 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1965
1973
|
DescriptorProto_ExtensionRange.internalBinaryRead(
|
|
1966
1974
|
reader,
|
|
1967
1975
|
reader.uint32(),
|
|
1968
|
-
options
|
|
1969
|
-
)
|
|
1976
|
+
options,
|
|
1977
|
+
),
|
|
1970
1978
|
);
|
|
1971
1979
|
break;
|
|
1972
1980
|
case /* repeated google.protobuf.OneofDescriptorProto oneof_decl */ 8:
|
|
@@ -1974,8 +1982,8 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1974
1982
|
OneofDescriptorProto.internalBinaryRead(
|
|
1975
1983
|
reader,
|
|
1976
1984
|
reader.uint32(),
|
|
1977
|
-
options
|
|
1978
|
-
)
|
|
1985
|
+
options,
|
|
1986
|
+
),
|
|
1979
1987
|
);
|
|
1980
1988
|
break;
|
|
1981
1989
|
case /* optional google.protobuf.MessageOptions options */ 7:
|
|
@@ -1983,7 +1991,7 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1983
1991
|
reader,
|
|
1984
1992
|
reader.uint32(),
|
|
1985
1993
|
options,
|
|
1986
|
-
message.options
|
|
1994
|
+
message.options,
|
|
1987
1995
|
);
|
|
1988
1996
|
break;
|
|
1989
1997
|
case /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range */ 9:
|
|
@@ -1991,36 +1999,37 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
1991
1999
|
DescriptorProto_ReservedRange.internalBinaryRead(
|
|
1992
2000
|
reader,
|
|
1993
2001
|
reader.uint32(),
|
|
1994
|
-
options
|
|
1995
|
-
)
|
|
2002
|
+
options,
|
|
2003
|
+
),
|
|
1996
2004
|
);
|
|
1997
2005
|
break;
|
|
1998
2006
|
case /* repeated string reserved_name */ 10:
|
|
1999
2007
|
message.reservedName.push(reader.string());
|
|
2000
2008
|
break;
|
|
2001
2009
|
default:
|
|
2002
|
-
|
|
2010
|
+
const u = options.readUnknownField;
|
|
2003
2011
|
if (u === 'throw')
|
|
2004
2012
|
throw new globalThis.Error(
|
|
2005
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2013
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2006
2014
|
);
|
|
2007
|
-
|
|
2015
|
+
const d = reader.skip(wireType);
|
|
2008
2016
|
if (u !== false)
|
|
2009
2017
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2010
2018
|
this.typeName,
|
|
2011
2019
|
message,
|
|
2012
2020
|
fieldNo,
|
|
2013
2021
|
wireType,
|
|
2014
|
-
d
|
|
2022
|
+
d,
|
|
2015
2023
|
);
|
|
2016
2024
|
}
|
|
2017
2025
|
}
|
|
2018
2026
|
return message;
|
|
2019
2027
|
}
|
|
2028
|
+
|
|
2020
2029
|
internalBinaryWrite(
|
|
2021
2030
|
message: DescriptorProto,
|
|
2022
2031
|
writer: IBinaryWriter,
|
|
2023
|
-
options: BinaryWriteOptions
|
|
2032
|
+
options: BinaryWriteOptions,
|
|
2024
2033
|
): IBinaryWriter {
|
|
2025
2034
|
/* optional string name = 1; */
|
|
2026
2035
|
if (message.name !== undefined)
|
|
@@ -2030,66 +2039,66 @@ class DescriptorProto$Type extends MessageType<DescriptorProto> {
|
|
|
2030
2039
|
FieldDescriptorProto.internalBinaryWrite(
|
|
2031
2040
|
message.field[i],
|
|
2032
2041
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
2033
|
-
options
|
|
2042
|
+
options,
|
|
2034
2043
|
).join();
|
|
2035
2044
|
/* repeated google.protobuf.FieldDescriptorProto extension = 6; */
|
|
2036
2045
|
for (let i = 0; i < message.extension.length; i++)
|
|
2037
2046
|
FieldDescriptorProto.internalBinaryWrite(
|
|
2038
2047
|
message.extension[i],
|
|
2039
2048
|
writer.tag(6, WireType.LengthDelimited).fork(),
|
|
2040
|
-
options
|
|
2049
|
+
options,
|
|
2041
2050
|
).join();
|
|
2042
2051
|
/* repeated google.protobuf.DescriptorProto nested_type = 3; */
|
|
2043
2052
|
for (let i = 0; i < message.nestedType.length; i++)
|
|
2044
2053
|
DescriptorProto.internalBinaryWrite(
|
|
2045
2054
|
message.nestedType[i],
|
|
2046
2055
|
writer.tag(3, WireType.LengthDelimited).fork(),
|
|
2047
|
-
options
|
|
2056
|
+
options,
|
|
2048
2057
|
).join();
|
|
2049
2058
|
/* repeated google.protobuf.EnumDescriptorProto enum_type = 4; */
|
|
2050
2059
|
for (let i = 0; i < message.enumType.length; i++)
|
|
2051
2060
|
EnumDescriptorProto.internalBinaryWrite(
|
|
2052
2061
|
message.enumType[i],
|
|
2053
2062
|
writer.tag(4, WireType.LengthDelimited).fork(),
|
|
2054
|
-
options
|
|
2063
|
+
options,
|
|
2055
2064
|
).join();
|
|
2056
2065
|
/* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */
|
|
2057
2066
|
for (let i = 0; i < message.extensionRange.length; i++)
|
|
2058
2067
|
DescriptorProto_ExtensionRange.internalBinaryWrite(
|
|
2059
2068
|
message.extensionRange[i],
|
|
2060
2069
|
writer.tag(5, WireType.LengthDelimited).fork(),
|
|
2061
|
-
options
|
|
2070
|
+
options,
|
|
2062
2071
|
).join();
|
|
2063
2072
|
/* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */
|
|
2064
2073
|
for (let i = 0; i < message.oneofDecl.length; i++)
|
|
2065
2074
|
OneofDescriptorProto.internalBinaryWrite(
|
|
2066
2075
|
message.oneofDecl[i],
|
|
2067
2076
|
writer.tag(8, WireType.LengthDelimited).fork(),
|
|
2068
|
-
options
|
|
2077
|
+
options,
|
|
2069
2078
|
).join();
|
|
2070
2079
|
/* optional google.protobuf.MessageOptions options = 7; */
|
|
2071
2080
|
if (message.options)
|
|
2072
2081
|
MessageOptions.internalBinaryWrite(
|
|
2073
2082
|
message.options,
|
|
2074
2083
|
writer.tag(7, WireType.LengthDelimited).fork(),
|
|
2075
|
-
options
|
|
2084
|
+
options,
|
|
2076
2085
|
).join();
|
|
2077
2086
|
/* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */
|
|
2078
2087
|
for (let i = 0; i < message.reservedRange.length; i++)
|
|
2079
2088
|
DescriptorProto_ReservedRange.internalBinaryWrite(
|
|
2080
2089
|
message.reservedRange[i],
|
|
2081
2090
|
writer.tag(9, WireType.LengthDelimited).fork(),
|
|
2082
|
-
options
|
|
2091
|
+
options,
|
|
2083
2092
|
).join();
|
|
2084
2093
|
/* repeated string reserved_name = 10; */
|
|
2085
2094
|
for (let i = 0; i < message.reservedName.length; i++)
|
|
2086
2095
|
writer.tag(10, WireType.LengthDelimited).string(message.reservedName[i]);
|
|
2087
|
-
|
|
2096
|
+
const u = options.writeUnknownFields;
|
|
2088
2097
|
if (u !== false)
|
|
2089
2098
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2090
2099
|
this.typeName,
|
|
2091
2100
|
message,
|
|
2092
|
-
writer
|
|
2101
|
+
writer,
|
|
2093
2102
|
);
|
|
2094
2103
|
return writer;
|
|
2095
2104
|
}
|
|
@@ -2107,45 +2116,47 @@ class DescriptorProto_ExtensionRange$Type extends MessageType<DescriptorProto_Ex
|
|
|
2107
2116
|
name: 'start',
|
|
2108
2117
|
kind: 'scalar',
|
|
2109
2118
|
opt: true,
|
|
2110
|
-
T: 5 /*ScalarType.INT32*/
|
|
2119
|
+
T: 5, /* ScalarType.INT32 */
|
|
2111
2120
|
},
|
|
2112
2121
|
{
|
|
2113
2122
|
no: 2,
|
|
2114
2123
|
name: 'end',
|
|
2115
2124
|
kind: 'scalar',
|
|
2116
2125
|
opt: true,
|
|
2117
|
-
T: 5 /*ScalarType.INT32*/
|
|
2126
|
+
T: 5, /* ScalarType.INT32 */
|
|
2118
2127
|
},
|
|
2119
2128
|
{
|
|
2120
2129
|
no: 3,
|
|
2121
2130
|
name: 'options',
|
|
2122
2131
|
kind: 'message',
|
|
2123
|
-
T: () => ExtensionRangeOptions
|
|
2124
|
-
}
|
|
2132
|
+
T: () => ExtensionRangeOptions,
|
|
2133
|
+
},
|
|
2125
2134
|
]);
|
|
2126
2135
|
}
|
|
2136
|
+
|
|
2127
2137
|
create(
|
|
2128
|
-
value?: PartialMessage<DescriptorProto_ExtensionRange
|
|
2138
|
+
value?: PartialMessage<DescriptorProto_ExtensionRange>,
|
|
2129
2139
|
): DescriptorProto_ExtensionRange {
|
|
2130
2140
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2131
2141
|
if (value !== undefined)
|
|
2132
2142
|
reflectionMergePartial<DescriptorProto_ExtensionRange>(
|
|
2133
2143
|
this,
|
|
2134
2144
|
message,
|
|
2135
|
-
value
|
|
2145
|
+
value,
|
|
2136
2146
|
);
|
|
2137
2147
|
return message;
|
|
2138
2148
|
}
|
|
2149
|
+
|
|
2139
2150
|
internalBinaryRead(
|
|
2140
2151
|
reader: IBinaryReader,
|
|
2141
2152
|
length: number,
|
|
2142
2153
|
options: BinaryReadOptions,
|
|
2143
|
-
target?: DescriptorProto_ExtensionRange
|
|
2154
|
+
target?: DescriptorProto_ExtensionRange,
|
|
2144
2155
|
): DescriptorProto_ExtensionRange {
|
|
2145
|
-
|
|
2156
|
+
const message = target ?? this.create(),
|
|
2146
2157
|
end = reader.pos + length;
|
|
2147
2158
|
while (reader.pos < end) {
|
|
2148
|
-
|
|
2159
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2149
2160
|
switch (fieldNo) {
|
|
2150
2161
|
case /* optional int32 start */ 1:
|
|
2151
2162
|
message.start = reader.int32();
|
|
@@ -2158,32 +2169,33 @@ class DescriptorProto_ExtensionRange$Type extends MessageType<DescriptorProto_Ex
|
|
|
2158
2169
|
reader,
|
|
2159
2170
|
reader.uint32(),
|
|
2160
2171
|
options,
|
|
2161
|
-
message.options
|
|
2172
|
+
message.options,
|
|
2162
2173
|
);
|
|
2163
2174
|
break;
|
|
2164
2175
|
default:
|
|
2165
|
-
|
|
2176
|
+
const u = options.readUnknownField;
|
|
2166
2177
|
if (u === 'throw')
|
|
2167
2178
|
throw new globalThis.Error(
|
|
2168
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2179
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2169
2180
|
);
|
|
2170
|
-
|
|
2181
|
+
const d = reader.skip(wireType);
|
|
2171
2182
|
if (u !== false)
|
|
2172
2183
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2173
2184
|
this.typeName,
|
|
2174
2185
|
message,
|
|
2175
2186
|
fieldNo,
|
|
2176
2187
|
wireType,
|
|
2177
|
-
d
|
|
2188
|
+
d,
|
|
2178
2189
|
);
|
|
2179
2190
|
}
|
|
2180
2191
|
}
|
|
2181
2192
|
return message;
|
|
2182
2193
|
}
|
|
2194
|
+
|
|
2183
2195
|
internalBinaryWrite(
|
|
2184
2196
|
message: DescriptorProto_ExtensionRange,
|
|
2185
2197
|
writer: IBinaryWriter,
|
|
2186
|
-
options: BinaryWriteOptions
|
|
2198
|
+
options: BinaryWriteOptions,
|
|
2187
2199
|
): IBinaryWriter {
|
|
2188
2200
|
/* optional int32 start = 1; */
|
|
2189
2201
|
if (message.start !== undefined)
|
|
@@ -2196,14 +2208,14 @@ class DescriptorProto_ExtensionRange$Type extends MessageType<DescriptorProto_Ex
|
|
|
2196
2208
|
ExtensionRangeOptions.internalBinaryWrite(
|
|
2197
2209
|
message.options,
|
|
2198
2210
|
writer.tag(3, WireType.LengthDelimited).fork(),
|
|
2199
|
-
options
|
|
2211
|
+
options,
|
|
2200
2212
|
).join();
|
|
2201
|
-
|
|
2213
|
+
const u = options.writeUnknownFields;
|
|
2202
2214
|
if (u !== false)
|
|
2203
2215
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2204
2216
|
this.typeName,
|
|
2205
2217
|
message,
|
|
2206
|
-
writer
|
|
2218
|
+
writer,
|
|
2207
2219
|
);
|
|
2208
2220
|
return writer;
|
|
2209
2221
|
}
|
|
@@ -2211,8 +2223,8 @@ class DescriptorProto_ExtensionRange$Type extends MessageType<DescriptorProto_Ex
|
|
|
2211
2223
|
/**
|
|
2212
2224
|
* @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange
|
|
2213
2225
|
*/
|
|
2214
|
-
export const DescriptorProto_ExtensionRange
|
|
2215
|
-
new DescriptorProto_ExtensionRange$Type();
|
|
2226
|
+
export const DescriptorProto_ExtensionRange
|
|
2227
|
+
= new DescriptorProto_ExtensionRange$Type();
|
|
2216
2228
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2217
2229
|
class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_ReservedRange> {
|
|
2218
2230
|
constructor() {
|
|
@@ -2222,39 +2234,41 @@ class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_Res
|
|
|
2222
2234
|
name: 'start',
|
|
2223
2235
|
kind: 'scalar',
|
|
2224
2236
|
opt: true,
|
|
2225
|
-
T: 5 /*ScalarType.INT32*/
|
|
2237
|
+
T: 5, /* ScalarType.INT32 */
|
|
2226
2238
|
},
|
|
2227
2239
|
{
|
|
2228
2240
|
no: 2,
|
|
2229
2241
|
name: 'end',
|
|
2230
2242
|
kind: 'scalar',
|
|
2231
2243
|
opt: true,
|
|
2232
|
-
T: 5 /*ScalarType.INT32*/
|
|
2233
|
-
}
|
|
2244
|
+
T: 5, /* ScalarType.INT32 */
|
|
2245
|
+
},
|
|
2234
2246
|
]);
|
|
2235
2247
|
}
|
|
2248
|
+
|
|
2236
2249
|
create(
|
|
2237
|
-
value?: PartialMessage<DescriptorProto_ReservedRange
|
|
2250
|
+
value?: PartialMessage<DescriptorProto_ReservedRange>,
|
|
2238
2251
|
): DescriptorProto_ReservedRange {
|
|
2239
2252
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2240
2253
|
if (value !== undefined)
|
|
2241
2254
|
reflectionMergePartial<DescriptorProto_ReservedRange>(
|
|
2242
2255
|
this,
|
|
2243
2256
|
message,
|
|
2244
|
-
value
|
|
2257
|
+
value,
|
|
2245
2258
|
);
|
|
2246
2259
|
return message;
|
|
2247
2260
|
}
|
|
2261
|
+
|
|
2248
2262
|
internalBinaryRead(
|
|
2249
2263
|
reader: IBinaryReader,
|
|
2250
2264
|
length: number,
|
|
2251
2265
|
options: BinaryReadOptions,
|
|
2252
|
-
target?: DescriptorProto_ReservedRange
|
|
2266
|
+
target?: DescriptorProto_ReservedRange,
|
|
2253
2267
|
): DescriptorProto_ReservedRange {
|
|
2254
|
-
|
|
2268
|
+
const message = target ?? this.create(),
|
|
2255
2269
|
end = reader.pos + length;
|
|
2256
2270
|
while (reader.pos < end) {
|
|
2257
|
-
|
|
2271
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2258
2272
|
switch (fieldNo) {
|
|
2259
2273
|
case /* optional int32 start */ 1:
|
|
2260
2274
|
message.start = reader.int32();
|
|
@@ -2263,28 +2277,29 @@ class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_Res
|
|
|
2263
2277
|
message.end = reader.int32();
|
|
2264
2278
|
break;
|
|
2265
2279
|
default:
|
|
2266
|
-
|
|
2280
|
+
const u = options.readUnknownField;
|
|
2267
2281
|
if (u === 'throw')
|
|
2268
2282
|
throw new globalThis.Error(
|
|
2269
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2283
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2270
2284
|
);
|
|
2271
|
-
|
|
2285
|
+
const d = reader.skip(wireType);
|
|
2272
2286
|
if (u !== false)
|
|
2273
2287
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2274
2288
|
this.typeName,
|
|
2275
2289
|
message,
|
|
2276
2290
|
fieldNo,
|
|
2277
2291
|
wireType,
|
|
2278
|
-
d
|
|
2292
|
+
d,
|
|
2279
2293
|
);
|
|
2280
2294
|
}
|
|
2281
2295
|
}
|
|
2282
2296
|
return message;
|
|
2283
2297
|
}
|
|
2298
|
+
|
|
2284
2299
|
internalBinaryWrite(
|
|
2285
2300
|
message: DescriptorProto_ReservedRange,
|
|
2286
2301
|
writer: IBinaryWriter,
|
|
2287
|
-
options: BinaryWriteOptions
|
|
2302
|
+
options: BinaryWriteOptions,
|
|
2288
2303
|
): IBinaryWriter {
|
|
2289
2304
|
/* optional int32 start = 1; */
|
|
2290
2305
|
if (message.start !== undefined)
|
|
@@ -2292,12 +2307,12 @@ class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_Res
|
|
|
2292
2307
|
/* optional int32 end = 2; */
|
|
2293
2308
|
if (message.end !== undefined)
|
|
2294
2309
|
writer.tag(2, WireType.Varint).int32(message.end);
|
|
2295
|
-
|
|
2310
|
+
const u = options.writeUnknownFields;
|
|
2296
2311
|
if (u !== false)
|
|
2297
2312
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2298
2313
|
this.typeName,
|
|
2299
2314
|
message,
|
|
2300
|
-
writer
|
|
2315
|
+
writer,
|
|
2301
2316
|
);
|
|
2302
2317
|
return writer;
|
|
2303
2318
|
}
|
|
@@ -2305,8 +2320,8 @@ class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_Res
|
|
|
2305
2320
|
/**
|
|
2306
2321
|
* @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange
|
|
2307
2322
|
*/
|
|
2308
|
-
export const DescriptorProto_ReservedRange
|
|
2309
|
-
new DescriptorProto_ReservedRange$Type();
|
|
2323
|
+
export const DescriptorProto_ReservedRange
|
|
2324
|
+
= new DescriptorProto_ReservedRange$Type();
|
|
2310
2325
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2311
2326
|
class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
2312
2327
|
constructor() {
|
|
@@ -2315,11 +2330,12 @@ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
|
2315
2330
|
no: 999,
|
|
2316
2331
|
name: 'uninterpreted_option',
|
|
2317
2332
|
kind: 'message',
|
|
2318
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
2319
|
-
T: () => UninterpretedOption
|
|
2320
|
-
}
|
|
2333
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
2334
|
+
T: () => UninterpretedOption,
|
|
2335
|
+
},
|
|
2321
2336
|
]);
|
|
2322
2337
|
}
|
|
2338
|
+
|
|
2323
2339
|
create(value?: PartialMessage<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
2324
2340
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2325
2341
|
message.uninterpretedOption = [];
|
|
@@ -2327,63 +2343,65 @@ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
|
2327
2343
|
reflectionMergePartial<ExtensionRangeOptions>(this, message, value);
|
|
2328
2344
|
return message;
|
|
2329
2345
|
}
|
|
2346
|
+
|
|
2330
2347
|
internalBinaryRead(
|
|
2331
2348
|
reader: IBinaryReader,
|
|
2332
2349
|
length: number,
|
|
2333
2350
|
options: BinaryReadOptions,
|
|
2334
|
-
target?: ExtensionRangeOptions
|
|
2351
|
+
target?: ExtensionRangeOptions,
|
|
2335
2352
|
): ExtensionRangeOptions {
|
|
2336
|
-
|
|
2353
|
+
const message = target ?? this.create(),
|
|
2337
2354
|
end = reader.pos + length;
|
|
2338
2355
|
while (reader.pos < end) {
|
|
2339
|
-
|
|
2356
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2340
2357
|
switch (fieldNo) {
|
|
2341
2358
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2342
2359
|
message.uninterpretedOption.push(
|
|
2343
2360
|
UninterpretedOption.internalBinaryRead(
|
|
2344
2361
|
reader,
|
|
2345
2362
|
reader.uint32(),
|
|
2346
|
-
options
|
|
2347
|
-
)
|
|
2363
|
+
options,
|
|
2364
|
+
),
|
|
2348
2365
|
);
|
|
2349
2366
|
break;
|
|
2350
2367
|
default:
|
|
2351
|
-
|
|
2368
|
+
const u = options.readUnknownField;
|
|
2352
2369
|
if (u === 'throw')
|
|
2353
2370
|
throw new globalThis.Error(
|
|
2354
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2371
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2355
2372
|
);
|
|
2356
|
-
|
|
2373
|
+
const d = reader.skip(wireType);
|
|
2357
2374
|
if (u !== false)
|
|
2358
2375
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2359
2376
|
this.typeName,
|
|
2360
2377
|
message,
|
|
2361
2378
|
fieldNo,
|
|
2362
2379
|
wireType,
|
|
2363
|
-
d
|
|
2380
|
+
d,
|
|
2364
2381
|
);
|
|
2365
2382
|
}
|
|
2366
2383
|
}
|
|
2367
2384
|
return message;
|
|
2368
2385
|
}
|
|
2386
|
+
|
|
2369
2387
|
internalBinaryWrite(
|
|
2370
2388
|
message: ExtensionRangeOptions,
|
|
2371
2389
|
writer: IBinaryWriter,
|
|
2372
|
-
options: BinaryWriteOptions
|
|
2390
|
+
options: BinaryWriteOptions,
|
|
2373
2391
|
): IBinaryWriter {
|
|
2374
2392
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2375
2393
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2376
2394
|
UninterpretedOption.internalBinaryWrite(
|
|
2377
2395
|
message.uninterpretedOption[i],
|
|
2378
2396
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
2379
|
-
options
|
|
2397
|
+
options,
|
|
2380
2398
|
).join();
|
|
2381
|
-
|
|
2399
|
+
const u = options.writeUnknownFields;
|
|
2382
2400
|
if (u !== false)
|
|
2383
2401
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2384
2402
|
this.typeName,
|
|
2385
2403
|
message,
|
|
2386
|
-
writer
|
|
2404
|
+
writer,
|
|
2387
2405
|
);
|
|
2388
2406
|
return writer;
|
|
2389
2407
|
}
|
|
@@ -2401,14 +2419,14 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2401
2419
|
name: 'name',
|
|
2402
2420
|
kind: 'scalar',
|
|
2403
2421
|
opt: true,
|
|
2404
|
-
T: 9 /*ScalarType.STRING*/
|
|
2422
|
+
T: 9, /* ScalarType.STRING */
|
|
2405
2423
|
},
|
|
2406
2424
|
{
|
|
2407
2425
|
no: 3,
|
|
2408
2426
|
name: 'number',
|
|
2409
2427
|
kind: 'scalar',
|
|
2410
2428
|
opt: true,
|
|
2411
|
-
T: 5 /*ScalarType.INT32*/
|
|
2429
|
+
T: 5, /* ScalarType.INT32 */
|
|
2412
2430
|
},
|
|
2413
2431
|
{
|
|
2414
2432
|
no: 4,
|
|
@@ -2418,8 +2436,8 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2418
2436
|
T: () => [
|
|
2419
2437
|
'google.protobuf.FieldDescriptorProto.Label',
|
|
2420
2438
|
FieldDescriptorProto_Label,
|
|
2421
|
-
'LABEL_'
|
|
2422
|
-
]
|
|
2439
|
+
'LABEL_',
|
|
2440
|
+
],
|
|
2423
2441
|
},
|
|
2424
2442
|
{
|
|
2425
2443
|
no: 5,
|
|
@@ -2429,43 +2447,43 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2429
2447
|
T: () => [
|
|
2430
2448
|
'google.protobuf.FieldDescriptorProto.Type',
|
|
2431
2449
|
FieldDescriptorProto_Type,
|
|
2432
|
-
'TYPE_'
|
|
2433
|
-
]
|
|
2450
|
+
'TYPE_',
|
|
2451
|
+
],
|
|
2434
2452
|
},
|
|
2435
2453
|
{
|
|
2436
2454
|
no: 6,
|
|
2437
2455
|
name: 'type_name',
|
|
2438
2456
|
kind: 'scalar',
|
|
2439
2457
|
opt: true,
|
|
2440
|
-
T: 9 /*ScalarType.STRING*/
|
|
2458
|
+
T: 9, /* ScalarType.STRING */
|
|
2441
2459
|
},
|
|
2442
2460
|
{
|
|
2443
2461
|
no: 2,
|
|
2444
2462
|
name: 'extendee',
|
|
2445
2463
|
kind: 'scalar',
|
|
2446
2464
|
opt: true,
|
|
2447
|
-
T: 9 /*ScalarType.STRING*/
|
|
2465
|
+
T: 9, /* ScalarType.STRING */
|
|
2448
2466
|
},
|
|
2449
2467
|
{
|
|
2450
2468
|
no: 7,
|
|
2451
2469
|
name: 'default_value',
|
|
2452
2470
|
kind: 'scalar',
|
|
2453
2471
|
opt: true,
|
|
2454
|
-
T: 9 /*ScalarType.STRING*/
|
|
2472
|
+
T: 9, /* ScalarType.STRING */
|
|
2455
2473
|
},
|
|
2456
2474
|
{
|
|
2457
2475
|
no: 9,
|
|
2458
2476
|
name: 'oneof_index',
|
|
2459
2477
|
kind: 'scalar',
|
|
2460
2478
|
opt: true,
|
|
2461
|
-
T: 5 /*ScalarType.INT32*/
|
|
2479
|
+
T: 5, /* ScalarType.INT32 */
|
|
2462
2480
|
},
|
|
2463
2481
|
{
|
|
2464
2482
|
no: 10,
|
|
2465
2483
|
name: 'json_name',
|
|
2466
2484
|
kind: 'scalar',
|
|
2467
2485
|
opt: true,
|
|
2468
|
-
T: 9 /*ScalarType.STRING*/
|
|
2486
|
+
T: 9, /* ScalarType.STRING */
|
|
2469
2487
|
},
|
|
2470
2488
|
{ no: 8, name: 'options', kind: 'message', T: () => FieldOptions },
|
|
2471
2489
|
{
|
|
@@ -2473,26 +2491,28 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2473
2491
|
name: 'proto3_optional',
|
|
2474
2492
|
kind: 'scalar',
|
|
2475
2493
|
opt: true,
|
|
2476
|
-
T: 8 /*ScalarType.BOOL*/
|
|
2477
|
-
}
|
|
2494
|
+
T: 8, /* ScalarType.BOOL */
|
|
2495
|
+
},
|
|
2478
2496
|
]);
|
|
2479
2497
|
}
|
|
2498
|
+
|
|
2480
2499
|
create(value?: PartialMessage<FieldDescriptorProto>): FieldDescriptorProto {
|
|
2481
2500
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2482
2501
|
if (value !== undefined)
|
|
2483
2502
|
reflectionMergePartial<FieldDescriptorProto>(this, message, value);
|
|
2484
2503
|
return message;
|
|
2485
2504
|
}
|
|
2505
|
+
|
|
2486
2506
|
internalBinaryRead(
|
|
2487
2507
|
reader: IBinaryReader,
|
|
2488
2508
|
length: number,
|
|
2489
2509
|
options: BinaryReadOptions,
|
|
2490
|
-
target?: FieldDescriptorProto
|
|
2510
|
+
target?: FieldDescriptorProto,
|
|
2491
2511
|
): FieldDescriptorProto {
|
|
2492
|
-
|
|
2512
|
+
const message = target ?? this.create(),
|
|
2493
2513
|
end = reader.pos + length;
|
|
2494
2514
|
while (reader.pos < end) {
|
|
2495
|
-
|
|
2515
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2496
2516
|
switch (fieldNo) {
|
|
2497
2517
|
case /* optional string name */ 1:
|
|
2498
2518
|
message.name = reader.string();
|
|
@@ -2526,35 +2546,36 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2526
2546
|
reader,
|
|
2527
2547
|
reader.uint32(),
|
|
2528
2548
|
options,
|
|
2529
|
-
message.options
|
|
2549
|
+
message.options,
|
|
2530
2550
|
);
|
|
2531
2551
|
break;
|
|
2532
2552
|
case /* optional bool proto3_optional */ 17:
|
|
2533
2553
|
message.proto3Optional = reader.bool();
|
|
2534
2554
|
break;
|
|
2535
2555
|
default:
|
|
2536
|
-
|
|
2556
|
+
const u = options.readUnknownField;
|
|
2537
2557
|
if (u === 'throw')
|
|
2538
2558
|
throw new globalThis.Error(
|
|
2539
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2559
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2540
2560
|
);
|
|
2541
|
-
|
|
2561
|
+
const d = reader.skip(wireType);
|
|
2542
2562
|
if (u !== false)
|
|
2543
2563
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2544
2564
|
this.typeName,
|
|
2545
2565
|
message,
|
|
2546
2566
|
fieldNo,
|
|
2547
2567
|
wireType,
|
|
2548
|
-
d
|
|
2568
|
+
d,
|
|
2549
2569
|
);
|
|
2550
2570
|
}
|
|
2551
2571
|
}
|
|
2552
2572
|
return message;
|
|
2553
2573
|
}
|
|
2574
|
+
|
|
2554
2575
|
internalBinaryWrite(
|
|
2555
2576
|
message: FieldDescriptorProto,
|
|
2556
2577
|
writer: IBinaryWriter,
|
|
2557
|
-
options: BinaryWriteOptions
|
|
2578
|
+
options: BinaryWriteOptions,
|
|
2558
2579
|
): IBinaryWriter {
|
|
2559
2580
|
/* optional string name = 1; */
|
|
2560
2581
|
if (message.name !== undefined)
|
|
@@ -2588,17 +2609,17 @@ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
|
2588
2609
|
FieldOptions.internalBinaryWrite(
|
|
2589
2610
|
message.options,
|
|
2590
2611
|
writer.tag(8, WireType.LengthDelimited).fork(),
|
|
2591
|
-
options
|
|
2612
|
+
options,
|
|
2592
2613
|
).join();
|
|
2593
2614
|
/* optional bool proto3_optional = 17; */
|
|
2594
2615
|
if (message.proto3Optional !== undefined)
|
|
2595
2616
|
writer.tag(17, WireType.Varint).bool(message.proto3Optional);
|
|
2596
|
-
|
|
2617
|
+
const u = options.writeUnknownFields;
|
|
2597
2618
|
if (u !== false)
|
|
2598
2619
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2599
2620
|
this.typeName,
|
|
2600
2621
|
message,
|
|
2601
|
-
writer
|
|
2622
|
+
writer,
|
|
2602
2623
|
);
|
|
2603
2624
|
return writer;
|
|
2604
2625
|
}
|
|
@@ -2616,27 +2637,29 @@ class OneofDescriptorProto$Type extends MessageType<OneofDescriptorProto> {
|
|
|
2616
2637
|
name: 'name',
|
|
2617
2638
|
kind: 'scalar',
|
|
2618
2639
|
opt: true,
|
|
2619
|
-
T: 9 /*ScalarType.STRING*/
|
|
2640
|
+
T: 9, /* ScalarType.STRING */
|
|
2620
2641
|
},
|
|
2621
|
-
{ no: 2, name: 'options', kind: 'message', T: () => OneofOptions }
|
|
2642
|
+
{ no: 2, name: 'options', kind: 'message', T: () => OneofOptions },
|
|
2622
2643
|
]);
|
|
2623
2644
|
}
|
|
2645
|
+
|
|
2624
2646
|
create(value?: PartialMessage<OneofDescriptorProto>): OneofDescriptorProto {
|
|
2625
2647
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2626
2648
|
if (value !== undefined)
|
|
2627
2649
|
reflectionMergePartial<OneofDescriptorProto>(this, message, value);
|
|
2628
2650
|
return message;
|
|
2629
2651
|
}
|
|
2652
|
+
|
|
2630
2653
|
internalBinaryRead(
|
|
2631
2654
|
reader: IBinaryReader,
|
|
2632
2655
|
length: number,
|
|
2633
2656
|
options: BinaryReadOptions,
|
|
2634
|
-
target?: OneofDescriptorProto
|
|
2657
|
+
target?: OneofDescriptorProto,
|
|
2635
2658
|
): OneofDescriptorProto {
|
|
2636
|
-
|
|
2659
|
+
const message = target ?? this.create(),
|
|
2637
2660
|
end = reader.pos + length;
|
|
2638
2661
|
while (reader.pos < end) {
|
|
2639
|
-
|
|
2662
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2640
2663
|
switch (fieldNo) {
|
|
2641
2664
|
case /* optional string name */ 1:
|
|
2642
2665
|
message.name = reader.string();
|
|
@@ -2646,32 +2669,33 @@ class OneofDescriptorProto$Type extends MessageType<OneofDescriptorProto> {
|
|
|
2646
2669
|
reader,
|
|
2647
2670
|
reader.uint32(),
|
|
2648
2671
|
options,
|
|
2649
|
-
message.options
|
|
2672
|
+
message.options,
|
|
2650
2673
|
);
|
|
2651
2674
|
break;
|
|
2652
2675
|
default:
|
|
2653
|
-
|
|
2676
|
+
const u = options.readUnknownField;
|
|
2654
2677
|
if (u === 'throw')
|
|
2655
2678
|
throw new globalThis.Error(
|
|
2656
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2679
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2657
2680
|
);
|
|
2658
|
-
|
|
2681
|
+
const d = reader.skip(wireType);
|
|
2659
2682
|
if (u !== false)
|
|
2660
2683
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2661
2684
|
this.typeName,
|
|
2662
2685
|
message,
|
|
2663
2686
|
fieldNo,
|
|
2664
2687
|
wireType,
|
|
2665
|
-
d
|
|
2688
|
+
d,
|
|
2666
2689
|
);
|
|
2667
2690
|
}
|
|
2668
2691
|
}
|
|
2669
2692
|
return message;
|
|
2670
2693
|
}
|
|
2694
|
+
|
|
2671
2695
|
internalBinaryWrite(
|
|
2672
2696
|
message: OneofDescriptorProto,
|
|
2673
2697
|
writer: IBinaryWriter,
|
|
2674
|
-
options: BinaryWriteOptions
|
|
2698
|
+
options: BinaryWriteOptions,
|
|
2675
2699
|
): IBinaryWriter {
|
|
2676
2700
|
/* optional string name = 1; */
|
|
2677
2701
|
if (message.name !== undefined)
|
|
@@ -2681,14 +2705,14 @@ class OneofDescriptorProto$Type extends MessageType<OneofDescriptorProto> {
|
|
|
2681
2705
|
OneofOptions.internalBinaryWrite(
|
|
2682
2706
|
message.options,
|
|
2683
2707
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
2684
|
-
options
|
|
2708
|
+
options,
|
|
2685
2709
|
).join();
|
|
2686
|
-
|
|
2710
|
+
const u = options.writeUnknownFields;
|
|
2687
2711
|
if (u !== false)
|
|
2688
2712
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2689
2713
|
this.typeName,
|
|
2690
2714
|
message,
|
|
2691
|
-
writer
|
|
2715
|
+
writer,
|
|
2692
2716
|
);
|
|
2693
2717
|
return writer;
|
|
2694
2718
|
}
|
|
@@ -2706,32 +2730,33 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2706
2730
|
name: 'name',
|
|
2707
2731
|
kind: 'scalar',
|
|
2708
2732
|
opt: true,
|
|
2709
|
-
T: 9 /*ScalarType.STRING*/
|
|
2733
|
+
T: 9, /* ScalarType.STRING */
|
|
2710
2734
|
},
|
|
2711
2735
|
{
|
|
2712
2736
|
no: 2,
|
|
2713
2737
|
name: 'value',
|
|
2714
2738
|
kind: 'message',
|
|
2715
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
2716
|
-
T: () => EnumValueDescriptorProto
|
|
2739
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
2740
|
+
T: () => EnumValueDescriptorProto,
|
|
2717
2741
|
},
|
|
2718
2742
|
{ no: 3, name: 'options', kind: 'message', T: () => EnumOptions },
|
|
2719
2743
|
{
|
|
2720
2744
|
no: 4,
|
|
2721
2745
|
name: 'reserved_range',
|
|
2722
2746
|
kind: 'message',
|
|
2723
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
2724
|
-
T: () => EnumDescriptorProto_EnumReservedRange
|
|
2747
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
2748
|
+
T: () => EnumDescriptorProto_EnumReservedRange,
|
|
2725
2749
|
},
|
|
2726
2750
|
{
|
|
2727
2751
|
no: 5,
|
|
2728
2752
|
name: 'reserved_name',
|
|
2729
2753
|
kind: 'scalar',
|
|
2730
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
2731
|
-
T: 9 /*ScalarType.STRING*/
|
|
2732
|
-
}
|
|
2754
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
2755
|
+
T: 9, /* ScalarType.STRING */
|
|
2756
|
+
},
|
|
2733
2757
|
]);
|
|
2734
2758
|
}
|
|
2759
|
+
|
|
2735
2760
|
create(value?: PartialMessage<EnumDescriptorProto>): EnumDescriptorProto {
|
|
2736
2761
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2737
2762
|
message.value = [];
|
|
@@ -2741,16 +2766,17 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2741
2766
|
reflectionMergePartial<EnumDescriptorProto>(this, message, value);
|
|
2742
2767
|
return message;
|
|
2743
2768
|
}
|
|
2769
|
+
|
|
2744
2770
|
internalBinaryRead(
|
|
2745
2771
|
reader: IBinaryReader,
|
|
2746
2772
|
length: number,
|
|
2747
2773
|
options: BinaryReadOptions,
|
|
2748
|
-
target?: EnumDescriptorProto
|
|
2774
|
+
target?: EnumDescriptorProto,
|
|
2749
2775
|
): EnumDescriptorProto {
|
|
2750
|
-
|
|
2776
|
+
const message = target ?? this.create(),
|
|
2751
2777
|
end = reader.pos + length;
|
|
2752
2778
|
while (reader.pos < end) {
|
|
2753
|
-
|
|
2779
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2754
2780
|
switch (fieldNo) {
|
|
2755
2781
|
case /* optional string name */ 1:
|
|
2756
2782
|
message.name = reader.string();
|
|
@@ -2760,8 +2786,8 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2760
2786
|
EnumValueDescriptorProto.internalBinaryRead(
|
|
2761
2787
|
reader,
|
|
2762
2788
|
reader.uint32(),
|
|
2763
|
-
options
|
|
2764
|
-
)
|
|
2789
|
+
options,
|
|
2790
|
+
),
|
|
2765
2791
|
);
|
|
2766
2792
|
break;
|
|
2767
2793
|
case /* optional google.protobuf.EnumOptions options */ 3:
|
|
@@ -2769,7 +2795,7 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2769
2795
|
reader,
|
|
2770
2796
|
reader.uint32(),
|
|
2771
2797
|
options,
|
|
2772
|
-
message.options
|
|
2798
|
+
message.options,
|
|
2773
2799
|
);
|
|
2774
2800
|
break;
|
|
2775
2801
|
case /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range */ 4:
|
|
@@ -2777,36 +2803,37 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2777
2803
|
EnumDescriptorProto_EnumReservedRange.internalBinaryRead(
|
|
2778
2804
|
reader,
|
|
2779
2805
|
reader.uint32(),
|
|
2780
|
-
options
|
|
2781
|
-
)
|
|
2806
|
+
options,
|
|
2807
|
+
),
|
|
2782
2808
|
);
|
|
2783
2809
|
break;
|
|
2784
2810
|
case /* repeated string reserved_name */ 5:
|
|
2785
2811
|
message.reservedName.push(reader.string());
|
|
2786
2812
|
break;
|
|
2787
2813
|
default:
|
|
2788
|
-
|
|
2814
|
+
const u = options.readUnknownField;
|
|
2789
2815
|
if (u === 'throw')
|
|
2790
2816
|
throw new globalThis.Error(
|
|
2791
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2817
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2792
2818
|
);
|
|
2793
|
-
|
|
2819
|
+
const d = reader.skip(wireType);
|
|
2794
2820
|
if (u !== false)
|
|
2795
2821
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2796
2822
|
this.typeName,
|
|
2797
2823
|
message,
|
|
2798
2824
|
fieldNo,
|
|
2799
2825
|
wireType,
|
|
2800
|
-
d
|
|
2826
|
+
d,
|
|
2801
2827
|
);
|
|
2802
2828
|
}
|
|
2803
2829
|
}
|
|
2804
2830
|
return message;
|
|
2805
2831
|
}
|
|
2832
|
+
|
|
2806
2833
|
internalBinaryWrite(
|
|
2807
2834
|
message: EnumDescriptorProto,
|
|
2808
2835
|
writer: IBinaryWriter,
|
|
2809
|
-
options: BinaryWriteOptions
|
|
2836
|
+
options: BinaryWriteOptions,
|
|
2810
2837
|
): IBinaryWriter {
|
|
2811
2838
|
/* optional string name = 1; */
|
|
2812
2839
|
if (message.name !== undefined)
|
|
@@ -2816,31 +2843,31 @@ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
|
|
|
2816
2843
|
EnumValueDescriptorProto.internalBinaryWrite(
|
|
2817
2844
|
message.value[i],
|
|
2818
2845
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
2819
|
-
options
|
|
2846
|
+
options,
|
|
2820
2847
|
).join();
|
|
2821
2848
|
/* optional google.protobuf.EnumOptions options = 3; */
|
|
2822
2849
|
if (message.options)
|
|
2823
2850
|
EnumOptions.internalBinaryWrite(
|
|
2824
2851
|
message.options,
|
|
2825
2852
|
writer.tag(3, WireType.LengthDelimited).fork(),
|
|
2826
|
-
options
|
|
2853
|
+
options,
|
|
2827
2854
|
).join();
|
|
2828
2855
|
/* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */
|
|
2829
2856
|
for (let i = 0; i < message.reservedRange.length; i++)
|
|
2830
2857
|
EnumDescriptorProto_EnumReservedRange.internalBinaryWrite(
|
|
2831
2858
|
message.reservedRange[i],
|
|
2832
2859
|
writer.tag(4, WireType.LengthDelimited).fork(),
|
|
2833
|
-
options
|
|
2860
|
+
options,
|
|
2834
2861
|
).join();
|
|
2835
2862
|
/* repeated string reserved_name = 5; */
|
|
2836
2863
|
for (let i = 0; i < message.reservedName.length; i++)
|
|
2837
2864
|
writer.tag(5, WireType.LengthDelimited).string(message.reservedName[i]);
|
|
2838
|
-
|
|
2865
|
+
const u = options.writeUnknownFields;
|
|
2839
2866
|
if (u !== false)
|
|
2840
2867
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2841
2868
|
this.typeName,
|
|
2842
2869
|
message,
|
|
2843
|
-
writer
|
|
2870
|
+
writer,
|
|
2844
2871
|
);
|
|
2845
2872
|
return writer;
|
|
2846
2873
|
}
|
|
@@ -2858,39 +2885,41 @@ class EnumDescriptorProto_EnumReservedRange$Type extends MessageType<EnumDescrip
|
|
|
2858
2885
|
name: 'start',
|
|
2859
2886
|
kind: 'scalar',
|
|
2860
2887
|
opt: true,
|
|
2861
|
-
T: 5 /*ScalarType.INT32*/
|
|
2888
|
+
T: 5, /* ScalarType.INT32 */
|
|
2862
2889
|
},
|
|
2863
2890
|
{
|
|
2864
2891
|
no: 2,
|
|
2865
2892
|
name: 'end',
|
|
2866
2893
|
kind: 'scalar',
|
|
2867
2894
|
opt: true,
|
|
2868
|
-
T: 5 /*ScalarType.INT32*/
|
|
2869
|
-
}
|
|
2895
|
+
T: 5, /* ScalarType.INT32 */
|
|
2896
|
+
},
|
|
2870
2897
|
]);
|
|
2871
2898
|
}
|
|
2899
|
+
|
|
2872
2900
|
create(
|
|
2873
|
-
value?: PartialMessage<EnumDescriptorProto_EnumReservedRange
|
|
2901
|
+
value?: PartialMessage<EnumDescriptorProto_EnumReservedRange>,
|
|
2874
2902
|
): EnumDescriptorProto_EnumReservedRange {
|
|
2875
2903
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2876
2904
|
if (value !== undefined)
|
|
2877
2905
|
reflectionMergePartial<EnumDescriptorProto_EnumReservedRange>(
|
|
2878
2906
|
this,
|
|
2879
2907
|
message,
|
|
2880
|
-
value
|
|
2908
|
+
value,
|
|
2881
2909
|
);
|
|
2882
2910
|
return message;
|
|
2883
2911
|
}
|
|
2912
|
+
|
|
2884
2913
|
internalBinaryRead(
|
|
2885
2914
|
reader: IBinaryReader,
|
|
2886
2915
|
length: number,
|
|
2887
2916
|
options: BinaryReadOptions,
|
|
2888
|
-
target?: EnumDescriptorProto_EnumReservedRange
|
|
2917
|
+
target?: EnumDescriptorProto_EnumReservedRange,
|
|
2889
2918
|
): EnumDescriptorProto_EnumReservedRange {
|
|
2890
|
-
|
|
2919
|
+
const message = target ?? this.create(),
|
|
2891
2920
|
end = reader.pos + length;
|
|
2892
2921
|
while (reader.pos < end) {
|
|
2893
|
-
|
|
2922
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2894
2923
|
switch (fieldNo) {
|
|
2895
2924
|
case /* optional int32 start */ 1:
|
|
2896
2925
|
message.start = reader.int32();
|
|
@@ -2899,28 +2928,29 @@ class EnumDescriptorProto_EnumReservedRange$Type extends MessageType<EnumDescrip
|
|
|
2899
2928
|
message.end = reader.int32();
|
|
2900
2929
|
break;
|
|
2901
2930
|
default:
|
|
2902
|
-
|
|
2931
|
+
const u = options.readUnknownField;
|
|
2903
2932
|
if (u === 'throw')
|
|
2904
2933
|
throw new globalThis.Error(
|
|
2905
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
2934
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
2906
2935
|
);
|
|
2907
|
-
|
|
2936
|
+
const d = reader.skip(wireType);
|
|
2908
2937
|
if (u !== false)
|
|
2909
2938
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
2910
2939
|
this.typeName,
|
|
2911
2940
|
message,
|
|
2912
2941
|
fieldNo,
|
|
2913
2942
|
wireType,
|
|
2914
|
-
d
|
|
2943
|
+
d,
|
|
2915
2944
|
);
|
|
2916
2945
|
}
|
|
2917
2946
|
}
|
|
2918
2947
|
return message;
|
|
2919
2948
|
}
|
|
2949
|
+
|
|
2920
2950
|
internalBinaryWrite(
|
|
2921
2951
|
message: EnumDescriptorProto_EnumReservedRange,
|
|
2922
2952
|
writer: IBinaryWriter,
|
|
2923
|
-
options: BinaryWriteOptions
|
|
2953
|
+
options: BinaryWriteOptions,
|
|
2924
2954
|
): IBinaryWriter {
|
|
2925
2955
|
/* optional int32 start = 1; */
|
|
2926
2956
|
if (message.start !== undefined)
|
|
@@ -2928,12 +2958,12 @@ class EnumDescriptorProto_EnumReservedRange$Type extends MessageType<EnumDescrip
|
|
|
2928
2958
|
/* optional int32 end = 2; */
|
|
2929
2959
|
if (message.end !== undefined)
|
|
2930
2960
|
writer.tag(2, WireType.Varint).int32(message.end);
|
|
2931
|
-
|
|
2961
|
+
const u = options.writeUnknownFields;
|
|
2932
2962
|
if (u !== false)
|
|
2933
2963
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
2934
2964
|
this.typeName,
|
|
2935
2965
|
message,
|
|
2936
|
-
writer
|
|
2966
|
+
writer,
|
|
2937
2967
|
);
|
|
2938
2968
|
return writer;
|
|
2939
2969
|
}
|
|
@@ -2941,8 +2971,8 @@ class EnumDescriptorProto_EnumReservedRange$Type extends MessageType<EnumDescrip
|
|
|
2941
2971
|
/**
|
|
2942
2972
|
* @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange
|
|
2943
2973
|
*/
|
|
2944
|
-
export const EnumDescriptorProto_EnumReservedRange
|
|
2945
|
-
new EnumDescriptorProto_EnumReservedRange$Type();
|
|
2974
|
+
export const EnumDescriptorProto_EnumReservedRange
|
|
2975
|
+
= new EnumDescriptorProto_EnumReservedRange$Type();
|
|
2946
2976
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2947
2977
|
class EnumValueDescriptorProto$Type extends MessageType<EnumValueDescriptorProto> {
|
|
2948
2978
|
constructor() {
|
|
@@ -2952,36 +2982,38 @@ class EnumValueDescriptorProto$Type extends MessageType<EnumValueDescriptorProto
|
|
|
2952
2982
|
name: 'name',
|
|
2953
2983
|
kind: 'scalar',
|
|
2954
2984
|
opt: true,
|
|
2955
|
-
T: 9 /*ScalarType.STRING*/
|
|
2985
|
+
T: 9, /* ScalarType.STRING */
|
|
2956
2986
|
},
|
|
2957
2987
|
{
|
|
2958
2988
|
no: 2,
|
|
2959
2989
|
name: 'number',
|
|
2960
2990
|
kind: 'scalar',
|
|
2961
2991
|
opt: true,
|
|
2962
|
-
T: 5 /*ScalarType.INT32*/
|
|
2992
|
+
T: 5, /* ScalarType.INT32 */
|
|
2963
2993
|
},
|
|
2964
|
-
{ no: 3, name: 'options', kind: 'message', T: () => EnumValueOptions }
|
|
2994
|
+
{ no: 3, name: 'options', kind: 'message', T: () => EnumValueOptions },
|
|
2965
2995
|
]);
|
|
2966
2996
|
}
|
|
2997
|
+
|
|
2967
2998
|
create(
|
|
2968
|
-
value?: PartialMessage<EnumValueDescriptorProto
|
|
2999
|
+
value?: PartialMessage<EnumValueDescriptorProto>,
|
|
2969
3000
|
): EnumValueDescriptorProto {
|
|
2970
3001
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
2971
3002
|
if (value !== undefined)
|
|
2972
3003
|
reflectionMergePartial<EnumValueDescriptorProto>(this, message, value);
|
|
2973
3004
|
return message;
|
|
2974
3005
|
}
|
|
3006
|
+
|
|
2975
3007
|
internalBinaryRead(
|
|
2976
3008
|
reader: IBinaryReader,
|
|
2977
3009
|
length: number,
|
|
2978
3010
|
options: BinaryReadOptions,
|
|
2979
|
-
target?: EnumValueDescriptorProto
|
|
3011
|
+
target?: EnumValueDescriptorProto,
|
|
2980
3012
|
): EnumValueDescriptorProto {
|
|
2981
|
-
|
|
3013
|
+
const message = target ?? this.create(),
|
|
2982
3014
|
end = reader.pos + length;
|
|
2983
3015
|
while (reader.pos < end) {
|
|
2984
|
-
|
|
3016
|
+
const [fieldNo, wireType] = reader.tag();
|
|
2985
3017
|
switch (fieldNo) {
|
|
2986
3018
|
case /* optional string name */ 1:
|
|
2987
3019
|
message.name = reader.string();
|
|
@@ -2994,32 +3026,33 @@ class EnumValueDescriptorProto$Type extends MessageType<EnumValueDescriptorProto
|
|
|
2994
3026
|
reader,
|
|
2995
3027
|
reader.uint32(),
|
|
2996
3028
|
options,
|
|
2997
|
-
message.options
|
|
3029
|
+
message.options,
|
|
2998
3030
|
);
|
|
2999
3031
|
break;
|
|
3000
3032
|
default:
|
|
3001
|
-
|
|
3033
|
+
const u = options.readUnknownField;
|
|
3002
3034
|
if (u === 'throw')
|
|
3003
3035
|
throw new globalThis.Error(
|
|
3004
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3036
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3005
3037
|
);
|
|
3006
|
-
|
|
3038
|
+
const d = reader.skip(wireType);
|
|
3007
3039
|
if (u !== false)
|
|
3008
3040
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3009
3041
|
this.typeName,
|
|
3010
3042
|
message,
|
|
3011
3043
|
fieldNo,
|
|
3012
3044
|
wireType,
|
|
3013
|
-
d
|
|
3045
|
+
d,
|
|
3014
3046
|
);
|
|
3015
3047
|
}
|
|
3016
3048
|
}
|
|
3017
3049
|
return message;
|
|
3018
3050
|
}
|
|
3051
|
+
|
|
3019
3052
|
internalBinaryWrite(
|
|
3020
3053
|
message: EnumValueDescriptorProto,
|
|
3021
3054
|
writer: IBinaryWriter,
|
|
3022
|
-
options: BinaryWriteOptions
|
|
3055
|
+
options: BinaryWriteOptions,
|
|
3023
3056
|
): IBinaryWriter {
|
|
3024
3057
|
/* optional string name = 1; */
|
|
3025
3058
|
if (message.name !== undefined)
|
|
@@ -3032,14 +3065,14 @@ class EnumValueDescriptorProto$Type extends MessageType<EnumValueDescriptorProto
|
|
|
3032
3065
|
EnumValueOptions.internalBinaryWrite(
|
|
3033
3066
|
message.options,
|
|
3034
3067
|
writer.tag(3, WireType.LengthDelimited).fork(),
|
|
3035
|
-
options
|
|
3068
|
+
options,
|
|
3036
3069
|
).join();
|
|
3037
|
-
|
|
3070
|
+
const u = options.writeUnknownFields;
|
|
3038
3071
|
if (u !== false)
|
|
3039
3072
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3040
3073
|
this.typeName,
|
|
3041
3074
|
message,
|
|
3042
|
-
writer
|
|
3075
|
+
writer,
|
|
3043
3076
|
);
|
|
3044
3077
|
return writer;
|
|
3045
3078
|
}
|
|
@@ -3057,20 +3090,21 @@ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
|
|
|
3057
3090
|
name: 'name',
|
|
3058
3091
|
kind: 'scalar',
|
|
3059
3092
|
opt: true,
|
|
3060
|
-
T: 9 /*ScalarType.STRING*/
|
|
3093
|
+
T: 9, /* ScalarType.STRING */
|
|
3061
3094
|
},
|
|
3062
3095
|
{
|
|
3063
3096
|
no: 2,
|
|
3064
3097
|
name: 'method',
|
|
3065
3098
|
kind: 'message',
|
|
3066
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
3067
|
-
T: () => MethodDescriptorProto
|
|
3099
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
3100
|
+
T: () => MethodDescriptorProto,
|
|
3068
3101
|
},
|
|
3069
|
-
{ no: 3, name: 'options', kind: 'message', T: () => ServiceOptions }
|
|
3102
|
+
{ no: 3, name: 'options', kind: 'message', T: () => ServiceOptions },
|
|
3070
3103
|
]);
|
|
3071
3104
|
}
|
|
3105
|
+
|
|
3072
3106
|
create(
|
|
3073
|
-
value?: PartialMessage<ServiceDescriptorProto
|
|
3107
|
+
value?: PartialMessage<ServiceDescriptorProto>,
|
|
3074
3108
|
): ServiceDescriptorProto {
|
|
3075
3109
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3076
3110
|
message.method = [];
|
|
@@ -3078,16 +3112,17 @@ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
|
|
|
3078
3112
|
reflectionMergePartial<ServiceDescriptorProto>(this, message, value);
|
|
3079
3113
|
return message;
|
|
3080
3114
|
}
|
|
3115
|
+
|
|
3081
3116
|
internalBinaryRead(
|
|
3082
3117
|
reader: IBinaryReader,
|
|
3083
3118
|
length: number,
|
|
3084
3119
|
options: BinaryReadOptions,
|
|
3085
|
-
target?: ServiceDescriptorProto
|
|
3120
|
+
target?: ServiceDescriptorProto,
|
|
3086
3121
|
): ServiceDescriptorProto {
|
|
3087
|
-
|
|
3122
|
+
const message = target ?? this.create(),
|
|
3088
3123
|
end = reader.pos + length;
|
|
3089
3124
|
while (reader.pos < end) {
|
|
3090
|
-
|
|
3125
|
+
const [fieldNo, wireType] = reader.tag();
|
|
3091
3126
|
switch (fieldNo) {
|
|
3092
3127
|
case /* optional string name */ 1:
|
|
3093
3128
|
message.name = reader.string();
|
|
@@ -3097,8 +3132,8 @@ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
|
|
|
3097
3132
|
MethodDescriptorProto.internalBinaryRead(
|
|
3098
3133
|
reader,
|
|
3099
3134
|
reader.uint32(),
|
|
3100
|
-
options
|
|
3101
|
-
)
|
|
3135
|
+
options,
|
|
3136
|
+
),
|
|
3102
3137
|
);
|
|
3103
3138
|
break;
|
|
3104
3139
|
case /* optional google.protobuf.ServiceOptions options */ 3:
|
|
@@ -3106,32 +3141,33 @@ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
|
|
|
3106
3141
|
reader,
|
|
3107
3142
|
reader.uint32(),
|
|
3108
3143
|
options,
|
|
3109
|
-
message.options
|
|
3144
|
+
message.options,
|
|
3110
3145
|
);
|
|
3111
3146
|
break;
|
|
3112
3147
|
default:
|
|
3113
|
-
|
|
3148
|
+
const u = options.readUnknownField;
|
|
3114
3149
|
if (u === 'throw')
|
|
3115
3150
|
throw new globalThis.Error(
|
|
3116
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3151
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3117
3152
|
);
|
|
3118
|
-
|
|
3153
|
+
const d = reader.skip(wireType);
|
|
3119
3154
|
if (u !== false)
|
|
3120
3155
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3121
3156
|
this.typeName,
|
|
3122
3157
|
message,
|
|
3123
3158
|
fieldNo,
|
|
3124
3159
|
wireType,
|
|
3125
|
-
d
|
|
3160
|
+
d,
|
|
3126
3161
|
);
|
|
3127
3162
|
}
|
|
3128
3163
|
}
|
|
3129
3164
|
return message;
|
|
3130
3165
|
}
|
|
3166
|
+
|
|
3131
3167
|
internalBinaryWrite(
|
|
3132
3168
|
message: ServiceDescriptorProto,
|
|
3133
3169
|
writer: IBinaryWriter,
|
|
3134
|
-
options: BinaryWriteOptions
|
|
3170
|
+
options: BinaryWriteOptions,
|
|
3135
3171
|
): IBinaryWriter {
|
|
3136
3172
|
/* optional string name = 1; */
|
|
3137
3173
|
if (message.name !== undefined)
|
|
@@ -3141,21 +3177,21 @@ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
|
|
|
3141
3177
|
MethodDescriptorProto.internalBinaryWrite(
|
|
3142
3178
|
message.method[i],
|
|
3143
3179
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
3144
|
-
options
|
|
3180
|
+
options,
|
|
3145
3181
|
).join();
|
|
3146
3182
|
/* optional google.protobuf.ServiceOptions options = 3; */
|
|
3147
3183
|
if (message.options)
|
|
3148
3184
|
ServiceOptions.internalBinaryWrite(
|
|
3149
3185
|
message.options,
|
|
3150
3186
|
writer.tag(3, WireType.LengthDelimited).fork(),
|
|
3151
|
-
options
|
|
3187
|
+
options,
|
|
3152
3188
|
).join();
|
|
3153
|
-
|
|
3189
|
+
const u = options.writeUnknownFields;
|
|
3154
3190
|
if (u !== false)
|
|
3155
3191
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3156
3192
|
this.typeName,
|
|
3157
3193
|
message,
|
|
3158
|
-
writer
|
|
3194
|
+
writer,
|
|
3159
3195
|
);
|
|
3160
3196
|
return writer;
|
|
3161
3197
|
}
|
|
@@ -3173,21 +3209,21 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3173
3209
|
name: 'name',
|
|
3174
3210
|
kind: 'scalar',
|
|
3175
3211
|
opt: true,
|
|
3176
|
-
T: 9 /*ScalarType.STRING*/
|
|
3212
|
+
T: 9, /* ScalarType.STRING */
|
|
3177
3213
|
},
|
|
3178
3214
|
{
|
|
3179
3215
|
no: 2,
|
|
3180
3216
|
name: 'input_type',
|
|
3181
3217
|
kind: 'scalar',
|
|
3182
3218
|
opt: true,
|
|
3183
|
-
T: 9 /*ScalarType.STRING*/
|
|
3219
|
+
T: 9, /* ScalarType.STRING */
|
|
3184
3220
|
},
|
|
3185
3221
|
{
|
|
3186
3222
|
no: 3,
|
|
3187
3223
|
name: 'output_type',
|
|
3188
3224
|
kind: 'scalar',
|
|
3189
3225
|
opt: true,
|
|
3190
|
-
T: 9 /*ScalarType.STRING*/
|
|
3226
|
+
T: 9, /* ScalarType.STRING */
|
|
3191
3227
|
},
|
|
3192
3228
|
{ no: 4, name: 'options', kind: 'message', T: () => MethodOptions },
|
|
3193
3229
|
{
|
|
@@ -3195,33 +3231,35 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3195
3231
|
name: 'client_streaming',
|
|
3196
3232
|
kind: 'scalar',
|
|
3197
3233
|
opt: true,
|
|
3198
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3234
|
+
T: 8, /* ScalarType.BOOL */
|
|
3199
3235
|
},
|
|
3200
3236
|
{
|
|
3201
3237
|
no: 6,
|
|
3202
3238
|
name: 'server_streaming',
|
|
3203
3239
|
kind: 'scalar',
|
|
3204
3240
|
opt: true,
|
|
3205
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3206
|
-
}
|
|
3241
|
+
T: 8, /* ScalarType.BOOL */
|
|
3242
|
+
},
|
|
3207
3243
|
]);
|
|
3208
3244
|
}
|
|
3245
|
+
|
|
3209
3246
|
create(value?: PartialMessage<MethodDescriptorProto>): MethodDescriptorProto {
|
|
3210
3247
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3211
3248
|
if (value !== undefined)
|
|
3212
3249
|
reflectionMergePartial<MethodDescriptorProto>(this, message, value);
|
|
3213
3250
|
return message;
|
|
3214
3251
|
}
|
|
3252
|
+
|
|
3215
3253
|
internalBinaryRead(
|
|
3216
3254
|
reader: IBinaryReader,
|
|
3217
3255
|
length: number,
|
|
3218
3256
|
options: BinaryReadOptions,
|
|
3219
|
-
target?: MethodDescriptorProto
|
|
3257
|
+
target?: MethodDescriptorProto,
|
|
3220
3258
|
): MethodDescriptorProto {
|
|
3221
|
-
|
|
3259
|
+
const message = target ?? this.create(),
|
|
3222
3260
|
end = reader.pos + length;
|
|
3223
3261
|
while (reader.pos < end) {
|
|
3224
|
-
|
|
3262
|
+
const [fieldNo, wireType] = reader.tag();
|
|
3225
3263
|
switch (fieldNo) {
|
|
3226
3264
|
case /* optional string name */ 1:
|
|
3227
3265
|
message.name = reader.string();
|
|
@@ -3237,7 +3275,7 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3237
3275
|
reader,
|
|
3238
3276
|
reader.uint32(),
|
|
3239
3277
|
options,
|
|
3240
|
-
message.options
|
|
3278
|
+
message.options,
|
|
3241
3279
|
);
|
|
3242
3280
|
break;
|
|
3243
3281
|
case /* optional bool client_streaming */ 5:
|
|
@@ -3247,28 +3285,29 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3247
3285
|
message.serverStreaming = reader.bool();
|
|
3248
3286
|
break;
|
|
3249
3287
|
default:
|
|
3250
|
-
|
|
3288
|
+
const u = options.readUnknownField;
|
|
3251
3289
|
if (u === 'throw')
|
|
3252
3290
|
throw new globalThis.Error(
|
|
3253
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3291
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3254
3292
|
);
|
|
3255
|
-
|
|
3293
|
+
const d = reader.skip(wireType);
|
|
3256
3294
|
if (u !== false)
|
|
3257
3295
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3258
3296
|
this.typeName,
|
|
3259
3297
|
message,
|
|
3260
3298
|
fieldNo,
|
|
3261
3299
|
wireType,
|
|
3262
|
-
d
|
|
3300
|
+
d,
|
|
3263
3301
|
);
|
|
3264
3302
|
}
|
|
3265
3303
|
}
|
|
3266
3304
|
return message;
|
|
3267
3305
|
}
|
|
3306
|
+
|
|
3268
3307
|
internalBinaryWrite(
|
|
3269
3308
|
message: MethodDescriptorProto,
|
|
3270
3309
|
writer: IBinaryWriter,
|
|
3271
|
-
options: BinaryWriteOptions
|
|
3310
|
+
options: BinaryWriteOptions,
|
|
3272
3311
|
): IBinaryWriter {
|
|
3273
3312
|
/* optional string name = 1; */
|
|
3274
3313
|
if (message.name !== undefined)
|
|
@@ -3284,7 +3323,7 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3284
3323
|
MethodOptions.internalBinaryWrite(
|
|
3285
3324
|
message.options,
|
|
3286
3325
|
writer.tag(4, WireType.LengthDelimited).fork(),
|
|
3287
|
-
options
|
|
3326
|
+
options,
|
|
3288
3327
|
).join();
|
|
3289
3328
|
/* optional bool client_streaming = 5; */
|
|
3290
3329
|
if (message.clientStreaming !== undefined)
|
|
@@ -3292,12 +3331,12 @@ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
|
|
|
3292
3331
|
/* optional bool server_streaming = 6; */
|
|
3293
3332
|
if (message.serverStreaming !== undefined)
|
|
3294
3333
|
writer.tag(6, WireType.Varint).bool(message.serverStreaming);
|
|
3295
|
-
|
|
3334
|
+
const u = options.writeUnknownFields;
|
|
3296
3335
|
if (u !== false)
|
|
3297
3336
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3298
3337
|
this.typeName,
|
|
3299
3338
|
message,
|
|
3300
|
-
writer
|
|
3339
|
+
writer,
|
|
3301
3340
|
);
|
|
3302
3341
|
return writer;
|
|
3303
3342
|
}
|
|
@@ -3315,35 +3354,35 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3315
3354
|
name: 'java_package',
|
|
3316
3355
|
kind: 'scalar',
|
|
3317
3356
|
opt: true,
|
|
3318
|
-
T: 9 /*ScalarType.STRING*/
|
|
3357
|
+
T: 9, /* ScalarType.STRING */
|
|
3319
3358
|
},
|
|
3320
3359
|
{
|
|
3321
3360
|
no: 8,
|
|
3322
3361
|
name: 'java_outer_classname',
|
|
3323
3362
|
kind: 'scalar',
|
|
3324
3363
|
opt: true,
|
|
3325
|
-
T: 9 /*ScalarType.STRING*/
|
|
3364
|
+
T: 9, /* ScalarType.STRING */
|
|
3326
3365
|
},
|
|
3327
3366
|
{
|
|
3328
3367
|
no: 10,
|
|
3329
3368
|
name: 'java_multiple_files',
|
|
3330
3369
|
kind: 'scalar',
|
|
3331
3370
|
opt: true,
|
|
3332
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3371
|
+
T: 8, /* ScalarType.BOOL */
|
|
3333
3372
|
},
|
|
3334
3373
|
{
|
|
3335
3374
|
no: 20,
|
|
3336
3375
|
name: 'java_generate_equals_and_hash',
|
|
3337
3376
|
kind: 'scalar',
|
|
3338
3377
|
opt: true,
|
|
3339
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3378
|
+
T: 8, /* ScalarType.BOOL */
|
|
3340
3379
|
},
|
|
3341
3380
|
{
|
|
3342
3381
|
no: 27,
|
|
3343
3382
|
name: 'java_string_check_utf8',
|
|
3344
3383
|
kind: 'scalar',
|
|
3345
3384
|
opt: true,
|
|
3346
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3385
|
+
T: 8, /* ScalarType.BOOL */
|
|
3347
3386
|
},
|
|
3348
3387
|
{
|
|
3349
3388
|
no: 9,
|
|
@@ -3352,116 +3391,117 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3352
3391
|
opt: true,
|
|
3353
3392
|
T: () => [
|
|
3354
3393
|
'google.protobuf.FileOptions.OptimizeMode',
|
|
3355
|
-
FileOptions_OptimizeMode
|
|
3356
|
-
]
|
|
3394
|
+
FileOptions_OptimizeMode,
|
|
3395
|
+
],
|
|
3357
3396
|
},
|
|
3358
3397
|
{
|
|
3359
3398
|
no: 11,
|
|
3360
3399
|
name: 'go_package',
|
|
3361
3400
|
kind: 'scalar',
|
|
3362
3401
|
opt: true,
|
|
3363
|
-
T: 9 /*ScalarType.STRING*/
|
|
3402
|
+
T: 9, /* ScalarType.STRING */
|
|
3364
3403
|
},
|
|
3365
3404
|
{
|
|
3366
3405
|
no: 16,
|
|
3367
3406
|
name: 'cc_generic_services',
|
|
3368
3407
|
kind: 'scalar',
|
|
3369
3408
|
opt: true,
|
|
3370
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3409
|
+
T: 8, /* ScalarType.BOOL */
|
|
3371
3410
|
},
|
|
3372
3411
|
{
|
|
3373
3412
|
no: 17,
|
|
3374
3413
|
name: 'java_generic_services',
|
|
3375
3414
|
kind: 'scalar',
|
|
3376
3415
|
opt: true,
|
|
3377
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3416
|
+
T: 8, /* ScalarType.BOOL */
|
|
3378
3417
|
},
|
|
3379
3418
|
{
|
|
3380
3419
|
no: 18,
|
|
3381
3420
|
name: 'py_generic_services',
|
|
3382
3421
|
kind: 'scalar',
|
|
3383
3422
|
opt: true,
|
|
3384
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3423
|
+
T: 8, /* ScalarType.BOOL */
|
|
3385
3424
|
},
|
|
3386
3425
|
{
|
|
3387
3426
|
no: 42,
|
|
3388
3427
|
name: 'php_generic_services',
|
|
3389
3428
|
kind: 'scalar',
|
|
3390
3429
|
opt: true,
|
|
3391
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3430
|
+
T: 8, /* ScalarType.BOOL */
|
|
3392
3431
|
},
|
|
3393
3432
|
{
|
|
3394
3433
|
no: 23,
|
|
3395
3434
|
name: 'deprecated',
|
|
3396
3435
|
kind: 'scalar',
|
|
3397
3436
|
opt: true,
|
|
3398
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3437
|
+
T: 8, /* ScalarType.BOOL */
|
|
3399
3438
|
},
|
|
3400
3439
|
{
|
|
3401
3440
|
no: 31,
|
|
3402
3441
|
name: 'cc_enable_arenas',
|
|
3403
3442
|
kind: 'scalar',
|
|
3404
3443
|
opt: true,
|
|
3405
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3444
|
+
T: 8, /* ScalarType.BOOL */
|
|
3406
3445
|
},
|
|
3407
3446
|
{
|
|
3408
3447
|
no: 36,
|
|
3409
3448
|
name: 'objc_class_prefix',
|
|
3410
3449
|
kind: 'scalar',
|
|
3411
3450
|
opt: true,
|
|
3412
|
-
T: 9 /*ScalarType.STRING*/
|
|
3451
|
+
T: 9, /* ScalarType.STRING */
|
|
3413
3452
|
},
|
|
3414
3453
|
{
|
|
3415
3454
|
no: 37,
|
|
3416
3455
|
name: 'csharp_namespace',
|
|
3417
3456
|
kind: 'scalar',
|
|
3418
3457
|
opt: true,
|
|
3419
|
-
T: 9 /*ScalarType.STRING*/
|
|
3458
|
+
T: 9, /* ScalarType.STRING */
|
|
3420
3459
|
},
|
|
3421
3460
|
{
|
|
3422
3461
|
no: 39,
|
|
3423
3462
|
name: 'swift_prefix',
|
|
3424
3463
|
kind: 'scalar',
|
|
3425
3464
|
opt: true,
|
|
3426
|
-
T: 9 /*ScalarType.STRING*/
|
|
3465
|
+
T: 9, /* ScalarType.STRING */
|
|
3427
3466
|
},
|
|
3428
3467
|
{
|
|
3429
3468
|
no: 40,
|
|
3430
3469
|
name: 'php_class_prefix',
|
|
3431
3470
|
kind: 'scalar',
|
|
3432
3471
|
opt: true,
|
|
3433
|
-
T: 9 /*ScalarType.STRING*/
|
|
3472
|
+
T: 9, /* ScalarType.STRING */
|
|
3434
3473
|
},
|
|
3435
3474
|
{
|
|
3436
3475
|
no: 41,
|
|
3437
3476
|
name: 'php_namespace',
|
|
3438
3477
|
kind: 'scalar',
|
|
3439
3478
|
opt: true,
|
|
3440
|
-
T: 9 /*ScalarType.STRING*/
|
|
3479
|
+
T: 9, /* ScalarType.STRING */
|
|
3441
3480
|
},
|
|
3442
3481
|
{
|
|
3443
3482
|
no: 44,
|
|
3444
3483
|
name: 'php_metadata_namespace',
|
|
3445
3484
|
kind: 'scalar',
|
|
3446
3485
|
opt: true,
|
|
3447
|
-
T: 9 /*ScalarType.STRING*/
|
|
3486
|
+
T: 9, /* ScalarType.STRING */
|
|
3448
3487
|
},
|
|
3449
3488
|
{
|
|
3450
3489
|
no: 45,
|
|
3451
3490
|
name: 'ruby_package',
|
|
3452
3491
|
kind: 'scalar',
|
|
3453
3492
|
opt: true,
|
|
3454
|
-
T: 9 /*ScalarType.STRING*/
|
|
3493
|
+
T: 9, /* ScalarType.STRING */
|
|
3455
3494
|
},
|
|
3456
3495
|
{
|
|
3457
3496
|
no: 999,
|
|
3458
3497
|
name: 'uninterpreted_option',
|
|
3459
3498
|
kind: 'message',
|
|
3460
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
3461
|
-
T: () => UninterpretedOption
|
|
3462
|
-
}
|
|
3499
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
3500
|
+
T: () => UninterpretedOption,
|
|
3501
|
+
},
|
|
3463
3502
|
]);
|
|
3464
3503
|
}
|
|
3504
|
+
|
|
3465
3505
|
create(value?: PartialMessage<FileOptions>): FileOptions {
|
|
3466
3506
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3467
3507
|
message.uninterpretedOption = [];
|
|
@@ -3469,16 +3509,17 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3469
3509
|
reflectionMergePartial<FileOptions>(this, message, value);
|
|
3470
3510
|
return message;
|
|
3471
3511
|
}
|
|
3512
|
+
|
|
3472
3513
|
internalBinaryRead(
|
|
3473
3514
|
reader: IBinaryReader,
|
|
3474
3515
|
length: number,
|
|
3475
3516
|
options: BinaryReadOptions,
|
|
3476
|
-
target?: FileOptions
|
|
3517
|
+
target?: FileOptions,
|
|
3477
3518
|
): FileOptions {
|
|
3478
|
-
|
|
3519
|
+
const message = target ?? this.create(),
|
|
3479
3520
|
end = reader.pos + length;
|
|
3480
3521
|
while (reader.pos < end) {
|
|
3481
|
-
|
|
3522
|
+
const [fieldNo, wireType] = reader.tag();
|
|
3482
3523
|
switch (fieldNo) {
|
|
3483
3524
|
case /* optional string java_package */ 1:
|
|
3484
3525
|
message.javaPackage = reader.string();
|
|
@@ -3489,7 +3530,7 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3489
3530
|
case /* optional bool java_multiple_files */ 10:
|
|
3490
3531
|
message.javaMultipleFiles = reader.bool();
|
|
3491
3532
|
break;
|
|
3492
|
-
case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]
|
|
3533
|
+
case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ 20:
|
|
3493
3534
|
message.javaGenerateEqualsAndHash = reader.bool();
|
|
3494
3535
|
break;
|
|
3495
3536
|
case /* optional bool java_string_check_utf8 */ 27:
|
|
@@ -3545,33 +3586,34 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3545
3586
|
UninterpretedOption.internalBinaryRead(
|
|
3546
3587
|
reader,
|
|
3547
3588
|
reader.uint32(),
|
|
3548
|
-
options
|
|
3549
|
-
)
|
|
3589
|
+
options,
|
|
3590
|
+
),
|
|
3550
3591
|
);
|
|
3551
3592
|
break;
|
|
3552
3593
|
default:
|
|
3553
|
-
|
|
3594
|
+
const u = options.readUnknownField;
|
|
3554
3595
|
if (u === 'throw')
|
|
3555
3596
|
throw new globalThis.Error(
|
|
3556
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3597
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3557
3598
|
);
|
|
3558
|
-
|
|
3599
|
+
const d = reader.skip(wireType);
|
|
3559
3600
|
if (u !== false)
|
|
3560
3601
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3561
3602
|
this.typeName,
|
|
3562
3603
|
message,
|
|
3563
3604
|
fieldNo,
|
|
3564
3605
|
wireType,
|
|
3565
|
-
d
|
|
3606
|
+
d,
|
|
3566
3607
|
);
|
|
3567
3608
|
}
|
|
3568
3609
|
}
|
|
3569
3610
|
return message;
|
|
3570
3611
|
}
|
|
3612
|
+
|
|
3571
3613
|
internalBinaryWrite(
|
|
3572
3614
|
message: FileOptions,
|
|
3573
3615
|
writer: IBinaryWriter,
|
|
3574
|
-
options: BinaryWriteOptions
|
|
3616
|
+
options: BinaryWriteOptions,
|
|
3575
3617
|
): IBinaryWriter {
|
|
3576
3618
|
/* optional string java_package = 1; */
|
|
3577
3619
|
if (message.javaPackage !== undefined)
|
|
@@ -3642,14 +3684,14 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
3642
3684
|
UninterpretedOption.internalBinaryWrite(
|
|
3643
3685
|
message.uninterpretedOption[i],
|
|
3644
3686
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
3645
|
-
options
|
|
3687
|
+
options,
|
|
3646
3688
|
).join();
|
|
3647
|
-
|
|
3689
|
+
const u = options.writeUnknownFields;
|
|
3648
3690
|
if (u !== false)
|
|
3649
3691
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3650
3692
|
this.typeName,
|
|
3651
3693
|
message,
|
|
3652
|
-
writer
|
|
3694
|
+
writer,
|
|
3653
3695
|
);
|
|
3654
3696
|
return writer;
|
|
3655
3697
|
}
|
|
@@ -3667,38 +3709,39 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
3667
3709
|
name: 'message_set_wire_format',
|
|
3668
3710
|
kind: 'scalar',
|
|
3669
3711
|
opt: true,
|
|
3670
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3712
|
+
T: 8, /* ScalarType.BOOL */
|
|
3671
3713
|
},
|
|
3672
3714
|
{
|
|
3673
3715
|
no: 2,
|
|
3674
3716
|
name: 'no_standard_descriptor_accessor',
|
|
3675
3717
|
kind: 'scalar',
|
|
3676
3718
|
opt: true,
|
|
3677
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3719
|
+
T: 8, /* ScalarType.BOOL */
|
|
3678
3720
|
},
|
|
3679
3721
|
{
|
|
3680
3722
|
no: 3,
|
|
3681
3723
|
name: 'deprecated',
|
|
3682
3724
|
kind: 'scalar',
|
|
3683
3725
|
opt: true,
|
|
3684
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3726
|
+
T: 8, /* ScalarType.BOOL */
|
|
3685
3727
|
},
|
|
3686
3728
|
{
|
|
3687
3729
|
no: 7,
|
|
3688
3730
|
name: 'map_entry',
|
|
3689
3731
|
kind: 'scalar',
|
|
3690
3732
|
opt: true,
|
|
3691
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3733
|
+
T: 8, /* ScalarType.BOOL */
|
|
3692
3734
|
},
|
|
3693
3735
|
{
|
|
3694
3736
|
no: 999,
|
|
3695
3737
|
name: 'uninterpreted_option',
|
|
3696
3738
|
kind: 'message',
|
|
3697
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
3698
|
-
T: () => UninterpretedOption
|
|
3699
|
-
}
|
|
3739
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
3740
|
+
T: () => UninterpretedOption,
|
|
3741
|
+
},
|
|
3700
3742
|
]);
|
|
3701
3743
|
}
|
|
3744
|
+
|
|
3702
3745
|
create(value?: PartialMessage<MessageOptions>): MessageOptions {
|
|
3703
3746
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3704
3747
|
message.uninterpretedOption = [];
|
|
@@ -3706,16 +3749,17 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
3706
3749
|
reflectionMergePartial<MessageOptions>(this, message, value);
|
|
3707
3750
|
return message;
|
|
3708
3751
|
}
|
|
3752
|
+
|
|
3709
3753
|
internalBinaryRead(
|
|
3710
3754
|
reader: IBinaryReader,
|
|
3711
3755
|
length: number,
|
|
3712
3756
|
options: BinaryReadOptions,
|
|
3713
|
-
target?: MessageOptions
|
|
3757
|
+
target?: MessageOptions,
|
|
3714
3758
|
): MessageOptions {
|
|
3715
|
-
|
|
3759
|
+
const message = target ?? this.create(),
|
|
3716
3760
|
end = reader.pos + length;
|
|
3717
3761
|
while (reader.pos < end) {
|
|
3718
|
-
|
|
3762
|
+
const [fieldNo, wireType] = reader.tag();
|
|
3719
3763
|
switch (fieldNo) {
|
|
3720
3764
|
case /* optional bool message_set_wire_format */ 1:
|
|
3721
3765
|
message.messageSetWireFormat = reader.bool();
|
|
@@ -3734,33 +3778,34 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
3734
3778
|
UninterpretedOption.internalBinaryRead(
|
|
3735
3779
|
reader,
|
|
3736
3780
|
reader.uint32(),
|
|
3737
|
-
options
|
|
3738
|
-
)
|
|
3781
|
+
options,
|
|
3782
|
+
),
|
|
3739
3783
|
);
|
|
3740
3784
|
break;
|
|
3741
3785
|
default:
|
|
3742
|
-
|
|
3786
|
+
const u = options.readUnknownField;
|
|
3743
3787
|
if (u === 'throw')
|
|
3744
3788
|
throw new globalThis.Error(
|
|
3745
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3789
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3746
3790
|
);
|
|
3747
|
-
|
|
3791
|
+
const d = reader.skip(wireType);
|
|
3748
3792
|
if (u !== false)
|
|
3749
3793
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3750
3794
|
this.typeName,
|
|
3751
3795
|
message,
|
|
3752
3796
|
fieldNo,
|
|
3753
3797
|
wireType,
|
|
3754
|
-
d
|
|
3798
|
+
d,
|
|
3755
3799
|
);
|
|
3756
3800
|
}
|
|
3757
3801
|
}
|
|
3758
3802
|
return message;
|
|
3759
3803
|
}
|
|
3804
|
+
|
|
3760
3805
|
internalBinaryWrite(
|
|
3761
3806
|
message: MessageOptions,
|
|
3762
3807
|
writer: IBinaryWriter,
|
|
3763
|
-
options: BinaryWriteOptions
|
|
3808
|
+
options: BinaryWriteOptions,
|
|
3764
3809
|
): IBinaryWriter {
|
|
3765
3810
|
/* optional bool message_set_wire_format = 1; */
|
|
3766
3811
|
if (message.messageSetWireFormat !== undefined)
|
|
@@ -3779,14 +3824,14 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
3779
3824
|
UninterpretedOption.internalBinaryWrite(
|
|
3780
3825
|
message.uninterpretedOption[i],
|
|
3781
3826
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
3782
|
-
options
|
|
3827
|
+
options,
|
|
3783
3828
|
).join();
|
|
3784
|
-
|
|
3829
|
+
const u = options.writeUnknownFields;
|
|
3785
3830
|
if (u !== false)
|
|
3786
3831
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3787
3832
|
this.typeName,
|
|
3788
3833
|
message,
|
|
3789
|
-
writer
|
|
3834
|
+
writer,
|
|
3790
3835
|
);
|
|
3791
3836
|
return writer;
|
|
3792
3837
|
}
|
|
@@ -3804,59 +3849,60 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3804
3849
|
name: 'ctype',
|
|
3805
3850
|
kind: 'enum',
|
|
3806
3851
|
opt: true,
|
|
3807
|
-
T: () => ['google.protobuf.FieldOptions.CType', FieldOptions_CType]
|
|
3852
|
+
T: () => ['google.protobuf.FieldOptions.CType', FieldOptions_CType],
|
|
3808
3853
|
},
|
|
3809
3854
|
{
|
|
3810
3855
|
no: 2,
|
|
3811
3856
|
name: 'packed',
|
|
3812
3857
|
kind: 'scalar',
|
|
3813
3858
|
opt: true,
|
|
3814
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3859
|
+
T: 8, /* ScalarType.BOOL */
|
|
3815
3860
|
},
|
|
3816
3861
|
{
|
|
3817
3862
|
no: 6,
|
|
3818
3863
|
name: 'jstype',
|
|
3819
3864
|
kind: 'enum',
|
|
3820
3865
|
opt: true,
|
|
3821
|
-
T: () => ['google.protobuf.FieldOptions.JSType', FieldOptions_JSType]
|
|
3866
|
+
T: () => ['google.protobuf.FieldOptions.JSType', FieldOptions_JSType],
|
|
3822
3867
|
},
|
|
3823
3868
|
{
|
|
3824
3869
|
no: 5,
|
|
3825
3870
|
name: 'lazy',
|
|
3826
3871
|
kind: 'scalar',
|
|
3827
3872
|
opt: true,
|
|
3828
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3873
|
+
T: 8, /* ScalarType.BOOL */
|
|
3829
3874
|
},
|
|
3830
3875
|
{
|
|
3831
3876
|
no: 15,
|
|
3832
3877
|
name: 'unverified_lazy',
|
|
3833
3878
|
kind: 'scalar',
|
|
3834
3879
|
opt: true,
|
|
3835
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3880
|
+
T: 8, /* ScalarType.BOOL */
|
|
3836
3881
|
},
|
|
3837
3882
|
{
|
|
3838
3883
|
no: 3,
|
|
3839
3884
|
name: 'deprecated',
|
|
3840
3885
|
kind: 'scalar',
|
|
3841
3886
|
opt: true,
|
|
3842
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3887
|
+
T: 8, /* ScalarType.BOOL */
|
|
3843
3888
|
},
|
|
3844
3889
|
{
|
|
3845
3890
|
no: 10,
|
|
3846
3891
|
name: 'weak',
|
|
3847
3892
|
kind: 'scalar',
|
|
3848
3893
|
opt: true,
|
|
3849
|
-
T: 8 /*ScalarType.BOOL*/
|
|
3894
|
+
T: 8, /* ScalarType.BOOL */
|
|
3850
3895
|
},
|
|
3851
3896
|
{
|
|
3852
3897
|
no: 999,
|
|
3853
3898
|
name: 'uninterpreted_option',
|
|
3854
3899
|
kind: 'message',
|
|
3855
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
3856
|
-
T: () => UninterpretedOption
|
|
3857
|
-
}
|
|
3900
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
3901
|
+
T: () => UninterpretedOption,
|
|
3902
|
+
},
|
|
3858
3903
|
]);
|
|
3859
3904
|
}
|
|
3905
|
+
|
|
3860
3906
|
create(value?: PartialMessage<FieldOptions>): FieldOptions {
|
|
3861
3907
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3862
3908
|
message.uninterpretedOption = [];
|
|
@@ -3864,16 +3910,17 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3864
3910
|
reflectionMergePartial<FieldOptions>(this, message, value);
|
|
3865
3911
|
return message;
|
|
3866
3912
|
}
|
|
3913
|
+
|
|
3867
3914
|
internalBinaryRead(
|
|
3868
3915
|
reader: IBinaryReader,
|
|
3869
3916
|
length: number,
|
|
3870
3917
|
options: BinaryReadOptions,
|
|
3871
|
-
target?: FieldOptions
|
|
3918
|
+
target?: FieldOptions,
|
|
3872
3919
|
): FieldOptions {
|
|
3873
|
-
|
|
3920
|
+
const message = target ?? this.create(),
|
|
3874
3921
|
end = reader.pos + length;
|
|
3875
3922
|
while (reader.pos < end) {
|
|
3876
|
-
|
|
3923
|
+
const [fieldNo, wireType] = reader.tag();
|
|
3877
3924
|
switch (fieldNo) {
|
|
3878
3925
|
case /* optional google.protobuf.FieldOptions.CType ctype */ 1:
|
|
3879
3926
|
message.ctype = reader.int32();
|
|
@@ -3901,33 +3948,34 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3901
3948
|
UninterpretedOption.internalBinaryRead(
|
|
3902
3949
|
reader,
|
|
3903
3950
|
reader.uint32(),
|
|
3904
|
-
options
|
|
3905
|
-
)
|
|
3951
|
+
options,
|
|
3952
|
+
),
|
|
3906
3953
|
);
|
|
3907
3954
|
break;
|
|
3908
3955
|
default:
|
|
3909
|
-
|
|
3956
|
+
const u = options.readUnknownField;
|
|
3910
3957
|
if (u === 'throw')
|
|
3911
3958
|
throw new globalThis.Error(
|
|
3912
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
3959
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
3913
3960
|
);
|
|
3914
|
-
|
|
3961
|
+
const d = reader.skip(wireType);
|
|
3915
3962
|
if (u !== false)
|
|
3916
3963
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
3917
3964
|
this.typeName,
|
|
3918
3965
|
message,
|
|
3919
3966
|
fieldNo,
|
|
3920
3967
|
wireType,
|
|
3921
|
-
d
|
|
3968
|
+
d,
|
|
3922
3969
|
);
|
|
3923
3970
|
}
|
|
3924
3971
|
}
|
|
3925
3972
|
return message;
|
|
3926
3973
|
}
|
|
3974
|
+
|
|
3927
3975
|
internalBinaryWrite(
|
|
3928
3976
|
message: FieldOptions,
|
|
3929
3977
|
writer: IBinaryWriter,
|
|
3930
|
-
options: BinaryWriteOptions
|
|
3978
|
+
options: BinaryWriteOptions,
|
|
3931
3979
|
): IBinaryWriter {
|
|
3932
3980
|
/* optional google.protobuf.FieldOptions.CType ctype = 1; */
|
|
3933
3981
|
if (message.ctype !== undefined)
|
|
@@ -3955,14 +4003,14 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3955
4003
|
UninterpretedOption.internalBinaryWrite(
|
|
3956
4004
|
message.uninterpretedOption[i],
|
|
3957
4005
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
3958
|
-
options
|
|
4006
|
+
options,
|
|
3959
4007
|
).join();
|
|
3960
|
-
|
|
4008
|
+
const u = options.writeUnknownFields;
|
|
3961
4009
|
if (u !== false)
|
|
3962
4010
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
3963
4011
|
this.typeName,
|
|
3964
4012
|
message,
|
|
3965
|
-
writer
|
|
4013
|
+
writer,
|
|
3966
4014
|
);
|
|
3967
4015
|
return writer;
|
|
3968
4016
|
}
|
|
@@ -3979,11 +4027,12 @@ class OneofOptions$Type extends MessageType<OneofOptions> {
|
|
|
3979
4027
|
no: 999,
|
|
3980
4028
|
name: 'uninterpreted_option',
|
|
3981
4029
|
kind: 'message',
|
|
3982
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
3983
|
-
T: () => UninterpretedOption
|
|
3984
|
-
}
|
|
4030
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4031
|
+
T: () => UninterpretedOption,
|
|
4032
|
+
},
|
|
3985
4033
|
]);
|
|
3986
4034
|
}
|
|
4035
|
+
|
|
3987
4036
|
create(value?: PartialMessage<OneofOptions>): OneofOptions {
|
|
3988
4037
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
3989
4038
|
message.uninterpretedOption = [];
|
|
@@ -3991,63 +4040,65 @@ class OneofOptions$Type extends MessageType<OneofOptions> {
|
|
|
3991
4040
|
reflectionMergePartial<OneofOptions>(this, message, value);
|
|
3992
4041
|
return message;
|
|
3993
4042
|
}
|
|
4043
|
+
|
|
3994
4044
|
internalBinaryRead(
|
|
3995
4045
|
reader: IBinaryReader,
|
|
3996
4046
|
length: number,
|
|
3997
4047
|
options: BinaryReadOptions,
|
|
3998
|
-
target?: OneofOptions
|
|
4048
|
+
target?: OneofOptions,
|
|
3999
4049
|
): OneofOptions {
|
|
4000
|
-
|
|
4050
|
+
const message = target ?? this.create(),
|
|
4001
4051
|
end = reader.pos + length;
|
|
4002
4052
|
while (reader.pos < end) {
|
|
4003
|
-
|
|
4053
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4004
4054
|
switch (fieldNo) {
|
|
4005
4055
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
4006
4056
|
message.uninterpretedOption.push(
|
|
4007
4057
|
UninterpretedOption.internalBinaryRead(
|
|
4008
4058
|
reader,
|
|
4009
4059
|
reader.uint32(),
|
|
4010
|
-
options
|
|
4011
|
-
)
|
|
4060
|
+
options,
|
|
4061
|
+
),
|
|
4012
4062
|
);
|
|
4013
4063
|
break;
|
|
4014
4064
|
default:
|
|
4015
|
-
|
|
4065
|
+
const u = options.readUnknownField;
|
|
4016
4066
|
if (u === 'throw')
|
|
4017
4067
|
throw new globalThis.Error(
|
|
4018
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4068
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4019
4069
|
);
|
|
4020
|
-
|
|
4070
|
+
const d = reader.skip(wireType);
|
|
4021
4071
|
if (u !== false)
|
|
4022
4072
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4023
4073
|
this.typeName,
|
|
4024
4074
|
message,
|
|
4025
4075
|
fieldNo,
|
|
4026
4076
|
wireType,
|
|
4027
|
-
d
|
|
4077
|
+
d,
|
|
4028
4078
|
);
|
|
4029
4079
|
}
|
|
4030
4080
|
}
|
|
4031
4081
|
return message;
|
|
4032
4082
|
}
|
|
4083
|
+
|
|
4033
4084
|
internalBinaryWrite(
|
|
4034
4085
|
message: OneofOptions,
|
|
4035
4086
|
writer: IBinaryWriter,
|
|
4036
|
-
options: BinaryWriteOptions
|
|
4087
|
+
options: BinaryWriteOptions,
|
|
4037
4088
|
): IBinaryWriter {
|
|
4038
4089
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
4039
4090
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
4040
4091
|
UninterpretedOption.internalBinaryWrite(
|
|
4041
4092
|
message.uninterpretedOption[i],
|
|
4042
4093
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
4043
|
-
options
|
|
4094
|
+
options,
|
|
4044
4095
|
).join();
|
|
4045
|
-
|
|
4096
|
+
const u = options.writeUnknownFields;
|
|
4046
4097
|
if (u !== false)
|
|
4047
4098
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4048
4099
|
this.typeName,
|
|
4049
4100
|
message,
|
|
4050
|
-
writer
|
|
4101
|
+
writer,
|
|
4051
4102
|
);
|
|
4052
4103
|
return writer;
|
|
4053
4104
|
}
|
|
@@ -4065,24 +4116,25 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
4065
4116
|
name: 'allow_alias',
|
|
4066
4117
|
kind: 'scalar',
|
|
4067
4118
|
opt: true,
|
|
4068
|
-
T: 8 /*ScalarType.BOOL*/
|
|
4119
|
+
T: 8, /* ScalarType.BOOL */
|
|
4069
4120
|
},
|
|
4070
4121
|
{
|
|
4071
4122
|
no: 3,
|
|
4072
4123
|
name: 'deprecated',
|
|
4073
4124
|
kind: 'scalar',
|
|
4074
4125
|
opt: true,
|
|
4075
|
-
T: 8 /*ScalarType.BOOL*/
|
|
4126
|
+
T: 8, /* ScalarType.BOOL */
|
|
4076
4127
|
},
|
|
4077
4128
|
{
|
|
4078
4129
|
no: 999,
|
|
4079
4130
|
name: 'uninterpreted_option',
|
|
4080
4131
|
kind: 'message',
|
|
4081
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4082
|
-
T: () => UninterpretedOption
|
|
4083
|
-
}
|
|
4132
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4133
|
+
T: () => UninterpretedOption,
|
|
4134
|
+
},
|
|
4084
4135
|
]);
|
|
4085
4136
|
}
|
|
4137
|
+
|
|
4086
4138
|
create(value?: PartialMessage<EnumOptions>): EnumOptions {
|
|
4087
4139
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4088
4140
|
message.uninterpretedOption = [];
|
|
@@ -4090,16 +4142,17 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
4090
4142
|
reflectionMergePartial<EnumOptions>(this, message, value);
|
|
4091
4143
|
return message;
|
|
4092
4144
|
}
|
|
4145
|
+
|
|
4093
4146
|
internalBinaryRead(
|
|
4094
4147
|
reader: IBinaryReader,
|
|
4095
4148
|
length: number,
|
|
4096
4149
|
options: BinaryReadOptions,
|
|
4097
|
-
target?: EnumOptions
|
|
4150
|
+
target?: EnumOptions,
|
|
4098
4151
|
): EnumOptions {
|
|
4099
|
-
|
|
4152
|
+
const message = target ?? this.create(),
|
|
4100
4153
|
end = reader.pos + length;
|
|
4101
4154
|
while (reader.pos < end) {
|
|
4102
|
-
|
|
4155
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4103
4156
|
switch (fieldNo) {
|
|
4104
4157
|
case /* optional bool allow_alias */ 2:
|
|
4105
4158
|
message.allowAlias = reader.bool();
|
|
@@ -4112,33 +4165,34 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
4112
4165
|
UninterpretedOption.internalBinaryRead(
|
|
4113
4166
|
reader,
|
|
4114
4167
|
reader.uint32(),
|
|
4115
|
-
options
|
|
4116
|
-
)
|
|
4168
|
+
options,
|
|
4169
|
+
),
|
|
4117
4170
|
);
|
|
4118
4171
|
break;
|
|
4119
4172
|
default:
|
|
4120
|
-
|
|
4173
|
+
const u = options.readUnknownField;
|
|
4121
4174
|
if (u === 'throw')
|
|
4122
4175
|
throw new globalThis.Error(
|
|
4123
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4176
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4124
4177
|
);
|
|
4125
|
-
|
|
4178
|
+
const d = reader.skip(wireType);
|
|
4126
4179
|
if (u !== false)
|
|
4127
4180
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4128
4181
|
this.typeName,
|
|
4129
4182
|
message,
|
|
4130
4183
|
fieldNo,
|
|
4131
4184
|
wireType,
|
|
4132
|
-
d
|
|
4185
|
+
d,
|
|
4133
4186
|
);
|
|
4134
4187
|
}
|
|
4135
4188
|
}
|
|
4136
4189
|
return message;
|
|
4137
4190
|
}
|
|
4191
|
+
|
|
4138
4192
|
internalBinaryWrite(
|
|
4139
4193
|
message: EnumOptions,
|
|
4140
4194
|
writer: IBinaryWriter,
|
|
4141
|
-
options: BinaryWriteOptions
|
|
4195
|
+
options: BinaryWriteOptions,
|
|
4142
4196
|
): IBinaryWriter {
|
|
4143
4197
|
/* optional bool allow_alias = 2; */
|
|
4144
4198
|
if (message.allowAlias !== undefined)
|
|
@@ -4151,14 +4205,14 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
4151
4205
|
UninterpretedOption.internalBinaryWrite(
|
|
4152
4206
|
message.uninterpretedOption[i],
|
|
4153
4207
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
4154
|
-
options
|
|
4208
|
+
options,
|
|
4155
4209
|
).join();
|
|
4156
|
-
|
|
4210
|
+
const u = options.writeUnknownFields;
|
|
4157
4211
|
if (u !== false)
|
|
4158
4212
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4159
4213
|
this.typeName,
|
|
4160
4214
|
message,
|
|
4161
|
-
writer
|
|
4215
|
+
writer,
|
|
4162
4216
|
);
|
|
4163
4217
|
return writer;
|
|
4164
4218
|
}
|
|
@@ -4176,17 +4230,18 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
4176
4230
|
name: 'deprecated',
|
|
4177
4231
|
kind: 'scalar',
|
|
4178
4232
|
opt: true,
|
|
4179
|
-
T: 8 /*ScalarType.BOOL*/
|
|
4233
|
+
T: 8, /* ScalarType.BOOL */
|
|
4180
4234
|
},
|
|
4181
4235
|
{
|
|
4182
4236
|
no: 999,
|
|
4183
4237
|
name: 'uninterpreted_option',
|
|
4184
4238
|
kind: 'message',
|
|
4185
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4186
|
-
T: () => UninterpretedOption
|
|
4187
|
-
}
|
|
4239
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4240
|
+
T: () => UninterpretedOption,
|
|
4241
|
+
},
|
|
4188
4242
|
]);
|
|
4189
4243
|
}
|
|
4244
|
+
|
|
4190
4245
|
create(value?: PartialMessage<EnumValueOptions>): EnumValueOptions {
|
|
4191
4246
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4192
4247
|
message.uninterpretedOption = [];
|
|
@@ -4194,16 +4249,17 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
4194
4249
|
reflectionMergePartial<EnumValueOptions>(this, message, value);
|
|
4195
4250
|
return message;
|
|
4196
4251
|
}
|
|
4252
|
+
|
|
4197
4253
|
internalBinaryRead(
|
|
4198
4254
|
reader: IBinaryReader,
|
|
4199
4255
|
length: number,
|
|
4200
4256
|
options: BinaryReadOptions,
|
|
4201
|
-
target?: EnumValueOptions
|
|
4257
|
+
target?: EnumValueOptions,
|
|
4202
4258
|
): EnumValueOptions {
|
|
4203
|
-
|
|
4259
|
+
const message = target ?? this.create(),
|
|
4204
4260
|
end = reader.pos + length;
|
|
4205
4261
|
while (reader.pos < end) {
|
|
4206
|
-
|
|
4262
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4207
4263
|
switch (fieldNo) {
|
|
4208
4264
|
case /* optional bool deprecated */ 1:
|
|
4209
4265
|
message.deprecated = reader.bool();
|
|
@@ -4213,33 +4269,34 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
4213
4269
|
UninterpretedOption.internalBinaryRead(
|
|
4214
4270
|
reader,
|
|
4215
4271
|
reader.uint32(),
|
|
4216
|
-
options
|
|
4217
|
-
)
|
|
4272
|
+
options,
|
|
4273
|
+
),
|
|
4218
4274
|
);
|
|
4219
4275
|
break;
|
|
4220
4276
|
default:
|
|
4221
|
-
|
|
4277
|
+
const u = options.readUnknownField;
|
|
4222
4278
|
if (u === 'throw')
|
|
4223
4279
|
throw new globalThis.Error(
|
|
4224
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4280
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4225
4281
|
);
|
|
4226
|
-
|
|
4282
|
+
const d = reader.skip(wireType);
|
|
4227
4283
|
if (u !== false)
|
|
4228
4284
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4229
4285
|
this.typeName,
|
|
4230
4286
|
message,
|
|
4231
4287
|
fieldNo,
|
|
4232
4288
|
wireType,
|
|
4233
|
-
d
|
|
4289
|
+
d,
|
|
4234
4290
|
);
|
|
4235
4291
|
}
|
|
4236
4292
|
}
|
|
4237
4293
|
return message;
|
|
4238
4294
|
}
|
|
4295
|
+
|
|
4239
4296
|
internalBinaryWrite(
|
|
4240
4297
|
message: EnumValueOptions,
|
|
4241
4298
|
writer: IBinaryWriter,
|
|
4242
|
-
options: BinaryWriteOptions
|
|
4299
|
+
options: BinaryWriteOptions,
|
|
4243
4300
|
): IBinaryWriter {
|
|
4244
4301
|
/* optional bool deprecated = 1; */
|
|
4245
4302
|
if (message.deprecated !== undefined)
|
|
@@ -4249,14 +4306,14 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
4249
4306
|
UninterpretedOption.internalBinaryWrite(
|
|
4250
4307
|
message.uninterpretedOption[i],
|
|
4251
4308
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
4252
|
-
options
|
|
4309
|
+
options,
|
|
4253
4310
|
).join();
|
|
4254
|
-
|
|
4311
|
+
const u = options.writeUnknownFields;
|
|
4255
4312
|
if (u !== false)
|
|
4256
4313
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4257
4314
|
this.typeName,
|
|
4258
4315
|
message,
|
|
4259
|
-
writer
|
|
4316
|
+
writer,
|
|
4260
4317
|
);
|
|
4261
4318
|
return writer;
|
|
4262
4319
|
}
|
|
@@ -4274,17 +4331,18 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
4274
4331
|
name: 'deprecated',
|
|
4275
4332
|
kind: 'scalar',
|
|
4276
4333
|
opt: true,
|
|
4277
|
-
T: 8 /*ScalarType.BOOL*/
|
|
4334
|
+
T: 8, /* ScalarType.BOOL */
|
|
4278
4335
|
},
|
|
4279
4336
|
{
|
|
4280
4337
|
no: 999,
|
|
4281
4338
|
name: 'uninterpreted_option',
|
|
4282
4339
|
kind: 'message',
|
|
4283
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4284
|
-
T: () => UninterpretedOption
|
|
4285
|
-
}
|
|
4340
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4341
|
+
T: () => UninterpretedOption,
|
|
4342
|
+
},
|
|
4286
4343
|
]);
|
|
4287
4344
|
}
|
|
4345
|
+
|
|
4288
4346
|
create(value?: PartialMessage<ServiceOptions>): ServiceOptions {
|
|
4289
4347
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4290
4348
|
message.uninterpretedOption = [];
|
|
@@ -4292,16 +4350,17 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
4292
4350
|
reflectionMergePartial<ServiceOptions>(this, message, value);
|
|
4293
4351
|
return message;
|
|
4294
4352
|
}
|
|
4353
|
+
|
|
4295
4354
|
internalBinaryRead(
|
|
4296
4355
|
reader: IBinaryReader,
|
|
4297
4356
|
length: number,
|
|
4298
4357
|
options: BinaryReadOptions,
|
|
4299
|
-
target?: ServiceOptions
|
|
4358
|
+
target?: ServiceOptions,
|
|
4300
4359
|
): ServiceOptions {
|
|
4301
|
-
|
|
4360
|
+
const message = target ?? this.create(),
|
|
4302
4361
|
end = reader.pos + length;
|
|
4303
4362
|
while (reader.pos < end) {
|
|
4304
|
-
|
|
4363
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4305
4364
|
switch (fieldNo) {
|
|
4306
4365
|
case /* optional bool deprecated */ 33:
|
|
4307
4366
|
message.deprecated = reader.bool();
|
|
@@ -4311,33 +4370,34 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
4311
4370
|
UninterpretedOption.internalBinaryRead(
|
|
4312
4371
|
reader,
|
|
4313
4372
|
reader.uint32(),
|
|
4314
|
-
options
|
|
4315
|
-
)
|
|
4373
|
+
options,
|
|
4374
|
+
),
|
|
4316
4375
|
);
|
|
4317
4376
|
break;
|
|
4318
4377
|
default:
|
|
4319
|
-
|
|
4378
|
+
const u = options.readUnknownField;
|
|
4320
4379
|
if (u === 'throw')
|
|
4321
4380
|
throw new globalThis.Error(
|
|
4322
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4381
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4323
4382
|
);
|
|
4324
|
-
|
|
4383
|
+
const d = reader.skip(wireType);
|
|
4325
4384
|
if (u !== false)
|
|
4326
4385
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4327
4386
|
this.typeName,
|
|
4328
4387
|
message,
|
|
4329
4388
|
fieldNo,
|
|
4330
4389
|
wireType,
|
|
4331
|
-
d
|
|
4390
|
+
d,
|
|
4332
4391
|
);
|
|
4333
4392
|
}
|
|
4334
4393
|
}
|
|
4335
4394
|
return message;
|
|
4336
4395
|
}
|
|
4396
|
+
|
|
4337
4397
|
internalBinaryWrite(
|
|
4338
4398
|
message: ServiceOptions,
|
|
4339
4399
|
writer: IBinaryWriter,
|
|
4340
|
-
options: BinaryWriteOptions
|
|
4400
|
+
options: BinaryWriteOptions,
|
|
4341
4401
|
): IBinaryWriter {
|
|
4342
4402
|
/* optional bool deprecated = 33; */
|
|
4343
4403
|
if (message.deprecated !== undefined)
|
|
@@ -4347,14 +4407,14 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
4347
4407
|
UninterpretedOption.internalBinaryWrite(
|
|
4348
4408
|
message.uninterpretedOption[i],
|
|
4349
4409
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
4350
|
-
options
|
|
4410
|
+
options,
|
|
4351
4411
|
).join();
|
|
4352
|
-
|
|
4412
|
+
const u = options.writeUnknownFields;
|
|
4353
4413
|
if (u !== false)
|
|
4354
4414
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4355
4415
|
this.typeName,
|
|
4356
4416
|
message,
|
|
4357
|
-
writer
|
|
4417
|
+
writer,
|
|
4358
4418
|
);
|
|
4359
4419
|
return writer;
|
|
4360
4420
|
}
|
|
@@ -4372,7 +4432,7 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
4372
4432
|
name: 'deprecated',
|
|
4373
4433
|
kind: 'scalar',
|
|
4374
4434
|
opt: true,
|
|
4375
|
-
T: 8 /*ScalarType.BOOL*/
|
|
4435
|
+
T: 8, /* ScalarType.BOOL */
|
|
4376
4436
|
},
|
|
4377
4437
|
{
|
|
4378
4438
|
no: 34,
|
|
@@ -4381,18 +4441,19 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
4381
4441
|
opt: true,
|
|
4382
4442
|
T: () => [
|
|
4383
4443
|
'google.protobuf.MethodOptions.IdempotencyLevel',
|
|
4384
|
-
MethodOptions_IdempotencyLevel
|
|
4385
|
-
]
|
|
4444
|
+
MethodOptions_IdempotencyLevel,
|
|
4445
|
+
],
|
|
4386
4446
|
},
|
|
4387
4447
|
{
|
|
4388
4448
|
no: 999,
|
|
4389
4449
|
name: 'uninterpreted_option',
|
|
4390
4450
|
kind: 'message',
|
|
4391
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4392
|
-
T: () => UninterpretedOption
|
|
4393
|
-
}
|
|
4451
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4452
|
+
T: () => UninterpretedOption,
|
|
4453
|
+
},
|
|
4394
4454
|
]);
|
|
4395
4455
|
}
|
|
4456
|
+
|
|
4396
4457
|
create(value?: PartialMessage<MethodOptions>): MethodOptions {
|
|
4397
4458
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4398
4459
|
message.uninterpretedOption = [];
|
|
@@ -4400,16 +4461,17 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
4400
4461
|
reflectionMergePartial<MethodOptions>(this, message, value);
|
|
4401
4462
|
return message;
|
|
4402
4463
|
}
|
|
4464
|
+
|
|
4403
4465
|
internalBinaryRead(
|
|
4404
4466
|
reader: IBinaryReader,
|
|
4405
4467
|
length: number,
|
|
4406
4468
|
options: BinaryReadOptions,
|
|
4407
|
-
target?: MethodOptions
|
|
4469
|
+
target?: MethodOptions,
|
|
4408
4470
|
): MethodOptions {
|
|
4409
|
-
|
|
4471
|
+
const message = target ?? this.create(),
|
|
4410
4472
|
end = reader.pos + length;
|
|
4411
4473
|
while (reader.pos < end) {
|
|
4412
|
-
|
|
4474
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4413
4475
|
switch (fieldNo) {
|
|
4414
4476
|
case /* optional bool deprecated */ 33:
|
|
4415
4477
|
message.deprecated = reader.bool();
|
|
@@ -4422,33 +4484,34 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
4422
4484
|
UninterpretedOption.internalBinaryRead(
|
|
4423
4485
|
reader,
|
|
4424
4486
|
reader.uint32(),
|
|
4425
|
-
options
|
|
4426
|
-
)
|
|
4487
|
+
options,
|
|
4488
|
+
),
|
|
4427
4489
|
);
|
|
4428
4490
|
break;
|
|
4429
4491
|
default:
|
|
4430
|
-
|
|
4492
|
+
const u = options.readUnknownField;
|
|
4431
4493
|
if (u === 'throw')
|
|
4432
4494
|
throw new globalThis.Error(
|
|
4433
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4495
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4434
4496
|
);
|
|
4435
|
-
|
|
4497
|
+
const d = reader.skip(wireType);
|
|
4436
4498
|
if (u !== false)
|
|
4437
4499
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4438
4500
|
this.typeName,
|
|
4439
4501
|
message,
|
|
4440
4502
|
fieldNo,
|
|
4441
4503
|
wireType,
|
|
4442
|
-
d
|
|
4504
|
+
d,
|
|
4443
4505
|
);
|
|
4444
4506
|
}
|
|
4445
4507
|
}
|
|
4446
4508
|
return message;
|
|
4447
4509
|
}
|
|
4510
|
+
|
|
4448
4511
|
internalBinaryWrite(
|
|
4449
4512
|
message: MethodOptions,
|
|
4450
4513
|
writer: IBinaryWriter,
|
|
4451
|
-
options: BinaryWriteOptions
|
|
4514
|
+
options: BinaryWriteOptions,
|
|
4452
4515
|
): IBinaryWriter {
|
|
4453
4516
|
/* optional bool deprecated = 33; */
|
|
4454
4517
|
if (message.deprecated !== undefined)
|
|
@@ -4461,14 +4524,14 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
4461
4524
|
UninterpretedOption.internalBinaryWrite(
|
|
4462
4525
|
message.uninterpretedOption[i],
|
|
4463
4526
|
writer.tag(999, WireType.LengthDelimited).fork(),
|
|
4464
|
-
options
|
|
4527
|
+
options,
|
|
4465
4528
|
).join();
|
|
4466
|
-
|
|
4529
|
+
const u = options.writeUnknownFields;
|
|
4467
4530
|
if (u !== false)
|
|
4468
4531
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4469
4532
|
this.typeName,
|
|
4470
4533
|
message,
|
|
4471
|
-
writer
|
|
4534
|
+
writer,
|
|
4472
4535
|
);
|
|
4473
4536
|
return writer;
|
|
4474
4537
|
}
|
|
@@ -4485,55 +4548,56 @@ class UninterpretedOption$Type extends MessageType<UninterpretedOption> {
|
|
|
4485
4548
|
no: 2,
|
|
4486
4549
|
name: 'name',
|
|
4487
4550
|
kind: 'message',
|
|
4488
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4489
|
-
T: () => UninterpretedOption_NamePart
|
|
4551
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4552
|
+
T: () => UninterpretedOption_NamePart,
|
|
4490
4553
|
},
|
|
4491
4554
|
{
|
|
4492
4555
|
no: 3,
|
|
4493
4556
|
name: 'identifier_value',
|
|
4494
4557
|
kind: 'scalar',
|
|
4495
4558
|
opt: true,
|
|
4496
|
-
T: 9 /*ScalarType.STRING*/
|
|
4559
|
+
T: 9, /* ScalarType.STRING */
|
|
4497
4560
|
},
|
|
4498
4561
|
{
|
|
4499
4562
|
no: 4,
|
|
4500
4563
|
name: 'positive_int_value',
|
|
4501
4564
|
kind: 'scalar',
|
|
4502
4565
|
opt: true,
|
|
4503
|
-
T: 4 /*ScalarType.UINT64*/,
|
|
4504
|
-
L: 0 /*LongType.BIGINT*/
|
|
4566
|
+
T: 4 /* ScalarType.UINT64 */,
|
|
4567
|
+
L: 0, /* LongType.BIGINT */
|
|
4505
4568
|
},
|
|
4506
4569
|
{
|
|
4507
4570
|
no: 5,
|
|
4508
4571
|
name: 'negative_int_value',
|
|
4509
4572
|
kind: 'scalar',
|
|
4510
4573
|
opt: true,
|
|
4511
|
-
T: 3 /*ScalarType.INT64*/,
|
|
4512
|
-
L: 0 /*LongType.BIGINT*/
|
|
4574
|
+
T: 3 /* ScalarType.INT64 */,
|
|
4575
|
+
L: 0, /* LongType.BIGINT */
|
|
4513
4576
|
},
|
|
4514
4577
|
{
|
|
4515
4578
|
no: 6,
|
|
4516
4579
|
name: 'double_value',
|
|
4517
4580
|
kind: 'scalar',
|
|
4518
4581
|
opt: true,
|
|
4519
|
-
T: 1 /*ScalarType.DOUBLE*/
|
|
4582
|
+
T: 1, /* ScalarType.DOUBLE */
|
|
4520
4583
|
},
|
|
4521
4584
|
{
|
|
4522
4585
|
no: 7,
|
|
4523
4586
|
name: 'string_value',
|
|
4524
4587
|
kind: 'scalar',
|
|
4525
4588
|
opt: true,
|
|
4526
|
-
T: 12 /*ScalarType.BYTES*/
|
|
4589
|
+
T: 12, /* ScalarType.BYTES */
|
|
4527
4590
|
},
|
|
4528
4591
|
{
|
|
4529
4592
|
no: 8,
|
|
4530
4593
|
name: 'aggregate_value',
|
|
4531
4594
|
kind: 'scalar',
|
|
4532
4595
|
opt: true,
|
|
4533
|
-
T: 9 /*ScalarType.STRING*/
|
|
4534
|
-
}
|
|
4596
|
+
T: 9, /* ScalarType.STRING */
|
|
4597
|
+
},
|
|
4535
4598
|
]);
|
|
4536
4599
|
}
|
|
4600
|
+
|
|
4537
4601
|
create(value?: PartialMessage<UninterpretedOption>): UninterpretedOption {
|
|
4538
4602
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4539
4603
|
message.name = [];
|
|
@@ -4541,24 +4605,25 @@ class UninterpretedOption$Type extends MessageType<UninterpretedOption> {
|
|
|
4541
4605
|
reflectionMergePartial<UninterpretedOption>(this, message, value);
|
|
4542
4606
|
return message;
|
|
4543
4607
|
}
|
|
4608
|
+
|
|
4544
4609
|
internalBinaryRead(
|
|
4545
4610
|
reader: IBinaryReader,
|
|
4546
4611
|
length: number,
|
|
4547
4612
|
options: BinaryReadOptions,
|
|
4548
|
-
target?: UninterpretedOption
|
|
4613
|
+
target?: UninterpretedOption,
|
|
4549
4614
|
): UninterpretedOption {
|
|
4550
|
-
|
|
4615
|
+
const message = target ?? this.create(),
|
|
4551
4616
|
end = reader.pos + length;
|
|
4552
4617
|
while (reader.pos < end) {
|
|
4553
|
-
|
|
4618
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4554
4619
|
switch (fieldNo) {
|
|
4555
4620
|
case /* repeated google.protobuf.UninterpretedOption.NamePart name */ 2:
|
|
4556
4621
|
message.name.push(
|
|
4557
4622
|
UninterpretedOption_NamePart.internalBinaryRead(
|
|
4558
4623
|
reader,
|
|
4559
4624
|
reader.uint32(),
|
|
4560
|
-
options
|
|
4561
|
-
)
|
|
4625
|
+
options,
|
|
4626
|
+
),
|
|
4562
4627
|
);
|
|
4563
4628
|
break;
|
|
4564
4629
|
case /* optional string identifier_value */ 3:
|
|
@@ -4580,35 +4645,36 @@ class UninterpretedOption$Type extends MessageType<UninterpretedOption> {
|
|
|
4580
4645
|
message.aggregateValue = reader.string();
|
|
4581
4646
|
break;
|
|
4582
4647
|
default:
|
|
4583
|
-
|
|
4648
|
+
const u = options.readUnknownField;
|
|
4584
4649
|
if (u === 'throw')
|
|
4585
4650
|
throw new globalThis.Error(
|
|
4586
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4651
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4587
4652
|
);
|
|
4588
|
-
|
|
4653
|
+
const d = reader.skip(wireType);
|
|
4589
4654
|
if (u !== false)
|
|
4590
4655
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4591
4656
|
this.typeName,
|
|
4592
4657
|
message,
|
|
4593
4658
|
fieldNo,
|
|
4594
4659
|
wireType,
|
|
4595
|
-
d
|
|
4660
|
+
d,
|
|
4596
4661
|
);
|
|
4597
4662
|
}
|
|
4598
4663
|
}
|
|
4599
4664
|
return message;
|
|
4600
4665
|
}
|
|
4666
|
+
|
|
4601
4667
|
internalBinaryWrite(
|
|
4602
4668
|
message: UninterpretedOption,
|
|
4603
4669
|
writer: IBinaryWriter,
|
|
4604
|
-
options: BinaryWriteOptions
|
|
4670
|
+
options: BinaryWriteOptions,
|
|
4605
4671
|
): IBinaryWriter {
|
|
4606
4672
|
/* repeated google.protobuf.UninterpretedOption.NamePart name = 2; */
|
|
4607
4673
|
for (let i = 0; i < message.name.length; i++)
|
|
4608
4674
|
UninterpretedOption_NamePart.internalBinaryWrite(
|
|
4609
4675
|
message.name[i],
|
|
4610
4676
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
4611
|
-
options
|
|
4677
|
+
options,
|
|
4612
4678
|
).join();
|
|
4613
4679
|
/* optional string identifier_value = 3; */
|
|
4614
4680
|
if (message.identifierValue !== undefined)
|
|
@@ -4628,12 +4694,12 @@ class UninterpretedOption$Type extends MessageType<UninterpretedOption> {
|
|
|
4628
4694
|
/* optional string aggregate_value = 8; */
|
|
4629
4695
|
if (message.aggregateValue !== undefined)
|
|
4630
4696
|
writer.tag(8, WireType.LengthDelimited).string(message.aggregateValue);
|
|
4631
|
-
|
|
4697
|
+
const u = options.writeUnknownFields;
|
|
4632
4698
|
if (u !== false)
|
|
4633
4699
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4634
4700
|
this.typeName,
|
|
4635
4701
|
message,
|
|
4636
|
-
writer
|
|
4702
|
+
writer,
|
|
4637
4703
|
);
|
|
4638
4704
|
return writer;
|
|
4639
4705
|
}
|
|
@@ -4646,12 +4712,13 @@ export const UninterpretedOption = new UninterpretedOption$Type();
|
|
|
4646
4712
|
class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_NamePart> {
|
|
4647
4713
|
constructor() {
|
|
4648
4714
|
super('google.protobuf.UninterpretedOption.NamePart', [
|
|
4649
|
-
{ no: 1, name: 'name_part', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
|
|
4650
|
-
{ no: 2, name: 'is_extension', kind: 'scalar', T: 8 /*ScalarType.BOOL*/ }
|
|
4715
|
+
{ no: 1, name: 'name_part', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
4716
|
+
{ no: 2, name: 'is_extension', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
4651
4717
|
]);
|
|
4652
4718
|
}
|
|
4719
|
+
|
|
4653
4720
|
create(
|
|
4654
|
-
value?: PartialMessage<UninterpretedOption_NamePart
|
|
4721
|
+
value?: PartialMessage<UninterpretedOption_NamePart>,
|
|
4655
4722
|
): UninterpretedOption_NamePart {
|
|
4656
4723
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4657
4724
|
message.namePart = '';
|
|
@@ -4660,20 +4727,21 @@ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_
|
|
|
4660
4727
|
reflectionMergePartial<UninterpretedOption_NamePart>(
|
|
4661
4728
|
this,
|
|
4662
4729
|
message,
|
|
4663
|
-
value
|
|
4730
|
+
value,
|
|
4664
4731
|
);
|
|
4665
4732
|
return message;
|
|
4666
4733
|
}
|
|
4734
|
+
|
|
4667
4735
|
internalBinaryRead(
|
|
4668
4736
|
reader: IBinaryReader,
|
|
4669
4737
|
length: number,
|
|
4670
4738
|
options: BinaryReadOptions,
|
|
4671
|
-
target?: UninterpretedOption_NamePart
|
|
4739
|
+
target?: UninterpretedOption_NamePart,
|
|
4672
4740
|
): UninterpretedOption_NamePart {
|
|
4673
|
-
|
|
4741
|
+
const message = target ?? this.create(),
|
|
4674
4742
|
end = reader.pos + length;
|
|
4675
4743
|
while (reader.pos < end) {
|
|
4676
|
-
|
|
4744
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4677
4745
|
switch (fieldNo) {
|
|
4678
4746
|
case /* string name_part */ 1:
|
|
4679
4747
|
message.namePart = reader.string();
|
|
@@ -4682,28 +4750,29 @@ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_
|
|
|
4682
4750
|
message.isExtension = reader.bool();
|
|
4683
4751
|
break;
|
|
4684
4752
|
default:
|
|
4685
|
-
|
|
4753
|
+
const u = options.readUnknownField;
|
|
4686
4754
|
if (u === 'throw')
|
|
4687
4755
|
throw new globalThis.Error(
|
|
4688
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4756
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4689
4757
|
);
|
|
4690
|
-
|
|
4758
|
+
const d = reader.skip(wireType);
|
|
4691
4759
|
if (u !== false)
|
|
4692
4760
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4693
4761
|
this.typeName,
|
|
4694
4762
|
message,
|
|
4695
4763
|
fieldNo,
|
|
4696
4764
|
wireType,
|
|
4697
|
-
d
|
|
4765
|
+
d,
|
|
4698
4766
|
);
|
|
4699
4767
|
}
|
|
4700
4768
|
}
|
|
4701
4769
|
return message;
|
|
4702
4770
|
}
|
|
4771
|
+
|
|
4703
4772
|
internalBinaryWrite(
|
|
4704
4773
|
message: UninterpretedOption_NamePart,
|
|
4705
4774
|
writer: IBinaryWriter,
|
|
4706
|
-
options: BinaryWriteOptions
|
|
4775
|
+
options: BinaryWriteOptions,
|
|
4707
4776
|
): IBinaryWriter {
|
|
4708
4777
|
/* string name_part = 1; */
|
|
4709
4778
|
if (message.namePart !== '')
|
|
@@ -4711,12 +4780,12 @@ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_
|
|
|
4711
4780
|
/* bool is_extension = 2; */
|
|
4712
4781
|
if (message.isExtension !== false)
|
|
4713
4782
|
writer.tag(2, WireType.Varint).bool(message.isExtension);
|
|
4714
|
-
|
|
4783
|
+
const u = options.writeUnknownFields;
|
|
4715
4784
|
if (u !== false)
|
|
4716
4785
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4717
4786
|
this.typeName,
|
|
4718
4787
|
message,
|
|
4719
|
-
writer
|
|
4788
|
+
writer,
|
|
4720
4789
|
);
|
|
4721
4790
|
return writer;
|
|
4722
4791
|
}
|
|
@@ -4724,8 +4793,8 @@ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_
|
|
|
4724
4793
|
/**
|
|
4725
4794
|
* @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart
|
|
4726
4795
|
*/
|
|
4727
|
-
export const UninterpretedOption_NamePart
|
|
4728
|
-
new UninterpretedOption_NamePart$Type();
|
|
4796
|
+
export const UninterpretedOption_NamePart
|
|
4797
|
+
= new UninterpretedOption_NamePart$Type();
|
|
4729
4798
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4730
4799
|
class SourceCodeInfo$Type extends MessageType<SourceCodeInfo> {
|
|
4731
4800
|
constructor() {
|
|
@@ -4734,11 +4803,12 @@ class SourceCodeInfo$Type extends MessageType<SourceCodeInfo> {
|
|
|
4734
4803
|
no: 1,
|
|
4735
4804
|
name: 'location',
|
|
4736
4805
|
kind: 'message',
|
|
4737
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4738
|
-
T: () => SourceCodeInfo_Location
|
|
4739
|
-
}
|
|
4806
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4807
|
+
T: () => SourceCodeInfo_Location,
|
|
4808
|
+
},
|
|
4740
4809
|
]);
|
|
4741
4810
|
}
|
|
4811
|
+
|
|
4742
4812
|
create(value?: PartialMessage<SourceCodeInfo>): SourceCodeInfo {
|
|
4743
4813
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4744
4814
|
message.location = [];
|
|
@@ -4746,63 +4816,65 @@ class SourceCodeInfo$Type extends MessageType<SourceCodeInfo> {
|
|
|
4746
4816
|
reflectionMergePartial<SourceCodeInfo>(this, message, value);
|
|
4747
4817
|
return message;
|
|
4748
4818
|
}
|
|
4819
|
+
|
|
4749
4820
|
internalBinaryRead(
|
|
4750
4821
|
reader: IBinaryReader,
|
|
4751
4822
|
length: number,
|
|
4752
4823
|
options: BinaryReadOptions,
|
|
4753
|
-
target?: SourceCodeInfo
|
|
4824
|
+
target?: SourceCodeInfo,
|
|
4754
4825
|
): SourceCodeInfo {
|
|
4755
|
-
|
|
4826
|
+
const message = target ?? this.create(),
|
|
4756
4827
|
end = reader.pos + length;
|
|
4757
4828
|
while (reader.pos < end) {
|
|
4758
|
-
|
|
4829
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4759
4830
|
switch (fieldNo) {
|
|
4760
4831
|
case /* repeated google.protobuf.SourceCodeInfo.Location location */ 1:
|
|
4761
4832
|
message.location.push(
|
|
4762
4833
|
SourceCodeInfo_Location.internalBinaryRead(
|
|
4763
4834
|
reader,
|
|
4764
4835
|
reader.uint32(),
|
|
4765
|
-
options
|
|
4766
|
-
)
|
|
4836
|
+
options,
|
|
4837
|
+
),
|
|
4767
4838
|
);
|
|
4768
4839
|
break;
|
|
4769
4840
|
default:
|
|
4770
|
-
|
|
4841
|
+
const u = options.readUnknownField;
|
|
4771
4842
|
if (u === 'throw')
|
|
4772
4843
|
throw new globalThis.Error(
|
|
4773
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4844
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4774
4845
|
);
|
|
4775
|
-
|
|
4846
|
+
const d = reader.skip(wireType);
|
|
4776
4847
|
if (u !== false)
|
|
4777
4848
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4778
4849
|
this.typeName,
|
|
4779
4850
|
message,
|
|
4780
4851
|
fieldNo,
|
|
4781
4852
|
wireType,
|
|
4782
|
-
d
|
|
4853
|
+
d,
|
|
4783
4854
|
);
|
|
4784
4855
|
}
|
|
4785
4856
|
}
|
|
4786
4857
|
return message;
|
|
4787
4858
|
}
|
|
4859
|
+
|
|
4788
4860
|
internalBinaryWrite(
|
|
4789
4861
|
message: SourceCodeInfo,
|
|
4790
4862
|
writer: IBinaryWriter,
|
|
4791
|
-
options: BinaryWriteOptions
|
|
4863
|
+
options: BinaryWriteOptions,
|
|
4792
4864
|
): IBinaryWriter {
|
|
4793
4865
|
/* repeated google.protobuf.SourceCodeInfo.Location location = 1; */
|
|
4794
4866
|
for (let i = 0; i < message.location.length; i++)
|
|
4795
4867
|
SourceCodeInfo_Location.internalBinaryWrite(
|
|
4796
4868
|
message.location[i],
|
|
4797
4869
|
writer.tag(1, WireType.LengthDelimited).fork(),
|
|
4798
|
-
options
|
|
4870
|
+
options,
|
|
4799
4871
|
).join();
|
|
4800
|
-
|
|
4872
|
+
const u = options.writeUnknownFields;
|
|
4801
4873
|
if (u !== false)
|
|
4802
4874
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4803
4875
|
this.typeName,
|
|
4804
4876
|
message,
|
|
4805
|
-
writer
|
|
4877
|
+
writer,
|
|
4806
4878
|
);
|
|
4807
4879
|
return writer;
|
|
4808
4880
|
}
|
|
@@ -4819,41 +4891,42 @@ class SourceCodeInfo_Location$Type extends MessageType<SourceCodeInfo_Location>
|
|
|
4819
4891
|
no: 1,
|
|
4820
4892
|
name: 'path',
|
|
4821
4893
|
kind: 'scalar',
|
|
4822
|
-
repeat: 1 /*RepeatType.PACKED*/,
|
|
4823
|
-
T: 5 /*ScalarType.INT32*/
|
|
4894
|
+
repeat: 1 /* RepeatType.PACKED */,
|
|
4895
|
+
T: 5, /* ScalarType.INT32 */
|
|
4824
4896
|
},
|
|
4825
4897
|
{
|
|
4826
4898
|
no: 2,
|
|
4827
4899
|
name: 'span',
|
|
4828
4900
|
kind: 'scalar',
|
|
4829
|
-
repeat: 1 /*RepeatType.PACKED*/,
|
|
4830
|
-
T: 5 /*ScalarType.INT32*/
|
|
4901
|
+
repeat: 1 /* RepeatType.PACKED */,
|
|
4902
|
+
T: 5, /* ScalarType.INT32 */
|
|
4831
4903
|
},
|
|
4832
4904
|
{
|
|
4833
4905
|
no: 3,
|
|
4834
4906
|
name: 'leading_comments',
|
|
4835
4907
|
kind: 'scalar',
|
|
4836
4908
|
opt: true,
|
|
4837
|
-
T: 9 /*ScalarType.STRING*/
|
|
4909
|
+
T: 9, /* ScalarType.STRING */
|
|
4838
4910
|
},
|
|
4839
4911
|
{
|
|
4840
4912
|
no: 4,
|
|
4841
4913
|
name: 'trailing_comments',
|
|
4842
4914
|
kind: 'scalar',
|
|
4843
4915
|
opt: true,
|
|
4844
|
-
T: 9 /*ScalarType.STRING*/
|
|
4916
|
+
T: 9, /* ScalarType.STRING */
|
|
4845
4917
|
},
|
|
4846
4918
|
{
|
|
4847
4919
|
no: 6,
|
|
4848
4920
|
name: 'leading_detached_comments',
|
|
4849
4921
|
kind: 'scalar',
|
|
4850
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4851
|
-
T: 9 /*ScalarType.STRING*/
|
|
4852
|
-
}
|
|
4922
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
4923
|
+
T: 9, /* ScalarType.STRING */
|
|
4924
|
+
},
|
|
4853
4925
|
]);
|
|
4854
4926
|
}
|
|
4927
|
+
|
|
4855
4928
|
create(
|
|
4856
|
-
value?: PartialMessage<SourceCodeInfo_Location
|
|
4929
|
+
value?: PartialMessage<SourceCodeInfo_Location>,
|
|
4857
4930
|
): SourceCodeInfo_Location {
|
|
4858
4931
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4859
4932
|
message.path = [];
|
|
@@ -4863,26 +4936,27 @@ class SourceCodeInfo_Location$Type extends MessageType<SourceCodeInfo_Location>
|
|
|
4863
4936
|
reflectionMergePartial<SourceCodeInfo_Location>(this, message, value);
|
|
4864
4937
|
return message;
|
|
4865
4938
|
}
|
|
4939
|
+
|
|
4866
4940
|
internalBinaryRead(
|
|
4867
4941
|
reader: IBinaryReader,
|
|
4868
4942
|
length: number,
|
|
4869
4943
|
options: BinaryReadOptions,
|
|
4870
|
-
target?: SourceCodeInfo_Location
|
|
4944
|
+
target?: SourceCodeInfo_Location,
|
|
4871
4945
|
): SourceCodeInfo_Location {
|
|
4872
|
-
|
|
4946
|
+
const message = target ?? this.create(),
|
|
4873
4947
|
end = reader.pos + length;
|
|
4874
4948
|
while (reader.pos < end) {
|
|
4875
|
-
|
|
4949
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4876
4950
|
switch (fieldNo) {
|
|
4877
|
-
case /* repeated int32 path = 1 [packed = true]
|
|
4951
|
+
case /* repeated int32 path = 1 [packed = true]; */ 1:
|
|
4878
4952
|
if (wireType === WireType.LengthDelimited)
|
|
4879
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;
|
|
4953
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
4880
4954
|
message.path.push(reader.int32());
|
|
4881
4955
|
else message.path.push(reader.int32());
|
|
4882
4956
|
break;
|
|
4883
|
-
case /* repeated int32 span = 2 [packed = true]
|
|
4957
|
+
case /* repeated int32 span = 2 [packed = true]; */ 2:
|
|
4884
4958
|
if (wireType === WireType.LengthDelimited)
|
|
4885
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;
|
|
4959
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
4886
4960
|
message.span.push(reader.int32());
|
|
4887
4961
|
else message.span.push(reader.int32());
|
|
4888
4962
|
break;
|
|
@@ -4896,28 +4970,29 @@ class SourceCodeInfo_Location$Type extends MessageType<SourceCodeInfo_Location>
|
|
|
4896
4970
|
message.leadingDetachedComments.push(reader.string());
|
|
4897
4971
|
break;
|
|
4898
4972
|
default:
|
|
4899
|
-
|
|
4973
|
+
const u = options.readUnknownField;
|
|
4900
4974
|
if (u === 'throw')
|
|
4901
4975
|
throw new globalThis.Error(
|
|
4902
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
4976
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
4903
4977
|
);
|
|
4904
|
-
|
|
4978
|
+
const d = reader.skip(wireType);
|
|
4905
4979
|
if (u !== false)
|
|
4906
4980
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
4907
4981
|
this.typeName,
|
|
4908
4982
|
message,
|
|
4909
4983
|
fieldNo,
|
|
4910
4984
|
wireType,
|
|
4911
|
-
d
|
|
4985
|
+
d,
|
|
4912
4986
|
);
|
|
4913
4987
|
}
|
|
4914
4988
|
}
|
|
4915
4989
|
return message;
|
|
4916
4990
|
}
|
|
4991
|
+
|
|
4917
4992
|
internalBinaryWrite(
|
|
4918
4993
|
message: SourceCodeInfo_Location,
|
|
4919
4994
|
writer: IBinaryWriter,
|
|
4920
|
-
options: BinaryWriteOptions
|
|
4995
|
+
options: BinaryWriteOptions,
|
|
4921
4996
|
): IBinaryWriter {
|
|
4922
4997
|
/* repeated int32 path = 1 [packed = true]; */
|
|
4923
4998
|
if (message.path.length) {
|
|
@@ -4944,12 +5019,12 @@ class SourceCodeInfo_Location$Type extends MessageType<SourceCodeInfo_Location>
|
|
|
4944
5019
|
writer
|
|
4945
5020
|
.tag(6, WireType.LengthDelimited)
|
|
4946
5021
|
.string(message.leadingDetachedComments[i]);
|
|
4947
|
-
|
|
5022
|
+
const u = options.writeUnknownFields;
|
|
4948
5023
|
if (u !== false)
|
|
4949
5024
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
4950
5025
|
this.typeName,
|
|
4951
5026
|
message,
|
|
4952
|
-
writer
|
|
5027
|
+
writer,
|
|
4953
5028
|
);
|
|
4954
5029
|
return writer;
|
|
4955
5030
|
}
|
|
@@ -4966,11 +5041,12 @@ class GeneratedCodeInfo$Type extends MessageType<GeneratedCodeInfo> {
|
|
|
4966
5041
|
no: 1,
|
|
4967
5042
|
name: 'annotation',
|
|
4968
5043
|
kind: 'message',
|
|
4969
|
-
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
4970
|
-
T: () => GeneratedCodeInfo_Annotation
|
|
4971
|
-
}
|
|
5044
|
+
repeat: 2 /* RepeatType.UNPACKED */,
|
|
5045
|
+
T: () => GeneratedCodeInfo_Annotation,
|
|
5046
|
+
},
|
|
4972
5047
|
]);
|
|
4973
5048
|
}
|
|
5049
|
+
|
|
4974
5050
|
create(value?: PartialMessage<GeneratedCodeInfo>): GeneratedCodeInfo {
|
|
4975
5051
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
4976
5052
|
message.annotation = [];
|
|
@@ -4978,63 +5054,65 @@ class GeneratedCodeInfo$Type extends MessageType<GeneratedCodeInfo> {
|
|
|
4978
5054
|
reflectionMergePartial<GeneratedCodeInfo>(this, message, value);
|
|
4979
5055
|
return message;
|
|
4980
5056
|
}
|
|
5057
|
+
|
|
4981
5058
|
internalBinaryRead(
|
|
4982
5059
|
reader: IBinaryReader,
|
|
4983
5060
|
length: number,
|
|
4984
5061
|
options: BinaryReadOptions,
|
|
4985
|
-
target?: GeneratedCodeInfo
|
|
5062
|
+
target?: GeneratedCodeInfo,
|
|
4986
5063
|
): GeneratedCodeInfo {
|
|
4987
|
-
|
|
5064
|
+
const message = target ?? this.create(),
|
|
4988
5065
|
end = reader.pos + length;
|
|
4989
5066
|
while (reader.pos < end) {
|
|
4990
|
-
|
|
5067
|
+
const [fieldNo, wireType] = reader.tag();
|
|
4991
5068
|
switch (fieldNo) {
|
|
4992
5069
|
case /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation */ 1:
|
|
4993
5070
|
message.annotation.push(
|
|
4994
5071
|
GeneratedCodeInfo_Annotation.internalBinaryRead(
|
|
4995
5072
|
reader,
|
|
4996
5073
|
reader.uint32(),
|
|
4997
|
-
options
|
|
4998
|
-
)
|
|
5074
|
+
options,
|
|
5075
|
+
),
|
|
4999
5076
|
);
|
|
5000
5077
|
break;
|
|
5001
5078
|
default:
|
|
5002
|
-
|
|
5079
|
+
const u = options.readUnknownField;
|
|
5003
5080
|
if (u === 'throw')
|
|
5004
5081
|
throw new globalThis.Error(
|
|
5005
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
5082
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
5006
5083
|
);
|
|
5007
|
-
|
|
5084
|
+
const d = reader.skip(wireType);
|
|
5008
5085
|
if (u !== false)
|
|
5009
5086
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
5010
5087
|
this.typeName,
|
|
5011
5088
|
message,
|
|
5012
5089
|
fieldNo,
|
|
5013
5090
|
wireType,
|
|
5014
|
-
d
|
|
5091
|
+
d,
|
|
5015
5092
|
);
|
|
5016
5093
|
}
|
|
5017
5094
|
}
|
|
5018
5095
|
return message;
|
|
5019
5096
|
}
|
|
5097
|
+
|
|
5020
5098
|
internalBinaryWrite(
|
|
5021
5099
|
message: GeneratedCodeInfo,
|
|
5022
5100
|
writer: IBinaryWriter,
|
|
5023
|
-
options: BinaryWriteOptions
|
|
5101
|
+
options: BinaryWriteOptions,
|
|
5024
5102
|
): IBinaryWriter {
|
|
5025
5103
|
/* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */
|
|
5026
5104
|
for (let i = 0; i < message.annotation.length; i++)
|
|
5027
5105
|
GeneratedCodeInfo_Annotation.internalBinaryWrite(
|
|
5028
5106
|
message.annotation[i],
|
|
5029
5107
|
writer.tag(1, WireType.LengthDelimited).fork(),
|
|
5030
|
-
options
|
|
5108
|
+
options,
|
|
5031
5109
|
).join();
|
|
5032
|
-
|
|
5110
|
+
const u = options.writeUnknownFields;
|
|
5033
5111
|
if (u !== false)
|
|
5034
5112
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
5035
5113
|
this.typeName,
|
|
5036
5114
|
message,
|
|
5037
|
-
writer
|
|
5115
|
+
writer,
|
|
5038
5116
|
);
|
|
5039
5117
|
return writer;
|
|
5040
5118
|
}
|
|
@@ -5051,34 +5129,35 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
5051
5129
|
no: 1,
|
|
5052
5130
|
name: 'path',
|
|
5053
5131
|
kind: 'scalar',
|
|
5054
|
-
repeat: 1 /*RepeatType.PACKED*/,
|
|
5055
|
-
T: 5 /*ScalarType.INT32*/
|
|
5132
|
+
repeat: 1 /* RepeatType.PACKED */,
|
|
5133
|
+
T: 5, /* ScalarType.INT32 */
|
|
5056
5134
|
},
|
|
5057
5135
|
{
|
|
5058
5136
|
no: 2,
|
|
5059
5137
|
name: 'source_file',
|
|
5060
5138
|
kind: 'scalar',
|
|
5061
5139
|
opt: true,
|
|
5062
|
-
T: 9 /*ScalarType.STRING*/
|
|
5140
|
+
T: 9, /* ScalarType.STRING */
|
|
5063
5141
|
},
|
|
5064
5142
|
{
|
|
5065
5143
|
no: 3,
|
|
5066
5144
|
name: 'begin',
|
|
5067
5145
|
kind: 'scalar',
|
|
5068
5146
|
opt: true,
|
|
5069
|
-
T: 5 /*ScalarType.INT32*/
|
|
5147
|
+
T: 5, /* ScalarType.INT32 */
|
|
5070
5148
|
},
|
|
5071
5149
|
{
|
|
5072
5150
|
no: 4,
|
|
5073
5151
|
name: 'end',
|
|
5074
5152
|
kind: 'scalar',
|
|
5075
5153
|
opt: true,
|
|
5076
|
-
T: 5 /*ScalarType.INT32*/
|
|
5077
|
-
}
|
|
5154
|
+
T: 5, /* ScalarType.INT32 */
|
|
5155
|
+
},
|
|
5078
5156
|
]);
|
|
5079
5157
|
}
|
|
5158
|
+
|
|
5080
5159
|
create(
|
|
5081
|
-
value?: PartialMessage<GeneratedCodeInfo_Annotation
|
|
5160
|
+
value?: PartialMessage<GeneratedCodeInfo_Annotation>,
|
|
5082
5161
|
): GeneratedCodeInfo_Annotation {
|
|
5083
5162
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
5084
5163
|
message.path = [];
|
|
@@ -5086,24 +5165,25 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
5086
5165
|
reflectionMergePartial<GeneratedCodeInfo_Annotation>(
|
|
5087
5166
|
this,
|
|
5088
5167
|
message,
|
|
5089
|
-
value
|
|
5168
|
+
value,
|
|
5090
5169
|
);
|
|
5091
5170
|
return message;
|
|
5092
5171
|
}
|
|
5172
|
+
|
|
5093
5173
|
internalBinaryRead(
|
|
5094
5174
|
reader: IBinaryReader,
|
|
5095
5175
|
length: number,
|
|
5096
5176
|
options: BinaryReadOptions,
|
|
5097
|
-
target?: GeneratedCodeInfo_Annotation
|
|
5177
|
+
target?: GeneratedCodeInfo_Annotation,
|
|
5098
5178
|
): GeneratedCodeInfo_Annotation {
|
|
5099
|
-
|
|
5179
|
+
const message = target ?? this.create(),
|
|
5100
5180
|
end = reader.pos + length;
|
|
5101
5181
|
while (reader.pos < end) {
|
|
5102
|
-
|
|
5182
|
+
const [fieldNo, wireType] = reader.tag();
|
|
5103
5183
|
switch (fieldNo) {
|
|
5104
|
-
case /* repeated int32 path = 1 [packed = true]
|
|
5184
|
+
case /* repeated int32 path = 1 [packed = true]; */ 1:
|
|
5105
5185
|
if (wireType === WireType.LengthDelimited)
|
|
5106
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;
|
|
5186
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
5107
5187
|
message.path.push(reader.int32());
|
|
5108
5188
|
else message.path.push(reader.int32());
|
|
5109
5189
|
break;
|
|
@@ -5117,28 +5197,29 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
5117
5197
|
message.end = reader.int32();
|
|
5118
5198
|
break;
|
|
5119
5199
|
default:
|
|
5120
|
-
|
|
5200
|
+
const u = options.readUnknownField;
|
|
5121
5201
|
if (u === 'throw')
|
|
5122
5202
|
throw new globalThis.Error(
|
|
5123
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
5203
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
5124
5204
|
);
|
|
5125
|
-
|
|
5205
|
+
const d = reader.skip(wireType);
|
|
5126
5206
|
if (u !== false)
|
|
5127
5207
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
5128
5208
|
this.typeName,
|
|
5129
5209
|
message,
|
|
5130
5210
|
fieldNo,
|
|
5131
5211
|
wireType,
|
|
5132
|
-
d
|
|
5212
|
+
d,
|
|
5133
5213
|
);
|
|
5134
5214
|
}
|
|
5135
5215
|
}
|
|
5136
5216
|
return message;
|
|
5137
5217
|
}
|
|
5218
|
+
|
|
5138
5219
|
internalBinaryWrite(
|
|
5139
5220
|
message: GeneratedCodeInfo_Annotation,
|
|
5140
5221
|
writer: IBinaryWriter,
|
|
5141
|
-
options: BinaryWriteOptions
|
|
5222
|
+
options: BinaryWriteOptions,
|
|
5142
5223
|
): IBinaryWriter {
|
|
5143
5224
|
/* repeated int32 path = 1 [packed = true]; */
|
|
5144
5225
|
if (message.path.length) {
|
|
@@ -5156,12 +5237,12 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
5156
5237
|
/* optional int32 end = 4; */
|
|
5157
5238
|
if (message.end !== undefined)
|
|
5158
5239
|
writer.tag(4, WireType.Varint).int32(message.end);
|
|
5159
|
-
|
|
5240
|
+
const u = options.writeUnknownFields;
|
|
5160
5241
|
if (u !== false)
|
|
5161
5242
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
5162
5243
|
this.typeName,
|
|
5163
5244
|
message,
|
|
5164
|
-
writer
|
|
5245
|
+
writer,
|
|
5165
5246
|
);
|
|
5166
5247
|
return writer;
|
|
5167
5248
|
}
|
|
@@ -5169,5 +5250,5 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
5169
5250
|
/**
|
|
5170
5251
|
* @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation
|
|
5171
5252
|
*/
|
|
5172
|
-
export const GeneratedCodeInfo_Annotation
|
|
5173
|
-
new GeneratedCodeInfo_Annotation$Type();
|
|
5253
|
+
export const GeneratedCodeInfo_Annotation
|
|
5254
|
+
= new GeneratedCodeInfo_Annotation$Type();
|