abstract class Message<M : Message<M, B>, B : Builder<M, B>> : Serializable
A protocol buffer message.
abstract class Builder<M : Message<M, B>, B : Builder<M, B>>
Superclass for protocol buffer message builders. |
fun adapter(): ProtoAdapter<M>
The ProtoAdapter for encoding and decoding messages of this type. |
|
fun encode(sink: BufferedSink): Unitfun encode(stream: OutputStream): Unit
Encode this message and write it to fun encode(): ByteArray
Encode this message as a |
|
abstract fun newBuilder(): B
Returns a new builder initialized with the data in this message. |
|
open fun toString(): String |
|
fun unknownFields(): ByteString
Returns a byte string containing the proto encoding of this message's unknown fields. Returns an empty byte string if this message has no unknown fields. |
|
fun withoutUnknownFields(): M
Returns this message with any unknown fields removed. |
abstract class AndroidMessage<M : Message<M, B>, B : Builder<M, B>> : Message<M, B>, Parcelable
An Android-specific Message which adds support for Parcelable. |