Functions | |
def | MakeClass (descriptor) |
def | ParseMessage (descriptor, byte_str) |
Variables | |
string | __author__ = 'robinson@google.com (Will Robinson)' |
GeneratedProtocolMessageType = message_factory._GENERATED_PROTOCOL_MESSAGE_TYPE | |
dictionary | MESSAGE_CLASS_CACHE = {} |
def google.protobuf.reflection.MakeClass | ( | descriptor | ) |
Construct a class object for a protobuf described by descriptor. DEPRECATED: use MessageFactory.GetPrototype() instead. Args: descriptor: A descriptor.Descriptor object describing the protobuf. Returns: The Message class object described by the descriptor.
Definition at line 82 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/reflection.py.
def google.protobuf.reflection.ParseMessage | ( | descriptor, | |
byte_str | |||
) |
Generate a new Message instance from this Descriptor and a byte string. DEPRECATED: ParseMessage is deprecated because it is using MakeClass(). Please use MessageFactory.GetPrototype() instead. Args: descriptor: Protobuf Descriptor object byte_str: Serialized protocol buffer byte string Returns: Newly created protobuf Message object.
Definition at line 62 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/reflection.py.
|
private |
Definition at line 48 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/reflection.py.
google.protobuf.reflection.GeneratedProtocolMessageType = message_factory._GENERATED_PROTOCOL_MESSAGE_TYPE |
Definition at line 56 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/reflection.py.
dictionary google.protobuf.reflection.MESSAGE_CLASS_CACHE = {} |
Definition at line 58 of file third_party/bloaty/third_party/protobuf/python/google/protobuf/reflection.py.