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