wire-runtime
Module Contents
alltypes
Module Contents
abstract class AndroidMessage<M : Message<M, B>, B : Builder<M, B>> : Message<M, B>, Parcelable
abstract class EnumAdapter<E : WireEnum> : ProtoAdapter<E>
class FieldEncoding
class Internal
Module Contents
static fun checkElementsNotNull(list: MutableList<*>): Unit
static fun checkElementsNotNull(map: MutableMap<*, *>): Unit
static fun <T : Any> copyOf(name: String, list: MutableList<T>): MutableList<T>
static fun <K : Any, V : Any> copyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V>
static fun countNonNull(a: Any, b: Any): Int
static fun countNonNull(a: Any, b: Any, c: Any): Int
static fun countNonNull(a: Any, b: Any, c: Any, d: Any, vararg rest: Any): Int
static fun equals(a: Any, b: Any): Boolean
static fun <T : Any> immutableCopyOf(name: String, list: MutableList<T>): MutableList<T>
static fun <K : Any, V : Any> immutableCopyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V>
static fun missingRequiredFields(vararg args: Any): IllegalStateException
static fun <T : Any> newMutableList(): MutableList<T>
static fun <K : Any, V : Any> newMutableMap(): MutableMap<K, V>
static fun <T : Any> redactElements(list: MutableList<T>, adapter: ProtoAdapter<T>): Unit
static fun <T : Any> redactElements(map: MutableMap<*, T>, adapter: ProtoAdapter<T>): Unit
abstract class Message<M : Message<M, B>, B : Builder<M, B>> : Serializable
abstract class ProtoAdapter<E : Any>
Module Contents
ProtoAdapter(fieldEncoding: FieldEncoding, @Nullable javaType: Class<*>?)
static val BOOL: ProtoAdapter<Boolean>
static val BYTES: ProtoAdapter<ByteString>
static val DOUBLE: ProtoAdapter<Double>
class EnumConstantNotFoundException : IllegalArgumentException
static val FIXED32: ProtoAdapter<Int>
static val FIXED64: ProtoAdapter<Long>
static val FLOAT: ProtoAdapter<Float>
static val INT32: ProtoAdapter<Int>
static val INT64: ProtoAdapter<Long>
static val SFIXED32: ProtoAdapter<Int>
static val SFIXED64: ProtoAdapter<Long>
static val SINT32: ProtoAdapter<Int>
static val SINT64: ProtoAdapter<Long>
static val STRING: ProtoAdapter<String>
static val UINT32: ProtoAdapter<Int>
static val UINT64: ProtoAdapter<Long>
fun asPacked(): ProtoAdapter<MutableList<E>>
fun asRepeated(): ProtoAdapter<MutableList<E>>
abstract fun decode(reader: ProtoReader): E
fun decode(bytes: ByteArray): E
fun decode(bytes: ByteString): E
fun decode(stream: InputStream): E
fun decode(source: BufferedSource): E
abstract fun encode(writer: ProtoWriter, value: E): Unit
fun encode(sink: BufferedSink, value: E): Unit
fun encode(value: E): ByteArray
fun encode(stream: OutputStream, value: E): Unit
open fun encodeWithTag(writer: ProtoWriter, tag: Int, @Nullable value: E?): Unit
abstract fun encodedSize(value: E): Int
open fun encodedSizeWithTag(tag: Int, @Nullable value: E?): Int
open static fun <M : Message<Message<*, *>, Builder<*, *>>> get(message: M): ProtoAdapter<M>
open static fun <M : Any> get(type: Class<M>): ProtoAdapter<M>
open static fun get(adapterString: String): ProtoAdapter<*>
open static fun <E : WireEnum> newEnumAdapter(type: Class<E>): RuntimeEnumAdapter<E>
open static fun <K : Any, V : Any> newMapAdapter(keyAdapter: ProtoAdapter<K>, valueAdapter: ProtoAdapter<V>): ProtoAdapter<MutableMap<K, V>>
open static fun <M : Message<M, B>, B : Builder<M, B>> newMessageAdapter(type: Class<M>): ProtoAdapter<M>
@Nullable open fun redact(value: E): E?
open fun toString(value: E): String
class ProtoReader
class ProtoWriter
interface TagHandler
class Wire
interface WireEnum
@Target([AnnotationTarget.FIELD]) class WireField
package com.squareup.wire
Module Contents
abstract class AndroidMessage<M : Message<M, B>, B : Builder<M, B>> : Message<M, B>, Parcelable
abstract class EnumAdapter<E : WireEnum> : ProtoAdapter<E>
class FieldEncoding
abstract class Message<M : Message<M, B>, B : Builder<M, B>> : Serializable
abstract class ProtoAdapter<E : Any>
Module Contents
ProtoAdapter(fieldEncoding: FieldEncoding, @Nullable javaType: Class<*>?)
static val BOOL: ProtoAdapter<Boolean>
static val BYTES: ProtoAdapter<ByteString>
static val DOUBLE: ProtoAdapter<Double>
class EnumConstantNotFoundException : IllegalArgumentException
static val FIXED32: ProtoAdapter<Int>
static val FIXED64: ProtoAdapter<Long>
static val FLOAT: ProtoAdapter<Float>
static val INT32: ProtoAdapter<Int>
static val INT64: ProtoAdapter<Long>
static val SFIXED32: ProtoAdapter<Int>
static val SFIXED64: ProtoAdapter<Long>
static val SINT32: ProtoAdapter<Int>
static val SINT64: ProtoAdapter<Long>
static val STRING: ProtoAdapter<String>
static val UINT32: ProtoAdapter<Int>
static val UINT64: ProtoAdapter<Long>
fun asPacked(): ProtoAdapter<MutableList<E>>
fun asRepeated(): ProtoAdapter<MutableList<E>>
abstract fun decode(reader: ProtoReader): E
fun decode(bytes: ByteArray): E
fun decode(bytes: ByteString): E
fun decode(stream: InputStream): E
fun decode(source: BufferedSource): E
abstract fun encode(writer: ProtoWriter, value: E): Unit
fun encode(sink: BufferedSink, value: E): Unit
fun encode(value: E): ByteArray
fun encode(stream: OutputStream, value: E): Unit
open fun encodeWithTag(writer: ProtoWriter, tag: Int, @Nullable value: E?): Unit
abstract fun encodedSize(value: E): Int
open fun encodedSizeWithTag(tag: Int, @Nullable value: E?): Int
open static fun <M : Message<Message<*, *>, Builder<*, *>>> get(message: M): ProtoAdapter<M>
open static fun <M : Any> get(type: Class<M>): ProtoAdapter<M>
open static fun get(adapterString: String): ProtoAdapter<*>
open static fun <E : WireEnum> newEnumAdapter(type: Class<E>): RuntimeEnumAdapter<E>
open static fun <K : Any, V : Any> newMapAdapter(keyAdapter: ProtoAdapter<K>, valueAdapter: ProtoAdapter<V>): ProtoAdapter<MutableMap<K, V>>
open static fun <M : Message<M, B>, B : Builder<M, B>> newMessageAdapter(type: Class<M>): ProtoAdapter<M>
@Nullable open fun redact(value: E): E?
open fun toString(value: E): String
class ProtoReader
class ProtoWriter
interface TagHandler
class Wire
interface WireEnum
@Target([AnnotationTarget.FIELD]) class WireField
package com.squareup.wire.internal
Module Contents
class Internal
Module Contents
static fun checkElementsNotNull(list: MutableList<*>): Unit
static fun checkElementsNotNull(map: MutableMap<*, *>): Unit
static fun <T : Any> copyOf(name: String, list: MutableList<T>): MutableList<T>
static fun <K : Any, V : Any> copyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V>
static fun countNonNull(a: Any, b: Any): Int
static fun countNonNull(a: Any, b: Any, c: Any): Int
static fun countNonNull(a: Any, b: Any, c: Any, d: Any, vararg rest: Any): Int
static fun equals(a: Any, b: Any): Boolean
static fun <T : Any> immutableCopyOf(name: String, list: MutableList<T>): MutableList<T>
static fun <K : Any, V : Any> immutableCopyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V>
static fun missingRequiredFields(vararg args: Any): IllegalStateException
static fun <T : Any> newMutableList(): MutableList<T>
static fun <K : Any, V : Any> newMutableMap(): MutableMap<K, V>
static fun <T : Any> redactElements(list: MutableList<T>, adapter: ProtoAdapter<T>): Unit
static fun <T : Any> redactElements(map: MutableMap<*, T>, adapter: ProtoAdapter<T>): Unit