Functions | Variables
google.protobuf.reflection Namespace Reference

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 = {}
 

Function Documentation

◆ MakeClass()

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.

◆ ParseMessage()

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.

Variable Documentation

◆ __author__

string google.protobuf.reflection.__author__ = 'robinson@google.com (Will Robinson)'
private

◆ GeneratedProtocolMessageType

google.protobuf.reflection.GeneratedProtocolMessageType = message_factory._GENERATED_PROTOCOL_MESSAGE_TYPE

◆ MESSAGE_CLASS_CACHE

dictionary google.protobuf.reflection.MESSAGE_CLASS_CACHE = {}


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:28