假设proto中定义了一个enum枚举:enum UserStatus { AWAY = 0; ONLINE = 1; OFFLINE = 2; }方法一:std::string name = UserStatus_Name(UserStatus::AWAY) ...
確定! 回上一頁