Factory for creating Proto2 messages from descriptors in a pool.
Definition at line 56 of file bloaty/third_party/protobuf/python/google/protobuf/message_factory.py.
◆ __init__() [1/2]
def google.protobuf.message_factory.MessageFactory.__init__ |
( |
|
self, |
|
|
|
pool = None |
|
) |
| |
◆ __init__() [2/2]
def google.protobuf.message_factory.MessageFactory.__init__ |
( |
|
self, |
|
|
|
pool = None |
|
) |
| |
◆ CreatePrototype()
def google.protobuf.message_factory.MessageFactory.CreatePrototype |
( |
|
self, |
|
|
|
descriptor |
|
) |
| |
Builds a proto2 message class based on the passed in descriptor.
Don't call this function directly, it always creates a new class. Call
GetPrototype() instead. This method is meant to be overridden in subblasses
to perform additional operations on the newly constructed class.
Args:
descriptor: The descriptor to build from.
Returns:
A class describing the passed in descriptor.
Definition at line 87 of file protobuf/python/google/protobuf/message_factory.py.
◆ GetMessages() [1/2]
def google.protobuf.message_factory.MessageFactory.GetMessages |
( |
|
self, |
|
|
|
files |
|
) |
| |
◆ GetMessages() [2/2]
def google.protobuf.message_factory.MessageFactory.GetMessages |
( |
|
self, |
|
|
|
files |
|
) |
| |
◆ GetPrototype() [1/2]
def google.protobuf.message_factory.MessageFactory.GetPrototype |
( |
|
self, |
|
|
|
descriptor |
|
) |
| |
Obtains 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.
Definition at line 66 of file protobuf/python/google/protobuf/message_factory.py.
◆ GetPrototype() [2/2]
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.
Definition at line 66 of file bloaty/third_party/protobuf/python/google/protobuf/message_factory.py.
◆ _classes
google.protobuf.message_factory.MessageFactory._classes |
|
private |
◆ pool
google.protobuf.message_factory.MessageFactory.pool |
The documentation for this class was generated from the following file: