Package goby :: Module Alignments_pb2 :: Class AlignmentTooManyHits
[hide private]
[frames] | no frames]

Class AlignmentTooManyHits

source code

                     object --+    
                              |    
google.protobuf.message.Message --+
                                  |
                                 AlignmentTooManyHits

Nested Classes [hide private]
  __metaclass__
Metaclass for protocol message classes created at runtime from Descriptors.
Instance Methods [hide private]
 
ByteSize(self)
Returns the serialized size of this message.
 
Clear(self)
Clears all data that was set in the message.
 
ClearField(self, field_name)
 
FindInitializationErrors(self)
Finds required fields which are not initialized.
 
HasField(self, field_name)
 
IsInitialized(self, errors=None)
Checks if all required fields of a message are set.
 
ListFields(self)
Returns a list of (FieldDescriptor, value) tuples for all fields in the message which are not empty.
 
MergeFrom(self, msg)
Merges the contents of the specified message into current message.
 
MergeFromString(self, serialized)
Merges serialized protocol buffer data into this message.
 
SerializePartialToString(self)
Serializes the protocol message to a binary string.
 
SerializeToString(self)
Serializes the protocol message to a binary string.
 
SetInParent(self)
Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.
 
_InternalParse(self, buffer, pos, end)
 
_InternalSerialize(self, write_bytes)
 
_Modified(self)
Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.
 
_SetListener(self, listener)
Internal method used by the protocol message implementation.
 
__eq__(self, other)
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)

Inherited from google.protobuf.message.Message: ClearExtension, CopyFrom, HasExtension, ParseFromString, __ne__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
FromString(s) source code
 
RegisterExtension(extension_handle) source code
Class Variables [hide private]
  DESCRIPTOR = descriptor.Descriptor(name= 'AlignmentTooManyHits...
  ALIGNERTHRESHOLD_FIELD_NUMBER = 2
  HITS_FIELD_NUMBER = 1
  _decoders_by_tag = {'\n': <function DecodeRepeatedField at 0x7...
  _extensions_by_name = {}
  _extensions_by_number = {}
Properties [hide private]
  _cached_byte_size
  _cached_byte_size_dirty
  _fields
  _is_present_in_parent
  _listener
  _listener_for_children
  alignerThreshold
Magic attribute generated for "alignerThreshold" proto field.
  hits
Magic attribute generated for "hits" proto field.

Inherited from object: __class__

Method Details [hide private]

ByteSize(self)

 

Returns the serialized size of this message. Recursively calls ByteSize() on all contained messages.

Overrides: google.protobuf.message.Message.ByteSize
(inherited documentation)

Clear(self)

 

Clears all data that was set in the message.

Overrides: google.protobuf.message.Message.Clear
(inherited documentation)

ClearField(self, field_name)

 
Overrides: google.protobuf.message.Message.ClearField

FindInitializationErrors(self)

 
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".

HasField(self, field_name)

 
Overrides: google.protobuf.message.Message.HasField

IsInitialized(self, errors=None)

 
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.

Overrides: google.protobuf.message.Message.IsInitialized

ListFields(self)

 

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

Overrides: google.protobuf.message.Message.ListFields
(inherited documentation)

MergeFrom(self, msg)

 
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.

Overrides: google.protobuf.message.Message.MergeFrom
(inherited documentation)

MergeFromString(self, serialized)

 
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.

Overrides: google.protobuf.message.Message.MergeFromString
(inherited documentation)

SerializePartialToString(self)

 
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.

Overrides: google.protobuf.message.Message.SerializePartialToString
(inherited documentation)

SerializeToString(self)

 
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.

Overrides: google.protobuf.message.Message.SerializeToString
(inherited documentation)

SetInParent(self)

 

Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.

Overrides: google.protobuf.message.Message.SetInParent

_SetListener(self, listener)

 

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.

Overrides: google.protobuf.message.Message._SetListener
(inherited documentation)

__eq__(self, other)
(Equality operator)

 
Overrides: google.protobuf.message.Message.__eq__

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

DESCRIPTOR

Value:
descriptor.Descriptor(name= 'AlignmentTooManyHits', full_name= 'goby.A\
lignmentTooManyHits', filename= None, file= DESCRIPTOR, containing_typ\
e= None, fields= [descriptor.FieldDescriptor(name= 'alignerThreshold',\
 full_name= 'goby.AlignmentTooManyHits.alignerThreshold', index= 0, nu\
mber= 2, type= 13, cpp_type= 3, label= 2, has_default_value= False, de\
fault_value= 0, message_type= None, enum_type= None, containing_type= \
None, is_extension= False, extension_scope= None, options= None), desc\
riptor.FieldDescriptor(name= 'hits', full_name= 'goby.AlignmentTooMany\
...

_decoders_by_tag

Value:
{'''
''': <function DecodeRepeatedField at 0x7ecabb8c>,
 '\x10': <function DecodeField at 0x7ecabaac>}

Property Details [hide private]

alignerThreshold

Magic attribute generated for "alignerThreshold" proto field.

Get Method:
unreachable.getter(self) - Getter for alignerThreshold.
Set Method:
unreachable.setter(self, new_value) - Setter for alignerThreshold.

hits

Magic attribute generated for "hits" proto field.

Get Method:
unreachable.getter(self) - Getter for hits.
Set Method:
unreachable.setter(self, new_value)