Google Maps FleetEngine Delivery V1 Client - Class TaskAttribute (0.1.2)

Reference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class TaskAttribute.

Describes a task attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.

Generated from protobuf message maps.fleetengine.delivery.v1.TaskAttribute

Namespace

Google \ Maps \ FleetEngine \ Delivery \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

The attribute's key. Keys may not contain the colon character (:).

↳ string_value string

String typed attribute value.

↳ bool_value bool

Boolean typed attribute value.

↳ number_value float

Double typed attribute value.

getKey

The attribute's key. Keys may not contain the colon character (:).

Returns
Type Description
string

setKey

The attribute's key. Keys may not contain the colon character (:).

Parameter
Name Description
var string
Returns
Type Description
$this

getStringValue

String typed attribute value.

Returns
Type Description
string

hasStringValue

setStringValue

String typed attribute value.

Parameter
Name Description
var string
Returns
Type Description
$this

getBoolValue

Boolean typed attribute value.

Returns
Type Description
bool

hasBoolValue

setBoolValue

Boolean typed attribute value.

Parameter
Name Description
var bool
Returns
Type Description
$this

getNumberValue

Double typed attribute value.

Returns
Type Description
float

hasNumberValue

setNumberValue

Double typed attribute value.

Parameter
Name Description
var float
Returns
Type Description
$this

getTaskAttributeValue

Returns
Type Description
string