// ParseGranularity to turn a String into the Granularity
ParseGranularity to turn a String into the Granularity
// ParseGranularity to turn a String into the Granularity
func ParseGranularity(name string) (Granularity, error) {
	v, ok := _GranularityNameToValue[name]
	if ok {
		return v, nil
	}
	return Granularity(0), fmt.Errorf("invalid Granularity: %s", name)
}
func ParseGranularity ( name string ) ( Granularity , error ) { v , ok := _GranularityNameToValue [ name ] if ok { return v , nil } return Granularity ( 0 ) , fmt . Errorf ( " " , name ) }
ParseGranularity to turn a String into the Granularity
ParseGranularity to turn a String into the Granularity