django_socio_grpc.protobuf.json_format
Module Contents
Functions
Converts a protobuf message to a dictionary.
Uses the default |
|
We patch the json_format module to support UUIDs in ParseDict. By default, having a UUID in a message will raise a TypeError. |
Data
API
- django_socio_grpc.protobuf.json_format.message_to_dict(message, **kwargs)
Converts a protobuf message to a dictionary. Uses the default
google.protobuf.json_format.MessageToDictfunction. Adds None values for optional fields that are not set.
- django_socio_grpc.protobuf.json_format.parse_dict(js_dict, message, **kwargs)
- django_socio_grpc.protobuf.json_format._ConvertScalarFieldValue(value, *args, **kwargs)
We patch the json_format module to support UUIDs in ParseDict. By default, having a UUID in a message will raise a TypeError.
- django_socio_grpc.protobuf.json_format._BaseConvertScalarFieldValue
None