protobuf/python/google
Jie Luo 6c91de9de9 Nextgen Proto Pythonic API: “Add-on” proto for JSON serialize/parse
- add google.protobuf.proto_json module
- wrap json_format's MessageToDict/ParseDict to the new module:

def serialize(
    message: Message,
    always_print_fields_with_no_presence: bool=False,
    preserving_proto_field_name: bool=False,
    use_integers_for_enums: bool=False,
    descriptor_pool: Optional[DescriptorPool]=None,
    float_precision: int=None,
) -> dict

def parse(
    message_class: Type[Message],
    js_dict: dict,
    ignore_unknown_fields: bool=False,
    descriptor_pool: Optional[DescriptorPool]=None,
    max_recursion_depth: int=100
) -> Message

PiperOrigin-RevId: 634490919
2024-05-16 12:25:01 -07:00
..
protobuf Nextgen Proto Pythonic API: “Add-on” proto for JSON serialize/parse 2024-05-16 12:25:01 -07:00
__init__.py Set execute bit on files if and only if they begin with (#!). (#7347) 2020-04-01 15:28:25 -07:00