| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
DescriptorBase
Descriptors 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.
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
_C_DESCRIPTOR_CLASS = ()
|
|||
|
|||
|
Inherited from |
|||
|
|||
Initialize 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.
|
Sets the descriptor's options This function is used in generated proto2 files to update descriptor options. It must not be used outside proto2. |
Retrieves descriptor options. This method returns the options set or creates the default options for the descriptor. |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 6 13:21:35 2019 | http://epydoc.sourceforge.net |