Get the binary encoded Protobuf representation of this message instance.
(self)
| 1019 | stream.write(self._unknown_fields) |
| 1020 | |
| 1021 | def __bytes__(self) -> bytes: |
| 1022 | """ |
| 1023 | Get the binary encoded Protobuf representation of this message instance. |
| 1024 | """ |
| 1025 | with BytesIO() as stream: |
| 1026 | self.dump(stream) |
| 1027 | return stream.getvalue() |
| 1028 | |
| 1029 | def __len__(self) -> int: |
| 1030 | """ |