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

package components

type SearchQueryResponse struct {
	Hits                []SearchQueryHit `json:"hits"`
	NextPageToken       string           `json:"next_page_token"`
	PreviousPageToken   string           `json:"previous_page_token"`
	QueryDurationMillis int              `json:"query_duration_millis"`
	TotalHits           float64          `json:"total_hits"`
}

func (o *SearchQueryResponse) GetHits() []SearchQueryHit {
	if o == nil {
		return nil
	}
	return o.Hits
}

func (o *SearchQueryResponse) GetNextPageToken() string {
	if o == nil {
		return ""
	}
	return o.NextPageToken
}

func (o *SearchQueryResponse) GetPreviousPageToken() string {
	if o == nil {
		return ""
	}
	return o.PreviousPageToken
}

func (o *SearchQueryResponse) GetQueryDurationMillis() int {
	if o == nil {
		return 0
	}
	return o.QueryDurationMillis
}

func (o *SearchQueryResponse) GetTotalHits() float64 {
	if o == nil {
		return 0.0
	}
	return o.TotalHits
}
