func (c *FakeBuilds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(buildsResource, c.ns, listOpts)
	_, err := c.Fake.Invokes(action, &v1alpha2.BuildList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	"context"
	v1alpha2 "github.com/pivotal/kpack/pkg/apis/build/v1alpha2"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeBuilds struct {
	Fake *FakeKpackV1alpha2
	ns   string
}
var buildsResource = schema.GroupVersionResource{Group: "kpack.io", Version: "v1alpha2", Resource: "builds"}
var buildsKind = schema.GroupVersionKind{Group: "kpack.io", Version: "v1alpha2", Kind: "Build"}
func (c *FakeBuilds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Build, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(buildsResource, c.ns, name), &v1alpha2.Build{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha2.Build), err
}
func (c *FakeBuilds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.BuildList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(buildsResource, buildsKind, c.ns, opts), &v1alpha2.BuildList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha2.BuildList{ListMeta: obj.(*v1alpha2.BuildList).ListMeta}
	for _, item := range obj.(*v1alpha2.BuildList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeBuilds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(buildsResource, c.ns, opts))
}
func (c *FakeBuilds) Create(ctx context.Context, build *v1alpha2.Build, opts v1.CreateOptions) (result *v1alpha2.Build, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(buildsResource, c.ns, build), &v1alpha2.Build{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha2.Build), err
}
func (c *FakeBuilds) Update(ctx context.Context, build *v1alpha2.Build, opts v1.UpdateOptions) (result *v1alpha2.Build, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(buildsResource, c.ns, build), &v1alpha2.Build{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha2.Build), err
}
func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1alpha2.Build, opts v1.UpdateOptions) (*v1alpha2.Build, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(buildsResource, "status", c.ns, build), &v1alpha2.Build{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha2.Build), err
}
func (c *FakeBuilds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(buildsResource, c.ns, name), &v1alpha2.Build{})
	return err
}