wire-profiles / com.squareup.wire.java / Profile

Profile

class Profile

Describes how to map .proto to .java. A single repository of .proto files may have multiple profiles; for example a project may target both Android and Java.

Constructors

<init>

Profile(profileFiles: List<ProfileFileElement> = emptyList())

Describes how to map .proto to .java. A single repository of .proto files may have multiple profiles; for example a project may target both Android and Java.

Functions

getAdapter

fun getAdapter(type: ProtoType): AdapterConstant?

javaTarget

fun javaTarget(type: ProtoType): TypeName?

kotlinTarget

fun kotlinTarget(type: ProtoType): TypeName?