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

	so := sparse.(*SparseDiscoveryMode)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Propagate != nil {
		o.Propagate = *so.Propagate
	}
}
// Patch apply the non nil value of a *SparseDiscoveryMode to the object.
Patch apply the non nil value of a *SparseDiscoveryMode to the object.
// Patch apply the non nil value of a * SparseDiscoveryMode to the object .
func (o *DiscoveryMode) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseDiscoveryMode)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Namespace != nil {
		o.Namespace = *so.Namespace
	}
	if so.Propagate != nil {
		o.Propagate = *so.Propagate
	}
}
func ( o * DiscoveryMode ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseDiscoveryMode ) if so . ID != nil { o . ID = * so . ID } if so . Namespace != nil { o . Namespace = * so . Namespace } if so . Propagate != nil { o . Propagate = * so . Propagate } }
Patch apply the non nil value of a *SparseDiscoveryMode to the object.
Patch apply the non nil value of a * SparseDiscoveryMode to the object .