NAME
Google::Ai::Generativelanguage::V1beta3::Citation - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta3/citation.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1beta3::Citation;
my $msg = Google::Ai::Generativelanguage::V1beta3::Citation::CitationMetadata->new({
citation_sources => $citation_sources,
});
# Read or update a field
my $val = $msg->citation_sources();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta3::Citation::CitationMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta3/citation.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Ai::Generativelanguage::V1beta3::Citation::CitationMetadata
A collection of source attributions for a piece of content.
Inherits from Protobuf::Message.
Accessors
$msg->citation_sources()/$msg->citation_sources($value)Type:
Message(Google::Ai::Generativelanguage::V1beta3::Citation::CitationSource)Citations to sources for a specific response.
Google::Ai::Generativelanguage::V1beta3::Citation::CitationSource
A citation to a source for a portion of a specific response.
Inherits from Protobuf::Message.
Accessors
$msg->start_index()/$msg->start_index($value)Type:
Int32Optional. Start of segment of the response that is attributed to this source.
Index indicates the start of the segment, measured in bytes.
$msg->end_index()/$msg->end_index($value)Type:
Int32Optional. End of the attributed segment, exclusive.
$msg->uri()/$msg->uri($value)Type:
StringOptional. URI that is attributed as a source for a portion of the text.
$msg->license()/$msg->license($value)Type:
StringOptional. License for the GitHub project that is attributed as a source for segment.
License info is required for code citations.
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta3::Citation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.