[doc] api for Protocol/InputProtocol/OutputProtocol