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

	so := sparse.(*SparseCNSSuggestion)
	if so.NeedsOffsetUpdate != nil {
		o.NeedsOffsetUpdate = *so.NeedsOffsetUpdate
	}
	if so.Offset != nil {
		o.Offset = *so.Offset
	}
	if so.Query != nil {
		o.Query = *so.Query
	}
	if so.Suggestions != nil {
		o.Suggestions = *so.Suggestions
	}
	if so.Translate != nil {
		o.Translate = *so.Translate
	}
	if so.Valid != nil {
		o.Valid = *so.Valid
	}
}
// Patch apply the non nil value of a *SparseCNSSuggestion to the object.
Patch apply the non nil value of a *SparseCNSSuggestion to the object.
// Patch apply the non nil value of a * SparseCNSSuggestion to the object .
func (o *CNSSuggestion) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseCNSSuggestion)
	if so.NeedsOffsetUpdate != nil {
		o.NeedsOffsetUpdate = *so.NeedsOffsetUpdate
	}
	if so.Offset != nil {
		o.Offset = *so.Offset
	}
	if so.Query != nil {
		o.Query = *so.Query
	}
	if so.Suggestions != nil {
		o.Suggestions = *so.Suggestions
	}
	if so.Translate != nil {
		o.Translate = *so.Translate
	}
	if so.Valid != nil {
		o.Valid = *so.Valid
	}
}
func ( o * CNSSuggestion ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseCNSSuggestion ) if so . NeedsOffsetUpdate != nil { o . NeedsOffsetUpdate = * so . NeedsOffsetUpdate } if so . Offset != nil { o . Offset = * so . Offset } if so . Query != nil { o . Query = * so . Query } if so . Suggestions != nil { o . Suggestions = * so . Suggestions } if so . Translate != nil { o . Translate = * so . Translate } if so . Valid != nil { o . Valid = * so . Valid } }
Patch apply the non nil value of a *SparseCNSSuggestion to the object.
Patch apply the non nil value of a * SparseCNSSuggestion to the object .