Generalized metricn-Leibniz algebras and generalized orthogonal representationof metric Lie algebras