google-maps-fleet_engine-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/maps/fleet_engine/v1/rest.rb +38 -0
  6. data/lib/google/maps/fleet_engine/v1/trip_service/client.rb +996 -0
  7. data/lib/google/maps/fleet_engine/v1/trip_service/credentials.rb +47 -0
  8. data/lib/google/maps/fleet_engine/v1/trip_service/paths.rb +50 -0
  9. data/lib/google/maps/fleet_engine/v1/trip_service/rest/client.rb +930 -0
  10. data/lib/google/maps/fleet_engine/v1/trip_service/rest/service_stub.rb +368 -0
  11. data/lib/google/maps/fleet_engine/v1/trip_service/rest.rb +52 -0
  12. data/lib/google/maps/fleet_engine/v1/trip_service.rb +55 -0
  13. data/lib/google/maps/fleet_engine/v1/vehicle_service/client.rb +1639 -0
  14. data/lib/google/maps/fleet_engine/v1/vehicle_service/credentials.rb +47 -0
  15. data/lib/google/maps/fleet_engine/v1/vehicle_service/paths.rb +50 -0
  16. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/client.rb +1545 -0
  17. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/service_stub.rb +547 -0
  18. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest.rb +52 -0
  19. data/lib/google/maps/fleet_engine/v1/vehicle_service.rb +55 -0
  20. data/lib/google/maps/fleet_engine/v1/version.rb +8 -3
  21. data/lib/google/maps/fleet_engine/v1.rb +46 -0
  22. data/lib/google/maps/fleetengine/v1/fleetengine_pb.rb +63 -0
  23. data/lib/google/maps/fleetengine/v1/header_pb.rb +46 -0
  24. data/lib/google/maps/fleetengine/v1/traffic_pb.rb +44 -0
  25. data/lib/google/maps/fleetengine/v1/trip_api_pb.rb +66 -0
  26. data/lib/google/maps/fleetengine/v1/trip_api_services_pb.rb +53 -0
  27. data/lib/google/maps/fleetengine/v1/trips_pb.rb +61 -0
  28. data/lib/google/maps/fleetengine/v1/vehicle_api_pb.rb +81 -0
  29. data/lib/google/maps/fleetengine/v1/vehicle_api_services_pb.rb +108 -0
  30. data/lib/google/maps/fleetengine/v1/vehicles_pb.rb +64 -0
  31. data/lib/google-maps-fleet_engine-v1.rb +21 -0
  32. data/proto_docs/README.md +4 -0
  33. data/proto_docs/google/api/client.rb +399 -0
  34. data/proto_docs/google/api/field_behavior.rb +85 -0
  35. data/proto_docs/google/api/launch_stage.rb +71 -0
  36. data/proto_docs/google/api/resource.rb +222 -0
  37. data/proto_docs/google/api/routing.rb +459 -0
  38. data/proto_docs/google/geo/type/viewport.rb +70 -0
  39. data/proto_docs/google/maps/fleetengine/v1/fleetengine.rb +342 -0
  40. data/proto_docs/google/maps/fleetengine/v1/header.rb +111 -0
  41. data/proto_docs/google/maps/fleetengine/v1/traffic.rb +76 -0
  42. data/proto_docs/google/maps/fleetengine/v1/trip_api.rb +296 -0
  43. data/proto_docs/google/maps/fleetengine/v1/trips.rb +286 -0
  44. data/proto_docs/google/maps/fleetengine/v1/vehicle_api.rb +684 -0
  45. data/proto_docs/google/maps/fleetengine/v1/vehicles.rb +358 -0
  46. data/proto_docs/google/protobuf/duration.rb +98 -0
  47. data/proto_docs/google/protobuf/empty.rb +34 -0
  48. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  49. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  50. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  51. data/proto_docs/google/type/latlng.rb +38 -0
  52. metadata +119 -13
@@ -0,0 +1,342 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Maps
22
+ module FleetEngine
23
+ module V1
24
+ # Identifies a terminal point.
25
+ # @!attribute [rw] place_id
26
+ # @deprecated This field is deprecated and may be removed in the next major version update.
27
+ # @return [::String]
28
+ # Deprecated.
29
+ # @!attribute [rw] generated_id
30
+ # @deprecated This field is deprecated and may be removed in the next major version update.
31
+ # @return [::String]
32
+ # Deprecated.
33
+ # @!attribute [rw] value
34
+ # @return [::String]
35
+ # Unique ID of the terminal point.
36
+ class TerminalPointId
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Describes the location of a waypoint.
42
+ # @!attribute [rw] point
43
+ # @return [::Google::Type::LatLng]
44
+ # Required. Denotes the location of a trip waypoint.
45
+ # @!attribute [rw] terminal_point_id
46
+ # @return [::Google::Maps::FleetEngine::V1::TerminalPointId]
47
+ # ID of the terminal point.
48
+ # @!attribute [rw] access_point_id
49
+ # @deprecated This field is deprecated and may be removed in the next major version update.
50
+ # @return [::String]
51
+ # Deprecated.
52
+ # @!attribute [rw] trip_id
53
+ # @deprecated This field is deprecated and may be removed in the next major version update.
54
+ # @return [::String]
55
+ # Deprecated.
56
+ # @!attribute [rw] terminal_location_type
57
+ # @deprecated This field is deprecated and may be removed in the next major version update.
58
+ # @return [::Google::Maps::FleetEngine::V1::WaypointType]
59
+ # Deprecated: `Vehicle.waypoint` will have this data.
60
+ class TerminalLocation
61
+ include ::Google::Protobuf::MessageExts
62
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
+ end
64
+
65
+ # Describes a stopping point on a vehicle's route or an ending point on a
66
+ # vehicle's trip.
67
+ # @!attribute [rw] location
68
+ # @return [::Google::Maps::FleetEngine::V1::TerminalLocation]
69
+ # The location of this waypoint.
70
+ # @!attribute [rw] trip_id
71
+ # @return [::String]
72
+ # The trip associated with this waypoint.
73
+ # @!attribute [rw] waypoint_type
74
+ # @return [::Google::Maps::FleetEngine::V1::WaypointType]
75
+ # The role this waypoint plays in this trip, such as pickup or dropoff.
76
+ # @!attribute [rw] path_to_waypoint
77
+ # @return [::Array<::Google::Type::LatLng>]
78
+ # The path from the previous waypoint to the current waypoint. Undefined for
79
+ # the first waypoint in a list. This field is only populated when requested.
80
+ # @!attribute [rw] encoded_path_to_waypoint
81
+ # @return [::String]
82
+ # The encoded path from the previous waypoint to the current waypoint.
83
+ #
84
+ # <p>Note: This field is intended only for use by the Driver SDK and Consumer
85
+ # SDK. Decoding is not yet supported.
86
+ # @!attribute [rw] traffic_to_waypoint
87
+ # @return [::Google::Maps::FleetEngine::V1::ConsumableTrafficPolyline]
88
+ # The traffic conditions along the path to this waypoint. Note that traffic
89
+ # is only available for Google Map Platform Rides and Deliveries Solution
90
+ # customers.
91
+ # @!attribute [rw] distance_meters
92
+ # @return [::Google::Protobuf::Int32Value]
93
+ # The path distance from the previous waypoint to the current waypoint.
94
+ # Undefined for the first waypoint in a list.
95
+ # @!attribute [rw] eta
96
+ # @return [::Google::Protobuf::Timestamp]
97
+ # The estimated time of arrival at this waypoint. Undefined for the first
98
+ # waypoint in a list.
99
+ # @!attribute [rw] duration
100
+ # @return [::Google::Protobuf::Duration]
101
+ # The travel time from previous waypoint to this point. Undefined for the
102
+ # first waypoint in a list.
103
+ class TripWaypoint
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
+ end
107
+
108
+ # Describes a vehicle attribute as a key-value pair. The "key:value" string
109
+ # length cannot exceed 256 characters.
110
+ # @!attribute [rw] key
111
+ # @return [::String]
112
+ # The attribute's key. Keys may not contain the colon character (:).
113
+ # @!attribute [rw] value
114
+ # @return [::String]
115
+ # The attribute's value.
116
+ # @!attribute [rw] string_value
117
+ # @return [::String]
118
+ # String typed attribute value.
119
+ #
120
+ # Note: This is identical to the `value` field which will eventually be
121
+ # deprecated. For create or update methods, either field can be used, but
122
+ # it's strongly recommended to use `string_value`. If both `string_value`
123
+ # and `value` are set, they must be identical or an error will be thrown.
124
+ # Both fields are populated in responses.
125
+ # @!attribute [rw] bool_value
126
+ # @return [::Boolean]
127
+ # Boolean typed attribute value.
128
+ # @!attribute [rw] number_value
129
+ # @return [::Float]
130
+ # Double typed attribute value.
131
+ class VehicleAttribute
132
+ include ::Google::Protobuf::MessageExts
133
+ extend ::Google::Protobuf::MessageExts::ClassMethods
134
+ end
135
+
136
+ # The location, speed, and heading of a vehicle at a point in time.
137
+ # @!attribute [rw] location
138
+ # @return [::Google::Type::LatLng]
139
+ # The location of the vehicle.
140
+ # When it is sent to Fleet Engine, the vehicle's location is a GPS location.
141
+ # When you receive it in a response, the vehicle's location can be either a
142
+ # GPS location, a supplemental location, or some other estimated location.
143
+ # The source is specified in `location_sensor`.
144
+ # @!attribute [rw] horizontal_accuracy
145
+ # @deprecated This field is deprecated and may be removed in the next major version update.
146
+ # @return [::Google::Protobuf::DoubleValue]
147
+ # Deprecated: Use `latlng_accuracy` instead.
148
+ # @!attribute [rw] latlng_accuracy
149
+ # @return [::Google::Protobuf::DoubleValue]
150
+ # Accuracy of `location` in meters as a radius.
151
+ # @!attribute [rw] heading
152
+ # @return [::Google::Protobuf::Int32Value]
153
+ # Direction the vehicle is moving in degrees. 0 represents North.
154
+ # The valid range is [0,360).
155
+ # @!attribute [rw] bearing_accuracy
156
+ # @deprecated This field is deprecated and may be removed in the next major version update.
157
+ # @return [::Google::Protobuf::DoubleValue]
158
+ # Deprecated: Use `heading_accuracy` instead.
159
+ # @!attribute [rw] heading_accuracy
160
+ # @return [::Google::Protobuf::DoubleValue]
161
+ # Accuracy of `heading` in degrees.
162
+ # @!attribute [rw] altitude
163
+ # @return [::Google::Protobuf::DoubleValue]
164
+ # Altitude in meters above WGS84.
165
+ # @!attribute [rw] vertical_accuracy
166
+ # @deprecated This field is deprecated and may be removed in the next major version update.
167
+ # @return [::Google::Protobuf::DoubleValue]
168
+ # Deprecated: Use `altitude_accuracy` instead.
169
+ # @!attribute [rw] altitude_accuracy
170
+ # @return [::Google::Protobuf::DoubleValue]
171
+ # Accuracy of `altitude` in meters.
172
+ # @!attribute [rw] speed_kmph
173
+ # @deprecated This field is deprecated and may be removed in the next major version update.
174
+ # @return [::Google::Protobuf::Int32Value]
175
+ # Speed of the vehicle in kilometers per hour.
176
+ # Deprecated: Use `speed` instead.
177
+ # @!attribute [rw] speed
178
+ # @return [::Google::Protobuf::DoubleValue]
179
+ # Speed of the vehicle in meters/second
180
+ # @!attribute [rw] speed_accuracy
181
+ # @return [::Google::Protobuf::DoubleValue]
182
+ # Accuracy of `speed` in meters/second.
183
+ # @!attribute [rw] update_time
184
+ # @return [::Google::Protobuf::Timestamp]
185
+ # The time when `location` was reported by the sensor according to the
186
+ # sensor's clock.
187
+ # @!attribute [r] server_time
188
+ # @return [::Google::Protobuf::Timestamp]
189
+ # Output only. The time when the server received the location information.
190
+ # @!attribute [rw] location_sensor
191
+ # @return [::Google::Maps::FleetEngine::V1::LocationSensor]
192
+ # Provider of location data (for example, `GPS`).
193
+ # @!attribute [rw] is_road_snapped
194
+ # @return [::Google::Protobuf::BoolValue]
195
+ # Whether `location` is snapped to a road.
196
+ # @!attribute [rw] is_gps_sensor_enabled
197
+ # @return [::Google::Protobuf::BoolValue]
198
+ # Input only. Indicates whether the GPS sensor is enabled on the mobile
199
+ # device.
200
+ # @!attribute [rw] time_since_update
201
+ # @return [::Google::Protobuf::Int32Value]
202
+ # Input only. Time (in seconds) since this location was first sent to the
203
+ # server. This will be zero for the first update. If the time is unknown (for
204
+ # example, when the app restarts), this value resets to zero.
205
+ # @!attribute [rw] num_stale_updates
206
+ # @deprecated This field is deprecated and may be removed in the next major version update.
207
+ # @return [::Google::Protobuf::Int32Value]
208
+ # Input only. Deprecated: Other signals are now used to determine if a
209
+ # location is stale.
210
+ # @!attribute [rw] raw_location
211
+ # @return [::Google::Type::LatLng]
212
+ # Raw vehicle location (unprocessed by road-snapper).
213
+ # @!attribute [rw] raw_location_time
214
+ # @return [::Google::Protobuf::Timestamp]
215
+ # Timestamp associated with the raw location.
216
+ # @!attribute [rw] raw_location_sensor
217
+ # @return [::Google::Maps::FleetEngine::V1::LocationSensor]
218
+ # Source of the raw location. Defaults to `GPS`.
219
+ # @!attribute [rw] raw_location_accuracy
220
+ # @return [::Google::Protobuf::DoubleValue]
221
+ # Accuracy of `raw_location` as a radius, in meters.
222
+ # @!attribute [rw] supplemental_location
223
+ # @return [::Google::Type::LatLng]
224
+ # Supplemental location provided by the integrating app.
225
+ # @!attribute [rw] supplemental_location_time
226
+ # @return [::Google::Protobuf::Timestamp]
227
+ # Timestamp associated with the supplemental location.
228
+ # @!attribute [rw] supplemental_location_sensor
229
+ # @return [::Google::Maps::FleetEngine::V1::LocationSensor]
230
+ # Source of the supplemental location. Defaults to
231
+ # `CUSTOMER_SUPPLIED_LOCATION`.
232
+ # @!attribute [rw] supplemental_location_accuracy
233
+ # @return [::Google::Protobuf::DoubleValue]
234
+ # Accuracy of `supplemental_location` as a radius, in meters.
235
+ # @!attribute [rw] road_snapped
236
+ # @deprecated This field is deprecated and may be removed in the next major version update.
237
+ # @return [::Boolean]
238
+ # Deprecated: Use `is_road_snapped` instead.
239
+ class VehicleLocation
240
+ include ::Google::Protobuf::MessageExts
241
+ extend ::Google::Protobuf::MessageExts::ClassMethods
242
+ end
243
+
244
+ # The type of a trip.
245
+ module TripType
246
+ # Default, used for unspecified or unrecognized trip types.
247
+ UNKNOWN_TRIP_TYPE = 0
248
+
249
+ # The trip may share a vehicle with other trips.
250
+ SHARED = 1
251
+
252
+ # The trip is exclusive to a vehicle.
253
+ EXCLUSIVE = 2
254
+ end
255
+
256
+ # The type of waypoint.
257
+ module WaypointType
258
+ # Unknown or unspecified waypoint type.
259
+ UNKNOWN_WAYPOINT_TYPE = 0
260
+
261
+ # Waypoints for picking up riders or items.
262
+ PICKUP_WAYPOINT_TYPE = 1
263
+
264
+ # Waypoints for dropping off riders or items.
265
+ DROP_OFF_WAYPOINT_TYPE = 2
266
+
267
+ # Waypoints for intermediate destinations in a multi-destination trip.
268
+ INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3
269
+ end
270
+
271
+ # The type of polyline format.
272
+ module PolylineFormatType
273
+ # The format is unspecified or unknown.
274
+ UNKNOWN_FORMAT_TYPE = 0
275
+
276
+ # A list of `google.type.LatLng`.
277
+ LAT_LNG_LIST_TYPE = 1
278
+
279
+ # A polyline encoded with a polyline compression algorithm. Decoding is not
280
+ # yet supported.
281
+ ENCODED_POLYLINE_TYPE = 2
282
+ end
283
+
284
+ # The vehicle's navigation status.
285
+ module NavigationStatus
286
+ # Unspecified navigation status.
287
+ UNKNOWN_NAVIGATION_STATUS = 0
288
+
289
+ # The Driver app's navigation is in `FREE_NAV` mode.
290
+ NO_GUIDANCE = 1
291
+
292
+ # Turn-by-turn navigation is available and the Driver app navigation has
293
+ # entered `GUIDED_NAV` mode.
294
+ ENROUTE_TO_DESTINATION = 2
295
+
296
+ # The vehicle has gone off the suggested route.
297
+ OFF_ROUTE = 3
298
+
299
+ # The vehicle is within approximately 50m of the destination.
300
+ ARRIVED_AT_DESTINATION = 4
301
+ end
302
+
303
+ # The sensor or methodology used to determine the location.
304
+ module LocationSensor
305
+ # The sensor is unspecified or unknown.
306
+ UNKNOWN_SENSOR = 0
307
+
308
+ # GPS or Assisted GPS.
309
+ GPS = 1
310
+
311
+ # Assisted GPS, cell tower ID, or WiFi access point.
312
+ NETWORK = 2
313
+
314
+ # Cell tower ID or WiFi access point.
315
+ PASSIVE = 3
316
+
317
+ # A location determined by the mobile device to be the most likely
318
+ # road position.
319
+ ROAD_SNAPPED_LOCATION_PROVIDER = 4
320
+
321
+ # A customer-supplied location from an independent source. Typically, this
322
+ # value is used for a location provided from sources other than the mobile
323
+ # device running Driver SDK. If the original source is described by one of
324
+ # the other enum values, use that value. Locations marked
325
+ # CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's
326
+ # `last_location.supplemental_location_sensor`.
327
+ CUSTOMER_SUPPLIED_LOCATION = 5
328
+
329
+ # A location calculated by Fleet Engine based on the signals available to it.
330
+ # Output only. This value will be rejected if it is received in a request.
331
+ FLEET_ENGINE_LOCATION = 6
332
+
333
+ # Android's Fused Location Provider.
334
+ FUSED_LOCATION_PROVIDER = 100
335
+
336
+ # The location provider on Apple operating systems.
337
+ CORE_LOCATION = 200
338
+ end
339
+ end
340
+ end
341
+ end
342
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Maps
22
+ module FleetEngine
23
+ module V1
24
+ # A RequestHeader contains fields common to all Fleet Engine RPC requests.
25
+ # @!attribute [rw] language_code
26
+ # @return [::String]
27
+ # The BCP-47 language code, such as en-US or sr-Latn. For more information,
28
+ # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none
29
+ # is specified, the response may be in any language, with a preference for
30
+ # English if such a name exists. Field value example: `en-US`.
31
+ # @!attribute [rw] region_code
32
+ # @return [::String]
33
+ # Required. CLDR region code of the region where the request originates.
34
+ # Field value example: `US`.
35
+ # @!attribute [rw] sdk_version
36
+ # @return [::String]
37
+ # Version of the calling SDK, if applicable.
38
+ # The version format is "major.minor.patch", example: `1.1.2`.
39
+ # @!attribute [rw] os_version
40
+ # @return [::String]
41
+ # Version of the operating system on which the calling SDK is running.
42
+ # Field value examples: `4.4.1`, `12.1`.
43
+ # @!attribute [rw] device_model
44
+ # @return [::String]
45
+ # Model of the device on which the calling SDK is running.
46
+ # Field value examples: `iPhone12,1`, `SM-G920F`.
47
+ # @!attribute [rw] sdk_type
48
+ # @return [::Google::Maps::FleetEngine::V1::RequestHeader::SdkType]
49
+ # The type of SDK sending the request.
50
+ # @!attribute [rw] maps_sdk_version
51
+ # @return [::String]
52
+ # Version of the MapSDK which the calling SDK depends on, if applicable.
53
+ # The version format is "major.minor.patch", example: `5.2.1`.
54
+ # @!attribute [rw] nav_sdk_version
55
+ # @return [::String]
56
+ # Version of the NavSDK which the calling SDK depends on, if applicable.
57
+ # The version format is "major.minor.patch", example: `2.1.0`.
58
+ # @!attribute [rw] platform
59
+ # @return [::Google::Maps::FleetEngine::V1::RequestHeader::Platform]
60
+ # Platform of the calling SDK.
61
+ # @!attribute [rw] manufacturer
62
+ # @return [::String]
63
+ # Manufacturer of the Android device from the calling SDK, only applicable
64
+ # for the Android SDKs.
65
+ # Field value example: `Samsung`.
66
+ # @!attribute [rw] android_api_level
67
+ # @return [::Integer]
68
+ # Android API level of the calling SDK, only applicable for the Android SDKs.
69
+ # Field value example: `23`.
70
+ # @!attribute [rw] trace_id
71
+ # @return [::String]
72
+ # Optional ID that can be provided for logging purposes in order to identify
73
+ # the request.
74
+ class RequestHeader
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+
78
+ # Possible types of SDK.
79
+ module SdkType
80
+ # The default value. This value is used if the `sdk_type` is omitted.
81
+ SDK_TYPE_UNSPECIFIED = 0
82
+
83
+ # The calling SDK is Consumer.
84
+ CONSUMER = 1
85
+
86
+ # The calling SDK is Driver.
87
+ DRIVER = 2
88
+
89
+ # The calling SDK is JavaScript.
90
+ JAVASCRIPT = 3
91
+ end
92
+
93
+ # The platform of the calling SDK.
94
+ module Platform
95
+ # The default value. This value is used if the platform is omitted.
96
+ PLATFORM_UNSPECIFIED = 0
97
+
98
+ # The request is coming from Android.
99
+ ANDROID = 1
100
+
101
+ # The request is coming from iOS.
102
+ IOS = 2
103
+
104
+ # The request is coming from the web.
105
+ WEB = 3
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Maps
22
+ module FleetEngine
23
+ module V1
24
+ # Traffic density indicator on a contiguous segment of a path. Given a path
25
+ # with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval
26
+ # defines an interval and describes its traffic using the following categories.
27
+ # @!attribute [rw] start_polyline_point_index
28
+ # @return [::Integer]
29
+ # The starting index of this interval in the path.
30
+ # In JSON, when the index is 0, the field will appear to be unpopulated.
31
+ # @!attribute [rw] end_polyline_point_index
32
+ # @return [::Integer]
33
+ # The ending index of this interval in the path.
34
+ # In JSON, when the index is 0, the field will appear to be unpopulated.
35
+ # @!attribute [rw] speed
36
+ # @return [::Google::Maps::FleetEngine::V1::SpeedReadingInterval::Speed]
37
+ # Traffic speed in this interval.
38
+ class SpeedReadingInterval
39
+ include ::Google::Protobuf::MessageExts
40
+ extend ::Google::Protobuf::MessageExts::ClassMethods
41
+
42
+ # The classification of polyline speed based on traffic data.
43
+ module Speed
44
+ # Default value. This value is unused.
45
+ SPEED_UNSPECIFIED = 0
46
+
47
+ # Normal speed, no slowdown is detected.
48
+ NORMAL = 1
49
+
50
+ # Slowdown detected, but no traffic jam formed.
51
+ SLOW = 2
52
+
53
+ # Traffic jam detected.
54
+ TRAFFIC_JAM = 3
55
+ end
56
+ end
57
+
58
+ # Traffic density along a Vehicle's path.
59
+ # @!attribute [rw] speed_reading_interval
60
+ # @return [::Array<::Google::Maps::FleetEngine::V1::SpeedReadingInterval>]
61
+ # Traffic speed along the path from the previous waypoint to the current
62
+ # waypoint.
63
+ # @!attribute [rw] encoded_path_to_waypoint
64
+ # @return [::String]
65
+ # The path the driver is taking from the previous waypoint to the current
66
+ # waypoint. This path has landmarks in it so clients can show traffic markers
67
+ # along the path (see `speed_reading_interval`). Decoding is not yet
68
+ # supported.
69
+ class ConsumableTrafficPolyline
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end