NAME
Google::Cloud::Discoveryengine::V1beta::Document - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/document.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1beta::Document;
my $msg = Google::Cloud::Discoveryengine::V1beta::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::V1beta::Document::Document->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/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::V1beta::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.v1beta.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.v1beta.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 128 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::V1beta::Document::Document::Content)The unstructured data linked to this document. Content can only be set and 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::V1beta::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 time when the document was last indexed.
If this field is populated, it means the document has been indexed. While documents typically become searchable within seconds of indexing, it can sometimes take up to a few hours.
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::V1beta::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, if document's index is in progress, the pending_message field is populated.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::Document::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.