protobuf adapters