NAME
Google::Cloud::Discoveryengine::V1beta::Chunk - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/chunk.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1beta::Chunk;
my $msg = Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk->new({
name => $name,
id => $id,
content => $content,
relevance_score => $relevance_score,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/chunk.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::Discoveryengine::V1beta::Chunk::Chunk
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
$msg->id()/$msg->id($value)Type:
StringUnique chunk ID of the current chunk.
$msg->content()/$msg->content($value)Type:
StringContent is a string from a document (parsed content).
$msg->relevance_score()/$msg->relevance_score($value)Type:
DoubleOutput only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
$msg->document_metadata()/$msg->document_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk::DocumentMetadata)Metadata of the document from the current chunk.
$msg->derived_struct_data()/$msg->derived_struct_data($value)Type:
Message(Google::Protobuf::Struct::Struct)Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
$msg->page_span()/$msg->page_span($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk::PageSpan)Page span of the chunk.
$msg->chunk_metadata()/$msg->chunk_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk::ChunkMetadata)Output only. Metadata of the current chunk.
$msg->data_urls()/$msg->data_urls($value)Type:
StringOutput only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
$msg->annotation_contents()/$msg->annotation_contents($value)Type:
StringOutput only. Annotation contents if the current chunk contains annotations.
$msg->annotation_metadata()/$msg->annotation_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Chunk::Chunk::AnnotationMetadata)Output only. The annotation metadata includes structured content in the current chunk.
Enum: Chunk::StructureType
STRUCTURE_TYPE_UNSPECIFIED=>0SHAREHOLDER_STRUCTURE=>1SIGNATURE_STRUCTURE=>2CHECKBOX_STRUCTURE=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::Chunk::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.