Trees | Indices | Help |
---|
|
object --+ | google.protobuf.message.Message --+ | ProMCStat.ProcessData
|
|||
__metaclass__ Metaclass for protocol message classes created at runtime from Descriptors. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|
|||
DESCRIPTOR = _descriptor.Descriptor(name= 'ProcessData', full_
|
|||
CROSS_SECTION_ERROR_FIELD_NUMBER = 3
|
|||
CROSS_SECTION_FIELD_NUMBER = 2
|
|||
ID_FIELD_NUMBER = 1
|
|||
NAME_FIELD_NUMBER = 4
|
|||
_decoders_by_tag =
|
|||
_extensions_by_name =
|
|||
_extensions_by_number =
|
|
|||
_cached_byte_size | |||
_cached_byte_size_dirty | |||
_fields | |||
_is_present_in_parent | |||
_listener | |||
_listener_for_children | |||
_unknown_fields | |||
cross_section Magic attribute generated for "cross_section" proto field. |
|||
cross_section_error Magic attribute generated for "cross_section_error" proto field. |
|||
id Magic attribute generated for "id" proto field. |
|||
name Magic attribute generated for "name" proto field. |
|||
Inherited from |
|
Returns the serialized size of this message. Recursively calls ByteSize() on all contained messages.
|
Clears all data that was set in the message.
|
|
Finds required fields which are not initialized. Returns: A list of strings. Each string is a path to an uninitialized field from the top-level message, e.g. "foo.bar[5].baz". |
Checks if a certain field is set for the message. Note if the field_name is not defined in the message descriptor, ValueError will be raised.
|
Checks if all required fields of a message are set. Args: errors: A list which, if provided, will be populated with the field paths of all missing required fields. Returns: True iff the specified message has all required fields set.
|
Returns a list of (FieldDescriptor, value) tuples for all fields in the message which are not empty. A singular field is non-empty if HasField() would return true, and a repeated field is non-empty if it contains at least one element. The fields are ordered by field number
|
Merges the contents of the specified message into current message. This method merges the contents of the specified message into the current message. Singular fields that are set in the specified message overwrite the corresponding fields in the current message. Repeated fields are appended. Singular sub-messages and groups are recursively merged. Args: other_msg: Message to merge into the current message.
|
Merges serialized protocol buffer data into this message. When we find a field in |serialized| that is already present in this message: - If it's a "repeated" field, we append to the end of our list. - Else, if it's a scalar, we overwrite our field. - Else, (it's a nonrepeated composite), we recursively merge into the existing composite. TODO(robinson): Document handling of unknown fields. Args: serialized: Any object that allows us to call buffer(serialized) to access a string of bytes using the buffer interface. TODO(robinson): When we switch to a helper, this will return None. Returns: The number of bytes read from |serialized|. For non-group messages, this will always be len(serialized), but for messages which are actually groups, this will generally be less than len(serialized), since we must stop when we reach an END_GROUP tag. Note that if we *do* stop because of an END_GROUP tag, the number of bytes returned does not include the bytes for the END_GROUP tag information.
|
Serializes the protocol message to a binary string. This method is similar to SerializeToString but doesn't check if the message is initialized. Returns: A string representation of the partial message.
|
Serializes the protocol message to a binary string. Returns: A binary string representation of the message if all of the required fields in the message are set (i.e. the message is initialized). Raises: message.EncodeError if the message isn't initialized.
|
Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.
|
Internal method used by the protocol message implementation. Clients should not call this directly. Sets a listener that this message will call on certain state transitions. The purpose of this method is to register back-edges from children to parents at runtime, for the purpose of setting "has" bits and byte-size-dirty bits in the parent and ancestor objects whenever a child or descendant object is modified. If the client wants to disconnect this Message from the object tree, she explicitly sets callback to None. If message_listener is None, unregisters any existing listener. Otherwise, message_listener must implement the MessageListener interface in internal/message_listener.py, and we discard any listener registered via a previous _SetListener() call.
|
Recursively compares two messages by value and structure.
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Outputs a human-readable representation of the message.
|
Outputs a human-readable representation of the message.
|
|
DESCRIPTOR
|
_decoders_by_tag
|
|
cross_sectionMagic attribute generated for "cross_section" proto field.
|
cross_section_errorMagic attribute generated for "cross_section_error" proto field.
|
idMagic attribute generated for "id" proto field.
|
nameMagic attribute generated for "name" proto field.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Mar 10 14:25:10 2014 | http://epydoc.sourceforge.net |