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.
| 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 (:). |
↳ value |
string
The attribute's value. |
↳ string_value |
string
String typed attribute value. Note: This is identical to the |
↳ 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 |
|
getValue
The attribute's value.
| Returns | |
|---|---|
| Type | Description |
string |
|
setValue
The attribute's value.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| 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 |
|
getVehicleAttributeValue
| Returns | |
|---|---|
| Type | Description |
string |
|