func (m *Metric) HasUnit() bool {
	if m != nil && m.Unit != nil {
		return true
	}

	return false
}
func (m *Metric) HasUnit() bool {
	if m != nil && m.Unit != nil {
		return true
	}

	return false
}
func ( m * Metric ) HasUnit ( ) bool { if m != nil && m . Unit != nil { return true } return false }
// HasUnit returns a boolean if a field has been set.
HasUnit returns a boolean if a field has been set .