Parse the binary encoded Protobuf into this message instance. This returns the instance itself and is therefore assignable and chainable. .. note:: This is a method for compatibility with other libraries, you should really use :meth:`parse`.
(cls: Type[T], data: bytes)
| 1369 | # For compatibility with other libraries. |
| 1370 | @classmethod |
| 1371 | def FromString(cls: Type[T], data: bytes) -> T: |
| 1372 | """ |
| 1373 | Parse the binary encoded Protobuf into this message instance. This |
| 1374 | returns the instance itself and is therefore assignable and chainable. |
| 1375 | |
| 1376 | .. note:: |
| 1377 | This is a method for compatibility with other libraries, |
| 1378 | you should really use :meth:`parse`. |
| 1379 | |
| 1380 | |
| 1381 | Parameters |
| 1382 | ----------- |
| 1383 | data: :class:`bytes` |
| 1384 | The data to parse the protobuf from. |
| 1385 | |
| 1386 | Returns |
| 1387 | -------- |
| 1388 | :class:`Message` |
| 1389 | The initialized message. |
| 1390 | """ |
| 1391 | return cls().parse(data) |
| 1392 | |
| 1393 | def to_dict( |
| 1394 | self, casing: Casing = Casing.CAMEL, include_default_values: bool = False |