
    (phi                     b    S SK r S SKJr  S SKJr   " S S\ R
                  R                  5      rg)    N)cached_property)Messagec                   b    \ rS rSrSr\S 5       rS rS rS r	S r
S rS	 rS
 r\S 5       rSrg)MapComposite   zA view around a mutable sequence in protocol buffers.

This implements the full Python MutableMapping interface, but all methods
modify the underlying field container directly.
c                 f    [        U R                  R                  5       " 5       R                  5      $ )z2Return the protocol buffer type for this sequence.)typepbGetEntryClassvalueselfs    Q/var/www/html/venv/lib/python3.13/site-packages/proto/marshal/collections/maps.py_pb_typeMapComposite._pb_type   s%     DGG))+-3344    c                    Xl         X l        g)zInitialize a wrapper around a protobuf map.

Args:
    sequence: A protocol buffers map.
    marshal (~.MarshalRegistry): An instantiated marshal, used to
        convert values going to and from this map.
N)_pb_marshal)r   sequencemarshals      r   __init__MapComposite.__init__"   s     r   c                 :    U[        U R                  5       5      ;   $ N)tuplekeysr   keys     r   __contains__MapComposite.__contains__-   s     eDIIK(((r   c                     X;  a  [        U5      eU R                  R                  U R                  U R                  U   5      $ r   )KeyErrorr   	to_pythonr   r
   r   s     r   __getitem__MapComposite.__getitem__5   s6     ?3-}}&&t}}dggclCCr   c                     U R                   R                  U R                  USS9nU R                  U   R	                  5         U R                  U   R                  U5        g )NT)strict)r   to_protor   r
   Clear	MergeFrom)r   r   r   pb_values       r   __setitem__MapComposite.__setitem__<   sM    ==))$--t)L 	x(r   c                 :    U R                   R                  U5        g r   )r
   popr   s     r   __delitem__MapComposite.__delitem__G   s    Cr   c                 ,    [        U R                  5      $ r   )lenr
   r   s    r   __len__MapComposite.__len__J   s    477|r   c                 ,    [        U R                  5      $ r   )iterr
   r   s    r   __iter__MapComposite.__iter__M   s    DGG}r   c                     U R                   $ r   )r   r   s    r   r
   MapComposite.pbP   s    xxr   )r   r   N)__name__
__module____qualname____firstlineno____doc__r   r   r   r    r%   r-   r1   r5   r9   propertyr
   __static_attributes__ r   r   r   r      sS     5 5
	 )D	)  r   r   )collectionsproto.utilsr   google.protobuf.messager   abcMutableMappingr   rD   r   r   <module>rJ      s&     ' +=;??11 =r   