s  :

    

The provided descriptor.

Return type  :

    

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

` RegisterFileDescriptor ` (  _file_descriptor_ )  ¶

    

Registers the given file descriptor in the local database.

Parameters  :

    

**file_descriptor** ( [ _FileDescriptor_
](descriptor.html#google.protobuf.descriptor.FileDescriptor
"google.protobuf.descriptor.FileDescriptor") ) – The file descriptor to
register.

` RegisterMessage ` (  _message_ )  ¶

    

Registers the given message type in the local database.

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

Parameters  :

    

**message** – A [ ` google.protobuf.message.Message  `
](message.html#google.protobuf.message.Message
"google.protobuf.message.Message") subclass (or instance); its descriptor will
be registered.

Returns  :

    

The provided message.

` RegisterMessageDescriptor ` (  _message_descriptor_ )  ¶

    

Registers the given message descriptor in the local database.

Parameters  :

    

**message_descriptor** ( [ _Descriptor_
](descriptor.html#google.protobuf.descriptor.Descriptor
"google.protobuf.descriptor.Descriptor") ) – the message descriptor to add.

` RegisterServiceDescriptor ` (  _service_descriptor_ )  ¶

    

Registers the given service descriptor in the local database.

Parameters  :

    

**service_descriptor** ( [ _ServiceDescriptor_
](descriptor.html#google.protobuf.descriptor.ServiceDescriptor
"google.protobuf.descriptor.ServiceDescriptor") ) – the service descriptor to
register.

###  [ 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 ](descriptor_pool.html)
  * [ 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 
  * [ 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.struct_pb2 ](struct_pb2.html "previous chapter")
    * Next: [ google.protobuf.text_encoding ](text_encoding.html "next chapter")

###  This Page

  * [ Show Source ](../../_sources/google/protobuf/symbol_database.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/symbol_database.rst.txt)