map[reflect.Type]*StructProperties GetProperties returns the list of properties for the type represented by t, which must be a generated protocol buffer message in the open-struct API, where protobuf message fields are represented by exported Go struct fields. Deprecated: Use protobuf reflection in
(t reflect.Type)
| 217 | // |
| 218 | // Deprecated: Use protobuf reflection instead. |
| 219 | func GetProperties(t reflect.Type) *StructProperties { |
| 220 | if p, ok := propertiesCache.Load(t); ok { |
| 221 | return p.(*StructProperties) |
| 222 | } |
| 223 | p, _ := propertiesCache.LoadOrStore(t, newProperties(t)) |
| 224 | return p.(*StructProperties) |
| 225 | } |
| 226 | |
| 227 | func newProperties(t reflect.Type) *StructProperties { |
| 228 | if t.Kind() != reflect.Struct { |
nothing calls this directly
no test coverage detected