Modifier and Type | Field and Description |
---|---|
static ProtoAdapter<Boolean> |
ProtoAdapter.BOOL |
static ProtoAdapter<okio.ByteString> |
ProtoAdapter.BYTES |
static ProtoAdapter<Double> |
ProtoAdapter.DOUBLE |
static ProtoAdapter<Integer> |
ProtoAdapter.FIXED32 |
static ProtoAdapter<Long> |
ProtoAdapter.FIXED64 |
static ProtoAdapter<Float> |
ProtoAdapter.FLOAT |
static ProtoAdapter<Integer> |
ProtoAdapter.INT32 |
static ProtoAdapter<Long> |
ProtoAdapter.INT64 |
static ProtoAdapter<Integer> |
ProtoAdapter.SFIXED32 |
static ProtoAdapter<Long> |
ProtoAdapter.SFIXED64 |
static ProtoAdapter<Integer> |
ProtoAdapter.SINT32 |
static ProtoAdapter<Long> |
ProtoAdapter.SINT64 |
static ProtoAdapter<String> |
ProtoAdapter.STRING |
static ProtoAdapter<Integer> |
ProtoAdapter.UINT32 |
static ProtoAdapter<Long> |
ProtoAdapter.UINT64
Like INT64, but negative longs are interpreted as large positive values, and encoded that way
in JSON.
|
Modifier and Type | Method and Description |
---|---|
ProtoAdapter<M> |
Message.adapter()
The
ProtoAdapter for encoding and decoding messages of this type. |
ProtoAdapter<List<E>> |
ProtoAdapter.asPacked()
Returns an adapter for
E but as a packed, repeated value. |
ProtoAdapter<List<E>> |
ProtoAdapter.asRepeated()
Returns an adapter for
E but as a repeated value. |
static <M> ProtoAdapter<M> |
ProtoAdapter.get(Class<M> type)
Returns the adapter for
type . |
static <M extends Message> |
ProtoAdapter.get(M message)
Returns the adapter for the type of
Message . |
static <K,V> ProtoAdapter<Map<K,V>> |
ProtoAdapter.newMapAdapter(ProtoAdapter<K> keyAdapter,
ProtoAdapter<V> valueAdapter)
Creates a new proto adapter for a map using
keyAdapter and valueAdapter . |
static <M extends Message<M,B>,B extends Message.Builder<M,B>> |
ProtoAdapter.newMessageAdapter(Class<M> type)
Creates a new proto adapter for
type . |
ProtoAdapter<?> |
FieldEncoding.rawProtoAdapter()
Returns a Wire adapter that reads this field encoding without interpretation.
|
Modifier and Type | Method and Description |
---|---|
static <E> android.os.Parcelable.Creator<E> |
AndroidMessage.newCreator(ProtoAdapter<E> adapter)
Creates a new
Parcelable.Creator using adapter for serialization. |
static <K,V> ProtoAdapter<Map<K,V>> |
ProtoAdapter.newMapAdapter(ProtoAdapter<K> keyAdapter,
ProtoAdapter<V> valueAdapter)
Creates a new proto adapter for a map using
keyAdapter and valueAdapter . |
static <K,V> ProtoAdapter<Map<K,V>> |
ProtoAdapter.newMapAdapter(ProtoAdapter<K> keyAdapter,
ProtoAdapter<V> valueAdapter)
Creates a new proto adapter for a map using
keyAdapter and valueAdapter . |
Constructor and Description |
---|
AndroidMessage(ProtoAdapter<M> adapter,
okio.ByteString unknownFields) |
Message(ProtoAdapter<M> adapter,
okio.ByteString unknownFields) |
Copyright © 2013–2016 Square, Inc.. All rights reserved.