Google Cloud Vision Ai V1 Client - Class DataSchemaDetails (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DataSchemaDetails.

Data schema details indicates the data type and the data struct corresponding to the key of user specified annotation.

Generated from protobuf message google.cloud.visionai.v1.DataSchemaDetails

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Type of the annotation.

↳ proto_any_config DataSchemaDetails\ProtoAnyConfig

Config for protobuf any type.

↳ list_config DataSchemaDetails\ListConfig

Config for List data type.

↳ customized_struct_config DataSchemaDetails\CustomizedStructConfig

Config for CustomizedStruct data type.

↳ granularity int

The granularity associated with this DataSchema.

↳ search_strategy DataSchemaDetails\SearchStrategy

The search strategy to be applied on the key above.

getType

Type of the annotation.

Returns
Type Description
int

hasType

clearType

setType

Type of the annotation.

Parameter
Name Description
var int
Returns
Type Description
$this

getProtoAnyConfig

Config for protobuf any type.

Returns
Type Description
DataSchemaDetails\ProtoAnyConfig|null

hasProtoAnyConfig

clearProtoAnyConfig

setProtoAnyConfig

Config for protobuf any type.

Parameter
Name Description
var DataSchemaDetails\ProtoAnyConfig
Returns
Type Description
$this

getListConfig

Config for List data type.

Returns
Type Description
DataSchemaDetails\ListConfig|null

hasListConfig

clearListConfig

setListConfig

Config for List data type.

Parameter
Name Description
var DataSchemaDetails\ListConfig
Returns
Type Description
$this

getCustomizedStructConfig

Config for CustomizedStruct data type.

Returns
Type Description
DataSchemaDetails\CustomizedStructConfig|null

hasCustomizedStructConfig

clearCustomizedStructConfig

setCustomizedStructConfig

Config for CustomizedStruct data type.

Parameter
Name Description
var DataSchemaDetails\CustomizedStructConfig
Returns
Type Description
$this

getGranularity

The granularity associated with this DataSchema.

Returns
Type Description
int

hasGranularity

clearGranularity

setGranularity

The granularity associated with this DataSchema.

Parameter
Name Description
var int
Returns
Type Description
$this

getSearchStrategy

The search strategy to be applied on the key above.

Returns
Type Description
DataSchemaDetails\SearchStrategy|null

hasSearchStrategy

clearSearchStrategy

setSearchStrategy

The search strategy to be applied on the key above.

Parameter
Name Description
var DataSchemaDetails\SearchStrategy
Returns
Type Description
$this