Class GeneratedMessageLite.SerializedForm (3.19.4)

protected static final class GeneratedMessageLite.SerializedForm implements Serializable

A serialized (serializable) form of the generated message. Stores the message as a class name and a byte array.

Inheritance

Object > GeneratedMessageLite.SerializedForm

Implements

Serializable

Static Methods

of(MessageLite message)

public static GeneratedMessageLite.SerializedForm of(MessageLite message)
Parameter
NameDescription
messageMessageLite
Returns
TypeDescription
GeneratedMessageLite.SerializedForm

Methods

readResolve()

protected Object readResolve()

When read from an ObjectInputStream, this method converts this object back to the regular form. Part of Java's serialization magic.

Returns
TypeDescription
Object

a GeneratedMessage of the type that was serialized

Exceptions
TypeDescription
ObjectStreamException