code: func (status *MetadataStatus) UnmarshalText(text []byte) error {
  	t := string(text)
  	switch t {
  	case MetadataInitialText:
  		*status = MetadataInitial
  	case MetadataReadyText:
  		*status = MetadataReady
  	default:
  		return fmt.Errorf("failed unmarshalling MetadataStatus %s", text)
  	}
  	return nil
  }
docs: // Allows unmarshaling from byte to MetadataStatus text form