You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: unassignedinformationreason.go
    path of file: ./repos/go-elasticsearch/typedapi/types/enums/unassignedinformationreason
    
    the code of the file until where you have to start completion: // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITI
    
func (u *UnassignedInformationReason) UnmarshalText(text []byte) error {
	switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {

	case "INDEX_CREATED":
		*u = INDEXCREATED
	case "CLUSTER_RECOVERED":
		*u = CLUSTERRECOVERED
	case "INDEX_REOPENED":
		*u = INDEXREOPENED
	case "DANGLING_INDEX_IMPORTED":
		*u = DANGLINGINDEXIMPORTED
	case "NEW_INDEX_RESTORED":
		*u = NEWINDEXRESTORED
	case "EXISTING_INDEX_RESTORED":
		*u = EXISTINGINDEXRESTORED
	case "REPLICA_ADDED":
		*u = REPLICAADDED
	case "ALLOCATION_FAILED":
		*u = ALLOCATIONFAILED
	case "NODE_LEFT":
		*u = NODELEFT
	case "REROUTE_CANCELLED":
		*u = REROUTECANCELLED
	case "REINITIALIZED":
		*u = REINITIALIZED
	case "REALLOCATED_REPLICA":
		*u = REALLOCATEDREPLICA
	case "PRIMARY_FAILED":
		*u = PRIMARYFAILED
	case "FORCED_EMPTY_PRIMARY":
		*u = FORCEDEMPTYPRIMARY
	case "MANUAL_ALLOCATION":
		*u = MANUALALLOCATION
	default:
		*u = UnassignedInformationReason{string(text)}
	}

	return nil
}