From 390124a5e540c4d026ef8b80364fd6bbfd06167e Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 12 Dec 2024 03:32:25 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 705443030 --- src/google/protobuf/lite_unittest.cc | 4 ++-- src/google/protobuf/message_lite.cc | 10 +++++----- src/google/protobuf/no_field_presence_map_test.cc | 2 +- src/google/protobuf/no_field_presence_test.cc | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/google/protobuf/lite_unittest.cc b/src/google/protobuf/lite_unittest.cc index af8be5e1ce5f2..201ed60dcd456 100644 --- a/src/google/protobuf/lite_unittest.cc +++ b/src/google/protobuf/lite_unittest.cc @@ -83,7 +83,7 @@ bool ParseFrom(const std::string& data, MessageLite& msg) { } bool ParseFrom(const absl::Cord& data, MessageLite& msg) { - return msg.ParseFromCord(data); + return msg.ParseFromString(data); } template @@ -488,7 +488,7 @@ TYPED_TEST(LiteTest, AllLite13CordStream) { coded_output.WriteVarint32(20); } absl::Cord buffer = output_stream.Consume(); - message.ParseFromCord(buffer); + message.ParseFromString(buffer); data = SerializeAs(message); EXPECT_EQ(data, buffer); } diff --git a/src/google/protobuf/message_lite.cc b/src/google/protobuf/message_lite.cc index efaad9d811951..3b1d0b4c31876 100644 --- a/src/google/protobuf/message_lite.cc +++ b/src/google/protobuf/message_lite.cc @@ -643,7 +643,7 @@ std::string MessageLite::SerializePartialAsString() const { bool MessageLite::AppendToString(absl::Cord* output) const { ABSL_DCHECK(IsInitialized()) << InitializationErrorMessage("serialize", *this); - return AppendPartialToCord(output); + return AppendPartialToString(output); } bool MessageLite::AppendPartialToString(absl::Cord* output) const { @@ -694,23 +694,23 @@ bool MessageLite::AppendPartialToString(absl::Cord* output) const { bool MessageLite::SerializeToString(absl::Cord* output) const { output->Clear(); - return AppendToCord(output); + return AppendToString(output); } bool MessageLite::SerializePartialToString(absl::Cord* output) const { output->Clear(); - return AppendPartialToCord(output); + return AppendPartialToString(output); } absl::Cord MessageLite::SerializeAsCord() const { absl::Cord output; - if (!AppendToCord(&output)) output.Clear(); + if (!AppendToString(&output)) output.Clear(); return output; } absl::Cord MessageLite::SerializePartialAsCord() const { absl::Cord output; - if (!AppendPartialToCord(&output)) output.Clear(); + if (!AppendPartialToString(&output)) output.Clear(); return output; } diff --git a/src/google/protobuf/no_field_presence_map_test.cc b/src/google/protobuf/no_field_presence_map_test.cc index 7a55df43f6c94..37a4decd599a9 100644 --- a/src/google/protobuf/no_field_presence_map_test.cc +++ b/src/google/protobuf/no_field_presence_map_test.cc @@ -743,7 +743,7 @@ bool TestSerialize(const MessageLite& message, template <> bool TestSerialize(const MessageLite& message, absl::Cord* output) { - return message.SerializeToCord(output); + return message.SerializeToString(output); } template diff --git a/src/google/protobuf/no_field_presence_test.cc b/src/google/protobuf/no_field_presence_test.cc index 6dd91510ebc8c..7f7c492a4e26d 100644 --- a/src/google/protobuf/no_field_presence_test.cc +++ b/src/google/protobuf/no_field_presence_test.cc @@ -955,7 +955,7 @@ bool TestSerialize(const MessageLite& message, template <> bool TestSerialize(const MessageLite& message, absl::Cord* output) { - return message.SerializeToCord(output); + return message.SerializeToString(output); } template