added protobuf definition for message level API