[protocolbuffersmessage] improve readability of clear and magic method