Extra fucntions for protobuf