Cloud Vision V1 Client - Class KeyValue (1.6.8)

Reference documentation and code samples for the Cloud Vision V1 Client class KeyValue.

A product label represented as a key-value pair.

Generated from protobuf message google.cloud.vision.v1.Product.KeyValue

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

↳ value string

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

getKey

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

Returns
TypeDescription
string

setKey

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

Returns
TypeDescription
string

setValue

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

Parameter
NameDescription
var string
Returns
TypeDescription
$this