get

fun <M : Message<*, *>> get(message: M): ProtoAdapter<M>

Returns the adapter for the type of Message.


fun <M> get(type: Class<M>): ProtoAdapter<M>

Returns the adapter for type.


fun get(adapterString: String): ProtoAdapter<*>

Returns the adapter for a given adapterString. adapterString is specified on a proto message field's WireField annotation in the form com.squareup.wire.protos.person.Person#ADAPTER.


fun get(adapterString: String, classLoader: ClassLoader?): ProtoAdapter<*>

Returns the adapter for a given adapterString, using classLoader. adapterString is specified on a proto message field's WireField annotation in the form com.squareup.wire.protos.person.Person#ADAPTER.