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

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

Annotation provided by users.

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

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

Required. Key of the annotation. The key must be set with type by CreateDataSchema.

↳ value AnnotationValue

Value of the annotation. The value must be able to convert to the type according to the data schema.

↳ partition Partition

Partition information in time and space for the sub-asset level annotation.

getKey

Required. Key of the annotation. The key must be set with type by CreateDataSchema.

Returns
Type Description
string

setKey

Required. Key of the annotation. The key must be set with type by CreateDataSchema.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Value of the annotation. The value must be able to convert to the type according to the data schema.

Returns
Type Description
AnnotationValue|null

hasValue

clearValue

setValue

Value of the annotation. The value must be able to convert to the type according to the data schema.

Parameter
Name Description
var AnnotationValue
Returns
Type Description
$this

getPartition

Partition information in time and space for the sub-asset level annotation.

Returns
Type Description
Partition|null

hasPartition

clearPartition

setPartition

Partition information in time and space for the sub-asset level annotation.

Parameter
Name Description
var Partition
Returns
Type Description
$this