Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/google/protobuf/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/google/protobuf/symbol_database.pyo
�
���hc@sadZddlmZddlmZdejfd��YZedej��Zd�ZdS(	sRA database of Python protocol buffer generated symbols.

SymbolDatabase is the MessageFactory for messages generated at compile time,
and makes it easy to create new instances of a registered type, given only the
type's protocol buffer symbol name.

Example usage:

  db = symbol_database.SymbolDatabase()

  # Register symbols of interest, from one or multiple files.
  db.RegisterFileDescriptor(my_proto_pb2.DESCRIPTOR)
  db.RegisterMessage(my_proto_pb2.MyMessage)
  db.RegisterEnumDescriptor(my_proto_pb2.MyEnum.DESCRIPTOR)

  # The database can be used as a MessageFactory, to generate types based on
  # their name:
  types = db.GetMessages(['my_proto.proto'])
  my_message_instance = types['MyMessage']()

  # The database's underlying descriptor pool can be queried, so it's not
  # necessary to know a type's filename to be able to generate it:
  filename = db.pool.FindFileContainingSymbol('MyMessage')
  my_message_instance = db.GetMessages([filename])['MyMessage']()

  # This functionality is also provided directly via a convenience method:
  my_message_instance = db.GetSymbol('MyMessage')()
i����(tdescriptor_pool(tmessage_factorytSymbolDatabasecBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(s'A database of Python generated symbols.cCs'|j}||j|<|j|�|S(s�Registers the given message type in the local database.

    Calls to GetSymbol() and GetMessages() will return messages registered here.

    Args:
      message: a message.Message, to be registered.

    Returns:
      The provided message.
    (t
DESCRIPTORt_classestRegisterMessageDescriptor(tselftmessagetdesc((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytRegisterMessageDs	

cCs|jj|�dS(s�Registers the given message descriptor in the local database.

    Args:
      message_descriptor: a descriptor.MessageDescriptor.
    N(tpoolt
AddDescriptor(Rtmessage_descriptor((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pyRUscCs|jj|�|S(s�Registers the given enum descriptor in the local database.

    Args:
      enum_descriptor: a descriptor.EnumDescriptor.

    Returns:
      The provided descriptor.
    (R
tAddEnumDescriptor(Rtenum_descriptor((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytRegisterEnumDescriptor]s	cCs|jj|�dS(s�Registers the given service descriptor in the local database.

    Args:
      service_descriptor: a descriptor.ServiceDescriptor.

    Returns:
      The provided descriptor.
    N(R
tAddServiceDescriptor(Rtservice_descriptor((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytRegisterServiceDescriptoris	cCs|jj|�dS(s�Registers the given file descriptor in the local database.

    Args:
      file_descriptor: a descriptor.FileDescriptor.

    Returns:
      The provided descriptor.
    N(R
tAddFileDescriptor(Rtfile_descriptor((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytRegisterFileDescriptorts	cCs|j|jj|�S(sxTries to find a symbol in the local database.

    Currently, this method only returns message.Message instances, however, if
    may be extended in future to support other symbol types.

    Args:
      symbol: A str, a protocol buffer symbol.

    Returns:
      A Python class corresponding to the symbol.

    Raises:
      KeyError: if the symbol could not be found.
    (RR
tFindMessageTypeByName(Rtsymbol((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pyt	GetSymbolscs��fd��i}x}|D]u}|jj|�}xZ|jj�D]I}x@�|�D]2}y|j|||j<WqWtk
r�qWXqWWqDWqW|S(sGets all registered messages from a specified file.

    Only messages already created and registered will be returned; (this is the
    case for imported _pb2 modules)
    But unlike MessageFactory, this version also returns already defined nested
    messages, but does not register any message extensions.

    Args:
      files: The file names to extract messages from.

    Returns:
      A dictionary mapping proto names to the message classes.

    Raises:
      KeyError: if a file could not be found.
    c3s9|Vx-|jD]"}x�|�D]}|Vq"WqWdS(sCWalk a message Descriptor and recursively yields all message names.N(tnested_types(Rtmsg_desctnested_desc(t_GetAllMessages(sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pyR�s(R
tFindFileByNametmessage_types_by_nametvaluesRt	full_nametKeyError(Rtfilestresultt	file_namet	file_descRR((RsC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytGetMessages�s

(
t__name__t
__module__t__doc__R	RRRRRR&(((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pyRAs						R
cCstS(s#Returns the default SymbolDatabase.(t_DEFAULT(((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pytDefault�sN(R)tgoogle.protobufRRtMessageFactoryRR+R*(((sC/usr/lib/python2.7/site-packages/google/protobuf/symbol_database.pyt<module>:s
w
Name
Size
Permissions
Options
compiler
--
drwxr-xr-x
internal
--
drwxr-xr-x
pyext
--
drwxr-xr-x
util
--
drwxr-xr-x
__init__.py
1.846 KB
-rw-r--r--
__init__.pyc
0.399 KB
-rw-r--r--
__init__.pyo
0.399 KB
-rw-r--r--
any_pb2.py
2.623 KB
-rw-r--r--
any_pb2.pyc
2.76 KB
-rw-r--r--
any_pb2.pyo
2.76 KB
-rw-r--r--
any_test_pb2.py
3.13 KB
-rw-r--r--
any_test_pb2.pyc
2.925 KB
-rw-r--r--
any_test_pb2.pyo
2.925 KB
-rw-r--r--
api_pb2.py
10.64 KB
-rw-r--r--
api_pb2.pyc
6.629 KB
-rw-r--r--
api_pb2.pyo
6.629 KB
-rw-r--r--
descriptor.py
38.677 KB
-rw-r--r--
descriptor.pyc
36.167 KB
-rw-r--r--
descriptor.pyo
36.167 KB
-rw-r--r--
descriptor_database.py
5.793 KB
-rw-r--r--
descriptor_database.pyc
4.868 KB
-rw-r--r--
descriptor_database.pyo
4.868 KB
-rw-r--r--
descriptor_pb2.py
87.126 KB
-rw-r--r--
descriptor_pb2.pyc
42.318 KB
-rw-r--r--
descriptor_pb2.pyo
42.318 KB
-rw-r--r--
descriptor_pool.py
35.226 KB
-rw-r--r--
descriptor_pool.pyc
29.594 KB
-rw-r--r--
descriptor_pool.pyo
29.563 KB
-rw-r--r--
duration_pb2.py
2.715 KB
-rw-r--r--
duration_pb2.pyc
2.79 KB
-rw-r--r--
duration_pb2.pyo
2.79 KB
-rw-r--r--
empty_pb2.py
1.905 KB
-rw-r--r--
empty_pb2.pyc
2.204 KB
-rw-r--r--
empty_pb2.pyo
2.204 KB
-rw-r--r--
field_mask_pb2.py
2.365 KB
-rw-r--r--
field_mask_pb2.pyc
2.647 KB
-rw-r--r--
field_mask_pb2.pyo
2.647 KB
-rw-r--r--
json_format.py
28.519 KB
-rw-r--r--
json_format.pyc
24.207 KB
-rw-r--r--
json_format.pyo
24.207 KB
-rw-r--r--
map_proto2_unittest_pb2.py
54.587 KB
-rw-r--r--
map_proto2_unittest_pb2.pyc
25.525 KB
-rw-r--r--
map_proto2_unittest_pb2.pyo
25.525 KB
-rw-r--r--
map_unittest_pb2.py
124.437 KB
-rw-r--r--
map_unittest_pb2.pyc
54.627 KB
-rw-r--r--
map_unittest_pb2.pyo
54.627 KB
-rw-r--r--
message.py
11.186 KB
-rw-r--r--
message.pyc
12.106 KB
-rw-r--r--
message.pyo
12.106 KB
-rw-r--r--
message_factory.py
6.132 KB
-rw-r--r--
message_factory.pyc
4.575 KB
-rw-r--r--
message_factory.pyo
4.575 KB
-rw-r--r--
proto_builder.py
5.08 KB
-rw-r--r--
proto_builder.pyc
3.293 KB
-rw-r--r--
proto_builder.pyo
3.293 KB
-rw-r--r--
reflection.py
4.455 KB
-rw-r--r--
reflection.pyc
2.982 KB
-rw-r--r--
reflection.pyo
2.982 KB
-rw-r--r--
service.py
8.93 KB
-rw-r--r--
service.pyc
9.399 KB
-rw-r--r--
service.pyo
9.399 KB
-rw-r--r--
service_reflection.py
10.765 KB
-rw-r--r--
service_reflection.pyc
11.05 KB
-rw-r--r--
service_reflection.pyo
11.05 KB
-rw-r--r--
source_context_pb2.py
2.478 KB
-rw-r--r--
source_context_pb2.pyc
2.766 KB
-rw-r--r--
source_context_pb2.pyo
2.766 KB
-rw-r--r--
struct_pb2.py
10.645 KB
-rw-r--r--
struct_pb2.pyc
6.686 KB
-rw-r--r--
struct_pb2.pyo
6.686 KB
-rw-r--r--
symbol_database.py
6.272 KB
-rw-r--r--
symbol_database.pyc
5.981 KB
-rw-r--r--
symbol_database.pyo
5.981 KB
-rw-r--r--
test_messages_proto2_pb2.py
105.199 KB
-rw-r--r--
test_messages_proto2_pb2.pyc
51.305 KB
-rw-r--r--
test_messages_proto2_pb2.pyo
51.305 KB
-rw-r--r--
test_messages_proto3_pb2.py
115.046 KB
-rw-r--r--
test_messages_proto3_pb2.pyc
57.013 KB
-rw-r--r--
test_messages_proto3_pb2.pyo
57.013 KB
-rw-r--r--
text_encoding.py
4.509 KB
-rw-r--r--
text_encoding.pyc
3.258 KB
-rw-r--r--
text_encoding.pyo
3.258 KB
-rw-r--r--
text_format.py
49.694 KB
-rw-r--r--
text_format.pyc
46.595 KB
-rw-r--r--
text_format.pyo
46.56 KB
-rw-r--r--
timestamp_pb2.py
2.734 KB
-rw-r--r--
timestamp_pb2.pyc
2.806 KB
-rw-r--r--
timestamp_pb2.pyo
2.806 KB
-rw-r--r--
type_pb2.py
21.347 KB
-rw-r--r--
type_pb2.pyc
11.964 KB
-rw-r--r--
type_pb2.pyo
11.964 KB
-rw-r--r--
unittest_arena_pb2.py
4.401 KB
-rw-r--r--
unittest_arena_pb2.pyc
3.64 KB
-rw-r--r--
unittest_arena_pb2.pyo
3.64 KB
-rw-r--r--
unittest_custom_options_pb2.py
88.182 KB
-rw-r--r--
unittest_custom_options_pb2.pyc
40.639 KB
-rw-r--r--
unittest_custom_options_pb2.pyo
40.639 KB
-rw-r--r--
unittest_import_pb2.py
4.493 KB
-rw-r--r--
unittest_import_pb2.pyc
3.993 KB
-rw-r--r--
unittest_import_pb2.pyo
3.993 KB
-rw-r--r--
unittest_import_public_pb2.py
2.287 KB
-rw-r--r--
unittest_import_public_pb2.pyc
2.564 KB
-rw-r--r--
unittest_import_public_pb2.pyo
2.564 KB
-rw-r--r--
unittest_mset_pb2.py
9.726 KB
-rw-r--r--
unittest_mset_pb2.pyc
5.984 KB
-rw-r--r--
unittest_mset_pb2.pyo
5.984 KB
-rw-r--r--
unittest_mset_wire_format_pb2.py
3.764 KB
-rw-r--r--
unittest_mset_wire_format_pb2.pyc
3.271 KB
-rw-r--r--
unittest_mset_wire_format_pb2.pyo
3.271 KB
-rw-r--r--
unittest_no_arena_import_pb2.py
2.181 KB
-rw-r--r--
unittest_no_arena_import_pb2.pyc
2.426 KB
-rw-r--r--
unittest_no_arena_import_pb2.pyo
2.426 KB
-rw-r--r--
unittest_no_arena_pb2.py
51.167 KB
-rw-r--r--
unittest_no_arena_pb2.pyc
27.355 KB
-rw-r--r--
unittest_no_arena_pb2.pyo
27.355 KB
-rw-r--r--
unittest_no_generic_services_pb2.py
4.146 KB
-rw-r--r--
unittest_no_generic_services_pb2.pyc
4.016 KB
-rw-r--r--
unittest_no_generic_services_pb2.pyo
4.016 KB
-rw-r--r--
unittest_pb2.py
335.223 KB
-rw-r--r--
unittest_pb2.pyc
159.03 KB
-rw-r--r--
unittest_pb2.pyo
159.03 KB
-rw-r--r--
unittest_proto3_arena_pb2.py
59.157 KB
-rw-r--r--
unittest_proto3_arena_pb2.pyc
29.432 KB
-rw-r--r--
unittest_proto3_arena_pb2.pyo
29.432 KB
-rw-r--r--
wrappers_pb2.py
11.261 KB
-rw-r--r--
wrappers_pb2.pyc
6.485 KB
-rw-r--r--
wrappers_pb2.pyo
6.485 KB
-rw-r--r--