=rem #16428 optimize protobuf serializer for master

#16428 for master
nothing ,so should I keep this PR as the final version or change it to your version?!