Class: Google::Maps::FleetEngine::V1::VehicleAttribute
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::VehicleAttribute
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/fleetengine.rb
Overview
Describes a vehicle attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.
Instance Attribute Summary collapse
-
#bool_value ⇒ ::Boolean
Boolean typed attribute value.
-
#key ⇒ ::String
The attribute's key.
-
#number_value ⇒ ::Float
Double typed attribute value.
-
#string_value ⇒ ::String
String typed attribute value.
-
#value ⇒ ::String
The attribute's value.
Instance Attribute Details
#bool_value ⇒ ::Boolean
Returns Boolean typed attribute value.
135 136 137 138 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 135 class VehicleAttribute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#key ⇒ ::String
Returns The attribute's key. Keys may not contain the colon character (:).
135 136 137 138 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 135 class VehicleAttribute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#number_value ⇒ ::Float
Returns Double typed attribute value.
135 136 137 138 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 135 class VehicleAttribute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#string_value ⇒ ::String
Returns 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.
135 136 137 138 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 135 class VehicleAttribute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#value ⇒ ::String
Returns The attribute's value.
135 136 137 138 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 135 class VehicleAttribute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |