Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Route information from Google Maps.
Instance Attribute Summary collapse
-
#distance_meters ⇒ Fixnum
The total distance of the route, in meters.
-
#duration ⇒ String
The total duration of the route.
-
#encoded_polyline ⇒ String
An encoded polyline of the route.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
constructor
A new instance of GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
Returns a new instance of GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute.
2114 2115 2116 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distance_meters ⇒ Fixnum
The total distance of the route, in meters.
Corresponds to the JSON property distanceMeters
2101 2102 2103 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2101 def distance_meters @distance_meters end |
#duration ⇒ String
The total duration of the route.
Corresponds to the JSON property duration
2106 2107 2108 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2106 def duration @duration end |
#encoded_polyline ⇒ String
An encoded polyline of the route. See https://developers.google.com/maps/
documentation/utilities/polylinealgorithm
Corresponds to the JSON property encodedPolyline
2112 2113 2114 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2112 def encoded_polyline @encoded_polyline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2119 2120 2121 2122 2123 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2119 def update!(**args) @distance_meters = args[:distance_meters] if args.key?(:distance_meters) @duration = args[:duration] if args.key?(:duration) @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline) end |