)") – if the message cannot be found in the pool.

` FindMethodByName ` (  _full_name_ )  ¶

    

Loads the named service method descriptor from the pool.

Parameters  :

    

**full_name** ( [ _str_ ](https://docs.python.org/3/library/stdtypes.html#str
"\(in Python v3.10\)") ) – The full name of the method descriptor to load.

Returns  :

    

The method descriptor for the service method.

Return type  :

    

[ MethodDescriptor
](descriptor.html#google.protobuf.descriptor.MethodDescriptor
"google.protobuf.descriptor.MethodDescriptor")

Raises  :

    

[ **KeyError** ](https://docs.python.org/3/library/exceptions.html#KeyError
"\(in Python v3.10\)") – if the method cannot be found in the pool.

` FindOneofByName ` (  _full_name_ )  ¶

    

Loads the named oneof descriptor from the pool.

Parameters  :

    

**full_name** ( [ _str_ ](https://docs.python.org/3/library/stdtypes.html#str
"\(in Python v3.10\)") ) – The full name of the oneof descriptor to load.

Returns  :

    

The oneof descriptor for the named oneof.

Return type  :

    

[ OneofDescriptor ](descriptor.html#google.protobuf.descriptor.OneofDescriptor
"google.protobuf.descriptor.OneofDescriptor")

Raises  :

    

[ **KeyError** ](https://docs.python.org/3/library/exceptions.html#KeyError
"\(in Python v3.10\)") – if the oneof cannot be found in the pool.

` FindServiceByName ` (  _full_name_ )  ¶

    

Loads the named service descriptor from the pool.

Parameters  :

    

**full_name** ( [ _str_ ](https://docs.python.org/3/library/stdtypes.html#str
"\(in Python v3.10\)") ) – The full name of the service descriptor to load.

Returns  :

    

The service descriptor for the named service.

Return type  :

    

[ ServiceDescriptor
](descriptor.html#google.protobuf.descriptor.ServiceDescriptor
"google.protobuf.descriptor.ServiceDescriptor")

Raises  :

    

[ **KeyError** ](https://docs.python.org/3/library/exceptions.html#KeyError
"\(in Python v3.10\)") – if the service cannot be found in the pool.

###  [ Table of Contents ](../../index.html)

  * [ google.protobuf ](../protobuf.html)
  * [ google.protobuf.any_pb2 ](any_pb2.html)
  * [ google.protobuf.descriptor ](descriptor.html)
  * [ google.protobuf.descriptor_database ](descriptor_database.html)
  * [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html)
  * google.protobuf.descriptor_pool 
  * [ google.protobuf.duration_pb2 ](duration_pb2.html)
  * [ google.protobuf.empty_pb2 ](empty_pb2.html)
  * [ google.protobuf.field_mask_pb2 ](field_mask_pb2.html)
  * [ google.protobuf.internal.containers ](internal/containers.html)
  * [ google.protobuf.json_format ](json_format.html)
  * [ google.protobuf.message ](message.html)
  * [ google.protobuf.message_factory ](message_factory.html)
  * [ google.protobuf.proto_builder ](proto_builder.html)
  * [ google.protobuf.reflection ](reflection.html)
  * [ google.protobuf.service ](service.html)
  * [ google.protobuf.service_reflection ](service_reflection.html)
  * [ google.protobuf.struct_pb2 ](struct_pb2.html)
  * [ google.protobuf.symbol_database ](symbol_database.html)
  * [ google.protobuf.text_encoding ](text_encoding.html)
  * [ google.protobuf.text_format ](text_format.html)
  * [ google.protobuf.timestamp_pb2 ](timestamp_pb2.html)
  * [ google.protobuf.type_pb2 ](type_pb2.html)
  * [ google.protobuf.unknown_fields ](unknown_fields.html)
  * [ google.protobuf.wrappers_pb2 ](wrappers_pb2.html)

###  Related Topics

  * [ Documentation overview ](../../index.html)
    * Previous: [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html "previous chapter")
    * Next: [ google.protobuf.duration_pb2 ](duration_pb2.html "next chapter")

###  This Page

  * [ Show Source ](../../_sources/google/protobuf/descriptor_pool.rst.txt)

©2008, Google LLC. | Powered by [ Sphinx 2.3.1 ](http://sphinx-doc.org/) & [ Alabaster 0.7.12 ](https://github.com/bitprophet/alabaster) | [ Page source ](../../_sources/google/protobuf/descriptor_pool.rst.txt)