ó
    ¢rÆiƒ  ã                   ó¨   • S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	      SS\S\
S	\
S
\
S\\   S\4S jjr   SS\\   S\S\
S\\   S\S\4S jjrg)z1Contains the Nextgen Pythonic Protobuf JSON APIs.é    )ÚOptionalÚType)ÚMessage)ÚDescriptorPool)Újson_formatNÚmessageÚ$always_print_fields_with_no_presenceÚpreserving_proto_field_nameÚuse_integers_for_enumsÚdescriptor_poolÚreturnc                 ó0   • [         R                  " U UUUS9$ )ae  Converts protobuf message to a dictionary.

When the dictionary is encoded to JSON, it conforms to ProtoJSON spec.

Args:
  message: The protocol buffers message instance to serialize.
  always_print_fields_with_no_presence: If True, fields without presence
    (implicit presence scalars, repeated fields, and map fields) will always
    be serialized. Any field that supports presence is not affected by this
    option (including singular message fields and oneof fields).
  preserving_proto_field_name: If True, use the original proto field names as
    defined in the .proto file. If False, convert the field names to
    lowerCamelCase.
  use_integers_for_enums: If true, print integers instead of enum names.
  descriptor_pool: A Descriptor Pool for resolving types. If None use the
    default.

Returns:
  A dict representation of the protocol buffer message.
)r	   r
   r   )r   ÚMessageToDict)r   r	   r
   r   r   s        Ú`/home/kim/smarthome/piper_models/venv/lib/python3.13/site-packages/google/protobuf/proto_json.pyÚ	serializer      s#   € ô6 
×	"Ò	"ØØ+OØ"=Ø3ñ	
ð ó    Úmessage_classÚjs_dictÚignore_unknown_fieldsÚmax_recursion_depthc                 óD   • U " 5       n[         R                  " UUUUUS9  U$ )a  Parses a JSON dictionary representation into a message.

Args:
  message_class: The message meta class.
  js_dict: Dict representation of a JSON message.
  ignore_unknown_fields: If True, do not raise errors for unknown fields.
  descriptor_pool: A Descriptor Pool for resolving types. If None use the
    default.
  max_recursion_depth: max recursion depth of JSON message to be deserialized.
    JSON messages over this depth will fail to be deserialized. Default value
    is 100.

Returns:
  A new message passed from json_dict.
)r   r   r   r   r   )r   Ú	ParseDict)r   r   r   r   r   Únew_messages         r   Úparser   2   s0   € ñ, “€+Ü×ÒØØØ1Ø%Ø-òð 
Ðr   )FFFN)FNéd   )Ú__doc__Útypingr   r   Úgoogle.protobuf.messager   Úgoogle.protobuf.descriptor_poolr   Úgoogle.protobufr   ÚboolÚdictr   Úintr   © r   r   Ú<module>r%      s¸   ðñ 8ç !å +Ý :Ý 'ð 05Ø&+Ø!&Ø.2ñ Øð à*.ð ð "&ð ð !ð	 ð
 ˜nÑ-ð ð 
õ ðJ !&Ø.2Ø ñØ˜‘=ðàðð  ðð ˜nÑ-ð	ð
 ðð ör   