The goog.proto2.LazyDeserializer Class

goog.proto2.LazyDeserializer
> goog.proto2.Serializer

goog.proto2.LazyDeserializer()

Base class for all lazy deserializers.

.deserialize(descriptor, data)

Deserializes a message from the expected format.

descriptor {goog.proto2.Descriptor}
The descriptor of the message to be created.
data {*}
The data of the message.
returns {goog.proto2.Message}
The message created.

.deserializeField(message, field, data)

Deserializes a message field from the expected format and places the data in the given message

message {goog.proto2.Message}
The message in which to place the information.
field {goog.proto2.FieldDescriptor}
The field for which to set the message value.
data {*}
The serialized data for the field.
returns {*}
The deserialized data or null for no value found.

.deserializeTo(message, data)

Deserializes a message from the expected format and places the data in the message.

message {goog.proto2.Message}
The message in which to place the information.
data {*}
The data of the message.

.serialize(message)

Inherited from goog.proto2.Serializer .

Serializes a message to the expected format.

message {goog.proto2.Message}
The message to be serialized.
returns {*}
The serialized form of the message.