upgrade protobuf definitions