zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
U
£ý°du ã@s,dZdZGdd„deƒZGdd„deƒZdS)zDefines a listener interface for observing certain
state transitions on Message objects.
 
Also defines a null implementation of this interface.
z#robinson@google.com (Will Robinson)c@seZdZdZdd„ZdS)ÚMessageListeneraListens 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.
  cCst‚dS)aCalled 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)ÚNotImplementedError©Úself©rú`d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\google/protobuf/internal/message_listener.pyÚModified2szMessageListener.ModifiedN©Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrrrrr(src@seZdZdZdd„ZdS)ÚNullMessageListenerz%No-op MessageListener implementation.cCsdS)NrrrrrrMszNullMessageListener.ModifiedNrrrrrr Isr N)r Ú
__author__Úobjectrr rrrrÚ<module>s!