Sets a name of a registry if this reference is of type as_reference_kind_registry.
an Reference instance.
name of an external registry.