Reference documentation and code samples for the Google Maps FleetEngine V1 Client class VehicleAttribute.
Describes a vehicle attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.
Generated from protobuf message maps.fleetengine.v1.VehicleAttribute
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ key
string
The attribute's key. Keys may not contain the colon character (:).
↳ value
string
The attribute's value.
↳ string_value
string
String typed attribute value. Note: This is identical to the value
field which will eventually be deprecated. For create or update methods, either field can be used, but it's strongly recommended to use string_value
. If both string_value
and value
are set, they must be identical or an error will be thrown. Both fields are populated in responses.
↳ 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 (:).
string
setKey
The attribute's key. Keys may not contain the colon character (:).
var
string
$this
getValue
The attribute's value.
string
setValue
The attribute's value.
var
string
$this
getStringValue
String typed attribute value.
Note: This is identical to the value
field which will eventually be
deprecated. For create or update methods, either field can be used, but
it's strongly recommended to use string_value
. If both string_value
and value
are set, they must be identical or an error will be thrown.
Both fields are populated in responses.
string
hasStringValue
setStringValue
String typed attribute value.
Note: This is identical to the value
field which will eventually be
deprecated. For create or update methods, either field can be used, but
it's strongly recommended to use string_value
. If both string_value
and value
are set, they must be identical or an error will be thrown.
Both fields are populated in responses.
var
string
$this
getBoolValue
Boolean typed attribute value.
bool
hasBoolValue
setBoolValue
Boolean typed attribute value.
var
bool
$this
getNumberValue
Double typed attribute value.
float
hasNumberValue
setNumberValue
Double typed attribute value.
var
float
$this
getVehicleAttributeValue
string