func (s applicationProtocolNamespaceLister) Get(name string) (*v1alpha1.ApplicationProtocol, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1alpha1.Resource("applicationprotocol"), name)
	}
	return obj.(*v1alpha1.ApplicationProtocol), nil
}
Get retrieves the ApplicationProtocol from the indexer for a given namespace and name.
package v1alpha1
import (
	v1alpha1 "github.com/aeraki-framework/aeraki/client-go/pkg/apis/metaprotocol/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ApplicationProtocolLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.ApplicationProtocol, err error)
	ApplicationProtocols(namespace string) ApplicationProtocolNamespaceLister
	ApplicationProtocolListerExpansion
}
type applicationProtocolLister struct {
	indexer cache.Indexer
}
func NewApplicationProtocolLister(indexer cache.Indexer) ApplicationProtocolLister {
	return &applicationProtocolLister{indexer: indexer}
}
func (s *applicationProtocolLister) List(selector labels.Selector) (ret []*v1alpha1.ApplicationProtocol, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.ApplicationProtocol))
	})
	return ret, err
}
func (s *applicationProtocolLister) ApplicationProtocols(namespace string) ApplicationProtocolNamespaceLister {
	return applicationProtocolNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type ApplicationProtocolNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.ApplicationProtocol, err error)
	Get(name string) (*v1alpha1.ApplicationProtocol, error)
	ApplicationProtocolNamespaceListerExpansion
}
type applicationProtocolNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s applicationProtocolNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ApplicationProtocol, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.ApplicationProtocol))
	})
	return ret, err
}