goog.proto2.ObjectSerializer
Classgoog.proto2.ObjectSerializer
> goog.proto2.Serializer
goog.proto2.ObjectSerializer(opt_keyOption)
ObjectSerializer, a serializer which turns Messages into simplified ECMAScript objects.
opt_keyOption
{goog.proto2.ObjectSerializer.KeyOption
=}
goog.proto2.ObjectSerializer.KeyOption
EnumAn enumeration of the options for how to emit the keys in the generated simplified object. … more
.deserialize(descriptor, data)
Inherited from goog.proto2.Serializer
.
Deserializes a message from the expected format.
descriptor
{goog.proto2.Descriptor
}
data
{*}
goog.proto2.Message
}
.deserializeTo(message, data)
Deserializes a message from an object 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)
Serializes a message to an object.
message
{goog.proto2.Message
}
Object
}