Class: Google::Maps::FleetEngine::V1::Vehicle

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

Overview

Vehicle metadata.

Defined Under Namespace

Classes: VehicleType

Instance Attribute Summary collapse

Instance Attribute Details

#attributes::Array<::Google::Maps::FleetEngine::V1::VehicleAttribute>

Returns List of vehicle attributes. A vehicle can have at most 100 attributes, and each attribute must have a unique key.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#back_to_back_enabled::Boolean

Returns Indicates if the driver accepts back-to-back trips. If true, SearchVehicles may include the vehicle even if it is currently assigned to a trip. The default value is false.

Returns:

  • (::Boolean)

    Indicates if the driver accepts back-to-back trips. If true, SearchVehicles may include the vehicle even if it is currently assigned to a trip. The default value is false.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#current_route_segment::String

Returns The polyline specifying the route the driver app intends to take to the next waypoint. This list is also returned in Trip.current_route_segment for all active trips assigned to the vehicle.

Note: This field is intended only for use by the Driver SDK. Decoding is not yet supported.

Returns:

  • (::String)

    The polyline specifying the route the driver app intends to take to the next waypoint. This list is also returned in Trip.current_route_segment for all active trips assigned to the vehicle.

    Note: This field is intended only for use by the Driver SDK. Decoding is not yet supported.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#current_route_segment_end_point::Google::Maps::FleetEngine::V1::TripWaypoint

Returns The waypoint where current_route_segment ends. This can be supplied by drivers on UpdateVehicle calls either as a full trip waypoint, a waypoint LatLng, or as the last LatLng of the current_route_segment. Fleet Engine will then do its best to interpolate to an actual waypoint if it is not fully specified. This field is ignored in UpdateVehicle calls unless current_route_segment is also specified.

Returns:

  • (::Google::Maps::FleetEngine::V1::TripWaypoint)

    The waypoint where current_route_segment ends. This can be supplied by drivers on UpdateVehicle calls either as a full trip waypoint, a waypoint LatLng, or as the last LatLng of the current_route_segment. Fleet Engine will then do its best to interpolate to an actual waypoint if it is not fully specified. This field is ignored in UpdateVehicle calls unless current_route_segment is also specified.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#current_route_segment_traffic::Google::Maps::FleetEngine::V1::TrafficPolylineData

Returns Input only. Fleet Engine uses this information to improve journey sharing. Note: This field is intended only for use by the Driver SDK.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#current_route_segment_version::Google::Protobuf::Timestamp (readonly)

Returns Output only. Time when current_route_segment was set. It can be stored by the client and passed in future GetVehicle requests to prevent returning routes that haven't changed.

Returns:

  • (::Google::Protobuf::Timestamp)

    Output only. Time when current_route_segment was set. It can be stored by the client and passed in future GetVehicle requests to prevent returning routes that haven't changed.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#current_trips::Array<::String> (readonly)

Returns Output only. List of trip_id's for trips currently assigned to this vehicle.

Returns:

  • (::Array<::String>)

    Output only. List of trip_id's for trips currently assigned to this vehicle.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#device_settings::Google::Maps::FleetEngine::V1::DeviceSettings

Returns Input only. Information about settings in the mobile device being used by the driver.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#eta_to_first_waypoint::Google::Protobuf::Timestamp

Returns The ETA to the first entry in the waypoints field. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty.

When updating a vehicle, remaining_time_seconds takes precedence over eta_to_first_waypoint in the same request.

Returns:

  • (::Google::Protobuf::Timestamp)

    The ETA to the first entry in the waypoints field. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty.

    When updating a vehicle, remaining_time_seconds takes precedence over eta_to_first_waypoint in the same request.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#last_location::Google::Maps::FleetEngine::V1::VehicleLocation

Returns Last reported location of the vehicle.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#license_plate::Google::Maps::FleetEngine::V1::LicensePlate

Returns License plate information for the vehicle.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#maximum_capacity::Integer

Returns The total numbers of riders this vehicle can carry. The driver is not considered in this value. This value must be greater than or equal to one.

Returns:

  • (::Integer)

    The total numbers of riders this vehicle can carry. The driver is not considered in this value. This value must be greater than or equal to one.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#name::String (readonly)

Returns Output only. The unique name for this vehicle. The format is providers/{provider}/vehicles/{vehicle}.

Returns:

  • (::String)

    Output only. The unique name for this vehicle. The format is providers/{provider}/vehicles/{vehicle}.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

Returns The vehicle's navigation status.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#remaining_distance_meters::Google::Protobuf::Int32Value

Returns The remaining driving distance for the current_route_segment. This value is also returned in Trip.remaining_distance_meters for all active trips assigned to the vehicle. The value is unspecified if the current_route_segment field is empty.

Returns:

  • (::Google::Protobuf::Int32Value)

    The remaining driving distance for the current_route_segment. This value is also returned in Trip.remaining_distance_meters for all active trips assigned to the vehicle. The value is unspecified if the current_route_segment field is empty.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#remaining_time_seconds::Google::Protobuf::Int32Value

Returns Input only. The remaining driving time for the current_route_segment. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty. This value should match eta_to_first_waypoint - current_time if all parties are using the same clock.

When updating a vehicle, remaining_time_seconds takes precedence over eta_to_first_waypoint in the same request.

Returns:

  • (::Google::Protobuf::Int32Value)

    Input only. The remaining driving time for the current_route_segment. The value is unspecified if the waypoints field is empty or the Vehicle.current_route_segment field is empty. This value should match eta_to_first_waypoint - current_time if all parties are using the same clock.

    When updating a vehicle, remaining_time_seconds takes precedence over eta_to_first_waypoint in the same request.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#route::Array<::Google::Maps::FleetEngine::V1::TerminalLocation>

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: Use Vehicle.waypoints instead.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#supported_trip_types::Array<::Google::Maps::FleetEngine::V1::TripType>

Returns Trip types supported by this vehicle.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#vehicle_state::Google::Maps::FleetEngine::V1::VehicleState

Returns The vehicle state.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#vehicle_type::Google::Maps::FleetEngine::V1::Vehicle::VehicleType

Returns Required. The type of this vehicle. Can be used to filter vehicles in SearchVehicles results. Also influences ETA and route calculations.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#waypoints::Array<::Google::Maps::FleetEngine::V1::TripWaypoint>

Returns The remaining waypoints assigned to this Vehicle.

Returns:



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end

#waypoints_version::Google::Protobuf::Timestamp (readonly)

Returns Output only. Last time the waypoints field was updated. Clients should cache this value and pass it in GetVehicleRequest to ensure the waypoints field is only returned if it is updated.

Returns:

  • (::Google::Protobuf::Timestamp)

    Output only. Last time the waypoints field was updated. Clients should cache this value and pass it in GetVehicleRequest to ensure the waypoints field is only returned if it is updated.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 130

class Vehicle
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vehicle.
  # @!attribute [rw] category
  #   @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category]
  #     Vehicle type category
  class VehicleType
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Vehicle type categories
    module Category
      # Default, used for unspecified or unrecognized vehicle categories.
      UNKNOWN = 0

      # An automobile.
      AUTO = 1

      # Any vehicle that acts as a taxi (typically licensed or regulated).
      TAXI = 2

      # Generally, a vehicle with a large storage capacity.
      TRUCK = 3

      # A motorcycle, moped, or other two-wheeled vehicle
      TWO_WHEELER = 4

      # Human-powered transport.
      BICYCLE = 5

      # A human transporter, typically walking or running, traveling along
      # pedestrian pathways.
      PEDESTRIAN = 6
    end
  end
end