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: fileflags_string.go
    path of file: ./repos/delve/pkg/proc/core/minidump
    
    the code of the file until where you have to start completion: // Code generated by "stringer -type FileFlags,StreamType,Arch,MemoryState,MemoryType,MemoryProtection"; DO NOT EDIT.

package minidump

import "strconv"

const _FileFlags_name = "FileNormalFileWithDataSegsFileWithFullMemoryFileWithHandleDataFileFilterMemoryFileScanMemoryFileWithUnloadedModulesFileWithIncorrectlyReferencedMemoryFileFilterModulePathsFileWithProcessThreadDataFileWithPrivate
    
func (i MemoryProtection) String() string {
	switch {
	case 1 <= i && i <= 2:
		i -= 1
		return _MemoryProtection_name_0[_MemoryProtection_index_0[i]:_MemoryProtection_index_0[i+1]]
	case i == 4:
		return _MemoryProtection_name_1
	case i == 8:
		return _MemoryProtection_name_2
	case i == 16:
		return _MemoryProtection_name_3
	case i == 32:
		return _MemoryProtection_name_4
	case i == 64:
		return _MemoryProtection_name_5
	case i == 128:
		return _MemoryProtection_name_6
	case i == 256:
		return _MemoryProtection_name_7
	case i == 512:
		return _MemoryProtection_name_8
	case i == 1024:
		return _MemoryProtection_name_9
	default:
		return "MemoryProtection(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}