
    q	h                     x   S r SrSSKrSSKrSSKrSSKrSSKrSSKJr  Sr	\R                  " 5       S:w  a  \R                  r\c  SSKJr  Sr	 " S	 S
\5      r " S S\5      r\	(       a   " S S\5      rO\R&                  r " S S\5      r\R,                  " 5       rS rSrSrSrSrSrS\l        \" 5       r " S S\S9r  " S S\ 5      r! " S S\!5      r" " S S\ 5      r# " S S \!5      r$ " S! S"\ 5      r% " S# S$\ 5      r& " S% S&\!5      r' " S' S(\ 5      r( " S) S*\ 5      r)S+ r*S, r+S- r,S. r-     S0S/ jr.g)1zDescriptors essentially contain exactly the information found in a .proto
file, in types that make this information accessible in Python.
z#robinson@google.com (Will Robinson)    N)api_implementationFpython)_messageTc                       \ rS rSrSrSrg)Error    zBase error for this module. N__name__
__module____qualname____firstlineno____doc____static_attributes__r	       L/var/www/html/env/lib/python3.13/site-packages/google/protobuf/descriptor.pyr   r       s    #r   r   c                       \ rS rSrSrSrg)TypeTransformationError$   zHError transforming between python proto type and corresponding C++ type.r	   Nr
   r	   r   r   r   r   $   s    Pr   r   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )DescriptorMetaclass-   c                 n   > [         [        U ]  U5      (       a  g[        XR                  5      (       a  gg)NTF)superr   __instancecheck__
isinstance_C_DESCRIPTOR_CLASS)clsobj	__class__s     r   r   %DescriptorMetaclass.__instancecheck__/   s0    	"C	:3	?	?	C00	1	1r   r	   )r   r   r   r   r   r   __classcell__r    s   @r   r   r   -   s     r   r   c                   *    \ rS rSrSrS rS rS rSrg)_Lock:   z>Wrapper class of threading.Lock(), which is allowed by 'with'.c                 d    [         R                  U 5      n[        R                  " 5       Ul        U$ N)object__new__	threadingLock_lock)r   selfs     r   r*   _Lock.__new__=   s#    >>#D!DJKr   c                 8    U R                   R                  5         g r(   )r-   acquirer.   s    r   	__enter___Lock.__enter__B       JJr   c                 8    U R                   R                  5         g r(   )r-   release)r.   exc_type	exc_valueexc_tbs       r   __exit___Lock.__exit__E   r5   r   )r-   N)	r   r   r   r   r   r*   r3   r;   r   r	   r   r   r%   r%   :   s    F
r   r%   c                     [         R                  S:  a7  [         =R                  S-  sl        [        R                  " SU -  [        SS9  g g )Nr      zCall to deprecated create function %s(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.   )category
stacklevel)_DeprecatedcountwarningswarnDeprecationWarningnames    r   rB   rB   L   sH    MM	7 	 $3 r      r?   r>   d   c                   |    \ rS rSrSr\(       a  SrS r\\	R                  S 5       5       rS rS rS rS	 rS
 rSrg)DescriptorBaseg   a  Descriptors base class.

This class is the base of all descriptor classes. It provides common options
related functionality.

Attributes:
  has_options:  True if the descriptor has non-default options.  Usually it is
    not necessary to read this -- just call GetOptions() which will happily
    return the default instance.  However, it's sometimes useful for
    efficiency, and also useful inside the protobuf implementation to avoid
    some bootstrapping issues.
  file (FileDescriptor): Reference to file info.
r	   c                     SU l         Xl        X l        SU l        X@l        X0l        U R                  SL=(       d    U R
                  SLU l        g)zInitialize the descriptor given its options message and the name of the
class of the options message. The name of the class is required in case
the options message is None and has to be created.
N)	_featuresfile_options_loaded_options_options_class_name_serialized_optionshas_options)r.   rP   optionsserialized_optionsoptions_class_names        r   __init__DescriptorBase.__init__|   sR    
 DNIMD11 T1   , 	r   c                     g r(   r	   r2   s    r   _parentDescriptorBase._parent   s     	r   c                     g)a  Infers features from proto2/proto3 syntax so that editions logic can be used everywhere.

Args:
  edition: The edition to infer features for.
  options: The options for this descriptor that are being processed.
  features: The feature set object to modify with inferred features.
Nr	   )r.   editionrV   featuress       r   _InferLegacyFeatures#DescriptorBase._InferLegacyFeatures   s     	r   c                 \    U R                   (       d  U R                  5         U R                   $ r(   )rO   _LazyLoadOptionsr2   s    r   _GetFeaturesDescriptorBase._GetFeatures   s    >>
>>r   c                    SSK Jn  U R                  (       a:  UR                  5       nUR	                  U R                  R                  5       5        O%U R                  R                  R                  U5      nUR                  5       nUR	                  UR                  5        U R                  XU5        UR                  U5        U R                  R                  R                  U5      $ )a  Resolves features from the raw options of this descriptor.

Args:
  edition: The edition to use for feature defaults.
  raw_options: The options for this descriptor that are being processed.

Returns:
  A fully resolved feature set for making runtime decisions.
r   descriptor_pb2)google.protobufri   r\   
FeatureSetCopyFromre   rP   pool_CreateDefaultFeaturesr`   ra   	MergeFrom_InternFeatures)r.   r_   raw_optionsri   r`   
unresolveds         r   _ResolveFeaturesDescriptorBase._ResolveFeatures   s     /||**,h113466w?h**,J,,-gJ?z" 99>>))(33r   c                     U R                   (       a  gSSKJn  [        XR                  5      (       d  [        SU R                  -  5      e[        XR                  5      nSnU R                  R                  nU R                  (       dt  U R                  (       d0  U R                  UR                  R                  U5      U" 5       5      n[           U" 5       U l         U R                  (       d  X0l
        SSS5        gU R                  (       d  U R                   nO[#        U" 5       U R                  5      nU R                  (       d+  U R                  UR                  R                  U5      U5      n[           XPl         U R                  (       d  X0l
        UR%                  S5      (       a9  UR'                  S5        UR)                  5       (       d  U" 5       U l         SU l	        SSS5        g! , (       d  f       g= f! , (       d  f       g= f)zCLazily initializes descriptor options towards the end of the build.Nr   rh   zUnknown options class name %s!r`   F)rR   rj   ri   hasattrrS   RuntimeErrorgetattrrP   _editionrU   rO   rs   EditionValuer-   rT   rQ   _ParseOptionsHasField
ClearFieldSerializeToString)r.   ri   options_classr`   r_   rV   s         r   rd   DescriptorBase._LazyLoadOptions   s    />#;#;<<
*T-E-E
E  N,D,DEMHii  G^^((""((1=?
 ,~~#. 5
 %%--1I1IJ^^((""((17
 &~~#.J''


Z
(**,,#0?D $D 5 5 5s   $G.8A-G?.
G<?
Hc                 \    U R                   (       d  U R                  5         U R                   $ )zNRetrieves descriptor options.

Returns:
  The options set on this descriptor.
)rR   rd   r2   s    r   
GetOptionsDescriptorBase.GetOptions   s%     
r   )rO   rR   rQ   rS   rT   rP   rU   N)r   r   r   r   r   _USE_C_DESCRIPTORSr   rY   propertyabcabstractmethodr\   ra   re   rs   rd   r   r   r	   r   r   rL   rL   g   sU      " 	  		
44+%Z r   rL   )	metaclassc                   :   ^  \ rS rSrSr  SU 4S jjrS rSrU =r$ )_NestedDescriptorBase   z0Common class for descriptors that can be nested.c
                 j   > [         [        U ]  XQX5        X0l        X@l        X`l        Xpl        Xl        g)a  Constructor.

Args:
  options: Protocol message options or None to use default message options.
  options_class_name (str): The class name of the above options.
  name (str): Name of this protocol message type.
  full_name (str): Fully-qualified name of this protocol message type, which
    will include protocol "package" name and the name of any enclosing
    types.
  containing_type: if provided, this is a nested descriptor, with this
    descriptor as parent, otherwise None.
  serialized_start: The start index (inclusive) in block in the
    file.serialized_pb that describes this descriptor.
  serialized_end: The end index (exclusive) in block in the
    file.serialized_pb that describes this descriptor.
  serialized_options: Protocol message serialized options or None.
N)r   r   rY   rH   	full_namecontaining_type_serialized_start_serialized_end)r.   rV   rX   rH   r   rP   r   serialized_startserialized_endrW   r    s             r   rY   _NestedDescriptorBase.__init__   s;    ( 

/) I N*-)r   c                     U R                   bW  U R                  bJ  U R                  b=  UR                  U R                   R                  U R                  U R                   5        g[        S5      e)zCopies this to the matching proto in descriptor_pb2.

Args:
  proto: An empty proto instance from descriptor_pb2.

Raises:
  Error: If self couldn't be serialized, due to to few constructor
    arguments.
Nz*Descriptor does not contain serialization.)rP   r   r   ParseFromStringserialized_pbr   r.   protos     r   CopyToProto!_NestedDescriptorBase.CopyToProto  sd     			*(DII33

 
 !5!57 8 >??r   )r   r   r   r   rH   NNN)	r   r   r   r   r   rY   r   r   r"   r#   s   @r   r   r      s     8 8<7;*B@ @r   r   c                      ^  \ rS rSrSr\(       a$  \R                  r                   S
S jr	     SU 4S jjr
\S 5       r\S 5       rS rU 4S jrS	rU =r$ )
Descriptori*  a%	  Descriptor for a protocol message type.

Attributes:
    name (str): Name of this protocol message type.
    full_name (str): Fully-qualified name of this protocol message type,
        which will include protocol "package" name and the name of any
        enclosing types.
    containing_type (Descriptor): Reference to the descriptor of the type
        containing us, or None if this is top-level.
    fields (list[FieldDescriptor]): Field descriptors for all fields in
        this type.
    fields_by_number (dict(int, FieldDescriptor)): Same
        :class:`FieldDescriptor` objects as in :attr:`fields`, but indexed
        by "number" attribute in each FieldDescriptor.
    fields_by_name (dict(str, FieldDescriptor)): Same
        :class:`FieldDescriptor` objects as in :attr:`fields`, but indexed by
        "name" attribute in each :class:`FieldDescriptor`.
    nested_types (list[Descriptor]): Descriptor references
        for all protocol message types nested within this one.
    nested_types_by_name (dict(str, Descriptor)): Same Descriptor
        objects as in :attr:`nested_types`, but indexed by "name" attribute
        in each Descriptor.
    enum_types (list[EnumDescriptor]): :class:`EnumDescriptor` references
        for all enums contained within this type.
    enum_types_by_name (dict(str, EnumDescriptor)): Same
        :class:`EnumDescriptor` objects as in :attr:`enum_types`, but
        indexed by "name" attribute in each EnumDescriptor.
    enum_values_by_name (dict(str, EnumValueDescriptor)): Dict mapping
        from enum value name to :class:`EnumValueDescriptor` for that value.
    extensions (list[FieldDescriptor]): All extensions defined directly
        within this message type (NOT within a nested type).
    extensions_by_name (dict(str, FieldDescriptor)): Same FieldDescriptor
        objects as :attr:`extensions`, but indexed by "name" attribute of each
        FieldDescriptor.
    is_extendable (bool):  Does this type define any extension ranges?
    oneofs (list[OneofDescriptor]): The list of descriptors for oneof fields
        in this message.
    oneofs_by_name (dict(str, OneofDescriptor)): Same objects as in
        :attr:`oneofs`, but indexed by "name" attribute.
    file (FileDescriptor): Reference to file descriptor.
    is_map_entry: If the message type is a map entry.

c                 |    [         R                  R                  5         [         R                  R	                  U5      $ r(   )r   Message_CheckCalledFromGeneratedFiledefault_poolFindMessageTypeByName)r   rH   r   filenamer   fieldsnested_types
enum_types
extensionsrV   rW   is_extendableextension_rangesoneofsrP   r   r   syntaxis_map_entry
create_keys                       r   r*   Descriptor.__new__[  s-    * 446""88CCr   c                 :  > U[         La  [        S5        [        [        U ]  U	SXUXOUU
S9	  XPl        U R
                   H  nU Ul        UUl        M     [        S U 5       5      U l	        [        S U 5       5      U l
        SU l        X`l        U H
  nU Ul        M     [        S U 5       5      U l        Xpl        U R                   H
  nU Ul        M     [        S U 5       5      U l        [        S	 U 5       5      U l        Xl        U R"                   H
  nU Ul        M     [        S
 U 5       5      U l        Xl        Xl        Ub  UO/ U l        [        S U R,                   5       5      U l        U R,                   H  nU Ul        UUl        M     UU l        g)zArguments to __init__() are as described in the description
of Descriptor fields above.

Note that filename is an obsolete argument, that is not used anymore.
Please use file.name to access this as an attribute.
r   MessageOptionsr   r   rW   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   number.0fs     r   	<genexpr>&Descriptor.__init__.<locals>.<genexpr>  s      ?1((A   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   r   s     r   r   r          ;Fq{Fr   Nc              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   r   ts     r   r   r     s     $G,Qffa[,r   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   r   s     r   r   r          "C
1FFA;
r   c              3   b   #    U  H%  oR                     H  o"R                  U4v   M     M'     g 7fr(   )valuesrH   )r   r   vs      r   r   r     s#      $;'AZs   -/c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   r   s     r   r   r     r   r   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   )r   os     r   r   r     s     @Kq{Kr   )_internal_create_keyrB   r   r   rY   r   r   rP   dictfields_by_numberfields_by_name_fields_by_camelcase_namer   nested_types_by_namer   enum_types_by_nameenum_values_by_namer   extension_scopeextensions_by_namer   r   r   oneofs_by_name_is_map_entry)r.   rH   r   r   r   r   r   r   r   rV   rW   r   r   r   rP   r   r   r   r   r   fieldnested_type	enum_type	extensiononeofr    s                            r   rY   Descriptor.__init__v  s    --,	*d$!4D%:L % N K"eej  ! ? ??D;F;;D%)D"$#$(k! $ $$G,$G GD O__	"&i %""C
"CCD# $;'$;  ;D !O__	"&i %""C
"CCD&,".&BDK@DKK@@D"eej  &Dr   c                 @    U R                   =(       d    U R                  $ r(   r   rP   r2   s    r   r\   Descriptor._parent      ,499,r   c                 v    U R                   c!  [        S U R                   5       5      U l         U R                   $ )zjSame FieldDescriptor objects as in :attr:`fields`, but indexed by
:attr:`FieldDescriptor.camelcase_name`.
c              3   <   #    U  H  oR                   U4v   M     g 7fr(   )camelcase_namer   s     r   r   6Descriptor.fields_by_camelcase_name.<locals>.<genexpr>  s      ,6)4AQ
r   )r   r   r   r2   s    r   fields_by_camelcase_name#Descriptor.fields_by_camelcase_name  s:    
 %%-'+ ,6)-,6 (6d$)))r   c                 N    U R                   U   R                  U   R                  $ )aK  Returns the string name of an enum value.

This is just a small helper method to simplify a common operation.

Args:
  enum: string name of the Enum.
  value: int, value of the enum.

Returns:
  string name of the enum value.

Raises:
  KeyError if either the Enum doesn't exist or the value is not a valid
    value for the enum.
)r   values_by_numberrH   )r.   enumvalues      r   EnumValueNameDescriptor.EnumValueName  s&      ""4(99%@EEEr   c                 ,   > [         [        U ]  U5        g)zjCopies this to a descriptor_pb2.DescriptorProto.

Args:
  proto: An empty descriptor_pb2.DescriptorProto.
N)r   r   r   r.   r   r    s     r   r   Descriptor.CopyToProto  s     
*d'.r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNNNNTNNNNNNFN)NNTNNNNNNFN)r   r   r   r   r   r   r   r   r   r*   rY   r   r\   r   r   r   r   r"   r#   s   @r   r   r   *  s    *X "-- )D8 >B"&AE@D;?8&t - - * *F$/ /r   r   c                     ^  \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrS	rS
rSr Sr!Sr"0 \\_\\_\\_\\_\\_\\_\\_\
\_\	\_\\_\\_\\_\\_\\ _\\ _\\_\\!_\\!0Er#Sr$Sr%Sr&Sr'Sr(Sr)Sr*\+(       a  \,RZ                  r.    S$S jr/    S$U 4S jjr0\1S 5       r2S r3\1S 5       r4\4Rj                  S 5       r4\1S 5       r6\1S 5       r7\1S  5       r8\1S! 5       r9\:S" 5       r;S#r<U =r=$ )%FieldDescriptori  a  Descriptor for a single field in a .proto file.

Attributes:
  name (str): Name of this field, exactly as it appears in .proto.
  full_name (str): Name of this field, including containing scope.  This is
    particularly relevant for extensions.
  index (int): Dense, 0-indexed index giving the order that this
    field textually appears within its message in the .proto file.
  number (int): Tag number declared for this field in the .proto file.

  type (int): (One of the TYPE_* constants below) Declared type.
  cpp_type (int): (One of the CPPTYPE_* constants below) C++ type used to
    represent this field.

  label (int): (One of the LABEL_* constants below) Tells whether this
    field is optional, required, or repeated.
  has_default_value (bool): True if this field has a default value defined,
    otherwise false.
  default_value (Varies): Default value of this field.  Only
    meaningful for non-repeated scalar fields.  Repeated fields
    should always set this to [], and non-repeated composite
    fields should always set this to None.

  containing_type (Descriptor): Descriptor of the protocol message
    type that contains this field.  Set by the Descriptor constructor
    if we're passed into one.
    Somewhat confusingly, for extension fields, this is the
    descriptor of the EXTENDED message, not the descriptor
    of the message containing this field.  (See is_extension and
    extension_scope below).
  message_type (Descriptor): If a composite field, a descriptor
    of the message type contained in this field.  Otherwise, this is None.
  enum_type (EnumDescriptor): If this field contains an enum, a
    descriptor of that enum.  Otherwise, this is None.

  is_extension: True iff this describes an extension field.
  extension_scope (Descriptor): Only meaningful if is_extension is True.
    Gives the message that immediately contains this extension field.
    Will be None iff we're a top-level (file-level) extension field.

  options (descriptor_pb2.FieldOptions): Protocol message field options or
    None to use default field options.

  containing_oneof (OneofDescriptor): If the field is a member of a oneof
    union, contains its descriptor. Otherwise, None.

  file (FileDescriptor): Reference to file descriptor.
r>   rI   r?                  	   
                           ii8J  iN  c                     [         R                  R                  5         U(       a  [         R                  R	                  U5      $ [         R                  R                  U5      $ r(   )r   r   r   r   FindExtensionByNameFindFieldByName)r   rH   r   indexr   typecpp_typelabeldefault_valuemessage_typer   r   is_extensionr   rV   rW   has_default_valuecontaining_oneof	json_namerP   r   s                        r   r*   FieldDescriptor.__new__g  sG     446	$$88CC$$44Y??r   c                 6  > U[         La  [        S5        [        [        U ]  UXS5        Xl        X l        SU l        Uc  [        U5      U l	        OUU l	        X0l
        X@l        XPl        X`l        Xpl        UU l        Xl        Xl        Xl        Xl        Xl        Xl        UU l        [.        R0                  " 5       S:X  a  SU l        gU(       a%  [4        R6                  R9                  U5      U l        g[4        R6                  R;                  U5      U l        g)a  The arguments are as described in the description of FieldDescriptor
attributes above.

Note that containing_type may be None, and may be set later if necessary
(to deal with circular references between message types, for example).
Likewise for extension_scope.
r   FieldOptionsNr   )r   rB   r   r   rY   rH   r   _camelcase_name_ToJsonNamer  r  r   _typer  _labelr	  r  r   r  r   r  r   r
  r   Type_cdescriptorr   r   r   r  )r.   rH   r   r  r   r  r  r  r  r  r   r   r  r   rV   rW   r	  r
  r  rP   r   r    s                        r   rY   FieldDescriptor.__init__s  s     --#$	/4)g> IND"4(dn dnJKJMK.D&*$N$*,D H,d	$11EEiP$11AA)Lr   c                     U R                   (       a  U R                   $ U R                  (       a  U R                  =(       d    U R                  $ U R                  $ r(   )r
  r  r   rP   r   r2   s    r   r\   FieldDescriptor._parent  sA    """!!.TYY.r   c                 *   SSK Jn  XR                  R                  :  a  g U R                  [
        R                  :X  a%  UR                  R                  R                  Ul
        U R                  [
        R                  :X  a%  UR                  R                  R                  Ul        UR!                  S5      (       aW  UR"                  (       a   UR                  R$                  R&                  OUR                  R$                  R(                  Ul        g g )Nr   rh   packed)rj   ri   rz   EDITION_2023r  r   LABEL_REQUIREDrk   FieldPresenceLEGACY_REQUIREDfield_presencer  
TYPE_GROUPMessageEncoding	DELIMITEDmessage_encodingr}   r  RepeatedFieldEncodingPACKEDEXPANDEDrepeated_field_encoding)r.   r_   rV   r`   ri   s        r   ra   $FieldDescriptor._InferLegacyFeatures  s    .((555{{o444

#
#
1
1
A
A  zz_///

#
#
3
3
=
=  !! ^^ 
#
#
9
9
@
@((>>GG & "r   c                 D   U R                  5       R                  [        :X  as  U R                  (       ab  U R                  R	                  5       R
                  (       d9  U R                  R	                  5       R
                  (       d  [        R                  $ U R                  $ r(   )
re   r"  &_FEATURESET_MESSAGE_ENCODING_DELIMITEDr  r   	map_entryr   r   r  r  r2   s    r   r  FieldDescriptor.type  sm     	,,1	2!!,,.88$$//1;;'''::r   c                     Xl         g r(   )r  )r.   vals     r   r  r+    s    Jr   c                 ~    U R                  5       R                  [        :X  a  [        R                  $ U R
                  $ r(   )re   r  *_FEATURESET_FIELD_PRESENCE_LEGACY_REQUIREDr   r  r  r2   s    r   r  FieldDescriptor.label  s6     	**5	6 +++;;r   c                 h    U R                   c  [        U R                  5      U l         U R                   $ )zFCamelcase name of this field.

Returns:
  str: the name in CamelCase.
)r  _ToCamelCaserH   r2   s    r   r   FieldDescriptor.camelcase_name  s-     #)$))4dr   c                    U R                   [        R                  :X  a  gU R                  [        R                  :X  d"  U R
                  (       d  U R                  (       a  gU R                  5       R                  [        :g  $ )zWhether the field distinguishes between unpopulated and default values.

Raises:
  RuntimeError: singular field that is not linked with message nor file.
FT)
r  r   LABEL_REPEATEDr  CPPTYPE_MESSAGEr  r
  re   r  #_FEATURESET_FIELD_PRESENCE_IMPLICITr2   s    r   has_presenceFieldDescriptor.has_presence  sa     zz_333888   	**.	/r   c                 <   U R                   [        R                  :w  a  gU R                  nU[        R                  :X  d<  U[        R
                  :X  d(  U[        R                  :X  d  U[        R                  :X  a  gU R                  5       R                  [        :H  $ )zReturns if the field is packed.F)r  r   r5  r  TYPE_STRINGr  TYPE_MESSAGE
TYPE_BYTESre   r&  *_FEATURESET_REPEATED_FIELD_ENCODING_PACKED)r.   
field_types     r   	is_packedFieldDescriptor.is_packed  s~     zz_333Jo111o000o222o000 	335	6r   c                 b     [         R                  U    $ ! [         a    [        SU -  5      ef = f)a  Converts from a Python proto type to a C++ Proto Type.

The Python ProtocolBuffer classes specify both the 'Python' datatype and the
'C++' datatype - and they're not the same. This helper method should
translate from one to another.

Args:
  proto_type: the Python proto type (descriptor.FieldDescriptor.TYPE_*)
Returns:
  int: descriptor.FieldDescriptor.CPPTYPE_*, the C++ type.
Raises:
  TypeTransformationError: when the Python proto type isn't known.
zUnknown proto_type: %s)r   _PYTHON_TO_CPP_PROTO_TYPE_MAPKeyErrorr   )
proto_types    r   ProtoTypeToCppProtoType'FieldDescriptor.ProtoTypeToCppProtoType  s;    K:::FF K#$<z$IJJKs    .)r  r  r  r  r
  r   r  r  r   r   r   r	  r  r  r  r  rH   r   )NNTNNNN)>r   r   r   r   r   TYPE_DOUBLE
TYPE_FLOAT
TYPE_INT64TYPE_UINT64
TYPE_INT32TYPE_FIXED64TYPE_FIXED32	TYPE_BOOLr;  r  r<  r=  TYPE_UINT32	TYPE_ENUMTYPE_SFIXED32TYPE_SFIXED64TYPE_SINT32TYPE_SINT64MAX_TYPECPPTYPE_INT32CPPTYPE_INT64CPPTYPE_UINT32CPPTYPE_UINT64CPPTYPE_DOUBLECPPTYPE_FLOATCPPTYPE_BOOLCPPTYPE_ENUMCPPTYPE_STRINGr6  MAX_CPPTYPErC  LABEL_OPTIONALr  r5  	MAX_LABELMAX_FIELD_NUMBERFIRST_RESERVED_FIELD_NUMBERLAST_RESERVED_FIELD_NUMBERr   r   r   r   r*   rY   r   r\   ra   r  setterr  r   r8  r@  staticmethodrF  r   r"   r#   s   @r   r   r     s   /j +**+*,,)+*,*+)--++( --...-,,./+#>#-# # -	#
 =# ]# ># N# -# ]# =# ># N# .# >#  !#" O##$ /%#2 ...) # %$"22 8<#'IM&*
@ 7;"&HL%)-M^    0 	 	 ;;         (    K Kr   r   c                      ^  \ rS rSrSr\(       a  \R                  r   S	S jr	   S	U 4S jjr
\S 5       r\S 5       rU 4S jrSrU =r$ )
EnumDescriptori!  a  Descriptor for an enum defined in a .proto file.

Attributes:
  name (str): Name of the enum type.
  full_name (str): Full name of the type, including package name
    and any enclosing type(s).

  values (list[EnumValueDescriptor]): List of the values
    in this enum.
  values_by_name (dict(str, EnumValueDescriptor)): Same as :attr:`values`,
    but indexed by the "name" field of each EnumValueDescriptor.
  values_by_number (dict(int, EnumValueDescriptor)): Same as :attr:`values`,
    but indexed by the "number" field of each EnumValueDescriptor.
  containing_type (Descriptor): Descriptor of the immediate containing
    type of this enum, or None if this is an enum defined at the
    top level in a .proto file.  Set by Descriptor's constructor
    if we're passed into one.
  file (FileDescriptor): Reference to file descriptor.
  options (descriptor_pb2.EnumOptions): Enum options message or
    None to use default enum options.
c                 |    [         R                  R                  5         [         R                  R	                  U5      $ r(   )r   r   r   r   FindEnumTypeByName)r   rH   r   r   r   r   rV   rW   rP   r   r   r   s               r   r*   EnumDescriptor.__new__<  s-     446""55i@@r   c                   > U[         La  [        S5        [        [        U ]  USXUXYXS9	  X@l        U R
                   H  nXl        Xl        M     [        S U 5       5      U l	        [        S [        U5       5       5      U l        g)zArguments are as described in the attribute description above.

Note that filename is an obsolete argument, that is not used anymore.
Please use file.name to access this as an attribute.
ri  EnumOptionsr   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   r   r   s     r   r   *EnumDescriptor.__init__.<locals>.<genexpr>X  r   r   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   r   rp  s     r   r   rq  Z  s      I8H1((A8Hr   N)r   rB   r   ri  rY   r   rP   r  r   values_by_namereversedr   )r.   rH   r   r   r   r   rV   rW   rP   r   r   r   r   r    s                r   rY   EnumDescriptor.__init__C  s     --"#	.$(% ) N
 Kjj  ;F;;D  I8H IIDr   c                 @    U R                   =(       d    U R                  $ r(   r   r2   s    r   r\   EnumDescriptor._parent\  r   r   c                 D    U R                  5       R                  [        :H  $ )a  Returns true whether this is a "closed" enum.

This means that it:
- Has a fixed set of values, rather than being equivalent to an int32.
- Encountering values not in this set causes them to be treated as unknown
  fields.
- The first value (i.e., the default) may be nonzero.

WARNING: Some runtimes currently have a quirk where non-closed enums are
treated as closed when used as the type of fields defined in a
`syntax = proto2;` file. This quirk is not present in all runtimes; as of
writing, we know that:

- C++, Java, and C++-based Python share this quirk.
- UPB and UPB-based Python do not.
- PHP and Ruby treat all enums as open regardless of declaration.

Care should be taken when using this function to respect the target
runtime's enum handling quirks.
)re   r   _FEATURESET_ENUM_TYPE_CLOSEDr2   s    r   	is_closedEnumDescriptor.is_closed`  s    , ((,HHHr   c                 ,   > [         [        U ]  U5        g)zCopies this to a descriptor_pb2.EnumDescriptorProto.

Args:
  proto (descriptor_pb2.EnumDescriptorProto): An empty descriptor proto.
N)r   ri  r   r   s     r   r   EnumDescriptor.CopyToProtox  s     
.$+E2r   )r   rs  r   )NNNNNNN)r   r   r   r   r   r   r   ri  r   r*   rY   r   r\   rz  r   r   r"   r#   s   @r   ri  ri  !  so    , "11 /3.2GKA .2-1FJJ2 - - I I.3 3r   ri  c                   x   ^  \ rS rSrSr\(       a  \R                  r  SS jr	  SU 4S jjr
\S 5       rSrU =r$ )EnumValueDescriptori  a6  Descriptor for a single value within an enum.

Attributes:
  name (str): Name of this value.
  index (int): Dense, 0-indexed index giving the order that this
    value appears textually within its enum in the .proto file.
  number (int): Actual number assigned to this enum value.
  type (EnumDescriptor): :class:`EnumDescriptor` to which this value
    belongs.  Set by :class:`EnumDescriptor`'s constructor if we're
    passed into one.
  options (descriptor_pb2.EnumValueOptions): Enum value options message or
    None to use default enum value options options.
c                 @    [         R                  R                  5         g r(   )r   r   r   )r   rH   r  r   r  rV   rW   r   s           r   r*   EnumValueDescriptor.__new__  s     446
 r   c                    > U[         La  [        S5        [        [        U ]  U(       a  UR
                  OSUUS5        Xl        X l        X0l        X@l	        g)>Arguments are as described in the attribute description above.r  NEnumValueOptions)
r   rB   r   r  rY   rP   rH   r  r   r  )	r.   rH   r  r   r  rV   rW   r   r    s	           r   rY   EnumValueDescriptor.__init__  sQ     --'(	
t-		t	 IJKIr   c                     U R                   $ r(   )r  r2   s    r   r\   EnumValueDescriptor._parent      99r   )r  rH   r   r  )NNNN)r   r   r   r   r   r   r   r  r   r*   rY   r   r\   r   r"   r#   s   @r   r  r    sG     "66 BF AE$  r   r  c                   x   ^  \ rS rSrSr\(       a  \R                  r  SS jr	  SU 4S jjr
\S 5       rSrU =r$ )OneofDescriptori  a  Descriptor for a oneof field.

Attributes:
  name (str): Name of the oneof field.
  full_name (str): Full name of the oneof field, including package name.
  index (int): 0-based index giving the order of the oneof field inside
    its containing type.
  containing_type (Descriptor): :class:`Descriptor` of the protocol message
    type that contains this field.  Set by the :class:`Descriptor` constructor
    if we're passed into one.
  fields (list[FieldDescriptor]): The list of field descriptors this
    oneof can contain.
c	                 |    [         R                  R                  5         [         R                  R	                  U5      $ r(   )r   r   r   r   FindOneofByName)	r   rH   r   r  r   r   rV   rW   r   s	            r   r*   OneofDescriptor.__new__  s-     446""229==r   c	                    > U[         La  [        S5        [        [        U ]  U(       a  UR
                  OSUUS5        Xl        X l        X0l        X@l	        XPl
        g)r  r  NOneofOptions)r   rB   r   r  rY   rP   rH   r   r  r   r   )
r.   rH   r   r  r   r   rV   rW   r   r    s
            r   rY   OneofDescriptor.__init__  sX     --#$	/4) /T	 INJ*Kr   c                     U R                   $ r(   )r   r2   s    r   r\   OneofDescriptor._parent  s    r   )r   r   r   r  rH   r   )r   r   r   r   r   r   r   r  r   r*   rY   r   r\   r   r"   r#   s   @r   r  r    sK     "22 GK,0> FJ*.&    r   r  c                      ^  \ rS rSrSr\(       a  \R                  r          S	S jr	   S
U 4S jjr
\S 5       rS rU 4S jrSrU =r$ )ServiceDescriptori  a  Descriptor for a service.

Attributes:
  name (str): Name of the service.
  full_name (str): Full name of the service, including package name.
  index (int): 0-indexed index giving the order that this services
    definition appears within the .proto file.
  methods (list[MethodDescriptor]): List of methods provided by this
    service.
  methods_by_name (dict(str, MethodDescriptor)): Same
    :class:`MethodDescriptor` objects as in :attr:`methods_by_name`, but
    indexed by "name" attribute in each :class:`MethodDescriptor`.
  options (descriptor_pb2.ServiceOptions): Service options message or
    None to use default service options.
  file (FileDescriptor): Reference to file info.
c                 |    [         R                  R                  5         [         R                  R	                  U5      $ r(   )r   r   r   r   FindServiceByName)r   rH   r   r  methodsrV   rW   rP   r   r   r   s              r   r*   ServiceDescriptor.__new__  s-     446""44Y??r   c                    > U
[         La  [        S5        [        [        U ]  USXUS UXS9	  X0l        X@l        [        S U 5       5      U l        U R                   H  nU R                  Ul	        Xl
        M     g )Nr  ServiceOptionsr   c              3   <   #    U  H  oR                   U4v   M     g 7fr(   rG   )r   ms     r   r   -ServiceDescriptor.__init__.<locals>.<genexpr>  s     =WWr   )r   rB   r   r  rY   r  r  r   methods_by_namerP   containing_service)r.   rH   r   r  r  rV   rW   rP   r   r   r   methodr    s               r   rY   ServiceDescriptor.__init__  s~     --%&	
T+!4D/% , N JL=W==D,,IIfk"& r   c                     U R                   $ r(   )rP   r2   s    r   r\   ServiceDescriptor._parent  r  r   c                      U R                   U   $ )zSearches for the specified method, and returns its descriptor.

Args:
  name (str): Name of the method.

Returns:
  MethodDescriptor: The descriptor for the requested method.

Raises:
  KeyError: if the method cannot be found in the service.
)r  )r.   rH   s     r   FindMethodByName"ServiceDescriptor.FindMethodByName!  s     %%r   c                 ,   > [         [        U ]  U5        g)zCopies this to a descriptor_pb2.ServiceDescriptorProto.

Args:
  proto (descriptor_pb2.ServiceDescriptorProto): An empty descriptor proto.
N)r   r  r   r   s     r   r   ServiceDescriptor.CopyToProto/  s     

T.u5r   )r  r  r  )
NNNNNNNNNN)NNNNNN)r   r   r   r   r   r   r   r  r   r*   rY   r   r\   r  r   r   r"   r#   s   @r   r  r    ss    " "44 @ ?C-1FJ'$  &6 6r   r  c                      ^  \ rS rSrSr\(       a  \R                  r     SS jr	     SU 4S jjr
\S 5       rS rSrU =r$ )	MethodDescriptori9  a  Descriptor for a method in a service.

Attributes:
  name (str): Name of the method within the service.
  full_name (str): Full name of method.
  index (int): 0-indexed index of the method inside the service.
  containing_service (ServiceDescriptor): The service that contains this
    method.
  input_type (Descriptor): The descriptor of the message that this method
    accepts.
  output_type (Descriptor): The descriptor of the message that this method
    returns.
  client_streaming (bool): Whether this method uses client streaming.
  server_streaming (bool): Whether this method uses server streaming.
  options (descriptor_pb2.MethodOptions or None): Method options message, or
    None to use default method options.
c                 |    [         R                  R                  5         [         R                  R	                  U5      $ r(   )r   r   r   r   r  )r   rH   r   r  r  
input_typeoutput_typeclient_streamingserver_streamingrV   rW   r   s               r   r*   MethodDescriptor.__new__P  s-     446""33I>>r   c                    > U[         La  [        S5        [        [        U ]  U(       a  UR
                  OSU	U
S5        Xl        X l        X0l        X@l	        XPl
        X`l        Xpl        Xl        g)zThe arguments are as described in the description of MethodDescriptor
attributes above.

Note that containing_service may be None, and may be set later if necessary.
r  NMethodOptions)r   rB   r   r  rY   rP   rH   r   r  r  r  r  r  r  )r.   rH   r   r  r  r  r  r  r  rV   rW   r   r    s               r   rY   MethodDescriptor.__init___  sl    " --$%	
D*#54	 INJ0 O",,r   c                     U R                   $ r(   )r  r2   s    r   r\   MethodDescriptor._parent  s    """r   c                     U R                   bZ  SSKJn  UR                  5       nU R                   R	                  U5        UR                  UR                  U R                     5        g[        S5      e)zCopies this to a descriptor_pb2.MethodDescriptorProto.

Args:
  proto (descriptor_pb2.MethodDescriptorProto): An empty descriptor proto.

Raises:
  Error: If self couldn't be serialized, due to too few constructor
    arguments.
Nr   rh   z&Descriptor does not contain a service.)	r  rj   ri   ServiceDescriptorProtor   rl   r  r  r   )r.   r   ri   service_protos       r   r   MethodDescriptor.CopyToProto  s\     *0$;;=m
))-8nn]))$**56:;;r   )r  r  r   r  r  rH   r  r  )FFNNN)r   r   r   r   r   r   r   r  r   r*   rY   r   r\   r   r   r"   r#   s   @r   r  r  9  sd    $ "33 "'!&#'?, !& %"&!-F # #< <r   r  c                      ^  \ rS rSrSr\(       a  \R                  r         SU 4S jjr	         SU 4S jjr
S r\S 5       rSrU =r$ )	FileDescriptori  a  Descriptor for a file. Mimics the descriptor_pb2.FileDescriptorProto.

Note that :attr:`enum_types_by_name`, :attr:`extensions_by_name`, and
:attr:`dependencies` fields are only set by the
:py:mod:`google.protobuf.message_factory` module, and not by the generated
proto code.

Attributes:
  name (str): Name of file, relative to root of source tree.
  package (str): Name of the package
  edition (Edition): Enum value indicating edition of the file
  serialized_pb (bytes): Byte string of serialized
    :class:`descriptor_pb2.FileDescriptorProto`.
  dependencies (list[FileDescriptor]): List of other :class:`FileDescriptor`
    objects this :class:`FileDescriptor` depends on.
  public_dependencies (list[FileDescriptor]): A subset of
    :attr:`dependencies`, which were declared as "public".
  message_types_by_name (dict(str, Descriptor)): Mapping from message names to
    their :class:`Descriptor`.
  enum_types_by_name (dict(str, EnumDescriptor)): Mapping from enum names to
    their :class:`EnumDescriptor`.
  extensions_by_name (dict(str, FieldDescriptor)): Mapping from extension
    names declared at file scope to their :class:`FieldDescriptor`.
  services_by_name (dict(str, ServiceDescriptor)): Mapping from services'
    names to their :class:`ServiceDescriptor`.
  pool (DescriptorPool): The pool this descriptor belongs to.  When not passed
    to the constructor, the global default pool is used.
c                 v   > U(       a  [         R                  R                  U5      $ [        [        U ]  U 5      $ r(   )r   r   AddSerializedFiler   r  r*   )r   rH   packagerV   rW   r   dependenciespublic_dependenciesr   r_   rm   r   r    s               r   r*   FileDescriptor.__new__  s1    " 
$$66}EE^S1#66r   c                   > U[         La  [        S5        [        [        U ]  XUS5        U	(       a  U	S:w  a  Xl        OUS:X  a  SU l        OSU l        U
c  SS	KJn  UR                  5       n
Xl	        0 U l
        Xl        X l        XPl        0 U l        0 U l        0 U l        U=(       d    / U l        U=(       d    / U l        g)
zConstructor.r  FileOptionsEDITION_UNKNOWNproto3EDITION_PROTO3EDITION_PROTO2Nr   )descriptor_pool)r   rB   r   r  rY   ry   rj   r  Defaultrm   message_types_by_namerH   r  r   r   r   services_by_namer  r  )r.   rH   r  rV   rW   r   r  r  r   r_   rm   r   r  r    s                r   rY   FileDescriptor.__init__  s     --"#	.$()= 7//m	8	&dm&dm|1$$&dI!#DIL& D DD%+D 3 9rDr   c                 :    UR                  U R                  5        g)zrCopies this to a descriptor_pb2.FileDescriptorProto.

Args:
  proto: An empty descriptor_pb2.FileDescriptorProto.
N)r   r   r   s     r   r   FileDescriptor.CopyToProto  s     
$,,-r   c                     g r(   r	   r2   s    r   r\   FileDescriptor._parent  s    r   )ry   r  r   r   r  rH   r  rm   r  r   r  )	NNNNNNNNN)r   r   r   r   r   r   r   r  r   r*   rY   r   r   r\   r   r"   r#   s   @r   r  r    sw    : "11  74 *;X.  r   r  c                 (    U R                  U5        U $ )zParses serialized options.

This helper function is used to parse serialized options in generated
proto2 files. It must not be used outside proto2.
)r   )messagestrings     r   r|   r|   	  s     
&!	.r   c                 *   Sn/ nU  HD  nUS:X  a  U(       a  SnM  M  U(       a#  UR                  UR                  5       5        SnM@  X#-  nMF     U(       a.  US   R                  5       (       a  US   R                  5       US'   SR	                  U5      $ )z+Converts name to camel-case and returns it.F_Tr    )appendupperisupperlowerjoinrH   capitalize_nextresultcs       r   r2  r2    s    /&aCx	 
	mmAGGIokf  q	!!##q	!F1I	r   c                 H    U R                  S5      (       a  U R                  $ g)zCReturns the value of the field `options`, or None if it is not set.rV   N)r}   rV   )descriptor_protos    r   _OptionsOrNoner  (  s"    y))###r   c                     Sn/ nU  H;  nUS:X  a  SnM  U(       a#  UR                  UR                  5       5        SnM7  X#-  nM=     SR                  U5      $ )z*Converts name to Json name and returns it.Fr  Tr  )r  r  r  r  s       r   r  r  0  sS    /&aCxo	mmAGGIokf  
r   c                    SSK Jn  [        R                  " [        R
                  " S5      5      R                  S5      nU(       a4  [        R                  R                  UR                  SS5      US-   5      nOUS-   n[        R                  " 5       S:w  a  U(       a  UR                  5       n	U	R                  R                  5       R                  U 5        U(       a  Xl        Xl        [$        R&                  R)                  U	5        [$        R&                  R+                  U	R"                  5      n
[,        (       a  U
R.                  U R"                     $ Uc  [1        S	UUUUS	S
/ / [2        S9
nU R"                  /nU(       a  UR5                  SU5        0 nU R6                   H  nSR                  XR"                  /-   5      n[9        UR"                  US	[;        UR<                  5       VVs/ s H*  u  nn[?        UR"                  UUR@                  [2        S9PM,     snnU[2        S9nUX'   M     0 nU RB                   HD  nSR                  UUR"                  /-   5      n[E        USR                  U5      SUUUS9nUUU'   MF     / nU RF                   GH4  nSR                  UUR"                  /-   5      nS	nS	nURH                  (       a  URH                  nOS	nURK                  S5      (       aM  URL                  nSR                  UUURO                  S5      S-   S	 /-   5      nUU;   a  UU   nOUU;   a  UU   n[Q        UR"                  UUR@                  S-
  UR@                  URR                  [P        RU                  URR                  5      URV                  S	UUS	SS	[Y        U5      SUU[2        S9nUR[                  U5        GM7     SR                  U5      n[]        U R"                  US	S	U[_        URa                  5       5      [_        URa                  5       5      / [Y        U 5      U[2        S9$ s  snnf )aR  Make a protobuf Descriptor given a DescriptorProto protobuf.

Handles nested descriptors. Note that this is limited to the scope of defining
a message inside of another message. Composite fields can currently only be
resolved if the message is defined in the same scope as the field.

Args:
  desc_proto: The descriptor_pb2.DescriptorProto protobuf message.
  package: Optional package name for the new message Descriptor (string).
  build_file_if_cpp: Update the C++ descriptor pool if api matches. Set to
    False on recursion, so no duplicates are created.
  syntax: The syntax/semantics that should be used.  Set to "proto3" to get
    proto3 field presence semantics.
  edition: The edition that should be used if syntax is "edition".
  file_desc: A FileDescriptor to place this descriptor into.

Returns:
  A Descriptor for protobuf messages.
r   rh   r   ascii./z.protor   Nr  )
rm   rH   r  r   r_   rV   r   r  r  r   )r   )rP   r   F)r  build_file_if_cppr   r_   	file_desc	type_namer>   )rV   r	  r  rP   r   )rV   rP   r   )1rj   ri   binasciihexlifyosurandomdecodepathr  replacer   r  FileDescriptorProtor  addro   r  rH   r   r   AddFindFileByNamer   r  r  r   insertr   ri  	enumerater   r  r   r   MakeDescriptorr   r  r}   r  rfindr   r  rF  r  r  r  r   listr   )
desc_protor  r  r   r_   r  ri   
proto_name	file_namefile_descriptor_protor  full_message_namer   
enum_protor   iienum_val	enum_descr   nested_protonested_descr   field_protor  r  full_type_namer   	desc_names                               r   r  r  A  s   8 - 

2/66w?*W__S#6
X8MNIX%I(*/@
 +>>@&&**,66zB&-#!*34""112G2L2LMF))*//::'I "'&&q'2 *((j*oo->>?I !***:*: ;	
 !<H  /	 !<	
 'I  &J% )* , ,,l*l.?.?-@@AI !*+K *L - &%%k*k.>.>-??@IIK''iiK((''ixx 1!*9??3+?+A+B!C D!E Fn	<	'">2Z'~.	Q//0@0@A{+'%E( MM%K &N hh())	oo


< !
:Z(%
 O	
s   01P;)r  TNNN)/r   
__author__r   r  r  r+   rD   google.protobuf.internalr   r   r  	_c_moduler   google.protobuf.pyext	Exceptionr   r   r  r   ABCMetar)   r%   r,   r-   rB   r)  r7  r/  r>  ry  rC   r   rL   r   r   r   ri  r  r  r  r  r  r|   r2  r  r  r  r	   r   r   <module>r     s   3
 
  	   7 ())(.$I $Qe Q 
D  F  	3 *+ &&' #-. *-. *     x I 2 I X4@N 4@nm/& m/vyKn yKx	^3* ^3B1. 1h- n - `P6- P6f]<~ ]<@m^ m`*& fr   