wire-runtime / com.squareup.wire / ProtoAdapter / asRepeated

asRepeated

fun asRepeated(): ProtoAdapter<MutableList<E>>

Returns an adapter for E but as a repeated value.

Note: Repeated items are not required to be encoded sequentially. Thus, when decoding using the returned adapter, only single-element lists will be returned and it is the caller's responsibility to merge them into the final list.