Unpacks a protobuf into a native Python type or a numpy array. Reverse operation of pack().
- Parameters:
source (Datum) – A protobuf instance that encapsulates some data.
- Returns:
Unpacked data.
- Raises:
TypeError or google.protobuf.message.DecodeError in case of invalid buffer –
- Return type:
None | str | bool | int | float | complex | ndarray | list