Class DataSchema (0.1.5)

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

Data schema indicates how the user specified annotation is interpreted in the system.

Attributes

Name Description
name str
Resource name of the data schema in the form of: projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema} where {data_schema} part should be the same as the key field below.
key str
Required. The key of this data schema. This key should be matching the key of user specified annotation and unique inside corpus. This value can be up to 63 characters, and valid characters are /a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
schema_details google.cloud.visionai_v1.types.DataSchemaDetails
The schema details mapping to the key.