wire-java-generator / com.squareup.wire.java / JavaGenerator / typeName

typeName

fun typeName(protoType: ProtoType): TypeName

Returns the Java type for protoType.

Exceptions

IllegalArgumentException - if there is no known Java type for protoType, such as if that type wasn't in this generator's schema.