NAME

Google::Ai::Generativelanguage::V1beta::Citation - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta/citation.proto

SYNOPSIS

use Google::Ai::Generativelanguage::V1beta::Citation;

my $msg = Google::Ai::Generativelanguage::V1beta::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::V1beta::Citation::CitationMetadata->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta/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::V1beta::Citation::CitationMetadata

A collection of source attributions for a piece of content.

Inherits from Protobuf::Message.

Accessors

Google::Ai::Generativelanguage::V1beta::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: Int32

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

    Optional. End of the attributed segment, exclusive.

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

    Type: String

    Optional. URI that is attributed as a source for a portion of the text.

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

    Type: String

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.