code: func Kind(res *api.GenericResource) string {
  	switch r := res.Resource.(type) {
  	case *api.GenericResource_DiscreteResourceSpec:
  		return r.DiscreteResourceSpec.Kind
  	case *api.GenericResource_NamedResourceSpec:
  		return r.NamedResourceSpec.Kind
  	}
  
  	return ""
  }
docs: // Kind returns the kind key as a string