| 64 | std::string BytesValue::DebugString() const { return BytesDebugString(*this); } |
| 65 | |
| 66 | absl::Status BytesValue::SerializeTo( |
| 67 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 68 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 69 | google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const { |
| 70 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 71 | ABSL_DCHECK(message_factory != nullptr); |
| 72 | ABSL_DCHECK(output != nullptr); |
| 73 | |
| 74 | google::protobuf::BytesValue message; |
| 75 | message.set_value(NativeString()); |
| 76 | if (!message.SerializePartialToZeroCopyStream(output)) { |
| 77 | return absl::UnknownError( |
| 78 | absl::StrCat("failed to serialize message: ", message.GetTypeName())); |
| 79 | } |
| 80 | |
| 81 | return absl::OkStatus(); |
| 82 | } |
| 83 | |
| 84 | absl::Status BytesValue::ConvertToJson( |
| 85 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
nothing calls this directly
no test coverage detected