@@ -303,33 +303,33 @@ class MessageToJsonState {
303303 } break ;
304304 case Descriptor::WELLKNOWNTYPE_VALUE: {
305305 absl::Cord serialized;
306- if (!message.SerializePartialToCord (&serialized)) {
306+ if (!message.SerializePartialToString (&serialized)) {
307307 return absl::UnknownError (
308308 " failed to serialize message google.protobuf.Value" );
309309 }
310- if (!result->ParsePartialFromCord (serialized)) {
310+ if (!result->ParsePartialFromString (serialized)) {
311311 return absl::UnknownError (
312312 " failed to parsed message: google.protobuf.Value" );
313313 }
314314 } break ;
315315 case Descriptor::WELLKNOWNTYPE_LISTVALUE: {
316316 absl::Cord serialized;
317- if (!message.SerializePartialToCord (&serialized)) {
317+ if (!message.SerializePartialToString (&serialized)) {
318318 return absl::UnknownError (
319319 " failed to serialize message google.protobuf.ListValue" );
320320 }
321- if (!MutableListValue (result)->ParsePartialFromCord (serialized)) {
321+ if (!MutableListValue (result)->ParsePartialFromString (serialized)) {
322322 return absl::UnknownError (
323323 " failed to parsed message: google.protobuf.ListValue" );
324324 }
325325 } break ;
326326 case Descriptor::WELLKNOWNTYPE_STRUCT: {
327327 absl::Cord serialized;
328- if (!message.SerializePartialToCord (&serialized)) {
328+ if (!message.SerializePartialToString (&serialized)) {
329329 return absl::UnknownError (
330330 " failed to serialize message google.protobuf.Struct" );
331331 }
332- if (!MutableStructValue (result)->ParsePartialFromCord (serialized)) {
332+ if (!MutableStructValue (result)->ParsePartialFromString (serialized)) {
333333 return absl::UnknownError (
334334 " failed to parsed message: google.protobuf.Struct" );
335335 }
0 commit comments