goog.proto2.TextFormatSerializer
Classgoog.proto2.TextFormatSerializer
> goog.proto2.Serializer
goog.proto2.TextFormatSerializer(opt_ignoreMissingFields)
TextFormatSerializer, a serializer which turns Messages into the human readable text format.
opt_ignoreMissingFields
{boolean
=}
goog.proto2.TextFormatSerializer.Parser
ClassHelper class for parsing the text format. … 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 text format and places the data in the message.
message
{goog.proto2.Message
}
data
{*}
string
}
.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 a string.
message
{goog.proto2.Message
}
string
}