proto2.LazyDeserializer Extends goog.proto2.Serializer
Base class for all lazy deserializers.

Inheritance

Constructor

goog.proto2.LazyDeserializer()

Instance Methods

Public Protected Private
deserialize()
No description.
code »
deserializeField(messagefielddata) *
Deserializes a message field from the expected format and places the data in the given message
Arguments:
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.
code »
deserializeTo()
No description.
code »
deserialize(descriptordata) !goog.proto2.Message
Deserializes a message from the expected format.
Arguments:
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.
code »
deserializeTo(messagedata)
Deserializes a message from the expected format and places the data in the message.
Arguments:
message : goog.proto2.Message
The message in which to place the information.
data : *
The data of the message.
code »
getDeserializedValue(fieldvalue) *
Returns the deserialized form of the given value for the given field if the field is a Message or Group and returns the value, converted or unchanged, for primitive field types otherwise.
Arguments:
field : goog.proto2.FieldDescriptor
The field from which this value came.
value : *
The value of the field.
Returns: *  The value.
code »
getSerializedValue(fieldvalue) *
Returns the serialized form of the given value for the given field if the field is a Message or Group and returns the value unchanged otherwise.
Arguments:
field : goog.proto2.FieldDescriptor
The field from which this value came.
value : *
The value of the field.
Returns: *  The value.
code »
serialize(message) *
Serializes a message to the expected format.
Arguments:
message : goog.proto2.Message
The message to be serialized.
Returns: *  The serialized form of the message.
code »

Instance Properties

constructor :
No description.
Code »

Static Properties

goog.proto2.LazyDeserializer.superClass_ :
No description.
Code »

Package proto2

Package Reference