NAME

Google::Cloud::Dialogflow::V2::Grounding - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/grounding.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2::Grounding;

my $msg = Google::Cloud::Dialogflow::V2::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::V2::Grounding::GroundingMetadata->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/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::V2::Grounding::GroundingMetadata

Grounding metadata contains sources, citations, and search entry points used to ground a generated answer or suggestion.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Grounding::SearchEntryPoint

A web search entry point that can be used to display search results.

Inherits from Protobuf::Message.

Accessors

  • $msg->rendered_content() / $msg->rendered_content($value)

    Type: String

    Optional. 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::V2::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

Google::Cloud::Dialogflow::V2::Grounding::Segment

A segment of the content.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_index() / $msg->start_index($value)

    Type: Int32

    Output 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: Int32

    Output 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: String

    Output only. The text of the segment.

Google::Cloud::Dialogflow::V2::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::V2::Grounding::Segment)

    Optional. Segment of the content this support belongs to.

  • $msg->grounding_chunk_indices() / $msg->grounding_chunk_indices($value)

    Type: Int32

    Optional. 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::V2::Grounding::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.