Class PropertyDefinition (0.6.0)

PropertyDefinition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines the metadata for a schema property.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
name str
Required. 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 .
display_name str
The display-name for the property, used for front-end.
is_repeatable bool
Whether the property can have multiple values.
is_filterable bool
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
is_searchable bool
Indicates that the property should be included in a global search.
is_metadata bool
Whether 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.
is_required bool
Whether 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.
retrieval_importance google.cloud.contentwarehouse_v1.types.PropertyDefinition.RetrievalImportance
The retrieval importance of the property during search.
integer_type_options google.cloud.contentwarehouse_v1.types.IntegerTypeOptions
Integer property. This field is a member of oneof_ value_type_options.
float_type_options google.cloud.contentwarehouse_v1.types.FloatTypeOptions
Float property. This field is a member of oneof_ value_type_options.
text_type_options google.cloud.contentwarehouse_v1.types.TextTypeOptions
Text/string property. This field is a member of oneof_ value_type_options.
property_type_options google.cloud.contentwarehouse_v1.types.PropertyTypeOptions
Nested structured data property. This field is a member of oneof_ value_type_options.
enum_type_options google.cloud.contentwarehouse_v1.types.EnumTypeOptions
Enum/categorical property. This field is a member of oneof_ value_type_options.
date_time_type_options google.cloud.contentwarehouse_v1.types.DateTimeTypeOptions
Date time property. It is not supported by CMEK compliant deployment. This field is a member of oneof_ value_type_options.
map_type_options google.cloud.contentwarehouse_v1.types.MapTypeOptions
Map property. This field is a member of oneof_ value_type_options.
timestamp_type_options google.cloud.contentwarehouse_v1.types.TimestampTypeOptions
Timestamp property. It is not supported by CMEK compliant deployment. This field is a member of oneof_ value_type_options.
schema_sources MutableSequence[google.cloud.contentwarehouse_v1.types.PropertyDefinition.SchemaSource]
The mapping information between this property to another schema source.

Classes

RetrievalImportance

RetrievalImportance(value)

Stores the retrieval importance.

Values: RETRIEVAL_IMPORTANCE_UNSPECIFIED (0): No importance specified. Default medium importance. HIGHEST (1): Highest importance. HIGHER (2): Higher importance. HIGH (3): High importance. MEDIUM (4): Medium importance. LOW (5): Low importance (negative). LOWEST (6): Lowest importance (negative).

SchemaSource

SchemaSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The schema source information.