PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /usr/lib/python2.7/site-packages/google/protobuf/internal/
Upload File :
Current File : //usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyc

�
Du�ac@s<dZdZdefd��YZdefd��YZdS(s�Defines a listener interface for observing certain
state transitions on Message objects.

Also defines a null implementation of this interface.
s#robinson@google.com (Will Robinson)tMessageListenercBseZdZd�ZRS(sListens for modifications made to a message.  Meant to be registered via
  Message._SetListener().

  Attributes:
    dirty:  If True, then calling Modified() would be a no-op.  This can be
            used to avoid these calls entirely in the common case.
  cCs
t�dS(sCalled every time the message is modified in such a way that the parent
    message may need to be updated.  This currently means either:
    (a) The message was modified for the first time, so the parent message
        should henceforth mark the message as present.
    (b) The message's cached byte size became dirty -- i.e. the message was
        modified for the first time after a previous call to ByteSize().
        Therefore the parent should also mark its byte size as dirty.
    Note that (a) implies (b), since new objects start out with a client cached
    size (zero).  However, we document (a) explicitly because it is important.

    Modified() will *only* be called in response to one of these two events --
    not every time the sub-message is modified.

    Note that if the listener's |dirty| attribute is true, then calling
    Modified at the moment would be a no-op, so it can be skipped.  Performance-
    sensitive callers should check this attribute directly before calling since
    it will be true most of the time.
    N(tNotImplementedError(tself((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pytModified2s(t__name__t
__module__t__doc__R(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyR(stNullMessageListenercBseZdZd�ZRS(s%No-op MessageListener implementation.cCsdS(N((R((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyRMs(RRRR(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyRIsN(Rt
__author__tobjectRR(((sM/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyt<module>#s!

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic