wire-runtime / com.squareup.wire / ProtoReader / beginMessage

beginMessage

fun beginMessage(): Long

Begin a nested message. A call to this method will restrict the reader so that returns -1 when the message is complete. An accompanying call to must then occur with the opaque token returned from this method.