goog.proto2.LazyDeserializer
Provided By | |
---|---|
Extends | |
All Known Direct Subclasses |
Base class for all lazy deserializers.
new LazyDeserializer()
Parameters | None. |
---|
Instance Methods
this.deserialize( descriptor, data ) → goog.proto2.Message
goog.proto2.Message
Deserializes a message from the expected format.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.deserializeField( message, field, data ) → *
*
Deserializes a message field from the expected format and places the data in the given message
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.deserializeTo( message, data ) → void
void
Deserializes a message from the expected format and places the data in the message.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.getDeserializedValue( field, value ) → *
*
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.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.getSerializedValue( field, value ) → *
*
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, except for Infinity, -Infinity and NaN numerical values which are converted to string representation.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.serialize( message ) → *
*
Serializes a message to the expected format.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|