HasName findFullyQualifiedObject ( String fullyQualifiedName ) { Message m = fullyQualifiedMessages . get ( fullyQualifiedName ) ; if ( m != null ) return m ; EnumGroup eg = fullyQualifiedEnumGroups . get ( fullyQualifiedName ) ; if ( eg != null ) return eg ; // Search imported protos as well for ( Proto proto : getImportedProtos ( ) ) { HasName importedObj = proto . findFullyQualifiedObject ( fullyQualifiedName ) ; if ( importedObj != null ) return importedObj ; } return null ; }
Returns a Message or EnumGroup given its fully qualified name