func (c *KpackV1alpha2Client) RESTClient() rest.Interface {
	if c == nil {
		return nil
	}
	return c.restClient
}
RESTClient returns a RESTClient that is used to communicate
with API server by this client implementation.
package v1alpha2
import (
	v1alpha2 "github.com/pivotal/kpack/pkg/apis/build/v1alpha2"
	"github.com/pivotal/kpack/pkg/client/clientset/versioned/scheme"
	rest "k8s.io/client-go/rest"
)
type KpackV1alpha2Interface interface {
	RESTClient() rest.Interface
	BuildsGetter
	BuildersGetter
	ClusterBuildersGetter
	ClusterStacksGetter
	ClusterStoresGetter
	ImagesGetter
	SourceResolversGetter
}
type KpackV1alpha2Client struct {
	restClient rest.Interface
}
func (c *KpackV1alpha2Client) Builds(namespace string) BuildInterface {
	return newBuilds(c, namespace)
}
func (c *KpackV1alpha2Client) Builders(namespace string) BuilderInterface {
	return newBuilders(c, namespace)
}
func (c *KpackV1alpha2Client) ClusterBuilders() ClusterBuilderInterface {
	return newClusterBuilders(c)
}
func (c *KpackV1alpha2Client) ClusterStacks() ClusterStackInterface {
	return newClusterStacks(c)
}
func (c *KpackV1alpha2Client) ClusterStores() ClusterStoreInterface {
	return newClusterStores(c)
}
func (c *KpackV1alpha2Client) Images(namespace string) ImageInterface {
	return newImages(c, namespace)
}
func (c *KpackV1alpha2Client) SourceResolvers(namespace string) SourceResolverInterface {
	return newSourceResolvers(c, namespace)
}
func NewForConfig(c *rest.Config) (*KpackV1alpha2Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &KpackV1alpha2Client{client}, nil
}
func NewForConfigOrDie(c *rest.Config) *KpackV1alpha2Client {
	client, err := NewForConfig(c)
	if err != nil {
		panic(err)
	}
	return client
}
func New(c rest.Interface) *KpackV1alpha2Client {
	return &KpackV1alpha2Client{c}
}
func setConfigDefaults(config *rest.Config) error {
	gv := v1alpha2.SchemeGroupVersion
	config.GroupVersion = &gv
	config.APIPath = "/apis"
	config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
	if config.UserAgent == "" {
		config.UserAgent = rest.DefaultKubernetesUserAgent()
	}
	return nil
}