const groupVersionKindExtensionKey … type GvkParser … // Type returns a helper which can produce objects of the given type. Any // errors are deferred until a further function is called. func (p *GvkParser) Type(gvk schema.GroupVersionKind) *typed.ParseableType { … } // NewGVKParser builds a GVKParser from a proto.Models. This // will automatically find the proper version of the object, and the // corresponding schema information. func NewGVKParser(models proto.Models, preserveUnknownFields bool) (*GvkParser, error) { … } // Get and parse GroupVersionKind from the extension. Returns empty if it doesn't have one. func parseGroupVersionKind(s proto.Schema) []schema.GroupVersionKind { … }