func (o *StatsQuery) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseStatsQuery)
	if so.Descending != nil {
		o.Descending = *so.Descending
	}
	if so.Fields != nil {
		o.Fields = *so.Fields
	}
	if so.Filter != nil {
		o.Filter = *so.Filter
	}
	if so.Groups != nil {
		o.Groups = *so.Groups
	}
	if so.Limit != nil {
		o.Limit = *so.Limit
	}
	if so.Measurement != nil {
		o.Measurement = *so.Measurement
	}
	if so.Offset != nil {
		o.Offset = *so.Offset
	}
	if so.Results != nil {
		o.Results = *so.Results
	}
}
// Patch apply the non nil value of a *SparseStatsQuery to the object.
Patch apply the non nil value of a *SparseStatsQuery to the object.
// Patch apply the non nil value of a * SparseStatsQuery to the object .
func (o *StatsQuery) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseStatsQuery)
	if so.Descending != nil {
		o.Descending = *so.Descending
	}
	if so.Fields != nil {
		o.Fields = *so.Fields
	}
	if so.Filter != nil {
		o.Filter = *so.Filter
	}
	if so.Groups != nil {
		o.Groups = *so.Groups
	}
	if so.Limit != nil {
		o.Limit = *so.Limit
	}
	if so.Measurement != nil {
		o.Measurement = *so.Measurement
	}
	if so.Offset != nil {
		o.Offset = *so.Offset
	}
	if so.Results != nil {
		o.Results = *so.Results
	}
}
func ( o * StatsQuery ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseStatsQuery ) if so . Descending != nil { o . Descending = * so . Descending } if so . Fields != nil { o . Fields = * so . Fields } if so . Filter != nil { o . Filter = * so . Filter } if so . Groups != nil { o . Groups = * so . Groups } if so . Limit != nil { o . Limit = * so . Limit } if so . Measurement != nil { o . Measurement = * so . Measurement } if so . Offset != nil { o . Offset = * so . Offset } if so . Results != nil { o . Results = * so . Results } }
Patch apply the non nil value of a *SparseStatsQuery to the object.
Patch apply the non nil value of a * SparseStatsQuery to the object .