| 325 | } |
| 326 | |
| 327 | ABSL_MUST_USE_RESULT std::string release_bytes_value() { |
| 328 | std::string string; |
| 329 | if (auto* alt = absl::get_if<BytesConstant>(&mutable_kind()); alt) { |
| 330 | string.swap(*alt); |
| 331 | } |
| 332 | mutable_kind().emplace<absl::monostate>(); |
| 333 | return string; |
| 334 | } |
| 335 | |
| 336 | ABSL_MUST_USE_RESULT bool has_string_value() const { |
| 337 | return absl::holds_alternative<StringConstant>(kind()); |