goog.proto2.Message |
Many (7) | goog.proto2.Message |
![]()
Adds the given value to the field specified by the
given field descriptor. Note that the field must be repeated.
Arguments:
|
code » | |||
![]()
Adds the value to the *repeating* field indicated by the given tag.
GENERATED CODE USE ONLY. Basis of the add{Field} methods.
Arguments:
|
code » | |||
Gets the values at the field indicated by the given tag.
GENERATED CODE USE ONLY. Basis of the {field}Array methods.
|
code » | |||
Returns the array of values found for the given repeated field.
Arguments:
Returns: !Array
The values found.
|
code » | |||
![]()
Ensures that the value being assigned to the given field
is valid.
Arguments:
|
code » | |||
![]()
Clears the field specified.
Arguments:
|
code » | |||
![]()
Clears the field specified by tag.
GENERATED CODE USE ONLY. Basis of the clear{Field} methods.
Arguments:
|
code » | |||
No description.
Returns: !goog.proto2.Message
Recursive clone of the message only including
the known fields.
|
code » | |||
![]()
Recursively copies the known fields from the given message to this message.
Removes the fields which are not present in the source message.
Arguments:
|
code » | |||
Returns the number of values stored in the field by the given tag.
GENERATED CODE USE ONLY. Basis of the {field}Count methods.
|
code » | |||
Returns the number of values stored in the given field.
Arguments:
Returns: number
The count of the values in the given field.
|
code » | |||
Compares this message with another one ignoring the unknown fields.
Arguments:
Returns: boolean
Whether they are equal. Returns false if the
other
argument is a different type of message or not a message.
|
code » | |||
![]()
Iterates over all the unknown fields in the message.
Arguments:
|
code » | |||
![]()
Returns the value stored at the field specified by the
given field descriptor.
Arguments:
Returns: *
The value found or null if none.
|
code » | |||
![]()
Gets the value at the field indicated by the given tag.
GENERATED CODE USE ONLY. Basis of the get{Field} methods.
Arguments:
Returns: *
The value found or null for none.
|
code » | |||
![]()
Gets the value at the field indicated by the given tag or the default value
if none.
GENERATED CODE USE ONLY. Basis of the get{Field} methods.
Arguments:
Returns: *
The value found or the default value if none set.
|
code » | |||
Returns the descriptor which describes the current message.
This only works if we assume people never subclass protobufs.
Returns: !goog.proto2.Descriptor
The descriptor.
|
code » | |||
![]()
Returns the value stored at the field specified by the
given field descriptor or the default value if none exists.
Arguments:
Returns: *
The value found or the default if none.
|
code » | |||
![]()
Returns the value for the given tag number. If a lazy deserializer is
instantiated, lazily deserializes the field if required before returning the
value.
Arguments:
Returns: *
The corresponding value, if any.
|
code » | |||
Returns whether there is a value stored at the field specified by the
given field descriptor.
Arguments:
Returns: boolean
True if a value was found.
|
code » | |||
Returns the whether or not the field indicated by the given tag
has a value.
GENERATED CODE USE ONLY. Basis of the has{Field} methods.
|
code » | |||
![]()
Fills in the protocol buffer with default values. Any fields that are
already set will not be overridden.
Arguments:
|
code » | |||
![]()
Initializes the message with a lazy deserializer and its associated data.
This method should be called by internal methods ONLY.
Arguments:
|
code » | |||
![]()
Merges the given message into this message.
Singular fields will be overwritten, except for embedded messages which will
be merged. Repeated fields will be concatenated.
Arguments:
|
code » | |||
![]()
Stores the given value to the field specified by the
given field descriptor. Note that the field must not be repeated.
Arguments:
|
code » | |||
![]()
Sets the value of the *non-repeating* field indicated by the given tag.
GENERATED CODE USE ONLY. Basis of the set{Field} methods.
Arguments:
|
code » | |||
![]()
Sets the value of an unknown field, by tag.
Arguments:
|
code » |
![]()
A map of those fields deserialized, from tag number to their deserialized
value.
|
Code » | |
![]()
Stores the field information (i.e. metadata) about this message.
|
Code » | |
The lazy deserializer for this message instance, if any.
|
Code » | |
![]()
Stores the field values in this message. Keyed by the tag of the fields.
|
Code » |
Creates the metadata descriptor representing the definition of this message.
Arguments:
Returns: !goog.proto2.Descriptor
The new descriptor.
|
code » | |||
![]()
Sets the metadata that represents the definition of this message.
GENERATED CODE USE ONLY. Called when constructing message classes.
|
code » |
![]()
All instances of goog.proto2.Message should have a static descriptorObj_
property. This is a JSON representation of a Descriptor. The real Descriptor
will be deserialized lazily in the getDescriptor() method.
This declaration is just here for documentation purposes.
goog.proto2.Message does not have its own descriptor.
|
Code » | |
![]()
All instances of goog.proto2.Message should have a static descriptor_
property. The Descriptor will be deserialized lazily in the getDescriptor()
method.
This declaration is just here for documentation purposes.
goog.proto2.Message does not have its own descriptor.
|
Code » |
![]()
An enumeration defining the possible field types.
Should be a mirror of that defined in descriptor.h.
TODO(user): Remove this alias. The code generator generates code that
references this enum, so it needs to exist until the code generator is
changed. The enum was moved to from Message to FieldDescriptor to avoid a
dependency cycle.
Use goog.proto2.FieldDescriptor.FieldType instead.
Constants:
|
Code » |