Converts the text representation to an enumerated value.
the string.
a BundleKind, or as_bundle_kind_unknown for unknown.