hf`dZdZddlZddlZddlmZdZejdkrddlZddl Z ej Z e ddl m Z dZGd d e ZGd d eZerGd deZneZGddeZejZdZde_eZGddeZGddeZGddeZGddeZGddeZGddeZGd d!eZGd"d#eZ Gd$d%eZ!Gd&d'eZ"d(Z#d)Z$d*Z%d+Z& d.d-Z'dS)/zDescriptors 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_implementationFpython)_messageTceZdZdZdS)ErrorzBase error for this module.N__name__ __module__ __qualname____doc__|/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/descriptor.pyrr7s####rrceZdZdZdS)TypeTransformationErrorzHError transforming between python proto type and corresponding C++ type.Nrr rrrr;sPPPPrrceZdZfdZxZS)DescriptorMetaclassctt||rdSt||jrdSdS)NTF)superr__instancecheck__ isinstance_C_DESCRIPTOR_CLASS)clsobj __class__s rrz%DescriptorMetaclass.__instancecheck__FsH "C ( ( : :3 ? ?t C0 1 1t Ur)r r r r __classcell__rs@rrrDs8rrc$eZdZdZdZdZdZdS)_Lockz>Wrapper class of threading.Lock(), which is allowed by 'with'.cjt|}tj|_|SN)object__new__ threadingLock_lock)rselfs rr#z _Lock.__new__Ts' >>#  D!!DJ Krc8|jdSr!)r&acquirer's r __enter__z_Lock.__enter__YJrc8|jdSr!)r&release)r'exc_type exc_valueexc_tbs r__exit__z_Lock.__exit__\r,rN)r r r r r#r+r2r rrrrQsGFF rrctjdkr6txjdzc_tjd|ztddSdS)NrzCall 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) _DeprecatedcountwarningswarnDeprecationWarningnames rr8r8cse M 7  $ 333333rdc,eZdZdZerdZdZdZdZdS)DescriptorBaseaDescriptors 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. r cJ||_||_||_|dup|du|_dS)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)_options_options_class_name_serialized_options has_options)r'optionsserialized_optionsoptions_class_names r__init__zDescriptorBase.__init__s; DM1D1D t+P1C41ODrc4||_||_|du|_dS)zSets the descriptor's options This function is used in generated proto2 files to update descriptor options. It must not be used outside proto2. N)rCrDrF)r'rGrIs r _SetOptionszDescriptorBase._SetOptionss( DM1Dd*Drcd|jr|jSddlm} t||j}n%#t $rt d|jzwxYwt5|j||_n"t||j|_|jcdddS#1swxYwYdS)zRetrieves descriptor options. This method returns the options set or creates the default options for the descriptor. rdescriptor_pb2zUnknown options class name %s!N) rCgoogle.protobufrOgetattrrDAttributeError RuntimeErrorr&rE _ParseOptions)r'rO options_classs r GetOptionszDescriptorBase.GetOptionss-  } ]......5n"688mm 555 924 5 555  ! )%  %mmoo&*&>@@ ]s,"AAB%%B),B)N) r r r r _USE_C_DESCRIPTORSrrJrLrVr rrrArAvs`   Q Q Q + + +rrA) metaclassc.eZdZdZ dfd ZdZxZS)_NestedDescriptorBasez0Common class for descriptors that can be nested.Nc tt||| |||_||_||_||_||_||_dS)aConstructor. 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. file (FileDescriptor): Reference to file info. 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) rrZrJr> full_namefilecontaining_type_serialized_start_serialized_end) r'rGrIr>r\r]r^serialized_startserialized_endrHrs rrJz_NestedDescriptorBase.__init__sh, &&//#%7999DIDNDI*D-D)Drc|jA|j:|j3||jj|j|jdSt d)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.)r]r_r`ParseFromString serialized_pbrr'protos r CopyToProtoz!_NestedDescriptorBase.CopyToProtosk  * ( DI3  !5 5788888 > ? ??rNNN)r r r r rJrhrrs@rrZrZsb888<7;!*!*!*!*!*!*F@@@@@@@rrZceZdZdZerejZ d dZ d fd Z e dZ dZ fdZ xZS) Descriptora= 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. NTc|tjtj|Sr!)rMessage_CheckCalledFromGeneratedFile default_poolFindMessageTypeByName)rr>r\filenamer^fields nested_types enum_types extensionsrGrH is_extendableextension_rangesoneofsr]rarbsyntax create_keys rr#zDescriptor.__new__&s0(44666  " 8 8 C CCrc r|turtdtt|| d|||||||  ||_|jD] }||_ td|D|_td|D|_ d|_ ||_ |D] }||_ td|D|_ ||_ |j D] }||_ td|D|_td |D|_||_|jD] }||_ td |D|_| |_| |_| | ng|_td |jD|_|jD] }||_ |pd |_dS) 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. rkMessageOptionsrarbrHc3(K|] }|j|fVdSr!number.0fs r z&Descriptor.__init__..\s( ? ?1!(A ? ? ? ? ? ?rc3(K|] }|j|fVdSr!r=rs rrz&Descriptor.__init__..](;;q{;;;;;;rNc3(K|] }|j|fVdSr!r=rts rrz&Descriptor.__init__..cs($G$GQafa[$G$G$G$G$G$Grc3(K|] }|j|fVdSr!r=rs rrz&Descriptor.__init__..h("C"C1AFA;"C"C"C"C"C"Crc3<K|]}|jD] }|j|fVdSr!)valuesr>)rrvs rrz&Descriptor.__init__..isO$;$;$;$;,- $;$;$;$;$;$;$;rc3(K|] }|j|fVdSr!r=rs rrz&Descriptor.__init__..orrc3(K|] }|j|fVdSr!r=)ros rrz&Descriptor.__init__..ss(@@q{@@@@@@rproto2)_internal_create_keyr8rrkrJrrr^dictfields_by_numberfields_by_name_fields_by_camelcase_namersnested_types_by_namertenum_types_by_nameenum_values_by_nameruextension_scopeextensions_by_namervrwrxoneofs_by_namery)r'r>r\rqr^rrrsrtrurGrHrvrwrxr]rarbryrzfield nested_type enum_type extensiononeofrs rrJzDescriptor.__init__@s.---, *d$$!4D*:%:L%NNNDK##"e ? ? ? ? ???D;;F;;;;;D%)D"$D#)) $(k!! $$G$G,$G$G$G G GD DO_'' "&i""C"C "C"C"CCCD#$;$;'$;$;$; ; ;D!DO_'' "&i""C"C "C"C"CCCD&D,D".&&BDK@@DK@@@@@D##"e$HDKKKrcd|j#td|jD|_|jS)zrSame FieldDescriptor objects as in :attr:`fields`, but indexed by :attr:`FieldDescriptor.camelcase_name`. Nc3(K|] }|j|fVdSr!)camelcase_namers rrz6Descriptor.fields_by_camelcase_name..~s;,6,6$%1 Q ,6,6,6,6,6,6r)rrrrr*s rfields_by_camelcase_namez#Descriptor.fields_by_camelcase_namexsF  %-'+,6,6)-,6,6,6(6(6d$  ))rc<|j|j|jS)asReturns 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. )rvalues_by_numberr>)r'enumvalues r EnumValueNamezDescriptor.EnumValueNames  "4 ( 9% @ EErcXtt||dS)zvCopies this to a descriptor_pb2.DescriptorProto. Args: proto: An empty descriptor_pb2.DescriptorProto. N)rrkrhr'rgrs rrhzDescriptor.CopyToProtos) *d''.....r)NNNNNNNNNNTNNNNNNN) NNTNNNNNNN)r r r r rWrrkrr#rJpropertyrrrhrrs@rrkrks))VD"- 'DDDD6>B"&AE@D'+ 6%6%6%6%6%6%p ** 8*FFF$/////////rrkceZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd Zd Z d Z!ieeeeeeeeeeeeeee eeeeeeeeee eeee ee eee e e iZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)e*re+j,Z- ddZ. dfd Z/e0dZ1e0dZ2e0dZ3e4dZ5xZ6S) FieldDescriptora+ 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. r4r5 ii8JiNNTctj| rtj|Stj|Sr!)rrmrnroFindExtensionByNameFindFieldByName)rr>r\indexrtypecpp_typelabel default_value message_typerr^ is_extensionrrGrHhas_default_valuecontaining_oneof json_namer]rzs rr#zFieldDescriptor.__new__+sP 44666 @$88CCC$44Y???rc|turtdtt|||d||_||_||_d|_|t||_ n||_ ||_ ||_ ||_ ||_||_||_||_| |_| |_| |_| |_| |_||_t1jdkr d|_dS| r&t6j||_dSt6j||_dS)aThe 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)rr8rrrJr>r\r]_camelcase_name _ToJsonNamerrrrrrrrr^rrrrrrType _cdescriptorrrorr)r'r>r\rrrrrrrrr^rrrGrHrrrr]rzrs rrJzFieldDescriptor.__init__7sP---#$$$ /4  ))#^555DIDNDID"4((dnn dnDJDKDIDMDJ.D&D*D$DDN$D*D,D  H,,d M$1EEiPP$1AA)LLrcP|jt|j|_|jS)zRCamelcase name of this field. Returns: str: the name in CamelCase. )r _ToCamelCaser>r*s rrzFieldDescriptor.camelcase_namefs( #)$)44d  rc|jtjkrdS|jtjks|jrdS|jjdkS)zWhether the field distinguishes between unpopulated and default values. Raises: RuntimeError: singular field that is not linked with message nor file. FTr)rrLABEL_REPEATEDrCPPTYPE_MESSAGErr^ryr*s r has_presencezFieldDescriptor.has_presenceqsL z_333 U 888  9 T   &( 22rc|jtjkrdS|j}|tjks0|tjks |tjks|tjkrdS|jj dkr |j o| j S|j p@| d p| j S)zReturns if the field is packed.Frpacked)rrrr TYPE_STRING TYPE_GROUP TYPE_MESSAGE TYPE_BYTESr^ryrFrVrHasField)r' field_types r is_packedzFieldDescriptor.is_packeds z_333 UJo111o000o222o000 U "h..   :$//"3"3"::""'//##,,X666'oo&(rch tj|S#t$rtd|zwxYw)aConverts 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. zUnknown proto_type: %s)r_PYTHON_TO_CPP_PROTO_TYPE_MAPKeyErrorr) proto_types rProtoTypeToCppProtoTypez'FieldDescriptor.ProtoTypeToCppProtoTypesIK  :: FF KKK #$#-##- # = # ] #>#N#-#]#=#>#N#.#># !#"O##$/%##2...)# %$ @"28<#'IM&* @ @ @ @7;"&HL%) -M-M-M-M-M-M^    8  33 83" (( 8("KK<KKKKKrrcjeZdZdZerejZ ddZ dfd Z e dZ fdZ xZ S)EnumDescriptoraDescriptor 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. Nc |tjtj|Sr!)rrmrnroFindEnumTypeByName) rr>r\rqrr^rGrHr]rarbrzs rr#zEnumDescriptor.__new__s044666  " 5 5i @ @@rc \| turtdtt||d||||| | | ||_|jD] } || _ td|D|_tdt|D|_ dS)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. r  EnumOptionsr}c3(K|] }|j|fVdSr!r=rrs rrz*EnumDescriptor.__init__..rrc3(K|] }|j|fVdSr!rrs rrz*EnumDescriptor.__init__..s( I I1!(A I I I I I IrN) rr8rr rJrrrvalues_by_namereversedr)r'r>r\rqrr^rGrHr]rarbrzrrs rrJzEnumDescriptor.__init__s---"### .$((i*:%:L)NNN DKejj;;F;;;;;D I I8H8H I I IIIDrc"|jjdkS)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. r)r]ryr*s r is_closedzEnumDescriptor.is_closeds, 9 x ''rcXtt||dS)zCopies this to a descriptor_pb2.EnumDescriptorProto. Args: proto (descriptor_pb2.EnumDescriptorProto): An empty descriptor proto. N)rr rhrs rrhzEnumDescriptor.CopyToProtos) .$++E22222r)NNNNNNN)r r r r rWrr rr#rJrrrhrrs@rr r s,A"1/3.2GKAAAA.2-1FJJJJJJJ0 (( 8(.333333333rr cFeZdZdZer ejZ ddZ dfd Z xZ S)EnumValueDescriptoraLDescriptor 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. NcBtjdSr!)rrmrn)rr>rrrrGrHrzs rr#zEnumValueDescriptor.__new__s 44666 Trc|turtdtt|||d||_||_||_||_dS)>Arguments are as described in the attribute description above.rEnumValueOptionsN) rr8rrrJr>rrr) r'r>rrrrGrHrzrs rrJzEnumValueDescriptor.__init__#sl---'((( t$$--#%7999DIDJDKDIIIr)NNNN) r r r r rWrrrr#rJrrs@rrrs~   "6BFAE          rrcFeZdZdZer ejZ ddZ dfd Z xZ S)OneofDescriptora'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. Nc |tjtj|Sr!)rrmrnroFindOneofByName) rr>r\rr^rrrGrHrzs rr#zOneofDescriptor.__new__Ds044666  " 2 29 = ==rc |turtdtt|||d||_||_||_||_||_ dS)rr OneofOptionsN) rr8rrrJr>r\rr^rr) r'r>r\rr^rrrGrHrzrs rrJzOneofDescriptor.__init__Jsr---#$$$ /4  ))#^555DIDNDJ*DDKKKrri) r r r r rWrrrr#rJrrs@rrr2s  >"2GK,0>>>>FJ*.          rrcheZdZdZerejZ ddZ dfd Z dZ fdZ xZ S) ServiceDescriptoraDescriptor 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. Nc |tjtj|Sr!)rrmrnroFindServiceByName) rr>r\rmethodsrGrHr]rarbrzs rr#zServiceDescriptor.__new__ps044666  " 4 4Y ? ??rc | turtdtt||d|||d|| | ||_||_td|D|_|jD] } || _ dS)Nr#ServiceOptionsr}c3(K|] }|j|fVdSr!r=)rms rrz-ServiceDescriptor.__init__..s(== ======r) rr8rr#rJrr&rmethods_by_namecontaining_service) r'r>r\rr&rGrHr]rarbrzmethodrs rrJzServiceDescriptor.__init__s---%&&& T""++!4D /%:L,NNNDJDL==W=====D,''"&f''rc|j|S)aSearches 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'r>s rFindMethodByNamez"ServiceDescriptor.FindMethodByNames   %%rcXtt||dS)zCopies this to a descriptor_pb2.ServiceDescriptorProto. Args: proto (descriptor_pb2.ServiceDescriptorProto): An empty descriptor proto. N)rr#rhrs rrhzServiceDescriptor.CopyToProtos* T""..u55555r) NNNNNNNNNN)NNNNNN) r r r r rWrr#rr#rJr/rhrrs@rr#r#Zs"@"4  @ @ @ @?C-1FJ''''''" & & &666666666rr#cXeZdZdZerejZ ddZ dfd Z dZ xZ S)MethodDescriptoraDescriptor 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. FNc |tjtj|Sr!)rrmrnror/) rr>r\rr, input_type output_typeclient_streamingserver_streamingrGrHrzs rr#zMethodDescriptor.__new__s044666  " 3 3I > >>rc | turtdtt|| | d||_||_||_||_||_ ||_ ||_ ||_ dS)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. r2 MethodOptionsN) rr8rr2rJr>r\rr,r4r5r6r7) r'r>r\rr,r4r5r6r7rGrHrzrs rrJzMethodDescriptor.__init__s"---$%%% D!!**#_666DIDNDJ0D DO"D,D,Drc|j[ddlm}|}|j|||j|jdStd)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. NrrNz&Descriptor does not contain a service.) r,rPrOServiceDescriptorProtorhCopyFromr-rr)r'rgrO service_protos rrhzMethodDescriptor.CopyToProtosx *000000$;;==m ))-888 nn])$*566666 : ; ;;r)FFNNN) r r r r rWrr2rr#rJrhrrs@rr2r2s$?"3"'!&#' ? ? ? ?,!& %"&------><<<<<<packagerGrHre dependenciespublic_dependenciesrypoolrzrs rr#zFileDescriptor.__new__"sB 7$66}EEE^S))11#666rc j| turtdtt|||d| ddlm} | } | |_i|_ ||_ ||_ |pd|_ ||_ i|_i|_i|_|pg|_|pg|_dS)z Constructor.r? FileOptionsNr)descriptor_poolr)rr8rr?rJrPrHDefaultrEmessage_types_by_namer>rBryrerrservices_by_namerCrD) r'r>rBrGrHrerCrDryrErzrHrs rrJzFileDescriptor.__init__.s ---"### .$((#]444 |111111  $ $ & &dDI!#DDIDL$HDK&D D DD%+D 3 9rDrc:||jdS)z~Copies this to a descriptor_pb2.FileDescriptorProto. Args: proto: An empty descriptor_pb2.FileDescriptorProto. N)rdrerfs rrhzFileDescriptor.CopyToProtoIs!  $,-----r)NNNNNNNN) r r r r rWrr?rr#rJrhrrs@rr?r?s< 7"1,07;7;37 7 7 7 7 7 7-16:6:26;;;;;;6.......rr?c0|||S)zParses serialized options. This helper function is used to parse serialized options in generated proto2 files. It must not be used outside proto2. )rd)messagestrings rrTrTRs  &!!! .rc(d}g}|D]>}|dkr|rd} |r*||d}9||z }?|r7|dr|d|d<d|S)z+Converts name to camel-case and returns it.F_Tr)appendupperisupperlowerjoinr>capitalize_nextresultcs rrr\s/ & aCxx   mmAGGIIoo kff "q !!##"q !!F1I rc>|dr|jSdS)zCReturns the value of the field `options`, or None if it is not set.rGN)rrG)descriptor_protos r_OptionsOrNoner^qs&y))  ## 4rcd}g}|D]<}|dkrd} |r*||d}7||z }=d|S)z*Converts name to Json name and returns it.FrQTrR)rSrTrWrXs rrryso/ & aCxxoo  mmAGGIIoo kff rrRctjdkr.|r+ddlm}|}|j|tj tj d d}|rDtj |dd|dz|_||_n |dz|_t$j|t$j|j}t,r|j|jS|jg}|r|d|i} |jD]_} d|| jgz} t5| j| d d t7| jDt: } | | | <`i} |jD]K}d||jgz} t?|d|d | }|| | <Lg}|j D]"}d||jgz} d } d }|j!r|j!}nd }|"drW|j#}d|||$ddzd gz}|| vr | |}n || vr| |} tK|j| |j&dz |j&|j'tJ(|j'|j)d || d d d tU|d |t:}|+|$d|}tY|j|d d |t[| .t[| .gtU|t: S)aMake 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. Returns: A Descriptor for protobuf messages. rrrNrascii./z.protoNcXg|]'\}}t|j||jt(S)rz)rr>rr)riienum_vals r z"MakeDescriptor..sM+=+=+=H  r8?+? A A A+=+=+=rreF)rBbuild_file_if_cppry type_namer4)rGrrrz)rGrz)/rrrPrOFileDescriptorProtoradd MergeFrombinasciihexlifyosurandomdecodepathrWreplacer>rBrroAddFindFileByNamerWrJinsertrr  enumeraterrrMakeDescriptorrrrrjrfindrrrrrr^rSrklistr) desc_protorBriryrOfile_descriptor_proto proto_namerZfull_message_namert enum_protor\ enum_descrs nested_proto nested_descrr field_protorrjfull_type_namer desc_names rryrys,$(**/@* /.....*>>@@&**,,66zBBB !"*R..1188AAJ9#%7<<S0I0I0:X0E$G$G &-###-#8  3444  " 1 12G2L M MF;  )*/ ::!' 2&&q'222*(&&j*jo->>??ID+=+=!***: ; ;+=+=+=( )))I &Jy, ,**l*l.?-@@AAI!),2C)D)D38(.000K*L &%k*k.>-??@@IIK'iiiK((/'ixx 1!*9??3+?+?+A+B+B!C D!EFFn < ' '">2 Z ' '~. )[%7!%;K,// 0@AA4iud{++u(<  > > >E MM%hh())) JOYdF,,..//j6G6G6I6I1J1JB*:663 5 5 55r)rRTN)(r __author__r$r:google.protobuf.internalrrWrrnrp _c_modulergoogle.protobuf.pyext Exceptionrrrrr"rr%r&r8r9rrArZrkrr rrr#r2r?rTrr^rryr rrrs>3 777777((/// )))  )( ......$$$$$I$$$QQQQQeQQQ D     F     333 vxxDDDDD2DDDDN6@6@6@6@6@N6@6@6@re/e/e/e/e/&e/e/e/f~K~K~K~K~Kn~K~K~KBY3Y3Y3Y3Y3*Y3Y3Y3x))))).)))X%%%%%n%%%PK6K6K6K6K6-K6K6K6\U<U<U<U<U<~U<U<UBh5h5h5h5h5h5r