* Returns the name of the type of the given field.
* @param field the given field.
* @return the name of the type of the given field.
*/
public String typeNameOf(MessageField field) {
ScalarType scalarType = scalarTypeOf(field);
if (scalarType != null) {
return scalarType.getName();
}
ComplexType complexType = typeOf(field);
if (complexType != null) {
return complexType.getName();
}