| 907 | } |
| 908 | |
| 909 | bool LegacyStructValue::IsZeroValue() const { |
| 910 | auto message_wrapper = AsMessageWrapper(message_ptr_, legacy_type_info_); |
| 911 | const auto* access_apis = |
| 912 | message_wrapper.legacy_type_info()->GetAccessApis(message_wrapper); |
| 913 | if (ABSL_PREDICT_FALSE(access_apis == nullptr)) { |
| 914 | return false; |
| 915 | } |
| 916 | return access_apis->ListFields(message_wrapper).empty(); |
| 917 | } |
| 918 | |
| 919 | absl::Status LegacyStructValue::GetFieldByName( |
| 920 | absl::string_view name, ProtoWrapperTypeOptions unboxing_options, |
nothing calls this directly
no test coverage detected