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:
StringThe 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:
StringRequired. 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:
BoolDocument 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:
StringSchema description.
Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition
Defines the metadata for a schema property.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
$msg->display_name()/$msg->display_name($value)Type:
StringThe display-name for the property, used for front-end.
$msg->is_repeatable()/$msg->is_repeatable($value)Type:
BoolWhether the property can have multiple values.
$msg->is_filterable()/$msg->is_filterable($value)Type:
BoolWhether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
$msg->is_searchable()/$msg->is_searchable($value)Type:
BoolIndicates that the property should be included in a global search.
$msg->is_metadata()/$msg->is_metadata($value)Type:
BoolWhether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
$msg->is_required()/$msg->is_required($value)Type:
BoolWhether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
$msg->retrieval_importance()/$msg->retrieval_importance($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::PropertyDefinition::RetrievalImportance)The retrieval importance of the property during search.
$msg->integer_type_options()/$msg->integer_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::IntegerTypeOptions)Integer property.
$msg->float_type_options()/$msg->float_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::FloatTypeOptions)Float property.
$msg->text_type_options()/$msg->text_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::TextTypeOptions)Text/string property.
$msg->property_type_options()/$msg->property_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyTypeOptions)Nested structured data property.
$msg->enum_type_options()/$msg->enum_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::EnumTypeOptions)Enum/categorical property.
$msg->date_time_type_options()/$msg->date_time_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::DateTimeTypeOptions)Date time property. It is not supported by CMEK compliant deployment.
$msg->map_type_options()/$msg->map_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::MapTypeOptions)Map property.
$msg->timestamp_type_options()/$msg->timestamp_type_options($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::TimestampTypeOptions)Timestamp property. It is not supported by CMEK compliant deployment.
$msg->schema_sources()/$msg->schema_sources($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition::SchemaSource)The mapping information between this property to another schema source.
Enum: PropertyDefinition::RetrievalImportance
RETRIEVAL_IMPORTANCE_UNSPECIFIED=>0HIGHEST=>1HIGHER=>2HIGH=>3MEDIUM=>4LOW=>5LOWEST=>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
$msg->property_definitions()/$msg->property_definitions($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentSchema::PropertyDefinition)Required. List of property definitions.
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:
StringRequired. List of possible enum values.
$msg->validation_check_disabled()/$msg->validation_check_disabled($value)Type:
BoolMake 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.