func (a *AutoDateHistogramAggregation) Buckets(buckets int) *AutoDateHistogramAggregation {
	a.buckets = buckets
	return a
}
Buckets buckets num by which the aggregation gets processed.
package elastic
type AutoDateHistogramAggregation struct {
	field           string
	script          *Script
	missing         interface{}
	subAggregations map[string]Aggregation
	meta            map[string]interface{}
	buckets         int
	minDocCount     *int64
	timeZone        string
	format          string
	minimumInterval string
}
func NewAutoDateHistogramAggregation() *AutoDateHistogramAggregation {
	return &AutoDateHistogramAggregation{
		subAggregations: make(map[string]Aggregation),
	}
}
func (a *AutoDateHistogramAggregation) Field(field string) *AutoDateHistogramAggregation {
	a.field = field
	return a
}
func (a *AutoDateHistogramAggregation) Script(script *Script) *AutoDateHistogramAggregation {
	a.script = script
	return a
}
func (a *AutoDateHistogramAggregation) Missing(missing interface{}) *AutoDateHistogramAggregation {
	a.missing = missing
	return a
}
func (a *AutoDateHistogramAggregation) SubAggregation(name string, subAggregation Aggregation) *AutoDateHistogramAggregation {
	a.subAggregations[name] = subAggregation
	return a
}
func (a *AutoDateHistogramAggregation) Meta(metaData map[string]interface{}) *AutoDateHistogramAggregation {
	a.meta = metaData
	return a
}