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

	so := sparse.(*SparseTagInject)
	if so.AddedTags != nil {
		o.AddedTags = *so.AddedTags
	}
	if so.RemovedTags != nil {
		o.RemovedTags = *so.RemovedTags
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
// Patch apply the non nil value of a *SparseTagInject to the object.
Patch apply the non nil value of a *SparseTagInject to the object.
// Patch apply the non nil value of a * SparseTagInject to the object .
func (o *TagInject) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseTagInject)
	if so.AddedTags != nil {
		o.AddedTags = *so.AddedTags
	}
	if so.RemovedTags != nil {
		o.RemovedTags = *so.RemovedTags
	}
	if so.TargetNamespace != nil {
		o.TargetNamespace = *so.TargetNamespace
	}
}
func ( o * TagInject ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseTagInject ) if so . AddedTags != nil { o . AddedTags = * so . AddedTags } if so . RemovedTags != nil { o . RemovedTags = * so . RemovedTags } if so . TargetNamespace != nil { o . TargetNamespace = * so . TargetNamespace } }
Patch apply the non nil value of a *SparseTagInject to the object.
Patch apply the non nil value of a * SparseTagInject to the object .