NAME

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

SYNOPSIS

use Google::Cloud::Contentwarehouse::V1::DocumentSchema;

my $msg = Google::Cloud::Contentwarehouse::V1::DocumentSchema::DocumentSchema->new({
    name => $name,
    display_name => $display_name,
    property_definitions => $property_definitions,
    document_is_folder => $document_is_folder,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/document_schema.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::DocumentSchema::DocumentSchema

A document schema used to define document structure.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

    The name is ignored when creating a document schema.

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

    Type: String

    Required. Name of the schema given by the user. Must be unique per project.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition)

    Document details.

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

    Type: Bool

    Document Type, true refers the document is a folder, otherwise it is a typical document.

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

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

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

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

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

    Output only. The time when the document schema is created.

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

    Type: String

    Schema description.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition

Defines the metadata for a schema property.

Inherits from Protobuf::Message.

Accessors

Enum: PropertyDefinition::RetrievalImportance

  • RETRIEVAL_IMPORTANCE_UNSPECIFIED => 0

  • HIGHEST => 1

  • HIGHER => 2

  • HIGH => 3

  • MEDIUM => 4

  • LOW => 5

  • LOWEST => 6

Google::Cloud::Contentwarehouse::V1::DocumentSchema::IntegerTypeOptions

Configurations for an integer property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::FloatTypeOptions

Configurations for a float property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::TextTypeOptions

Configurations for a text property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::DateTimeTypeOptions

Configurations for a date time property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::MapTypeOptions

Configurations for a Map property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::TimestampTypeOptions

Configurations for a timestamp property.

Inherits from Protobuf::Message.

Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyTypeOptions

Configurations for a nested structured data property.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::DocumentSchema::EnumTypeOptions

Configurations for an enum/categorical property.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. List of possible enum values.

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

    Type: Bool

    Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.