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());
}
}
}

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 ( ) ) ; } } }
returns the name of ruby class for the given typeref .
