From 63660877a00553be4a7062860466536cd5ea508b Mon Sep 17 00:00:00 2001 From: Kuat Yessenov Date: Fri, 4 Oct 2024 21:30:03 +0000 Subject: [PATCH] stream info: add bool string serlalizer Change-Id: I2065f5ed863ca4b6b439f00dc39de0dcdbe2eb4c Signed-off-by: Kuat Yessenov --- source/common/stream_info/bool_accessor_impl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/common/stream_info/bool_accessor_impl.h b/source/common/stream_info/bool_accessor_impl.h index 868bfefab953c..8de1563fae48e 100644 --- a/source/common/stream_info/bool_accessor_impl.h +++ b/source/common/stream_info/bool_accessor_impl.h @@ -19,6 +19,10 @@ class BoolAccessorImpl : public BoolAccessor { return message; } + absl::optional serializeAsString() const override { + return value_ ? "true" : "false"; + } + // From BoolAccessor. bool value() const override { return value_; }