google-maps-fleet_engine-delivery-v1 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/client.rb +1621 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/credentials.rb +49 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/paths.rb +100 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/rest/client.rb +1505 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/rest/service_stub.rb +725 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/rest.rb +54 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service.rb +57 -0
- data/lib/google/maps/fleet_engine/delivery/v1/rest.rb +39 -0
- data/lib/google/maps/fleet_engine/delivery/v1/version.rb +8 -3
- data/lib/google/maps/fleet_engine/delivery/v1.rb +47 -0
- data/lib/google/maps/fleetengine/delivery/v1/common_pb.rb +57 -0
- data/lib/google/maps/fleetengine/delivery/v1/delivery_api_pb.rb +75 -0
- data/lib/google/maps/fleetengine/delivery/v1/delivery_api_services_pb.rb +73 -0
- data/lib/google/maps/fleetengine/delivery/v1/delivery_vehicles_pb.rb +61 -0
- data/lib/google/maps/fleetengine/delivery/v1/header_pb.rb +48 -0
- data/lib/google/maps/fleetengine/delivery/v1/task_tracking_info_pb.rb +58 -0
- data/lib/google/maps/fleetengine/delivery/v1/tasks_pb.rb +62 -0
- data/lib/google-maps-fleet_engine-delivery-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/geo/type/viewport.rb +70 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/common.rb +251 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/delivery_api.rb +416 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb +271 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/header.rb +113 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/task_tracking_info.rb +91 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/tasks.rb +281 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +109 -13
@@ -0,0 +1,271 @@
|
|
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 Delivery
|
24
|
+
module V1
|
25
|
+
# The `DeliveryVehicle` message. A delivery vehicle transports shipments from a
|
26
|
+
# depot to a delivery location, and from a pickup location to the depot. In
|
27
|
+
# some cases, delivery vehicles also transport shipments directly from the
|
28
|
+
# pickup location to the delivery location.
|
29
|
+
#
|
30
|
+
# Note: gRPC and REST APIs use different field naming conventions. For example,
|
31
|
+
# the `DeliveryVehicle.current_route_segment` field in the gRPC API and the
|
32
|
+
# `DeliveryVehicle.currentRouteSegment` field in the REST API refer to the same
|
33
|
+
# field.
|
34
|
+
# @!attribute [rw] name
|
35
|
+
# @return [::String]
|
36
|
+
# The unique name of this Delivery Vehicle.
|
37
|
+
# The format is `providers/{provider}/deliveryVehicles/{vehicle}`.
|
38
|
+
# @!attribute [rw] last_location
|
39
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleLocation]
|
40
|
+
# The last reported location of the Delivery Vehicle.
|
41
|
+
# @!attribute [rw] navigation_status
|
42
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleNavigationStatus]
|
43
|
+
# The Delivery Vehicle's navigation status.
|
44
|
+
# @!attribute [rw] current_route_segment
|
45
|
+
# @return [::String]
|
46
|
+
# The encoded polyline specifying the route that the navigation recommends
|
47
|
+
# taking to the next waypoint. Your driver app updates this when a
|
48
|
+
# stop is reached or passed, and when the navigation reroutes. These
|
49
|
+
# `LatLng`s are returned in
|
50
|
+
# `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path`
|
51
|
+
# (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path`
|
52
|
+
# (REST) for all active Tasks assigned to the Vehicle.
|
53
|
+
#
|
54
|
+
# There are a few cases where this field might not be used to populate
|
55
|
+
# `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path`
|
56
|
+
# (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path`
|
57
|
+
# (REST):
|
58
|
+
#
|
59
|
+
# * The endpoint of the `current_route_segment` does not match
|
60
|
+
# `DeliveryVehicle.remaining_vehicle_journey_segments[0].stop` (gRPC) or
|
61
|
+
# `DeliveryVehicle.remainingVehicleJourneySegments[0].stop` (REST).
|
62
|
+
#
|
63
|
+
# * The driver app has not updated its location recently, so the last
|
64
|
+
# updated value for this field might be stale.
|
65
|
+
#
|
66
|
+
# * The driver app has recently updated its location, but the
|
67
|
+
# `current_route_segment` is stale, and points to a previous vehicle stop.
|
68
|
+
#
|
69
|
+
# In these cases, Fleet Engine populates this field with a route from the
|
70
|
+
# most recently passed VehicleStop to the upcoming VehicleStop to ensure that
|
71
|
+
# the consumer of this field has the best available information on the
|
72
|
+
# current path of the Delivery Vehicle.
|
73
|
+
# @!attribute [rw] current_route_segment_end_point
|
74
|
+
# @return [::Google::Type::LatLng]
|
75
|
+
# The location where the `current_route_segment` ends. This is not currently
|
76
|
+
# populated by the driver app, but you can supply it on
|
77
|
+
# `UpdateDeliveryVehicle` calls. It is either the `LatLng` from the upcoming
|
78
|
+
# vehicle stop, or the last `LatLng` of the `current_route_segment`. Fleet
|
79
|
+
# Engine will then do its best to interpolate to an actual `VehicleStop`.
|
80
|
+
#
|
81
|
+
# This field is ignored in `UpdateDeliveryVehicle` calls if the
|
82
|
+
# `current_route_segment` field is empty.
|
83
|
+
# @!attribute [rw] remaining_distance_meters
|
84
|
+
# @return [::Google::Protobuf::Int32Value]
|
85
|
+
# The remaining driving distance for the `current_route_segment`.
|
86
|
+
# The Driver app typically provides this field, but there are some
|
87
|
+
# circumstances in which Fleet Engine will override the value sent by the
|
88
|
+
# app. For more information, see
|
89
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicle#current_route_segment DeliveryVehicle.current_route_segment}.
|
90
|
+
# This field is returned in
|
91
|
+
# `Task.remaining_vehicle_journey_segments[0].driving_distance_meters` (gRPC)
|
92
|
+
# or `Task.remainingVehicleJourneySegments[0].drivingDistanceMeters` (REST)
|
93
|
+
# for all active `Task`s assigned to the Delivery Vehicle.
|
94
|
+
#
|
95
|
+
# Fleet Engine ignores this field in `UpdateDeliveryVehicleRequest` if the
|
96
|
+
# `current_route_segment` field is empty.
|
97
|
+
# @!attribute [rw] remaining_duration
|
98
|
+
# @return [::Google::Protobuf::Duration]
|
99
|
+
# The remaining driving time for the `current_route_segment`.
|
100
|
+
# The Driver app typically provides this field, but there are some
|
101
|
+
# circumstances in which Fleet Engine will override the value sent by the
|
102
|
+
# app. For more information, see
|
103
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicle#current_route_segment DeliveryVehicle.current_route_segment}.
|
104
|
+
# This field is returned in
|
105
|
+
# `Task.remaining_vehicle_journey_segments[0].driving_duration` (gRPC) or
|
106
|
+
# `Task.remainingVehicleJourneySegments[0].drivingDuration` (REST) for all
|
107
|
+
# active tasks assigned to the Delivery Vehicle.
|
108
|
+
#
|
109
|
+
# Fleet Engine ignores this field in `UpdateDeliveryVehicleRequest` if the
|
110
|
+
# `current_route_segment` field is empty.
|
111
|
+
# @!attribute [rw] remaining_vehicle_journey_segments
|
112
|
+
# @return [::Array<::Google::Maps::FleetEngine::Delivery::V1::VehicleJourneySegment>]
|
113
|
+
# The journey segments assigned to this Delivery Vehicle, starting from the
|
114
|
+
# Vehicle's most recently reported location. This field won't be populated
|
115
|
+
# in the response of `ListDeliveryVehicles`.
|
116
|
+
# @!attribute [rw] attributes
|
117
|
+
# @return [::Array<::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleAttribute>]
|
118
|
+
# A list of custom Delivery Vehicle attributes. A Delivery Vehicle can have
|
119
|
+
# at most 100 attributes, and each attribute must have a unique key.
|
120
|
+
# @!attribute [rw] type
|
121
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicle::DeliveryVehicleType]
|
122
|
+
# The type of this delivery vehicle. If unset, this will default to `AUTO`.
|
123
|
+
class DeliveryVehicle
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
|
127
|
+
# The type of delivery vehicle.
|
128
|
+
module DeliveryVehicleType
|
129
|
+
# The value is unused.
|
130
|
+
DELIVERY_VEHICLE_TYPE_UNSPECIFIED = 0
|
131
|
+
|
132
|
+
# An automobile.
|
133
|
+
AUTO = 1
|
134
|
+
|
135
|
+
# A motorcycle, moped, or other two-wheeled vehicle
|
136
|
+
TWO_WHEELER = 2
|
137
|
+
|
138
|
+
# Human-powered transport.
|
139
|
+
BICYCLE = 3
|
140
|
+
|
141
|
+
# A human transporter, typically walking or running, traveling along
|
142
|
+
# pedestrian pathways.
|
143
|
+
PEDESTRIAN = 4
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# A location with any additional identifiers.
|
148
|
+
# @!attribute [rw] point
|
149
|
+
# @return [::Google::Type::LatLng]
|
150
|
+
# The location's coordinates.
|
151
|
+
class LocationInfo
|
152
|
+
include ::Google::Protobuf::MessageExts
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
154
|
+
end
|
155
|
+
|
156
|
+
# Represents a Vehicle’s travel segment - from its previous stop to the
|
157
|
+
# current stop. If it is the first active stop, then it is from the
|
158
|
+
# Vehicle’s current location to this stop.
|
159
|
+
# @!attribute [rw] stop
|
160
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::VehicleStop]
|
161
|
+
# Specifies the stop location, along with the `Task`s associated with
|
162
|
+
# the stop. Some fields of the VehicleStop might not be present if this
|
163
|
+
# journey segment is part of `JourneySharingInfo`.
|
164
|
+
# @!attribute [r] driving_distance_meters
|
165
|
+
# @return [::Google::Protobuf::Int32Value]
|
166
|
+
# Output only. The travel distance from the previous stop to this stop.
|
167
|
+
# If the current stop is the first stop in the list of journey
|
168
|
+
# segments, then the starting point is the vehicle's location recorded
|
169
|
+
# at the time that this stop was added to the list. This field might not be
|
170
|
+
# present if this journey segment is part of `JourneySharingInfo`.
|
171
|
+
# @!attribute [r] driving_duration
|
172
|
+
# @return [::Google::Protobuf::Duration]
|
173
|
+
# Output only. The travel time from the previous stop to this stop.
|
174
|
+
# If the current stop is the first stop in the list of journey
|
175
|
+
# segments, then the starting point is the Vehicle's location recorded
|
176
|
+
# at the time that this stop was added to the list.
|
177
|
+
#
|
178
|
+
# If this field is defined in the path
|
179
|
+
# `Task.remaining_vehicle_journey_segments[0].driving_duration` (gRPC) or
|
180
|
+
# `Task.remainingVehicleJourneySegments[0].drivingDuration` (REST),
|
181
|
+
# then it may be populated with the value from
|
182
|
+
# `DeliveryVehicle.remaining_duration` (gRPC) or
|
183
|
+
# `DeliveryVehicle.remainingDuration` (REST).
|
184
|
+
# This provides the remaining driving duration from the driver app's latest
|
185
|
+
# known location rather than the driving time from the previous stop.
|
186
|
+
# @!attribute [r] path
|
187
|
+
# @return [::Array<::Google::Type::LatLng>]
|
188
|
+
# Output only. The path from the previous stop to this stop. If the current
|
189
|
+
# stop is the first stop in the list of journey segments, then this is the
|
190
|
+
# path from the vehicle's current location to this stop at the time that the
|
191
|
+
# stop was added to the list. This field might not be present if this journey
|
192
|
+
# segment is part of `JourneySharingInfo`.
|
193
|
+
#
|
194
|
+
# If this field is defined in the path
|
195
|
+
# `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path`
|
196
|
+
# (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path`
|
197
|
+
# (REST), then it may be populated with the `LatLng`s decoded from
|
198
|
+
# `DeliveryVehicle.current_route_segment` (gRPC) or
|
199
|
+
# `DeliveryVehicle.currentRouteSegment` (REST). This provides the driving
|
200
|
+
# path from the driver app's latest known location rather than the path from
|
201
|
+
# the previous stop.
|
202
|
+
class VehicleJourneySegment
|
203
|
+
include ::Google::Protobuf::MessageExts
|
204
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
end
|
206
|
+
|
207
|
+
# Describes a point where a Vehicle stops to perform one or more `Task`s.
|
208
|
+
# @!attribute [rw] planned_location
|
209
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::LocationInfo]
|
210
|
+
# Required. The location of the stop. Note that the locations in the `Task`s
|
211
|
+
# might not exactly match this location, but will be within a short distance
|
212
|
+
# of it. This field won't be populated in the response of either a `GetTask`,
|
213
|
+
# or a `SearchTasks` call.
|
214
|
+
# @!attribute [rw] tasks
|
215
|
+
# @return [::Array<::Google::Maps::FleetEngine::Delivery::V1::VehicleStop::TaskInfo>]
|
216
|
+
# The list of `Task`s to be performed at this stop. This field won't be
|
217
|
+
# populated in the response of either a `GetTask` or `SearchTasks` call.
|
218
|
+
# @!attribute [rw] state
|
219
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::VehicleStop::State]
|
220
|
+
# The state of the `VehicleStop`. This field won't be populated in the
|
221
|
+
# response of either a `GetTask`, or a `SearchTasks` call.
|
222
|
+
class VehicleStop
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
|
226
|
+
# Additional information about the Task performed at this stop.
|
227
|
+
# @!attribute [rw] task_id
|
228
|
+
# @return [::String]
|
229
|
+
# The Task ID. This field won't be populated in the response of either a
|
230
|
+
# `GetTask`, or a `SearchTasks` call. Task IDs are subject to the following
|
231
|
+
# restrictions:
|
232
|
+
#
|
233
|
+
# * Must be a valid Unicode string.
|
234
|
+
# * Limited to a maximum length of 64 characters.
|
235
|
+
# * Normalized according to [Unicode Normalization Form C]
|
236
|
+
# (http://www.unicode.org/reports/tr15/).
|
237
|
+
# * May not contain any of the following ASCII characters: '/', ':', '?',
|
238
|
+
# ',', or '#'.
|
239
|
+
# @!attribute [r] task_duration
|
240
|
+
# @return [::Google::Protobuf::Duration]
|
241
|
+
# Output only. The time required to perform the Task.
|
242
|
+
# @!attribute [r] target_time_window
|
243
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::TimeWindow]
|
244
|
+
# Output only. The time window during which the task should be completed.
|
245
|
+
# This is only set in the response to `GetDeliveryVehicle`.
|
246
|
+
class TaskInfo
|
247
|
+
include ::Google::Protobuf::MessageExts
|
248
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
249
|
+
end
|
250
|
+
|
251
|
+
# The current state of a `VehicleStop`.
|
252
|
+
module State
|
253
|
+
# Unknown.
|
254
|
+
STATE_UNSPECIFIED = 0
|
255
|
+
|
256
|
+
# Created, but not actively routing.
|
257
|
+
NEW = 1
|
258
|
+
|
259
|
+
# Assigned and actively routing.
|
260
|
+
ENROUTE = 2
|
261
|
+
|
262
|
+
# Arrived at stop. Assumes that when the Vehicle is routing to the next
|
263
|
+
# stop, that all previous stops have been completed.
|
264
|
+
ARRIVED = 3
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
@@ -0,0 +1,113 @@
|
|
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 Delivery
|
24
|
+
module V1
|
25
|
+
# A RequestHeader contains fields common to all Delivery RPC requests.
|
26
|
+
# @!attribute [rw] language_code
|
27
|
+
# @return [::String]
|
28
|
+
# The BCP-47 language code, such as en-US or sr-Latn. For more information,
|
29
|
+
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none
|
30
|
+
# is specified, the response may be in any language, with a preference for
|
31
|
+
# English if such a name exists. Field value example: `en-US`.
|
32
|
+
# @!attribute [rw] region_code
|
33
|
+
# @return [::String]
|
34
|
+
# Required. CLDR region code of the region where the request originates.
|
35
|
+
# Field value example: `US`.
|
36
|
+
# @!attribute [rw] sdk_version
|
37
|
+
# @return [::String]
|
38
|
+
# Version of the calling SDK, if applicable.
|
39
|
+
# The version format is "major.minor.patch", example: `1.1.2`.
|
40
|
+
# @!attribute [rw] os_version
|
41
|
+
# @return [::String]
|
42
|
+
# Version of the operating system on which the calling SDK is running.
|
43
|
+
# Field value examples: `4.4.1`, `12.1`.
|
44
|
+
# @!attribute [rw] device_model
|
45
|
+
# @return [::String]
|
46
|
+
# Model of the device on which the calling SDK is running.
|
47
|
+
# Field value examples: `iPhone12,1`, `SM-G920F`.
|
48
|
+
# @!attribute [rw] sdk_type
|
49
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader::SdkType]
|
50
|
+
# The type of SDK sending the request.
|
51
|
+
# @!attribute [rw] maps_sdk_version
|
52
|
+
# @return [::String]
|
53
|
+
# Version of the MapSDK which the calling SDK depends on, if applicable.
|
54
|
+
# The version format is "major.minor.patch", example: `5.2.1`.
|
55
|
+
# @!attribute [rw] nav_sdk_version
|
56
|
+
# @return [::String]
|
57
|
+
# Version of the NavSDK which the calling SDK depends on, if applicable.
|
58
|
+
# The version format is "major.minor.patch", example: `2.1.0`.
|
59
|
+
# @!attribute [rw] platform
|
60
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader::Platform]
|
61
|
+
# Platform of the calling SDK.
|
62
|
+
# @!attribute [rw] manufacturer
|
63
|
+
# @return [::String]
|
64
|
+
# Manufacturer of the Android device from the calling SDK, only applicable
|
65
|
+
# for the Android SDKs.
|
66
|
+
# Field value example: `Samsung`.
|
67
|
+
# @!attribute [rw] android_api_level
|
68
|
+
# @return [::Integer]
|
69
|
+
# Android API level of the calling SDK, only applicable for the Android SDKs.
|
70
|
+
# Field value example: `23`.
|
71
|
+
# @!attribute [rw] trace_id
|
72
|
+
# @return [::String]
|
73
|
+
# Optional ID that can be provided for logging purposes in order to identify
|
74
|
+
# the request.
|
75
|
+
class DeliveryRequestHeader
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
|
79
|
+
# Possible types of SDK.
|
80
|
+
module SdkType
|
81
|
+
# The default value. This value is used if the `sdk_type` is omitted.
|
82
|
+
SDK_TYPE_UNSPECIFIED = 0
|
83
|
+
|
84
|
+
# The calling SDK is Consumer.
|
85
|
+
CONSUMER = 1
|
86
|
+
|
87
|
+
# The calling SDK is Driver.
|
88
|
+
DRIVER = 2
|
89
|
+
|
90
|
+
# The calling SDK is JavaScript.
|
91
|
+
JAVASCRIPT = 3
|
92
|
+
end
|
93
|
+
|
94
|
+
# The platform of the calling SDK.
|
95
|
+
module Platform
|
96
|
+
# The default value. This value is used if the platform is omitted.
|
97
|
+
PLATFORM_UNSPECIFIED = 0
|
98
|
+
|
99
|
+
# The request is coming from Android.
|
100
|
+
ANDROID = 1
|
101
|
+
|
102
|
+
# The request is coming from iOS.
|
103
|
+
IOS = 2
|
104
|
+
|
105
|
+
# The request is coming from the web.
|
106
|
+
WEB = 3
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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 Delivery
|
24
|
+
module V1
|
25
|
+
# The `TaskTrackingInfo` message. The message contains task tracking
|
26
|
+
# information which will be used for display. If a tracking ID is associated
|
27
|
+
# with multiple Tasks, Fleet Engine uses a heuristic to decide which Task's
|
28
|
+
# TaskTrackingInfo to select.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Must be in the format `providers/{provider}/taskTrackingInfo/{tracking}`,
|
32
|
+
# where `tracking` represents the tracking ID.
|
33
|
+
# @!attribute [rw] tracking_id
|
34
|
+
# @return [::String]
|
35
|
+
# Immutable. The tracking ID of a Task.
|
36
|
+
# * Must be a valid Unicode string.
|
37
|
+
# * Limited to a maximum length of 64 characters.
|
38
|
+
# * Normalized according to [Unicode Normalization Form C]
|
39
|
+
# (http://www.unicode.org/reports/tr15/).
|
40
|
+
# * May not contain any of the following ASCII characters: '/', ':', '?',
|
41
|
+
# ',', or '#'.
|
42
|
+
# @!attribute [rw] vehicle_location
|
43
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleLocation]
|
44
|
+
# The vehicle's last location.
|
45
|
+
# @!attribute [rw] route_polyline_points
|
46
|
+
# @return [::Array<::Google::Type::LatLng>]
|
47
|
+
# A list of points which when connected forms a polyline of the vehicle's
|
48
|
+
# expected route to the location of this task.
|
49
|
+
# @!attribute [rw] remaining_stop_count
|
50
|
+
# @return [::Google::Protobuf::Int32Value]
|
51
|
+
# Indicates the number of stops the vehicle remaining until the task stop is
|
52
|
+
# reached, including the task stop. For example, if the vehicle's next stop
|
53
|
+
# is the task stop, the value will be 1.
|
54
|
+
# @!attribute [rw] remaining_driving_distance_meters
|
55
|
+
# @return [::Google::Protobuf::Int32Value]
|
56
|
+
# The total remaining distance in meters to the `VehicleStop` of interest.
|
57
|
+
# @!attribute [rw] estimated_arrival_time
|
58
|
+
# @return [::Google::Protobuf::Timestamp]
|
59
|
+
# The timestamp that indicates the estimated arrival time to the stop
|
60
|
+
# location.
|
61
|
+
# @!attribute [rw] estimated_task_completion_time
|
62
|
+
# @return [::Google::Protobuf::Timestamp]
|
63
|
+
# The timestamp that indicates the estimated completion time of a Task.
|
64
|
+
# @!attribute [rw] state
|
65
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::Task::State]
|
66
|
+
# The current execution state of the Task.
|
67
|
+
# @!attribute [rw] task_outcome
|
68
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::Task::TaskOutcome]
|
69
|
+
# The outcome of attempting to execute a Task.
|
70
|
+
# @!attribute [rw] task_outcome_time
|
71
|
+
# @return [::Google::Protobuf::Timestamp]
|
72
|
+
# The timestamp that indicates when the Task's outcome was set by the
|
73
|
+
# provider.
|
74
|
+
# @!attribute [rw] planned_location
|
75
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::LocationInfo]
|
76
|
+
# Immutable. The location where the Task will be completed.
|
77
|
+
# @!attribute [rw] target_time_window
|
78
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::TimeWindow]
|
79
|
+
# The time window during which the task should be completed.
|
80
|
+
# @!attribute [rw] attributes
|
81
|
+
# @return [::Array<::Google::Maps::FleetEngine::Delivery::V1::TaskAttribute>]
|
82
|
+
# The custom attributes set on the task.
|
83
|
+
class TaskTrackingInfo
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|