webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self) |
def | Add (self, file_desc_proto) |
def | FindFileByName (self, name) |
def | FindFileContainingSymbol (self, symbol) |
A container accepting FileDescriptorProtos and maps DescriptorProtos.
def google.protobuf.descriptor_database.DescriptorDatabase.__init__ | ( | self | ) |
def google.protobuf.descriptor_database.DescriptorDatabase.Add | ( | self, | |
file_desc_proto | |||
) |
Adds the FileDescriptorProto and its types to this database. Args: file_desc_proto: The FileDescriptorProto to add. Raises: DescriptorDatabaseException: if an attempt is made to add a proto with the same name but different definition than an exisiting proto in the database.
def google.protobuf.descriptor_database.DescriptorDatabase.FindFileByName | ( | self, | |
name | |||
) |
Finds the file descriptor proto by file name. Typically the file name is a relative path ending to a .proto file. The proto with the given name will have to have been added to this database using the Add method or else an error will be raised. Args: name: The file name to find. Returns: The file descriptor proto matching the name. Raises: KeyError if no file by the given name was added.
def google.protobuf.descriptor_database.DescriptorDatabase.FindFileContainingSymbol | ( | self, | |
symbol | |||
) |
Finds the file descriptor proto containing the specified symbol. The symbol should be a fully qualified name including the file descriptor's package and any containing messages. Some examples: 'some.package.name.Message' 'some.package.name.Message.NestedEnum' The file descriptor proto containing the specified symbol must be added to this database using the Add method or else an error will be raised. Args: symbol: The fully qualified symbol name. Returns: The file descriptor proto containing the symbol. Raises: KeyError if no file contains the specified symbol.