func (b *Builder) BuildStores() [][]cache.Store {
	return b.internal.BuildStores()
}
BuildStores initializes and registers all enabled stores.
Returns metric stores.
package builder
import (
	"context"
	"github.com/prometheus/client_golang/prometheus"
	vpaclientset "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/client/clientset/versioned"
	clientset "k8s.io/client-go/kubernetes"
	"k8s.io/client-go/tools/cache"
	internalstore "k8s.io/kube-state-metrics/v2/internal/store"
	ksmtypes "k8s.io/kube-state-metrics/v2/pkg/builder/types"
	metricsstore "k8s.io/kube-state-metrics/v2/pkg/metrics_store"
	"k8s.io/kube-state-metrics/v2/pkg/options"
)
type Builder struct {
	internal ksmtypes.BuilderInterface
}
func NewBuilder() *Builder {
	b := &Builder{
		internal: internalstore.NewBuilder(),
	}
	return b
}
func (b *Builder) WithMetrics(r prometheus.Registerer) {
	b.internal.WithMetrics(r)
}
func (b *Builder) WithEnabledResources(c []string) error {
	return b.internal.WithEnabledResources(c)
}
func (b *Builder) WithNamespaces(n options.NamespaceList, nsFilter string) {
	b.internal.WithNamespaces(n, nsFilter)
}
func (b *Builder) WithSharding(shard int32, totalShards int) {
	b.internal.WithSharding(shard, totalShards)
}
func (b *Builder) WithContext(ctx context.Context) {
	b.internal.WithContext(ctx)
}
func (b *Builder) WithKubeClient(c clientset.Interface) {
	b.internal.WithKubeClient(c)
}
func (b *Builder) WithVPAClient(c vpaclientset.Interface) {
	b.internal.WithVPAClient(c)
}
func (b *Builder) WithAllowDenyList(l ksmtypes.AllowDenyLister) {
	b.internal.WithAllowDenyList(l)
}
func (b *Builder) WithAllowLabels(l map[string][]string) {
	b.internal.WithAllowLabels(l)
}
func (b *Builder) WithGenerateStoresFunc(f ksmtypes.BuildStoresFunc) {
	b.internal.WithGenerateStoresFunc(f, false)
}
func (b *Builder) DefaultGenerateStoresFunc() ksmtypes.BuildStoresFunc {
	return b.internal.DefaultGenerateStoresFunc()
}
func (b *Builder) Build() []metricsstore.MetricsWriter {
	return b.internal.Build()
}