// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type SearchAggregateResponse struct {
	Buckets             []SearchAggregateResponseBucket `json:"buckets"`
	IsMoreThanTotalHits bool                            `json:"is_more_than_total_hits"`
	OtherCount          int64                           `json:"other_count"`
	QueryDurationMillis int64                           `json:"query_duration_millis"`
	TotalCount          int64                           `json:"total_count"`
}

func (o *SearchAggregateResponse) GetBuckets() []SearchAggregateResponseBucket {
	if o == nil {
		return nil
	}
	return o.Buckets
}

func (o *SearchAggregateResponse) GetIsMoreThanTotalHits() bool {
	if o == nil {
		return false
	}
	return o.IsMoreThanTotalHits
}

func (o *SearchAggregateResponse) GetOtherCount() int64 {
	if o == nil {
		return 0
	}
	return o.OtherCount
}

func (o *SearchAggregateResponse) GetQueryDurationMillis() int64 {
	if o == nil {
		return 0
	}
	return o.QueryDurationMillis
}

func (o *SearchAggregateResponse) GetTotalCount() int64 {
	if o == nil {
		return 0
	}
	return o.TotalCount
}
