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

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

Definition of a single value with generic type.

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

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ string_value string

String type value.

↳ integer_value int|string

Integer type value.

↳ datetime_value Google\Type\DateTime

Datetime type value.

getStringValue

String type value.

Returns
Type Description
string

hasStringValue

setStringValue

String type value.

Parameter
Name Description
var string
Returns
Type Description
$this

getIntegerValue

Integer type value.

Returns
Type Description
int|string

hasIntegerValue

setIntegerValue

Integer type value.

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

getDatetimeValue

Datetime type value.

Returns
Type Description
Google\Type\DateTime|null

hasDatetimeValue

setDatetimeValue

Datetime type value.

Parameter
Name Description
var Google\Type\DateTime
Returns
Type Description
$this

getValue

Returns
Type Description
string