| 917 | } |
| 918 | |
| 919 | absl::Status LegacyStructValue::GetFieldByName( |
| 920 | absl::string_view name, ProtoWrapperTypeOptions unboxing_options, |
| 921 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 922 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 923 | google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const { |
| 924 | auto message_wrapper = AsMessageWrapper(message_ptr_, legacy_type_info_); |
| 925 | const auto* access_apis = |
| 926 | message_wrapper.legacy_type_info()->GetAccessApis(message_wrapper); |
| 927 | if (ABSL_PREDICT_FALSE(access_apis == nullptr)) { |
| 928 | *result = NoSuchFieldError(name); |
| 929 | return absl::OkStatus(); |
| 930 | } |
| 931 | CEL_ASSIGN_OR_RETURN( |
| 932 | auto cel_value, |
| 933 | access_apis->GetField(name, message_wrapper, unboxing_options, |
| 934 | MemoryManagerRef::Pooling(arena))); |
| 935 | CEL_RETURN_IF_ERROR(ModernValue(arena, cel_value, *result)); |
| 936 | return absl::OkStatus(); |
| 937 | } |
| 938 | |
| 939 | absl::Status LegacyStructValue::GetFieldByNumber( |
| 940 | int64_t number, ProtoWrapperTypeOptions unboxing_options, |
nothing calls this directly
no test coverage detected