Reference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class DeliveryVehicleAttribute.
Describes a vehicle attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.
Generated from protobuf message maps.fleetengine.delivery.v1.DeliveryVehicleAttribute
Namespace
Google \ Maps \ FleetEngine \ Delivery \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ key |
string
The attribute's key. |
↳ 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.
Returns | |
---|---|
Type | Description |
string |
setKey
The attribute's key.
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 |
getDeliveryVehicleAttributeValue
Returns | |
---|---|
Type | Description |
string |