Small additions to the stub file

* Add `jsonSerialize()` to `ProtocolBuffersMessage`
* Update `ProtocolBuffersMessage` class signature