Enum Adapter
An abstract ProtoAdapter that converts values of an enum to and from integers.
An abstract ProtoAdapter that converts values of an enum to and from integers.
An abstract ProtoAdapter that converts values of an enum to and from integers.
Inheritors
An abstract ProtoAdapter that converts values of an enum to and from integers.
Constructors
Properties
Path to the file containing the protobuf definition of this type.
Identifies this type for inclusion in a google.protobuf.Any
. This is a string like "type.googleapis.com/packagename.messagename" or null if this type is either not a message (such as scalars and enums), or was code-generated before Wire 3.2 which introduced support for type URLS.
Functions
Returns an adapter for E
but as a packed, repeated value.
Returns an adapter for E
but as a packed, repeated value.
Returns an adapter for E
but as a packed, repeated value.
Returns an adapter for E
but as a repeated value.
Returns an adapter for E
but as a repeated value.
Returns an adapter for E
but as a repeated value.
Read a non-null value from reader
.
Read an encoded message from bytes
.
Read an encoded message from source
.
Read a non-null value from reader
.
Read an encoded message from bytes
.
Read an encoded message from source
.
Read an encoded message from data
.
Write non-null value
to writer
.
Encode value
as a byte[]
.
Encode value
and write it to stream
.
Write non-null value
to writer
.
Encode value
as a byte[]
.
Encode value
and write it to stream
.
Write non-null value
to writer
.
Encode value
as a byte[]
.
Encode value
and write it to stream
.
Encode value
as a ByteString.
Encode value
as a ByteString.
Encode value
as a ByteString.
The size of the non-null data value
. This does not include the size required for a length-delimited prefix (should the type require one).
The size of the non-null data value
. This does not include the size required for a length-delimited prefix (should the type require one).
The size of the non-null data value
. This does not include the size required for a length-delimited prefix (should the type require one).
The size of tag
and value
in the wire format. This size includes the tag, type, length-delimited prefix (should the type require one), and value. Returns 0 if value
is null.
The size of tag
and value
in the wire format. This size includes the tag, type, length-delimited prefix (should the type require one), and value. Returns 0 if value
is null.
The size of tag
and value
in the wire format. This size includes the tag, type, length-delimited prefix (should the type require one), and value. Returns 0 if value
is null.
Write tag
and value
to writer
. If value is null this does nothing.
Write tag
and value
to writer
. If value is null this does nothing.
Write tag
and value
to writer
. If value is null this does nothing.
Reads a value and appends it to destination if this has data available. Otherwise, it will only clear the reader state.