+
    ^eòj˜1  ã                   óò   € ^ RI t ^ RIt^ RIHtHtHtHtHt ^ RIH	t	 ^ RI
HtHtHt ^ RIHt ^ RIHtHtHtHtHt ^ RIHt  ! R R	] P0                  4      t ! R
 R4      t ! R R]4      t ! R R4      tRtR# )é    N)Úduration_pb2Úfield_mask_pb2Ú
struct_pb2Útimestamp_pb2Úwrappers_pb2)Úcompat)ÚMapCompositeÚRepeatedÚRepeatedComposite)Úbytes)ÚdatesÚ
field_maskÚstringy_numbersÚstructÚwrappers)Ú	ProtoTypec                   ó4   a € ] tR t^!t o Rt]R 4       tRtV tR# )ÚRulez,Abstract class definition for marshal rules.c                óZ   € \        VR 4      '       d   \        VR4      '       d   R# \        # )Ú	to_pythonÚto_protoT)ÚhasattrÚNotImplemented)ÚclsÚCs   &&ÚŒ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/proto/marshal/marshal.pyÚ__subclasshook__ÚRule.__subclasshook__$   s$   € ä�1�k×"Ò"¤w¨q°*×'=Ò'=ÙÜÐó    © N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úclassmethodr   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   !   s   ø‡ € Ù6àñó ör   r   c                   ó€   a € ] tR t^+t o RtR tRV 3R lR lltR tR tRR/V 3R	 lR
 llt	RR/V 3R lR llt
RtV tR# )ÚBaseMarshalam  The base class to translate between protobuf and Python classes.

Protocol buffers defines many common types (e.g. Timestamp, Duration)
which also exist in the Python standard library. The marshal essentially
translates between these: it keeps a registry of common protocol buffers
and their Python representations, and translates back and forth.

The protocol buffer class is always the "key" in this relationship; when
presenting a message, the declared field types are used to determine
whether a value should be transformed into another class. Similarly,
when accepting a Python value (when setting a field, for example),
the declared field type is still used. This means that, if appropriate,
multiple protocol buffer types may use the same Python type.

The primary implementation of this is :class:`Marshal`, which should
usually be used instead of this class directly.
c                óR   € / V n         \        4       V n        V P                  4        R # ©N)Ú_rulesÚNoopRuleÚ_noopÚreset)Úselfs   &r   Ú__init__ÚBaseMarshal.__init__>   s   € ØˆŒÜ“ZˆŒ
Ø�
‰
Žr   Nc                ó&   <€ V ^8„  d   QhRS[ RS[/# )é   Ú
proto_typeÚrule)Útyper   )Úformatr*   s   "€r   Ú__annotate__ÚBaseMarshal.__annotate__C   s   ø€ ÷ 0#ñ 0#¡4ð 0#©tñ 0#r   c                ó’   a a€ V'       d3   \        V\        4      '       g   \        R4      hVS P                  S&   R# R VV 3R llpV# )ab  Register a rule against the given ``proto_type``.

This function expects a ``proto_type`` (the descriptor class) and
a ``rule``; an object with a ``to_python`` and ``to_proto`` method.
Each method should return the appropriate Python or protocol buffer
type, and be idempotent (e.g. accept either type as input).

This function can also be used as a decorator::

    @marshal.register(timestamp_pb2.Timestamp)
    class TimestampRule:
        ...

In this case, the class will be initialized for you with zero
arguments.

Args:
    proto_type (type): A protocol buffer message type.
    rule: A marshal object
zIMarshal rule instances must implement `to_proto` and `to_python` methods.Nc                ó$   € V ^8„  d   QhR\         /# )r7   Ú
rule_class)r:   )r;   s   "r   r<   Ú*BaseMarshal.register.<locals>.__annotate__g   s   € ÷ 
	ñ 
	¬Dñ 
	r   c                 ór   <€ \        V \        4      '       g   \        R 4      hV ! 4       SP                  S&   V # )zJMarshal rule subclasses must implement `to_proto` and `to_python` methods.)Ú
issubclassr   Ú	TypeErrorr/   )r@   r8   r3   s   &€€r   Úregister_rule_classÚ1BaseMarshal.register.<locals>.register_rule_classg   s:   ø€ ä˜j¬$×/Ò/Üð:óð ñ '1£lˆD�K‰K˜
Ñ#ØÐr   )Ú
isinstancer   rD   r/   )r3   r8   r9   rE   s   ff& r   ÚregisterÚBaseMarshal.registerC   sL   ù€ ÷, ä˜d¤D×)Ò)Üð:óð ð '+ˆD�K‰K˜
Ñ#Ù÷
	ñ 
	ð #Ð"r   c                ó  € V P                   P                  4        V P                  \        P                  \
        P                  ! 4       4       V P                  \        P                  \
        P                  ! 4       4       V P                  \        P                  \        P                  ! 4       4       V P                  \        P                  \         P"                  ! 4       4       V P                  \        P$                  \         P&                  ! 4       4       V P                  \        P(                  \         P*                  ! 4       4       V P                  \        P,                  \         P.                  ! 4       4       V P                  \        P0                  \         P2                  ! 4       4       V P                  \        P4                  \         P6                  ! 4       4       V P                  \        P8                  \         P:                  ! 4       4       V P                  \        P<                  \         P>                  ! 4       4       V P                  \        P@                  \         PB                  ! 4       4       V P                  \D        PF                  \H        PJ                  ! V R7      4       V P                  \D        PL                  \H        PN                  ! V R7      4       V P                  \D        PP                  \H        PR                  ! V R7      4       V P                  \T        PV                  \X        PZ                  ! 4       4       \\        P^                   F$  pV P                  VP`                  V! 4       4       K&  	  R# )z(Reset the registry to its initial state.©ÚmarshalN)1r/   ÚclearrH   r   Ú	Timestampr   ÚTimestampRuler   ÚDurationÚDurationRuler   Ú	FieldMaskr   ÚFieldMaskRuler   Ú	BoolValuer   ÚBoolValueRuleÚ
BytesValueÚBytesValueRuleÚDoubleValueÚDoubleValueRuleÚ
FloatValueÚFloatValueRuleÚ
Int32ValueÚInt32ValueRuleÚ
Int64ValueÚInt64ValueRuleÚStringValueÚStringValueRuleÚUInt32ValueÚUInt32ValueRuleÚUInt64ValueÚUInt64ValueRuler   ÚValuer   Ú	ValueRuleÚ	ListValueÚListValueRuleÚStructÚ
StructRuler   ÚBYTESÚpb_bytesÚ	BytesRuler   ÚSTRINGY_NUMBER_RULESÚ_proto_type)r3   r@   s   & r   r2   ÚBaseMarshal.resetu   s  € à�‰×ÑÔð 	�‰”m×-Ñ-¬u×/BÒ/BÓ/DÔEØ�‰”l×+Ñ+¬U×-?Ò-?Ó-AÔBð 	�‰”n×.Ñ.´
×0HÒ0HÓ0JÔKð 	�‰”l×,Ñ,¬h×.DÒ.DÓ.FÔGØ�‰”l×-Ñ-¬x×/FÒ/FÓ/HÔIØ�‰”l×.Ñ.´×0HÒ0HÓ0JÔKØ�‰”l×-Ñ-¬x×/FÒ/FÓ/HÔIØ�‰”l×-Ñ-¬x×/FÒ/FÓ/HÔIØ�‰”l×-Ñ-¬x×/FÒ/FÓ/HÔIØ�‰”l×.Ñ.´×0HÒ0HÓ0JÔKØ�‰”l×.Ñ.´×0HÒ0HÓ0JÔKØ�‰”l×.Ñ.´×0HÒ0HÓ0JÔKð 	�‰”j×&Ñ&¬×(8Ò(8ÀÔ(FÔGØ�‰”j×*Ñ*¬F×,@Ò,@ÈÔ,NÔOØ�‰”j×'Ñ'¬×):Ò):À4Ô)HÔIð 	�‰”i—o‘o¤x×'9Ò'9Ó';Ô<ô *×>Ô>ˆJØ�M‰M˜*×0Ñ0±*³,Ö?ó ?r   c                óP  € V P                   P                  WP                  4      pW P                  8X  dq   \        V R 4      '       d_   V P                  P                  4        F@  w  r4\        VR/ 4      pVP                  WP                  4      pW P                  8w  g   K?   V# 	  V# )Ú
_instancesr/   )r/   Úgetr1   r   rs   ÚitemsÚgetattr)r3   r8   r9   Ú_ÚinstanceÚruless   &&    r   Úget_ruleÚBaseMarshal.get_ruleœ   s†   € ð �{‰{�‰˜z¯:©:Ó6ˆð
 —:‘:Ô¤'¨$°×"=Ò"=Ø#Ÿ™×4Ñ4Ö6‘�ô   ¨(°BÓ7�Ø—y‘y ¯Z©ZÓ8�ØŸ:™:Ö%ØØˆñ  7ð ˆr   Úabsentc                ó    <€ V ^8„  d   QhRS[ /# ©r7   r|   ©Úbool)r;   r*   s   "€r   r<   r=   ¯   s   ø€ ÷ Tñ T±dñ Tr   c               ó¦  € \        V4      pV\        P                  9   d   \        W R 7      # V\        P                  9   d0   \        V\         4      '       d   \        W VR7      # \        W R 7      # V\        P                  9   g    VP                  \        P                  9   d   \        W R 7      # V P                  VR7      P                  W#R7      # )rK   )rL   r8   ©r8   )r|   )r:   r   Úrepeated_composite_typesr   Úrepeated_scalar_typesrG   r
   Úmap_composite_typesr!   Úmap_composite_type_namesr	   rz   r   )r3   r8   Úvaluer|   Ú
value_types   &&&$ r   r   ÚBaseMarshal.to_python¯   s§   € ô ˜%“[ˆ
Øœ×8Ñ8Ô8Ü$ UÔ9Ð9Øœ×5Ñ5Ô5Ü˜*¤d×+Ò+Ü(¨ÈÔTÐTä Ô4Ð4ð œ&×4Ñ4Ô4Ø×"Ñ"¤f×&EÑ&EÔEä Ô4Ð4Ø�}‰}¨
ˆ}Ó3×=Ñ=¸eÐ=ÓSÐSr   ÚstrictFc                ó    <€ V ^8„  d   QhRS[ /# )r7   rŠ   r   )r;   r*   s   "€r   r<   r=   Ç   s   ø€ ÷ .ñ .±Tñ .r   c          	     ó   a a€ S\         P                  \         P                  \         P                  39  da   \	        V\
        \        34      '       d   VP                  # \	        V\        \        34      '       d   \        V4      ! VV 3R  lV 4       4      # \	        V\        4      '       d§   \        SR4      '       d•   SP                  P                  '       dy   SP                  P                  4       P                   '       dO   \        S! 4       P"                  4      pVP%                  4        UUu/ uF  w  rVVS P'                  WF4      bK  	  upp# S P)                  SR7      P'                  V4      pV'       dM   \	        VS4      '       g;   \+        RP-                  SP.                  VP0                  P.                  R7      4      hV# u uppi )c              3   óH   <"  € T F  pSP                  SV4      x € K  	  R # 5ir.   )r   )Ú.0Úir8   r3   s   & €€r   Ú	<genexpr>Ú'BaseMarshal.to_proto.<locals>.<genexpr>×   s   øé € Ð"OÉÀA 4§=¡=°¸Q×#?Ð#?Ëùs   ƒ"Ú
DESCRIPTORr‚   zLParameter must be instance of the same class; expected {expected}, got {got})ÚexpectedÚgot)r   rf   rh   rj   rG   r
   r	   ÚpbÚlistÚtupler:   Údictr   r’   Úhas_optionsÚ
GetOptionsÚ	map_entryr‡   ru   r   rz   rD   r;   r!   Ú	__class__)r3   r8   r‡   rŠ   Úrecursive_typeÚkÚvÚpb_values   ff&$    r   r   ÚBaseMarshal.to_protoÇ   sj  ù€ ð Ü×ÑÜ× Ñ Ü×Ñð
ô 
ô ˜%¤(¬LÐ!9×:Ò:Ø—x‘x�ô ˜%¤$¬ ×/Ò/Ü˜E”{Õ"OÉÓ"OÓOÐOô �eœT×"Ò"Ü�J ×-Ò-Ø×%Ñ%×1×1Ð1Ø×%Ñ%×0Ñ0Ó2×<×<Ð<ä!¡*£,×"4Ñ"4Ó5ˆNØDIÇKÁKÄMÔRÁM¹D¸A�A�t—}‘} ^Ó7Ò7ÁMÒRÐRà—=‘=¨J�=Ó7×@Ñ@ÀÓGˆ÷ œ* X¨z×:Ò:Üð1ß17±Ø'×0Ñ0Ø ×*Ñ*×3Ñ3ð 28ó 2óð ð ˆùó Ss   Ä2G
)r1   r/   r.   )r!   r"   r#   r$   r%   r4   rH   r2   rz   r   r   r'   r(   r)   s   @r   r,   r,   +   sP   ø‡ € ñò$÷
0#ò 0#òd%@òNð&T¸T÷ Tò Tð0.¸E÷ .÷ .ð .r   r,   c                   ó€   a a€ ] tR t^øt oRt/ t]P                  ! 4       tV3R lV 3R llt	V3R lV 3R llt
RtVtV ;t# )ÚMarshalzûThe translator between protocol buffer and Python instances.

The bulk of the implementation is in :class:`BaseMarshal`. This class
adds identity tracking: multiple instantiations of :class:`Marshal` with
the same name will provide the same instance.
c                ó    <€ V ^8„  d   QhRS[ /# ©r7   Úname©Ústr)r;   r*   s   "€r   r<   ÚMarshal.__annotate__  s   ø€ ÷ ñ ™cñ r   c               óP  <€ V P                   P                  V4      pVfr   V P                  ;_uu_ 4        V P                   P                  V4      pVf4   V P                   P                  4       p\        SV `  V 4      pW#V&   W0n         RRR4       V# V#   + '       g   i     T# ; i)zÄCreate a marshal instance.

Args:
    name (str): The name of the marshal. Instantiating multiple
        marshals with the same ``name`` argument will provide the
        same marshal each time.
N)rs   rt   Ú_instance_creation_lockÚcopyÚsuperÚ__new__)r   r¦   ÚklassÚnew_instancesrœ   s   &$  €r   r®   ÚMarshal.__new__  s”   ø€ ð —‘×"Ñ" 4Ó(ˆØŠ=Ø×,×,Ó,ð Ÿ™×*Ñ*¨4Ó0�Ø’=ð %(§N¡N×$7Ñ$7Ó$9�MÜ!™G™O¨CÓ0�EØ*/ $Ñ'Ø%2”N÷ -ð ˆˆuˆ÷ -Ö,ð ˆús   µABÂB%	c                ó    <€ V ^8„  d   QhRS[ /# r¥   r§   )r;   r*   s   "€r   r<   r©     s   ø€ ÷ 
ñ 
¡ñ 
r   c               óX   <€ Wn         \        V R4      '       g   \        SV `  4        R# R# )zÀInstantiate a marshal.

Args:
    name (str): The name of the marshal. Instantiating multiple
        marshals with the same ``name`` argument will provide the
        same marshal each time.
r/   N)Ú_namer   r­   r4   )r3   r¦   rœ   s   &$€r   r4   ÚMarshal.__init__  s'   ø€ ð Œ
Ü�t˜X×&Ò&Ü‰GÑÖñ 'r   )r´   )r!   r"   r#   r$   r%   rs   Ú	threadingÚLockr«   r®   r4   r'   r(   Ú__classcell__)rœ   r*   s   @@r   r£   r£   ø   s7   ù‡ € ñð €JØ'ŸnšnÓ.Ð÷ó ÷2
÷ 
ó 
r   r£   c                   óD   a € ] tR tRt o RtRR/V 3R lR lltR tRtV tR# )	r0   i)  z#A catch-all rule that does nothing.r|   Nc                ó    <€ V ^8„  d   QhRS[ /# r~   r   )r;   r*   s   "€r   r<   ÚNoopRule.__annotate__,  s   ø€ ÷ ñ ©Tñ r   c               ó   € V# r.   r    )r3   r    r|   s   &&$r   r   ÚNoopRule.to_python,  s   € Øˆr   c                ó   € V# r.   r    )r3   r‡   s   &&r   r   ÚNoopRule.to_proto/  s   € Øˆr   r    )	r!   r"   r#   r$   r%   r   r   r'   r(   r)   s   @r   r0   r0   )  s#   ø‡ € Ù-ð°D÷ ò ÷ð r   r0   )r£   )Úabcr¶   Úgoogle.protobufr   r   r   r   r   Úproto.marshalr   Úproto.marshal.collectionsr	   r
   r   Úproto.marshal.rulesr   rm   r   r   r   r   r   Úproto.primitivesr   ÚABCr   r,   r£   r0   Ú__all__r    r   r   Ú<module>rÈ      si   ðó Û ÷õ õ !ß OÑ OÝ 1ß TÕ TÝ &ôˆ3�7‰7ô ÷Jñ JôZ.ˆkô .÷bñ ð ‚r   