NAME

Google::Cloud::Contentwarehouse::V1::Document - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/document.proto

SYNOPSIS

use Google::Cloud::Contentwarehouse::V1::Document;

my $msg = Google::Cloud::Contentwarehouse::V1::Document::Document->new({
    name => $name,
    reference_id => $reference_id,
    display_name => $display_name,
    title => $title,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::Document::Document->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/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::Contentwarehouse::V1::Document::Document

Defines the structure for content warehouse document proto.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}.

    The name is ignored when creating a document.

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

    Type: String

    The reference ID set by customers. Must be unique per project and location.

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

    Type: String

    Required. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.

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

    Type: String

    Title that describes the document. This can be the top heading or text that describes the document.

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

    Type: String

    Uri to display the document, for example, in the UI.

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

    Type: String

    The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

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

    Type: String

    Other document format, such as PPTX, XLXS

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

    Type: Message (Google::Cloud::Documentai::V1::Document::Document)

    Document AI format to save the structured content, including OCR.

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

    Type: String

    A path linked to structured content file.

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

    Type: String

    Raw document file in Cloud Storage path.

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

    Type: Bytes

    Raw document content.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Document::Property)

    List of values that are user supplied metadata.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the document is last updated.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the document is created.

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

    Type: Enum (Google::Cloud::Contentwarehouse::V1::RawDocumentFileType)

    This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.

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

    Type: Bool

    If true, makes the document visible to asynchronous policies and rules.

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

    Type: Enum (Google::Cloud::Contentwarehouse::V1::ContentCategory)

    Indicates the category (image, audio, video etc.) of the original content.

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

    Type: Bool

    If true, text extraction will not be performed.

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

    Type: Bool

    If true, text extraction will be performed.

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

    Type: String

    The user who creates the document.

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

    Type: String

    The user who lastly updates the document.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.

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

    Type: Bool

    Output only. Indicates if the document has a legal hold on it.

Google::Cloud::Contentwarehouse::V1::Document::DocumentReference

References to the documents.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the referenced document.

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

    Type: String

    display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint.

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

    Type: String

    Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document.

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

    Type: Bool

    The document type of the document being referenced.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the document is last updated.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the document is created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the document is deleted.

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

    Type: Bool

    Document is a folder with retention policy.

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

    Type: Bool

    Document is a folder with legal hold.

Google::Cloud::Contentwarehouse::V1::Document::Property

Property of a document.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::Document::IntegerArray

Integer values.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    List of integer values.

Google::Cloud::Contentwarehouse::V1::Document::FloatArray

Float values.

Inherits from Protobuf::Message.

Accessors

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

    Type: Float

    List of float values.

Google::Cloud::Contentwarehouse::V1::Document::TextArray

String/text values.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    List of text values.

Google::Cloud::Contentwarehouse::V1::Document::EnumArray

Enum values.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    List of enum values.

Google::Cloud::Contentwarehouse::V1::Document::DateTimeArray

DateTime values.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Type::Datetime::DateTime)

    List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

Google::Cloud::Contentwarehouse::V1::Document::TimestampArray

Timestamp values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::Document::TimestampValue

Timestamp value type.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Timestamp value

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

    Type: String

    The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

Google::Cloud::Contentwarehouse::V1::Document::PropertyArray

Property values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::Document::MapProperty

Map property value. Represents a structured entries of key value pairs, consisting of field names which map to dynamically typed values.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::Document::Value

`Value` represents a dynamically typed value which can be either be a float, a integer, a string, or a datetime value. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.

Inherits from Protobuf::Message.

Accessors

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

    Type: Float

    Represents a float value.

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

    Type: Int32

    Represents a integer value.

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

    Type: String

    Represents a string value.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Document::EnumValue)

    Represents an enum value.

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

    Type: Message (Google::Type::Datetime::DateTime)

    Represents a datetime value.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Document::TimestampValue)

    Represents a timestamp value.

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

    Type: Bool

    Represents a boolean value.

Google::Cloud::Contentwarehouse::V1::Document::EnumValue

Represents the string value of the enum field.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    String value of the enum field. This must match defined set of enums in document schema using EnumTypeOptions.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::Document::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.