goog.proto2.LazyDeserializer
Classgoog.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
}
data
{*}
goog.proto2.Message
}
.deserializeField(message, field, data)
Deserializes a message field from the expected format and places the data in the given message
message
{goog.proto2.Message
}
field
{goog.proto2.FieldDescriptor
}
data
{*}
.deserializeTo(message, data)
Deserializes a message from the expected format and places the data in the message.
message
{goog.proto2.Message
}
data
{*}
.getDeserializedValue(field, value)
[protected]Inherited from goog.proto2.Serializer
.
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.
field
{goog.proto2.FieldDescriptor
}
value
{*}
.getSerializedValue(field, value)
[protected]Inherited from goog.proto2.Serializer
.
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.
field
{goog.proto2.FieldDescriptor
}
value
{*}
.serialize(message)
Inherited from goog.proto2.Serializer
.
Serializes a message to the expected format.
message
{goog.proto2.Message
}