proto generate flags; dename record protobuf