| 80 | } |
| 81 | |
| 82 | absl::Status StringValue::SerializeTo( |
| 83 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 84 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 85 | google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const { |
| 86 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 87 | ABSL_DCHECK(message_factory != nullptr); |
| 88 | ABSL_DCHECK(output != nullptr); |
| 89 | |
| 90 | google::protobuf::StringValue message; |
| 91 | message.set_value(NativeString()); |
| 92 | if (!message.SerializePartialToZeroCopyStream(output)) { |
| 93 | return absl::UnknownError( |
| 94 | absl::StrCat("failed to serialize message: ", message.GetTypeName())); |
| 95 | } |
| 96 | |
| 97 | return absl::OkStatus(); |
| 98 | } |
| 99 | |
| 100 | absl::Status StringValue::ConvertToJson( |
| 101 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected