parameters: (self, other)
return_statement: return messages == other_messages
docstring: Compares the current instance with another one.
docstring_summary: Compares the current instance with another one.
docstring_tokens: Compares the current instance with another one .
function: def __eq__(self, other):
      """Compares the current instance with another one."""
      if self is other:
        return True
      if not isinstance(other, self.__class__):
        raise TypeError('Can only compare repeated composite fields against '
                        'other repeated composite fields.')
      messages = self[slice(None, None, None)]
      other_messages = other[slice(None, None, None)]
      return messages == other_messages
function_tokens: def __eq__ ( self , other ) : if self is other : return True if not isinstance ( other , self . __class__ ) : raise TypeError ( 'Can only compare repeated composite fields against ' 'other repeated composite fields.' ) messages = self [ slice ( None , None , None ) ] other_messages = other [ slice ( None , None , None ) ] return messages == other_messages