From 1639c2928c3866d473f236df7bd560536f605bfe Mon Sep 17 00:00:00 2001 From: FHIR Team Date: Tue, 27 Jan 2026 01:36:49 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 861589126 --- cc/google/fhir/json_printer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/google/fhir/json_printer.cc b/cc/google/fhir/json_printer.cc index a1cd6eeb04..bb95c1641c 100644 --- a/cc/google/fhir/json_printer.cc +++ b/cc/google/fhir/json_printer.cc @@ -218,14 +218,14 @@ class Printer { // TODO(b/148916862): Use a registry to determine the correct // ContainedResource to unpack to. - if (google::protobuf::DownCastToGenerated(proto).UnpackTo(contained.get())) { + if (google::protobuf::DownCastMessage(proto).UnpackTo(contained.get())) { return PrintContainedResource(*contained); } // If we can't unpack the Any proto as a contained resource, try to unpack // it as a contained resource `one of` field. std::optional> resource_msg = - ExtractConcreteMessage(google::protobuf::DownCastToGenerated(proto)); + ExtractConcreteMessage(google::protobuf::DownCastMessage(proto)); if (resource_msg == std::nullopt) { // Unable to extract Any proto into a concrete message. This could // happen if the proto is not a core FHIR resource. In this case we