NAME
Google::Cloud::Dialogflow::V2beta1::Grounding - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/grounding.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2beta1::Grounding;
my $msg = Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingMetadata->new({
web_search_queries => $web_search_queries,
search_entry_point => $search_entry_point,
grounding_chunks => $grounding_chunks,
grounding_supports => $grounding_supports,
});
# Read or update a field
my $val = $msg->web_search_queries();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/grounding.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::Dialogflow::V2beta1::Grounding::GroundingMetadata
Grounding metadata contains sources, citations, and search entry points used to ground a generated answer or suggestion.
Inherits from Protobuf::Message.
Accessors
$msg->web_search_queries()/$msg->web_search_queries($value)Type:
StringOptional. The web search queries that were used to generate the content.
$msg->search_entry_point()/$msg->search_entry_point($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::SearchEntryPoint)Optional. A web search entry point that can be used to display search results.
$msg->grounding_chunks()/$msg->grounding_chunks($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingChunk)Optional. A list of supporting references retrieved from the grounding source.
$msg->grounding_supports()/$msg->grounding_supports($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingSupport)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
Google::Cloud::Dialogflow::V2beta1::Grounding::SearchEntryPoint
Google search entry point.
Inherits from Protobuf::Message.
Accessors
$msg->rendered_content()/$msg->rendered_content($value)Type:
StringOptional. An HTML snippet that can be embedded in a web page or an application's webview. This snippet displays a search result, including the title, URL, and a brief description of the search result.
Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingChunk
A piece of evidence that supports a claim made by the model.
This is used to show a citation for a claim made by the model. It contains a reference to the source of the information.
Inherits from Protobuf::Message.
Accessors
$msg->web()/$msg->web($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingChunk::Web)Optional. A grounding chunk from a web page, typically from web search. See the `Web` message for details.
$msg->retrieved_context()/$msg->retrieved_context($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingChunk::RetrievedContext)Optional. A grounding chunk from a data source retrieved by a data store tool.
Google::Cloud::Dialogflow::V2beta1::Grounding::Segment
A segment of the content.
Inherits from Protobuf::Message.
Accessors
$msg->start_index()/$msg->start_index($value)Type:
Int32Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.
$msg->end_index()/$msg->end_index($value)Type:
Int32Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.
$msg->text()/$msg->text($value)Type:
StringOutput only. The text of the segment.
Google::Cloud::Dialogflow::V2beta1::Grounding::GroundingSupport
A collection of supporting references for a segment or part of the model's response.
Inherits from Protobuf::Message.
Accessors
$msg->segment()/$msg->segment($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Grounding::Segment)Optional. Segment of the content this support belongs to.
$msg->grounding_chunk_indices()/$msg->grounding_chunk_indices($value)Type:
Int32Optional. A list of indices into `grounding_chunks` field specifying the citations associated with the claim. For instance [1, 3] means that grounding_chunks[1] and grounding_chunks[3] are the retrieved contents attributed to the claim.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2beta1::Grounding::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.