wire-kotlin-generator / com.squareup.wire.kotlin / KotlinGenerator / generateServiceTypeSpecs

generateServiceTypeSpecs

fun generateServiceTypeSpecs(service: Service, onlyRpc: Rpc? = null): Map<ClassName, TypeSpec>

Generates all TypeSpecs for the given Service.

If onlyRpc isn't null, this will generate code only for this onlyRpc; otherwise, all RPCs of the service will be code generated.