|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
| class | _NestedDescriptorBase |
| class | Descriptor |
| class | DescriptorBase |
| class | DescriptorMetaclass |
| class | EnumDescriptor |
| class | EnumValueDescriptor |
| class | Error |
| class | FieldDescriptor |
| class | FileDescriptor |
| class | MethodDescriptor |
| class | OneofDescriptor |
| class | ServiceDescriptor |
| class | TypeTransformationError |
Functions | |
| def | MakeDescriptor (desc_proto, package='', build_file_if_cpp=True, syntax=None) |
Variables | |
| DescriptorMetaclass = type | |
| def google.protobuf.descriptor.MakeDescriptor | ( | desc_proto, | |
package = '', |
|||
build_file_if_cpp = True, |
|||
syntax = None |
|||
| ) |
Make a protobuf Descriptor given a DescriptorProto protobuf.
Handles nested descriptors. Note that this is limited to the scope of defining
a message inside of another message. Composite fields can currently only be
resolved if the message is defined in the same scope as the field.
Args:
desc_proto: The descriptor_pb2.DescriptorProto protobuf message.
package: Optional package name for the new message Descriptor (string).
build_file_if_cpp: Update the C++ descriptor pool if api matches.
Set to False on recursion, so no duplicates are created.
syntax: The syntax/semantics that should be used. Set to "proto3" to get
proto3 field presence semantics.
Returns:
A Descriptor for protobuf messages.
1.8.13