protobuf 6.32.0rc1__tar.gz → 6.32.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of protobuf might be problematic. Click here for more details.
- {protobuf-6.32.0rc1/protobuf.egg-info → protobuf-6.32.1}/PKG-INFO +1 -1
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/__init__.py +1 -1
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/any_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/api_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/compiler/plugin_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/duration_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/empty_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/field_mask_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/python_edition_defaults.py +1 -1
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/type_checkers.py +36 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/json_format.py +6 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/runtime_version.py +2 -2
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/source_context_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/struct_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/text_format.py +10 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/timestamp_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/type_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/wrappers_pb2.py +3 -3
- {protobuf-6.32.0rc1 → protobuf-6.32.1/protobuf.egg-info}/PKG-INFO +1 -1
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/convert.c +37 -14
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/upb_edition_defaults.h +1 -1
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/LICENSE +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/MANIFEST.in +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/README.md +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/any.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/compiler/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb_minitable.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb_minitable.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upbdefs.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upbdefs.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_database.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_pool.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/duration.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/api_implementation.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/builder.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/containers.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/decoder.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/encoder.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/enum_type_wrapper.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/extension_dict.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/field_mask.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/message_listener.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/python_message.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/testing_refleaks.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/well_known_types.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/wire_format.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/message.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/message_factory.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_builder.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_json.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_text.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/pyext/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/pyext/cpp_message.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/reflection.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/service_reflection.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/symbol_database.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/testdata/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/text_encoding.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/timestamp.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/unknown_fields.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/util/__init__.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/SOURCES.txt +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/dependency_links.txt +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/top_level.txt +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/convert.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_containers.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_containers.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_pool.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_pool.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/extension_dict.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/extension_dict.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/map.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/map.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/protobuf.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/protobuf.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/python_api.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/repeated.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/repeated.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/unknown_fields.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/unknown_fields.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/setup.cfg +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/setup.py +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/descriptor_constants.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/internal/endian.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/internal/log2.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/status.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/status.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/string_view.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/upcast.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/generated_code_support.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/common.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/common.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/int_table.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/str_table.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/atoi.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/atoi.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/round_trip.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/round_trip.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/strtod.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/strtod.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/unicode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/unicode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/alloc.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/alloc.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/arena.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/arena.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/internal/arena.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors_split64.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/array.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/array.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compare.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compare.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compat.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compat.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/copy.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/copy.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/accessors.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/array.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/compare_unknown.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/compare_unknown.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/extension.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/extension.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/iterator.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/iterator.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map_entry.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map_sorter.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/tagged_ptr.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/types.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map_gencode_util.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map_sorter.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/merge.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/merge.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/promote.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/promote.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/tagged_ptr.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/value.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/build_enum.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/build_enum.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/decode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/decode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/base92.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/base92.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/decoder.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/encode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/encode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/modifiers.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/wire_constants.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/link.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/link.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/compat.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/compat.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/enum.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension_registry.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension_registry.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/field.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/file.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/enum.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/extension.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/field.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/file.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/size_log2.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/sub.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/sub.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/atomic.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/def.inc +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/sanitizers.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/undef.inc +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/vsnprintf_compat.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/common.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_pool.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_pool.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_type.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_type.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/desc_state.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/descriptor_bootstrap.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_reserved_range.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_reserved_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_value_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_value_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/extension_range.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/extension_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/field_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/field_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/file_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/file_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_builder.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_builder.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_pool.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/desc_state.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_reserved_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_value_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/extension_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/field_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/file_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/message_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/message_reserved_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/method_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/oneof_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/service_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/strdup2.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/strdup2.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_reserved_range.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_reserved_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/method_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/method_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/oneof_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/oneof_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/service_def.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/service_def.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/debug_string.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/debug_string.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/encode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/encode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/internal/encode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/internal/encode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/options.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/def_to_proto.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/def_to_proto.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/required_fields.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/required_fields.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/byte_size.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/byte_size.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/decode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/decode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/encode.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/encode.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/eps_copy_input_stream.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/eps_copy_input_stream.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/constants.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/decoder.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/decoder.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/reader.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/reader.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/reader.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/types.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/writer.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range.c +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range.h +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range_neon.inc +0 -0
- {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range_sse.inc +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/any.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/any.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/api.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/api.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/compiler/plugin.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/compiler/plugin.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/descriptor.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/descriptor.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/duration.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/duration.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/empty.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/empty.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/field_mask.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/field_mask.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
This file contains the serialized FeatureSetDefaults object corresponding to
|
|
3
3
|
the Pure Python runtime. This is used for feature resolution under Editions.
|
|
4
4
|
"""
|
|
5
|
-
_PROTOBUF_INTERNAL_PYTHON_EDITION_DEFAULTS = b"\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001 \346\007(\
|
|
5
|
+
_PROTOBUF_INTERNAL_PYTHON_EDITION_DEFAULTS = b"\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001\n\027\030\351\007\"\020\010\001\020\001\030\001 \002(\0010\0018\001@\002*\000 \346\007(\351\007"
|
|
@@ -22,16 +22,20 @@ TYPE_TO_DESERIALIZE_METHOD: A dictionary with field types and deserialization
|
|
|
22
22
|
|
|
23
23
|
__author__ = 'robinson@google.com (Will Robinson)'
|
|
24
24
|
|
|
25
|
-
import struct
|
|
26
25
|
import numbers
|
|
26
|
+
import struct
|
|
27
|
+
import warnings
|
|
27
28
|
|
|
29
|
+
from google.protobuf import descriptor
|
|
28
30
|
from google.protobuf.internal import decoder
|
|
29
31
|
from google.protobuf.internal import encoder
|
|
30
32
|
from google.protobuf.internal import wire_format
|
|
31
|
-
from google.protobuf import descriptor
|
|
32
33
|
|
|
33
34
|
_FieldDescriptor = descriptor.FieldDescriptor
|
|
34
|
-
|
|
35
|
+
# TODO: Remove this warning count after 34.0
|
|
36
|
+
# Assign bool to int/enum warnings will print 100 times at most which should
|
|
37
|
+
# be enough for users to notice and do not cause timeout.
|
|
38
|
+
_BoolWarningCount = 100
|
|
35
39
|
|
|
36
40
|
def TruncateToFourByteFloat(original):
|
|
37
41
|
return struct.unpack('<f', struct.pack('<f', original))[0]
|
|
@@ -141,6 +145,21 @@ class IntValueChecker(object):
|
|
|
141
145
|
"""Checker used for integer fields. Performs type-check and range check."""
|
|
142
146
|
|
|
143
147
|
def CheckValue(self, proposed_value):
|
|
148
|
+
global _BoolWarningCount
|
|
149
|
+
if type(proposed_value) == bool and _BoolWarningCount > 0:
|
|
150
|
+
_BoolWarningCount -= 1
|
|
151
|
+
message = (
|
|
152
|
+
'%.1024r has type %s, but expected one of: %s. This warning '
|
|
153
|
+
'will turn into error in 7.34.0, please fix it before that.'
|
|
154
|
+
% (
|
|
155
|
+
proposed_value,
|
|
156
|
+
type(proposed_value),
|
|
157
|
+
(int,),
|
|
158
|
+
)
|
|
159
|
+
)
|
|
160
|
+
# TODO: Raise errors in 2026 Q1 release
|
|
161
|
+
warnings.warn(message)
|
|
162
|
+
|
|
144
163
|
if not hasattr(proposed_value, '__index__') or (
|
|
145
164
|
type(proposed_value).__module__ == 'numpy' and
|
|
146
165
|
type(proposed_value).__name__ == 'ndarray'):
|
|
@@ -167,6 +186,20 @@ class EnumValueChecker(object):
|
|
|
167
186
|
self._enum_type = enum_type
|
|
168
187
|
|
|
169
188
|
def CheckValue(self, proposed_value):
|
|
189
|
+
global _BoolWarningCount
|
|
190
|
+
if type(proposed_value) == bool and _BoolWarningCount > 0:
|
|
191
|
+
_BoolWarningCount -= 1
|
|
192
|
+
message = (
|
|
193
|
+
'%.1024r has type %s, but expected one of: %s. This warning '
|
|
194
|
+
'will turn into error in 7.34.0, please fix it before that.'
|
|
195
|
+
% (
|
|
196
|
+
proposed_value,
|
|
197
|
+
type(proposed_value),
|
|
198
|
+
(int,),
|
|
199
|
+
)
|
|
200
|
+
)
|
|
201
|
+
# TODO: Raise errors in 2026 Q1 release
|
|
202
|
+
warnings.warn(message)
|
|
170
203
|
if not isinstance(proposed_value, numbers.Integral):
|
|
171
204
|
message = ('%.1024r has type %s, but expected one of: %s' %
|
|
172
205
|
(proposed_value, type(proposed_value), (int,)))
|
|
@@ -26,6 +26,7 @@ import json
|
|
|
26
26
|
import math
|
|
27
27
|
from operator import methodcaller
|
|
28
28
|
import re
|
|
29
|
+
import warnings
|
|
29
30
|
|
|
30
31
|
from google.protobuf import descriptor
|
|
31
32
|
from google.protobuf import message_factory
|
|
@@ -191,6 +192,11 @@ class _Printer(object):
|
|
|
191
192
|
self.use_integers_for_enums = use_integers_for_enums
|
|
192
193
|
self.descriptor_pool = descriptor_pool
|
|
193
194
|
if float_precision:
|
|
195
|
+
warnings.warn(
|
|
196
|
+
'float_precision option is deprecated for json_format. '
|
|
197
|
+
'This will turn into error in 7.34.0, please remove it '
|
|
198
|
+
'before that.'
|
|
199
|
+
)
|
|
194
200
|
self.float_format = '.{}g'.format(float_precision)
|
|
195
201
|
else:
|
|
196
202
|
self.float_format = None
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/source_context.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/source_context.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/struct.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/struct.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -25,6 +25,7 @@ import encodings.unicode_escape # pylint: disable=unused-import
|
|
|
25
25
|
import io
|
|
26
26
|
import math
|
|
27
27
|
import re
|
|
28
|
+
import warnings
|
|
28
29
|
|
|
29
30
|
from google.protobuf.internal import decoder
|
|
30
31
|
from google.protobuf.internal import type_checkers
|
|
@@ -416,6 +417,10 @@ class _Printer(object):
|
|
|
416
417
|
self.use_index_order = use_index_order
|
|
417
418
|
self.float_format = float_format
|
|
418
419
|
if double_format is not None:
|
|
420
|
+
warnings.warn(
|
|
421
|
+
'double_format is deprecated for text_format. This will '
|
|
422
|
+
'turn into error in 7.34.0, please remove it before that.'
|
|
423
|
+
)
|
|
419
424
|
self.double_format = double_format
|
|
420
425
|
else:
|
|
421
426
|
self.double_format = float_format
|
|
@@ -652,6 +657,11 @@ class _Printer(object):
|
|
|
652
657
|
out.write('false')
|
|
653
658
|
elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_FLOAT:
|
|
654
659
|
if self.float_format is not None:
|
|
660
|
+
warnings.warn(
|
|
661
|
+
'float_format is deprecated for text_format. This '
|
|
662
|
+
'will turn into error in 7.34.0, please remove it '
|
|
663
|
+
'before that.'
|
|
664
|
+
)
|
|
655
665
|
out.write('{1:{0}}'.format(self.float_format, value))
|
|
656
666
|
else:
|
|
657
667
|
if math.isnan(value):
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/timestamp.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/timestamp.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/type.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/type.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: google/protobuf/wrappers.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
5
|
+
# Protobuf Python Version: 6.32.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
32,
|
|
16
|
-
|
|
17
|
-
'
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
18
|
'google/protobuf/wrappers.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
// https://developers.google.com/open-source/licenses/bsd
|
|
7
7
|
|
|
8
8
|
#include "python/convert.h"
|
|
9
|
-
|
|
10
9
|
#include "python/message.h"
|
|
11
10
|
#include "python/protobuf.h"
|
|
12
11
|
#include "upb/message/compare.h"
|
|
@@ -62,7 +61,22 @@ PyObject* PyUpb_UpbToPy(upb_MessageValue val, const upb_FieldDef* f,
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
|
|
64
|
+
// TODO: raise error in 2026 Q1 release
|
|
65
|
+
static void WarnBool(const upb_FieldDef* f) {
|
|
66
|
+
static int bool_warning_count = 100;
|
|
67
|
+
if (bool_warning_count > 0) {
|
|
68
|
+
--bool_warning_count;
|
|
69
|
+
PyErr_WarnFormat(PyExc_DeprecationWarning, 3,
|
|
70
|
+
"Field %s: Expected an int, got a boolean. This "
|
|
71
|
+
"will be rejected in 7.34.0, please fix it before that",
|
|
72
|
+
upb_FieldDef_FullName(f));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
static bool PyUpb_GetInt64(PyObject* obj, const upb_FieldDef* f, int64_t* val) {
|
|
77
|
+
if (PyBool_Check(obj)) {
|
|
78
|
+
WarnBool(f);
|
|
79
|
+
}
|
|
66
80
|
// We require that the value is either an integer or has an __index__
|
|
67
81
|
// conversion.
|
|
68
82
|
obj = PyNumber_Index(obj);
|
|
@@ -81,7 +95,11 @@ static bool PyUpb_GetInt64(PyObject* obj, int64_t* val) {
|
|
|
81
95
|
return ok;
|
|
82
96
|
}
|
|
83
97
|
|
|
84
|
-
static bool PyUpb_GetUint64(PyObject* obj,
|
|
98
|
+
static bool PyUpb_GetUint64(PyObject* obj, const upb_FieldDef* f,
|
|
99
|
+
uint64_t* val) {
|
|
100
|
+
if (PyBool_Check(obj)) {
|
|
101
|
+
WarnBool(f);
|
|
102
|
+
}
|
|
85
103
|
// We require that the value is either an integer or has an __index__
|
|
86
104
|
// conversion.
|
|
87
105
|
obj = PyNumber_Index(obj);
|
|
@@ -98,9 +116,9 @@ static bool PyUpb_GetUint64(PyObject* obj, uint64_t* val) {
|
|
|
98
116
|
return ok;
|
|
99
117
|
}
|
|
100
118
|
|
|
101
|
-
static bool PyUpb_GetInt32(PyObject* obj, int32_t* val) {
|
|
119
|
+
static bool PyUpb_GetInt32(PyObject* obj, const upb_FieldDef* f, int32_t* val) {
|
|
102
120
|
int64_t i64;
|
|
103
|
-
if (!PyUpb_GetInt64(obj, &i64)) return false;
|
|
121
|
+
if (!PyUpb_GetInt64(obj, f, &i64)) return false;
|
|
104
122
|
if (i64 < INT32_MIN || i64 > INT32_MAX) {
|
|
105
123
|
PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
|
|
106
124
|
return false;
|
|
@@ -109,9 +127,10 @@ static bool PyUpb_GetInt32(PyObject* obj, int32_t* val) {
|
|
|
109
127
|
return true;
|
|
110
128
|
}
|
|
111
129
|
|
|
112
|
-
static bool PyUpb_GetUint32(PyObject* obj,
|
|
130
|
+
static bool PyUpb_GetUint32(PyObject* obj, const upb_FieldDef* f,
|
|
131
|
+
uint32_t* val) {
|
|
113
132
|
uint64_t u64;
|
|
114
|
-
if (!PyUpb_GetUint64(obj, &u64)) return false;
|
|
133
|
+
if (!PyUpb_GetUint64(obj, f, &u64)) return false;
|
|
115
134
|
if (u64 > UINT32_MAX) {
|
|
116
135
|
PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
|
|
117
136
|
return false;
|
|
@@ -164,8 +183,9 @@ const char* upb_FieldDef_TypeString(const upb_FieldDef* f) {
|
|
|
164
183
|
UPB_UNREACHABLE();
|
|
165
184
|
}
|
|
166
185
|
|
|
167
|
-
static bool PyUpb_PyToUpbEnum(PyObject* obj, const
|
|
186
|
+
static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_FieldDef* f,
|
|
168
187
|
upb_MessageValue* val) {
|
|
188
|
+
const upb_EnumDef* e = upb_FieldDef_EnumSubDef(f);
|
|
169
189
|
if (PyUnicode_Check(obj)) {
|
|
170
190
|
Py_ssize_t size;
|
|
171
191
|
const char* name = PyUnicode_AsUTF8AndSize(obj, &size);
|
|
@@ -178,8 +198,11 @@ static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_EnumDef* e,
|
|
|
178
198
|
val->int32_val = upb_EnumValueDef_Number(ev);
|
|
179
199
|
return true;
|
|
180
200
|
} else {
|
|
201
|
+
if (PyBool_Check(obj)) {
|
|
202
|
+
WarnBool(f);
|
|
203
|
+
}
|
|
181
204
|
int32_t i32;
|
|
182
|
-
if (!PyUpb_GetInt32(obj, &i32)) return false;
|
|
205
|
+
if (!PyUpb_GetInt32(obj, f, &i32)) return false;
|
|
183
206
|
if (upb_EnumDef_IsClosed(e) && !upb_EnumDef_CheckNumber(e, i32)) {
|
|
184
207
|
PyErr_Format(PyExc_ValueError, "invalid enumerator %d", (int)i32);
|
|
185
208
|
return false;
|
|
@@ -238,15 +261,15 @@ bool PyUpb_PyToUpb(PyObject* obj, const upb_FieldDef* f, upb_MessageValue* val,
|
|
|
238
261
|
upb_Arena* arena) {
|
|
239
262
|
switch (upb_FieldDef_CType(f)) {
|
|
240
263
|
case kUpb_CType_Enum:
|
|
241
|
-
return PyUpb_PyToUpbEnum(obj,
|
|
264
|
+
return PyUpb_PyToUpbEnum(obj, f, val);
|
|
242
265
|
case kUpb_CType_Int32:
|
|
243
|
-
return PyUpb_GetInt32(obj, &val->int32_val);
|
|
266
|
+
return PyUpb_GetInt32(obj, f, &val->int32_val);
|
|
244
267
|
case kUpb_CType_Int64:
|
|
245
|
-
return PyUpb_GetInt64(obj, &val->int64_val);
|
|
268
|
+
return PyUpb_GetInt64(obj, f, &val->int64_val);
|
|
246
269
|
case kUpb_CType_UInt32:
|
|
247
|
-
return PyUpb_GetUint32(obj, &val->uint32_val);
|
|
270
|
+
return PyUpb_GetUint32(obj, f, &val->uint32_val);
|
|
248
271
|
case kUpb_CType_UInt64:
|
|
249
|
-
return PyUpb_GetUint64(obj, &val->uint64_val);
|
|
272
|
+
return PyUpb_GetUint64(obj, f, &val->uint64_val);
|
|
250
273
|
case kUpb_CType_Float:
|
|
251
274
|
if (!PyFloat_Check(obj) && PyUpb_IsNumpyNdarray(obj, f)) return false;
|
|
252
275
|
val->float_val = PyFloat_AsDouble(obj);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// features. This is used for feature resolution under Editions.
|
|
14
14
|
// NOLINTBEGIN
|
|
15
15
|
// clang-format off
|
|
16
|
-
#define UPB_INTERNAL_UPB_EDITION_DEFAULTS "\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001 \346\007(\
|
|
16
|
+
#define UPB_INTERNAL_UPB_EDITION_DEFAULTS "\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001\n\027\030\351\007\"\020\010\001\020\001\030\001 \002(\0010\0018\001@\002*\000 \346\007(\351\007"
|
|
17
17
|
// clang-format on
|
|
18
18
|
// NOLINTEND
|
|
19
19
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|