webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, pool=None) |
def | GetPrototype (self, descriptor) |
def | GetMessages (self, files) |
Public Attributes | |
pool | |
Factory for creating Proto2 messages from descriptors in a pool.
def google.protobuf.message_factory.MessageFactory.__init__ | ( | self, | |
pool = None |
|||
) |
Initializes a new factory.
def google.protobuf.message_factory.MessageFactory.GetMessages | ( | self, | |
files | |||
) |
Gets all the messages from a specified file. This will find and resolve dependencies, failing if the descriptor pool cannot satisfy them. Args: files: The file names to extract messages from. Returns: A dictionary mapping proto names to the message classes. This will include any dependent messages as well as any messages defined in the same file as a specified message.
def google.protobuf.message_factory.MessageFactory.GetPrototype | ( | self, | |
descriptor | |||
) |
Builds a proto2 message class based on the passed in descriptor. Passing a descriptor with a fully qualified name matching a previous invocation will cause the same class to be returned. Args: descriptor: The descriptor to build from. Returns: A class describing the passed in descriptor.
google.protobuf.message_factory.MessageFactory.pool |