Google Cloud Vision Ai V1 Client - Class AnnotationValue (0.3.0)

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

Value of annotation, including all types available in data schema.

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

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ int_value
int|string

Value of int type annotation.

↳ float_value
float

Value of float type annotation.

↳ str_value
string

Value of string type annotation.

↳ datetime_value
string

Value of date time type annotation.

↳ geo_coordinate
GeoCoordinate

Value of geo coordinate type annotation.

↳ proto_any_value
Google\Protobuf\Any

Value of any proto value.

↳ bool_value
bool

Value of boolean type annotation.

↳ customized_struct_data_value
Google\Protobuf\Struct

Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.

↳ list_value
AnnotationList

Value of list type annotation.

↳ customized_struct_value
AnnotationCustomizedStruct

Value of custom struct type annotation.

getIntValue

Value of int type annotation.

Returns
Type
Description
int|string

hasIntValue

setIntValue

Value of int type annotation.

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getFloatValue

Value of float type annotation.

Returns
Type
Description
float

hasFloatValue

setFloatValue

Value of float type annotation.

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getStrValue

Value of string type annotation.

Returns
Type
Description
string

hasStrValue

setStrValue

Value of string type annotation.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDatetimeValue

Value of date time type annotation.

Returns
Type
Description
string

hasDatetimeValue

setDatetimeValue

Value of date time type annotation.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getGeoCoordinate

Value of geo coordinate type annotation.

Returns
Type
Description

hasGeoCoordinate

setGeoCoordinate

Value of geo coordinate type annotation.

Parameter
Name
Description
Returns
Type
Description
$this

getProtoAnyValue

Value of any proto value.

Returns
Type
Description

hasProtoAnyValue

setProtoAnyValue

Value of any proto value.

Parameter
Name
Description
Returns
Type
Description
$this

getBoolValue

Value of boolean type annotation.

Returns
Type
Description
bool

hasBoolValue

setBoolValue

Value of boolean type annotation.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getCustomizedStructDataValue

Value of customized struct annotation. This field does not have effects.

Use customized_struct_value instead for customized struct annotation.

Returns
Type
Description

hasCustomizedStructDataValue

setCustomizedStructDataValue

Value of customized struct annotation. This field does not have effects.

Use customized_struct_value instead for customized struct annotation.

Parameter
Name
Description
Returns
Type
Description
$this

getListValue

Value of list type annotation.

Returns
Type
Description

hasListValue

setListValue

Value of list type annotation.

Parameter
Name
Description
Returns
Type
Description
$this

getCustomizedStructValue

Value of custom struct type annotation.

Returns
Type
Description

hasCustomizedStructValue

setCustomizedStructValue

Value of custom struct type annotation.

Parameter
Name
Description
Returns
Type
Description
$this

getValue

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: