NAME
Google::Cloud::Dataqna::V1alpha::AnnotatedString - Compiled Protocol Buffers messages for google/cloud/dataqna/v1alpha/annotated_string.proto
SYNOPSIS
use Google::Cloud::Dataqna::V1alpha::AnnotatedString;
my $msg = Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString->new({
text_formatted => $text_formatted,
html_formatted => $html_formatted,
markups => $markups,
});
# Read or update a field
my $val = $msg->text_formatted();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dataqna/v1alpha/annotated_string.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString
Describes string annotation from both semantic and formatting perspectives. Example:
User Query:
top countries by population in Africa
0 4 14 17 28 31 37
Table Data:
+ "country" - dimension + "population" - metric + "Africa" - value in the "continent" column
text_formatted = `"top countries by population in Africa"`
html_formatted = `"top <b>countries</b> by <b>population</b> in <i>Africa</i>"`
``` markups = [ {DIMENSION, 4, 12}, // 'countries' {METRIC, 17, 26}, // 'population' {FILTER, 31, 36} // 'Africa' ] ```
Note that html formattings for 'DIMENSION' and 'METRIC' are the same, while semantic markups are different.
Inherits from Protobuf::Message.
Accessors
$msg->text_formatted()/$msg->text_formatted($value)Type:
StringText version of the string.
$msg->html_formatted()/$msg->html_formatted($value)Type:
StringHTML version of the string annotation.
$msg->markups()/$msg->markups($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString::SemanticMarkup)Semantic version of the string annotation.
Enum: AnnotatedString::SemanticMarkupType
MARKUP_TYPE_UNSPECIFIED=>0METRIC=>1DIMENSION=>2FILTER=>3UNUSED=>4BLOCKED=>5ROW=>6
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dataqna::V1alpha::AnnotatedString::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.