Hacked By AnonymousFox

Current Path : /lib/python2.7/site-packages/google/protobuf/
Upload File :
Current File : //lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyo

�
Du�ac@s�dZdZddlZddlmZddlmZddlmZejZd�Zd�Z	d	�Z
d
efd��YZd�Z
er�ejjZn	e�Zd
�ZdS(sJProvides DescriptorPool to use as a container for proto2 descriptors.

The DescriptorPool is used in conjection with a DescriptorDatabase to maintain
a collection of protocol buffer descriptors for use when dynamically creating
message types at runtime.

For most applications protocol buffers should be used via modules generated by
the protocol buffer compiler tool. This should only be used when the type of
protocol buffers used in an application or library cannot be predetermined.

Below is a straightforward example on how to use this class:

  pool = DescriptorPool()
  file_descriptor_protos = [ ... ]
  for file_descriptor_proto in file_descriptor_protos:
    pool.Add(file_descriptor_proto)
  my_message_descriptor = pool.FindMessageTypeByName('some.package.MessageType')

The message descriptor can be used in conjunction with the message_factory
module in order to create a protocol buffer class that can be encoded and
decoded.

If you want to get a Python class for the specified proto, use the
helper functions inside google.protobuf.message_factory
directly instead of this class.
s"matthewtoia@google.com (Matt Toia)i����N(t
descriptor(tdescriptor_database(t
text_encodingcCs
|jd�S(sLRemove leading period from fully-qualified type name.

  Due to b/13860351 in descriptor_database.py, types in the root namespace are
  generated with a leading period. This function removes that prefix.

  Args:
    name: A str, the fully-qualified symbol name.

  Returns:
    A str, the normalized fully-qualified symbol name.
  t.(tlstrip(tname((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt_NormalizeFullyQualifiedNameFscCs|jd�r|jSdSdS(sCReturns the value of the field `options`, or None if it is not set.toptionsN(tHasFieldRtNone(tdescriptor_proto((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt_OptionsOrNoneUscCsO|joN|jjoN|jj�joN|jtjjkoN|j	tjj
kS(N(tis_extensiontcontaining_typethas_optionst
GetOptionstmessage_set_wire_formatttypeRtFieldDescriptortTYPE_MESSAGEtlabeltLABEL_OPTIONAL(tfield((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt_IsMessageSetExtension]s
	tDescriptorPoolcBsaeZdZer!d"d�Znd"d�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd"d"d"d"d�Zd"d"d"d"d�Zed�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d �Z%d!�Z&RS(#sGA collection of protobufs dynamically constructed by descriptor protos.cCstjj|�S(N(Rt_messageR(tclst
descriptor_db((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt__new__jscCsmtj�|_||_i|_i|_i|_i|_i|_t	j
t�|_t	j
t�|_
dS(s�Initializes a Pool of proto buffs.

    The descriptor_db argument to the constructor is provided to allow
    specialized file descriptor proto lookup code to be triggered on demand. An
    example would be an implementation which will read and compile a file
    specified in a call to FindFileByName() and not require the call to Add()
    at all. Results from this database will be cached internally here as well.

    Args:
      descriptor_db: A secondary source of file descriptors.
    N(RtDescriptorDatabaset_internal_dbt_descriptor_dbt_descriptorst_enum_descriptorst_service_descriptorst_file_descriptorst_toplevel_extensionstcollectionstdefaultdicttdictt_extensions_by_namet_extensions_by_number(tselfR((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt__init__ns
						cCs|jj|�dS(sAdds the FileDescriptorProto and its types to this pool.

    Args:
      file_desc_proto: The FileDescriptorProto to add.
    N(RtAdd(R*tfile_desc_proto((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR,�scCs3ddlm}|jj|�}|j|�dS(s�Adds the FileDescriptorProto and its types to this pool.

    Args:
      serialized_file_desc_proto: A bytes string, serialization of the
        FileDescriptorProto to add.
    i����(tdescriptor_pb2N(tgoogle.protobufR.tFileDescriptorProtot
FromStringR,(R*tserialized_file_desc_protoR.R-((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytAddSerializedFile�s			cCsEt|tj�s!td��n||j|j<|j|j�dS(sAdds a Descriptor to the pool, non-recursively.

    If the Descriptor contains nested messages or enums, the caller must
    explicitly register them. This method also registers the FileDescriptor
    associated with the message.

    Args:
      desc: A Descriptor.
    s+Expected instance of descriptor.Descriptor.N(t
isinstanceRt
Descriptort	TypeErrorR t	full_namet_AddFileDescriptortfile(R*tdesc((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt
AddDescriptor�s
cCsEt|tj�s!td��n||j|j<|j|j�dS(s�Adds an EnumDescriptor to the pool.

    This method also registers the FileDescriptor associated with the enum.

    Args:
      enum_desc: An EnumDescriptor.
    s/Expected instance of descriptor.EnumDescriptor.N(R4RtEnumDescriptorR6R!R7R8R9(R*t	enum_desc((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytAddEnumDescriptor�s	cCs5t|tj�s!td��n||j|j<dS(s^Adds a ServiceDescriptor to the pool.

    Args:
      service_desc: A ServiceDescriptor.
    s2Expected instance of descriptor.ServiceDescriptor.N(R4RtServiceDescriptorR6R"R7(R*tservice_desc((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytAddServiceDescriptor�scCst|tj�o|js*td��n|jdkrL||j|j<ny|j	|j
|j}Wntk
rzn;X||k	r�t
d|j|j|j
j|jf��n||j	|j
|j<||j|j
|j<t|�r||j|j
|jj<ndS(s;Adds a FieldDescriptor describing an extension to the pool.

    Args:
      extension: A FieldDescriptor.

    Raises:
      AssertionError: when another extension with the same number extends the
        same message.
      TypeError: when the specified extension is not a
        descriptor.FieldDescriptor.
    s!Expected an extension descriptor.sSExtensions "%s" and "%s" both try to extend message type "%s" with field number %d.N(R4RRRR6textension_scopeR	R$R7R)R
tnumbertKeyErrortAssertionErrorR(Rtmessage_type(R*t	extensiont
existing_desc((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytAddExtensionDescriptor�s&	
cCs|j|�dS(s�Adds a FileDescriptor to the pool, non-recursively.

    If the FileDescriptor contains messages or enums, the caller must explicitly
    register them.

    Args:
      file_desc: A FileDescriptor.
    N(R8(R*t	file_desc((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytAddFileDescriptor�s
cCs5t|tj�s!td��n||j|j<dS(s�Adds a FileDescriptor to the pool, non-recursively.

    If the FileDescriptor contains messages or enums, the caller must explicitly
    register them.

    Args:
      file_desc: A FileDescriptor.
    s/Expected instance of descriptor.FileDescriptor.N(R4RtFileDescriptorR6R#R(R*RJ((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR8s
cCs�y|j|SWntk
r"nXy|jj|�}Wn7tk
rr}|jri|jj|�}qs|�nX|s�td|��n|j|�S(s�Gets a FileDescriptor by file name.

    Args:
      file_name: The path to the file to get a descriptor for.

    Returns:
      A FileDescriptor for the named file.

    Raises:
      KeyError: if the file cannot be found in the pool.
    sCannot find a file named %s(R#RDRtFindFileByNameRt!_ConvertFileProtoToFileDescriptor(R*t	file_namet
file_prototerror((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRMs

	
cCs#t|�}y|j|jSWntk
r1nXy|j|jSWntk
rWnXy|j|jSWntk
r}nXy|j|�SWntk
r�nXy|j|jSWntk
r�nX|jd�\}}}y|j	|�}|jSWn!tk
rtd|��nXdS(sGets the FileDescriptor for the file containing the specified symbol.

    Args:
      symbol: The name of the symbol to search for.

    Returns:
      A FileDescriptor that contains the specified symbol.

    Raises:
      KeyError: if the file cannot be found in the pool.
    Rs Cannot find a file containing %sN(
RR R9RDR!R"t_FindFileContainingSymbolInDbR$t
rpartitiontFindMessageTypeByName(R*tsymboltmessage_namet_textension_nametmessage((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindFileContainingSymbol+s6






cCs6t|�}||jkr+|j|�n|j|S(s�Loads the named descriptor from the pool.

    Args:
      full_name: The full name of the descriptor to load.

    Returns:
      The descriptor for the named type.

    Raises:
      KeyError: if the message cannot be found in the pool.
    (RR RR(R*R7((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRT[s
cCs6t|�}||jkr+|j|�n|j|S(s�Loads the named enum descriptor from the pool.

    Args:
      full_name: The full name of the enum descriptor to load.

    Returns:
      The enum descriptor for the named type.

    Raises:
      KeyError: if the enum cannot be found in the pool.
    (RR!RR(R*R7((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindEnumTypeByNamems
cCs>t|�}|jd�\}}}|j|�}|j|S(sLoads the named field descriptor from the pool.

    Args:
      full_name: The full name of the field descriptor to load.

    Returns:
      The field descriptor for the named field.

    Raises:
      KeyError: if the field cannot be found in the pool.
    R(RRSRTtfields_by_name(R*R7RVRWt
field_nametmessage_descriptor((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindFieldByNamescCs>t|�}|jd�\}}}|j|�}|j|S(sLoads the named oneof descriptor from the pool.

    Args:
      full_name: The full name of the oneof descriptor to load.

    Returns:
      The oneof descriptor for the named oneof.

    Raises:
      KeyError: if the oneof cannot be found in the pool.
    R(RRSRTtoneofs_by_name(R*R7RVRWt
oneof_nameR^((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindOneofByName�scCs�t|�}y|j|SWntk
r.nX|jd�\}}}y|j|�}Wn tk
r||j|�}nX|j|S(sLoads the named extension descriptor from the pool.

    Args:
      full_name: The full name of the extension descriptor to load.

    Returns:
      A FieldDescriptor, describing the named extension.

    Raises:
      KeyError: if the extension cannot be found in the pool.
    R(RR$RDRSRTRRtextensions_by_name(R*R7RVRWRXtscope((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindExtensionByName�s

cCs|j||S(s�Gets the extension of the specified message with the specified number.

    Extensions have to be registered to this pool by calling
    AddExtensionDescriptor.

    Args:
      message_descriptor: descriptor of the extended message.
      number: integer, number of the extension field.

    Returns:
      A FieldDescriptor describing the extension.

    Raises:
      KeyError: when no extension with the given number is known for the
        specified message.
    (R)(R*R^RC((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindExtensionByNumber�scCst|j|j��S(s!Gets all the known extension of a given message.

    Extensions have to be registered to this pool by calling
    AddExtensionDescriptor.

    Args:
      message_descriptor: descriptor of the extended message.

    Returns:
      A list of FieldDescriptor describing the extensions.
    (tlistR)tvalues(R*R^((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindAllExtensions�scCs6t|�}||jkr+|j|�n|j|S(sLoads the named service descriptor from the pool.

    Args:
      full_name: The full name of the service descriptor to load.

    Returns:
      The service descriptor for the named service.

    Raises:
      KeyError: if the service cannot be found in the pool.
    (RR"RR(R*R7((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytFindServiceByName�scCsvy|jj|�}Wn7tk
rO}|jrF|jj|�}qP|�nX|sitd|��n|j|�S(s"Finds the file in descriptor DB containing the specified symbol.

    Args:
      symbol: The name of the symbol to search for.

    Returns:
      A FileDescriptor that contains the specified symbol.

    Raises:
      KeyError: if the file cannot be found in the descriptor database.
    s Cannot find a file containing %s(RRZRDRRN(R*RURPRQ((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRR�s	
cCs|j|jkrt|j|j��}g|jD]}|j|�^q4}g|jD]}||^qY}tjd|d|jd|j	d|j
dt|�d|j�d|d|�}i}xM|D]E}	|j
|j|	jj���|j
d	�|	jj�D��q�WxB|jD]7}
|j|
|j	|||j
�}||j|j<q Wx9|jD].}|j||j	|d|�|j|j<qeWx�t|j�D]t\}
}|j||j	|
|d
t�}|j|j	|j|�|_|j|||j	|�||j|j<q�Wx'|jD]}|j |j	||�q)W|j	rdt!|j	�}nd}x9|jD].}|j||j|�}||j|j<qtWxEt|j"�D]4\}
}|j#||
||j	|�|j$|j<q�W|j%|�||j|j<n|j|jS(
sDCreates a FileDescriptor from a proto or returns a cached copy.

    This method also has the side effect of loading all the symbols found in
    the file into the appropriate dictionaries in the pool.

    Args:
      file_proto: The proto to convert.

    Returns:
      A FileDescriptor matching the passed in proto.
    tpoolRtpackagetsyntaxRt
serialized_pbtdependenciestpublic_dependenciescss$|]}t|j�|fVqdS(N(t_PrefixWithDotR7(t.0tenum((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pys	<genexpr>,sRtN(&RR#Rgt_GetDepst
dependencyRMtpublic_dependencyRRLRlRmRtSerializeToStringtupdatet_ExtractSymbolstmessage_types_by_nameRhtenum_types_by_nameRFt_ConvertMessageDescriptort	enum_typet_ConvertEnumDescriptorR	t	enumerateRGt_MakeFieldDescriptortTruet_GetTypeFromScopetextendeeR
t
_SetFieldTypeRct_SetAllFieldTypesRqtservicet_MakeServiceDescriptortservices_by_nameR,(R*RPt
built_depstntdirect_depstitpublic_depstfile_descriptorRdRvRFtmessage_descR~tindextextension_prototextension_desct
desc_prototdesc_proto_prefixR:t
service_proto((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRNsf
% 					
	
	
c!Cs|r!dj||jf�}n	|j}|dkr?d}n	|j}|dkr]i}ng|jD]!}|j|||||�^qg}g|jD]!}	|j|	||d|�^q�}
gt|j�D]$\}}|j	||||�^q�}
gt|j
�D]*\}}|j	||||dt�^q	}gt|j�D]B\}}t
j|jdj||jf�|dg|j�^qI}g|jD]}|j|jf^q�}|r�t}nt}t
jd|jd|d|ddd|
d|d	|d
|
d|dt|�d
|d|d|ddddd|�}x|jD]}||_qMWx|jD]}	||	_qjWxat|j�D]P\}}|jd�r�|j}||jj|
|�|||
|_q�q�W||t|�<||j|<|S(s�Adds the proto to the pool in the specified package.

    Args:
      desc_proto: The descriptor_pb2.DescriptorProto protobuf message.
      package: The package the proto should be located in.
      file_desc: The file containing this message.
      scope: Dict mapping short and full symbols to message and enum types.
      syntax: string indicating syntax of the file ("proto2" or "proto3")

    Returns:
      The added descriptor.
    RRRR7tfilenameR
tfieldstoneofstnested_typest
enum_typest
extensionsRt
is_extendabletextension_rangesR9tserialized_starttserialized_endRmtoneof_indexN( tjoinRR	tnested_typeR}R~RR�RR�RGR�t
oneof_declRtOneofDescriptorRtextension_rangetstarttendtFalseR5RR�R
R�RR�R�tappendtcontaining_oneofRqR (R*R�RlRJRdRmt	desc_nameROtnestedRstenumsR�RR�RGR�R:R�trR�R�tfield_indext
field_descR�((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR}]sf				..7=U(				

	
cCs�|r!dj||jf�}n	|j}|d
kr?d
}n	|j}gt|j�D]\}}	|j|	|�^qX}
tjd|jd|d|d|d|
d|dt|��}||d	|<||j	|<|S(s�Make a protobuf EnumDescriptor given an EnumDescriptorProto protobuf.

    Args:
      enum_proto: The descriptor_pb2.EnumDescriptorProto protobuf message.
      package: Optional package name for the new message EnumDescriptor.
      file_desc: The file containing the enum descriptor.
      containing_type: The type containing this enum.
      scope: Scope containing available types.

    Returns:
      The added descriptor
    RRR7R�R9RhR
Rs.%sN(
R�RR	R�tvaluet_MakeEnumValueDescriptorRR<RR!(R*t
enum_protoRlRJR
Rdt	enum_nameROR�R�RhR:((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR�s$			1
c!Cs�|r!dj||jf�}n	|j}tjd|jd|d|d|jd|jddddd	dd
dd|jdtd
dd|dddt	|�d|�S(s�Creates a field descriptor from a FieldDescriptorProto.

    For message and enum type fields, this method will do a look up
    in the pool for the appropriate descriptor for that type. If it
    is unavailable, it will fall back to the _source function to
    create it. If this type is still unavailable, construction will
    fail.

    Args:
      field_proto: The proto describing the field.
      message_name: The name of the containing message.
      index: Index of the field
      file_desc: The file containing the field descriptor.
      is_extension: Indication that this field is for an extension.

    Returns:
      An initialized FieldDescriptor object
    RRR7R�RCRtcpp_typeRFR~R
Rthas_default_valuet
default_valueRRBRR9N(
R�RRRRCRR	RR�R(R*tfield_protoRVR�RJRR7((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR��s(						cCst|�}|j||j|�}|dkrBt|j�}ndj||jg�}x9t|j|j�D]"\}}|j||||�qpWxTt|j|j	�D]=\}}	|j||j
|�|	_|j||	||�q�Wx$|jD]}
|j
||
|�q�WdS(sSets all the descriptor's fields's types.

    This method also sets the containing types on any extensions.

    Args:
      package: The current package of desc_proto.
      desc_proto: The message descriptor to update.
      scope: Enclosing scope of available types.
    RN(RqR�RR�tzipRR�R�RGR�R�R
R�R�(R*RlR�Rdt	main_desctnested_packageR�R�R�R�R�((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR�s"cCs|jr$|j||j|�}nd}|jd�sot|tj�r]tjj|_	qotjj
|_	ntjj|j	�|_|j	tjjks�|j	tjj
kr�||_n|j	tjj
kr�||_n|jtjjkrt|_g|_n�|jd�r&t|_|j	tjjksJ|j	tjjkr_t|j�|_q�|j	tjjkr�|j|_q�|j	tjjkr�|jj�dk|_q�|j	tjj
kr�|jj|jj|_q�|j	tjjkrtj |j�|_q�t!|j�|_n�t|_|j	tjjksY|j	tjjkred|_n�|j	tjjkr�d|_ny|j	tjjkr�t|_nX|j	tjj
kr�|jj"dj|_n*|j	tjjkr�d|_n	d|_|j	|_	dS(	sSets the field's type, cpp_type, message_type and enum_type.

    Args:
      field_proto: Data about the field in proto format.
      field_desc: The descriptor to modiy.
      package: The package the field's container is in.
      scope: Enclosing scope of available types.
    RR�ttrueguiRtN(#t	type_nameR�R	RR4RR5RRRt	TYPE_ENUMtProtoTypeToCppProtoTypeR�t
TYPE_GROUPRFR~RtLABEL_REPEATEDR�R�R�R�tTYPE_DOUBLEt
TYPE_FLOATtfloattTYPE_STRINGt	TYPE_BOOLtlowertvalues_by_nameRCt
TYPE_BYTESRt	CUnescapetintRh(R*R�R�RlRdR:((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR� s^								cCs4tjd|jd|d|jdt|�dd�S(s�Creates a enum value descriptor object from a enum value proto.

    Args:
      value_proto: The proto describing the enum value.
      index: The index of the enum value.

    Returns:
      An initialized EnumValueDescriptor object.
    RR�RCRRN(RtEnumValueDescriptorRRCRR	(R*tvalue_protoR�((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR�fs			c
Cs�|r!dj||jf�}n	|j}gt|j�D]'\}}|j|||||�^q:}	tjd|jd|d|d|	dt|�d|�}
|
|j|<|
S(s�Make a protobuf ServiceDescriptor given a ServiceDescriptorProto.

    Args:
      service_proto: The descriptor_pb2.ServiceDescriptorProto protobuf message.
      service_index: The index of the service in the File.
      scope: Dict mapping short and full symbols to message and enum types.
      package: Optional package name for the new message EnumDescriptor.
      file_desc: The file containing the service descriptor.

    Returns:
      The added descriptor.
    RRR7R�tmethodsRR9(	R�RR�tmethodt_MakeMethodDescriptorRR?RR"(R*R�t
service_indexRdRlRJtservice_nameR�tmethod_protoR�R:((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR�xs	:	
c	Cs�dj||jf�}|j||j|�}|j||j|�}tjd|jd|d|dd	d|d|dt|��S(
s�Creates a method descriptor from a MethodDescriptorProto.

    Args:
      method_proto: The proto describing the method.
      service_name: The name of the containing service.
      package: Optional package name to look up for types.
      scope: Scope containing available types.
      index: Index of the method in the service.

    Returns:
      An initialized MethodDescriptor object.
    RRR7R�tcontaining_servicet
input_typetoutput_typeRN(	R�RR�R�R�RtMethodDescriptorR	R(	R*R�R�RlRdR�R7R�R�((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR��sccssxl|D]d}t|j�|fVx|j|j�D]}|Vq4Wx%|jD]}t|j�|fVqMWqWdS(s�Pulls out all the symbols from descriptor protos.

    Args:
      descriptors: The messages to extract descriptors from.
    Yields:
      A two element tuple of the type name and descriptor object.
    N(RqR7RzR�R�(R*tdescriptorsR:RURs((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRz�s	
	ccsBx;|D]3}|j|�}|Vx|jD]}|Vq+WqWdS(s�Recursively finds dependencies for file protos.

    Args:
      dependencies: The names of the files being depended on.

    Yields:
      Each direct and indirect dependency.
    N(RMRo(R*RoRvtdep_desct
parent_dep((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRu�s


cCsr||krjt|�jd�}xF|rfdj||g�}||krV|}Pq$|jd�q$Wn||S(s?Finds a given type name in the current scope.

    Args:
      package: The package the proto should be located in.
      type_name: The name of the type to be found in the scope.
      scope: Dict mapping short and full symbols to message and enum types.

    Returns:
      The descriptor for the requested type.
    Ri����(RqtsplitR�tpop(R*RlR�Rdt
componentstpossible_match((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyR��s	N('t__name__t
__module__t__doc__t_USE_C_DESCRIPTORSR	RR+R,R3R;R>RARIRKR8RMRZRTR[R_RbReRfRiRjRRRNR}RR�R�R�R�R�R�R�RzRuR�(((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyResJ							*				0										UP&+	 	F		 			cCs|jd�r|Sd|S(NRs.%s(t
startswith(R((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyRq�scCstS(N(t_DEFAULT(((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pytDefault�s(R�t
__author__R%R/RRRR�RRRtobjectRRqRtdefault_poolR�R�(((sC/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyt<module>8s$				����		

Hacked By AnonymousFox1.0, Coded By AnonymousFox