asRepeated

expect fun asRepeated(): ProtoAdapter<List<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.

actual fun asRepeated(): ProtoAdapter<List<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.

actual fun asRepeated(): ProtoAdapter<List<E>>
actual fun asRepeated(): ProtoAdapter<List<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.