question: public String rubyTypeName ( TypeRef typeRef ) { switch ( typeRef . getKind ( ) ) { case TYPE_MESSAGE : return rubyTypeNameForProtoElement ( typeRef . getMessageType ( ) ) ; case TYPE_ENUM : return rubyTypeNameForProtoElement ( typeRef . getEnumType ( ) ) ; default : { String name = PRIMITIVE_TYPE_NAMES . get ( typeRef . getKind ( ) ) ; if ( ! Strings . isNullOrEmpty ( name ) ) { return name ; } throw new IllegalArgumentException ( "unknown type kind: " + typeRef . getKind ( ) ) ; } } }
target:  Returns the name of Ruby class for the given typeRef. 