125
}
126
127
>
func (m NameTypeMap) All() map[string]enumspb.IndexedValueType {
name_type_map.go
128
>
systemSearchAttributes := m.system()
129
>
predefinedSearchAttributes := m.predefined()
130
>
allSearchAttributes := make(
131
>
map[string]enumspb.IndexedValueType,
132
>
len(systemSearchAttributes)+len(predefinedSearchAttributes)+len(m.customSearchAttributes),
133
>
)
134
>
maps.Copy(allSearchAttributes, systemSearchAttributes)
135
>
maps.Copy(allSearchAttributes, predefinedSearchAttributes)
136
>
maps.Copy(allSearchAttributes, m.customSearchAttributes)
137
>
return allSearchAttributes
138
>
}
139
140
// GetType returns type of search attribute from type map.