proto2.PbLiteSerializer Extends goog.proto2.LazyDeserializer
PB-Lite serializer.

Inheritance

Constructor

goog.proto2.PbLiteSerializer()

Instance Methods

Public Protected Private
deserialize()
No description.
code »
deserializeField()
No description.
code »
getDeserializedValue()
No description.
code »
getSerializedValue()
No description.
code »
serialize(message) !Array
Serializes a message to a PB-Lite object.
Arguments:
message : goog.proto2.Message
The message to be serialized.
Returns: !Array  The serialized form of the message.
code »
setZeroIndexed(zeroIndexing)
By default, the proto tag with id 1 will have index 1 in the serialized array. If the serializer is set to use zero-indexing, the tag with id 1 will have index 0.
Arguments:
zeroIndexing : boolean
Whether this serializer should deal with 0-indexed protos.
code »
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 »
zeroIndexing_ :
If true, fields will be serialized with 0-indexed tags (i.e., the proto field with tag id 1 will have index 0 in the array).
Code »
constructor :
No description.
Code »

Static Properties

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

Package proto2

Package Reference