Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DataSchema.
Data schema indicates how the user specified annotation is interpreted in the system.
Generated from protobuf message google.cloud.visionai.v1.DataSchema
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
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
string
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
getName
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.
string
setName
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.
var
string
$this
getKey
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.
string
setKey
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.
var
string
$this
getSchemaDetails
The schema details mapping to the key.
hasSchemaDetails
clearSchemaDetails
setSchemaDetails
The schema details mapping to the key.
$this

