chane to protobuf message