Class: Google::Maps::FleetEngine::V1::TripAttribute

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/maps/fleetengine/v1/fleetengine.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#bool_value::Boolean

Returns Boolean typed attribute value.

Note: The following fields are mutually exclusive: bool_value, string_value, number_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    Boolean typed attribute value.

    Note: The following fields are mutually exclusive: bool_value, string_value, number_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



291
292
293
294
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 291

class TripAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#key::String

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

Returns:

  • (::String)

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



291
292
293
294
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 291

class TripAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#number_value::Float

Returns Double typed attribute value.

Note: The following fields are mutually exclusive: number_value, string_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Float)

    Double typed attribute value.

    Note: The following fields are mutually exclusive: number_value, string_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



291
292
293
294
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 291

class TripAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#string_value::String

Returns String typed attribute value.

Note: The following fields are mutually exclusive: string_value, bool_value, number_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    String typed attribute value.

    Note: The following fields are mutually exclusive: string_value, bool_value, number_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



291
292
293
294
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 291

class TripAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end