NAME
Google::Cloud::Discoveryengine::V1alpha::Document - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1alpha/document.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1alpha::Document;
my $msg = Google::Cloud::Discoveryengine::V1alpha::Document::Document->new({
struct_data => $struct_data,
json_data => $json_data,
name => $name,
id => $id,
});
# Read or update a field
my $val = $msg->struct_data();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1alpha::Document::Document->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/document.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::V1alpha::Document::Document
Document captures all raw metadata information of items to be recommended or searched.
Inherits from Protobuf::Message.
Accessors
$msg->struct_data()/$msg->struct_data($value)Type:
Message(Google::Protobuf::Struct::Struct)The structured JSON data for the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an `INVALID_ARGUMENT` error is thrown.
$msg->json_data()/$msg->json_data($value)Type:
StringThe JSON string representation of the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an `INVALID_ARGUMENT` error is thrown.
$msg->name()/$msg->name($value)Type:
StringImmutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
$msg->id()/$msg->id($value)Type:
StringImmutable. The identifier of the document.
Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
$msg->schema_id()/$msg->schema_id($value)Type:
StringThe identifier of the schema located in the same data store.
$msg->content()/$msg->content($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document::Content)The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store.
$msg->parent_document_id()/$msg->parent_document_id($value)Type:
StringThe identifier of the parent document. Currently supports at most two level document hierarchy.
Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
$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->acl_info()/$msg->acl_info($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document::AclInfo)Access control information for the document.
$msg->index_time()/$msg->index_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The last time the document was indexed. If this field is set, the document could be returned in search results.
This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed.
$msg->index_status()/$msg->index_status($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document::IndexStatus)Output only. The index status of the document.
* If document is indexed successfully, the index_time field is populated. * Otherwise, if document is not indexed due to errors, the error_samples field is populated. * Otherwise, index_status is unset.
Google::Cloud::Discoveryengine::V1alpha::Document::ProcessedDocument
Document captures all raw metadata information of items to be recommended or searched.
Inherits from Protobuf::Message.
Accessors
$msg->json_data()/$msg->json_data($value)Type:
StringThe JSON string representation of the processed document.
$msg->document()/$msg->document($value)Type:
StringRequired. Full resource name of the referenced document, in the format `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1alpha::Document::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.