@googlemaps/fleetengine-delivery 0.1.0 → 0.3.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 +16 -0
- package/README.md +4 -2
- package/build/protos/google/geo/type/viewport.proto +1 -1
- package/build/protos/google/maps/fleetengine/delivery/v1/common.proto +4 -2
- package/build/protos/google/maps/fleetengine/delivery/v1/delivery_api.proto +70 -60
- package/build/protos/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto +17 -9
- package/build/protos/google/maps/fleetengine/delivery/v1/header.proto +4 -2
- package/build/protos/google/maps/fleetengine/delivery/v1/task_tracking_info.proto +4 -2
- package/build/protos/google/maps/fleetengine/delivery/v1/tasks.proto +4 -2
- package/build/protos/protos.d.ts +268 -168
- package/build/protos/protos.js +619 -452
- package/build/protos/protos.json +78 -58
- package/build/src/index.js +1 -1
- package/build/src/v1/delivery_service_client.d.ts +79 -152
- package/build/src/v1/delivery_service_client.js +46 -156
- package/build/src/v1/delivery_service_client.js.map +1 -1
- package/build/src/v1/delivery_service_client_config.json +7 -4
- package/build/src/v1/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.0](https://github.com/googleapis/google-cloud-node/compare/fleetengine-delivery-v0.2.0...fleetengine-delivery-v0.3.0) (2025-02-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [fleetengine-delivery] A new field `past_locations` is added to message `.maps.fleetengine.delivery.v1.DeliveryVehicle` ([#6064](https://github.com/googleapis/google-cloud-node/issues/6064)) ([48190a2](https://github.com/googleapis/google-cloud-node/commit/48190a2219978f1ddf29776a40f069fc235e0476))
|
|
9
|
+
* [fleetengine-delivery] Added Fleet Engine Delete APIs ([#6081](https://github.com/googleapis/google-cloud-node/issues/6081)) ([07a6a9a](https://github.com/googleapis/google-cloud-node/commit/07a6a9a97c625ab8aeeccd991e45d4c8ac6abf0f))
|
|
10
|
+
* A new field `past_locations` is added to message `.maps.fleetengine.v1.Vehicle` ([48190a2](https://github.com/googleapis/google-cloud-node/commit/48190a2219978f1ddf29776a40f069fc235e0476))
|
|
11
|
+
|
|
12
|
+
## [0.2.0](https://github.com/googleapis/google-cloud-node/compare/fleetengine-delivery-v0.1.0...fleetengine-delivery-v0.2.0) (2025-01-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* [fleetengine-delivery] Promote network_configs field to v2 API ([#5944](https://github.com/googleapis/google-cloud-node/issues/5944)) ([8577586](https://github.com/googleapis/google-cloud-node/commit/8577586e4ba05fd9099d4b580a31a30985b0611f))
|
|
18
|
+
|
|
3
19
|
## 0.1.0 (2024-06-03)
|
|
4
20
|
|
|
5
21
|
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
44
44
|
1. [Select or create a Cloud Platform project][projects].
|
|
45
45
|
1. [Enable billing for your project][billing].
|
|
46
46
|
1. [Enable the Last Mile Fleet Solution Delivery API API][enable_api].
|
|
47
|
-
1. [Set up authentication
|
|
47
|
+
1. [Set up authentication][auth] so you can access the
|
|
48
48
|
API from your local workstation.
|
|
49
49
|
|
|
50
50
|
### Installing the client library
|
|
@@ -146,6 +146,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
|
|
|
146
146
|
| Delivery_service.batch_create_tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.batch_create_tasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.batch_create_tasks.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
147
147
|
| Delivery_service.create_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
148
148
|
| Delivery_service.create_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
149
|
+
| Delivery_service.delete_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
150
|
+
| Delivery_service.delete_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
149
151
|
| Delivery_service.get_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
150
152
|
| Delivery_service.get_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
151
153
|
| Delivery_service.get_task_tracking_info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task_tracking_info.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task_tracking_info.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
|
|
@@ -223,4 +225,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
|
223
225
|
[projects]: https://console.cloud.google.com/project
|
|
224
226
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
225
227
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=fleetengine.googleapis.com
|
|
226
|
-
[auth]: https://cloud.google.com/docs/authentication/
|
|
228
|
+
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25,8 +25,10 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
|
25
25
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
26
26
|
option java_multiple_files = true;
|
|
27
27
|
option java_outer_classname = "Common";
|
|
28
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
28
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
29
29
|
option objc_class_prefix = "CFED";
|
|
30
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
31
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
30
32
|
|
|
31
33
|
// Describes a vehicle attribute as a key-value pair. The "key:value" string
|
|
32
34
|
// length cannot exceed 256 characters.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -26,14 +26,17 @@ import "google/maps/fleetengine/delivery/v1/delivery_vehicles.proto";
|
|
|
26
26
|
import "google/maps/fleetengine/delivery/v1/header.proto";
|
|
27
27
|
import "google/maps/fleetengine/delivery/v1/task_tracking_info.proto";
|
|
28
28
|
import "google/maps/fleetengine/delivery/v1/tasks.proto";
|
|
29
|
+
import "google/protobuf/empty.proto";
|
|
29
30
|
import "google/protobuf/field_mask.proto";
|
|
30
31
|
|
|
31
32
|
option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
32
33
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
33
34
|
option java_multiple_files = true;
|
|
34
35
|
option java_outer_classname = "DeliveryApi";
|
|
35
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
36
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
36
37
|
option objc_class_prefix = "CFED";
|
|
38
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
39
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
37
40
|
option (google.api.resource_definition) = {
|
|
38
41
|
type: "fleetengine.googleapis.com/Provider"
|
|
39
42
|
pattern: "providers/{provider}"
|
|
@@ -76,11 +79,29 @@ service DeliveryService {
|
|
|
76
79
|
option (google.api.method_signature) = "name";
|
|
77
80
|
}
|
|
78
81
|
|
|
82
|
+
// Deletes a DeliveryVehicle from the Fleet Engine.
|
|
83
|
+
//
|
|
84
|
+
// Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks
|
|
85
|
+
// assigned to it.
|
|
86
|
+
rpc DeleteDeliveryVehicle(DeleteDeliveryVehicleRequest)
|
|
87
|
+
returns (google.protobuf.Empty) {
|
|
88
|
+
option (google.api.http) = {
|
|
89
|
+
delete: "/v1/{name=providers/*/deliveryVehicles/*}"
|
|
90
|
+
};
|
|
91
|
+
option (google.api.routing) = {
|
|
92
|
+
routing_parameters {
|
|
93
|
+
field: "name"
|
|
94
|
+
path_template: "{provider_id=providers/*}"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
option (google.api.method_signature) = "name";
|
|
98
|
+
}
|
|
99
|
+
|
|
79
100
|
// Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns
|
|
80
101
|
// `Tasks` to the `DeliveryVehicle`. You cannot update the name of the
|
|
81
|
-
// `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments
|
|
82
|
-
//
|
|
83
|
-
//
|
|
102
|
+
// `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments`,
|
|
103
|
+
// but it must contain all of the `VehicleJourneySegment`s to be persisted on
|
|
104
|
+
// the `DeliveryVehicle`. The `task_id`s are retrieved from
|
|
84
105
|
// `remaining_vehicle_journey_segments`, and their corresponding `Tasks` are
|
|
85
106
|
// assigned to the `DeliveryVehicle` if they have not yet been assigned.
|
|
86
107
|
rpc UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest)
|
|
@@ -142,19 +163,21 @@ service DeliveryService {
|
|
|
142
163
|
option (google.api.method_signature) = "name";
|
|
143
164
|
}
|
|
144
165
|
|
|
145
|
-
//
|
|
146
|
-
|
|
147
|
-
|
|
166
|
+
// Deletes a single Task.
|
|
167
|
+
//
|
|
168
|
+
// Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a
|
|
169
|
+
// DeliveryVehicle.
|
|
170
|
+
rpc DeleteTask(DeleteTaskRequest) returns (google.protobuf.Empty) {
|
|
148
171
|
option (google.api.http) = {
|
|
149
|
-
|
|
172
|
+
delete: "/v1/{name=providers/*/tasks/*}"
|
|
150
173
|
};
|
|
151
174
|
option (google.api.routing) = {
|
|
152
175
|
routing_parameters {
|
|
153
|
-
field: "
|
|
176
|
+
field: "name"
|
|
154
177
|
path_template: "{provider_id=providers/*}"
|
|
155
178
|
}
|
|
156
179
|
};
|
|
157
|
-
option (google.api.method_signature) = "
|
|
180
|
+
option (google.api.method_signature) = "name";
|
|
158
181
|
}
|
|
159
182
|
|
|
160
183
|
// Updates `Task` data.
|
|
@@ -240,6 +263,7 @@ message CreateDeliveryVehicleRequest {
|
|
|
240
263
|
// Required. The `DeliveryVehicle` entity to create. When creating a new
|
|
241
264
|
// delivery vehicle, you may set the following optional fields:
|
|
242
265
|
//
|
|
266
|
+
// * type
|
|
243
267
|
// * last_location
|
|
244
268
|
// * attributes
|
|
245
269
|
//
|
|
@@ -265,6 +289,23 @@ message GetDeliveryVehicleRequest {
|
|
|
265
289
|
];
|
|
266
290
|
}
|
|
267
291
|
|
|
292
|
+
// DeleteDeliveryVehicle request message.
|
|
293
|
+
message DeleteDeliveryVehicleRequest {
|
|
294
|
+
// Optional. The standard Delivery API request header.
|
|
295
|
+
DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
296
|
+
|
|
297
|
+
// Required. Must be in the format
|
|
298
|
+
// `providers/{provider}/deliveryVehicles/{delivery_vehicle}`.
|
|
299
|
+
// The `provider` must be the Google Cloud Project ID. For example,
|
|
300
|
+
// `sample-cloud-project`.
|
|
301
|
+
string name = 2 [
|
|
302
|
+
(google.api.field_behavior) = REQUIRED,
|
|
303
|
+
(google.api.resource_reference) = {
|
|
304
|
+
type: "fleetengine.googleapis.com/DeliveryVehicle"
|
|
305
|
+
}
|
|
306
|
+
];
|
|
307
|
+
}
|
|
308
|
+
|
|
268
309
|
// The `ListDeliveryVehicles` request message.
|
|
269
310
|
message ListDeliveryVehiclesRequest {
|
|
270
311
|
// Optional. The standard Delivery API request header.
|
|
@@ -418,6 +459,12 @@ message CreateTaskRequest {
|
|
|
418
459
|
// * `planned_location` (optional for `UNAVAILABLE` tasks)
|
|
419
460
|
// * `task_duration`
|
|
420
461
|
//
|
|
462
|
+
// The following fields can be optionally set:
|
|
463
|
+
//
|
|
464
|
+
// * `target_time_window`
|
|
465
|
+
// * `task_tracking_view_config`
|
|
466
|
+
// * `attributes`
|
|
467
|
+
//
|
|
421
468
|
// Note: The Task's `name` field is ignored. All other Task fields must not be
|
|
422
469
|
// set; otherwise, an error is returned.
|
|
423
470
|
Task task = 4 [(google.api.field_behavior) = REQUIRED];
|
|
@@ -439,57 +486,20 @@ message GetTaskRequest {
|
|
|
439
486
|
];
|
|
440
487
|
}
|
|
441
488
|
|
|
442
|
-
//
|
|
443
|
-
|
|
444
|
-
message SearchTasksRequest {
|
|
445
|
-
option deprecated = true;
|
|
446
|
-
|
|
489
|
+
// DeleteTask request message.
|
|
490
|
+
message DeleteTaskRequest {
|
|
447
491
|
// Optional. The standard Delivery API request header.
|
|
448
492
|
DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
449
493
|
|
|
450
|
-
// Required. Must be in the format `providers/{provider}`.
|
|
451
|
-
//
|
|
494
|
+
// Required. Must be in the format `providers/{provider}/tasks/{task}`. The
|
|
495
|
+
// `provider` must be the Google Cloud Project ID. For example,
|
|
452
496
|
// `sample-cloud-project`.
|
|
453
|
-
string
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
// * Limited to a maximum length of 64 characters.
|
|
460
|
-
// * Normalized according to [Unicode Normalization Form C]
|
|
461
|
-
// (http://www.unicode.org/reports/tr15/).
|
|
462
|
-
// * May not contain any of the following ASCII characters: '/', ':', '?',
|
|
463
|
-
// ',', or '#'.
|
|
464
|
-
string tracking_id = 4 [(google.api.field_behavior) = REQUIRED];
|
|
465
|
-
|
|
466
|
-
// Optional. The maximum number of Tasks to return. The service may return
|
|
467
|
-
// fewer than this value. If you don't specify this value, then the server
|
|
468
|
-
// determines the number of results to return.
|
|
469
|
-
int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
470
|
-
|
|
471
|
-
// Optional. A page token, received from a previous `SearchTasks` call. You
|
|
472
|
-
// must provide this value to retrieve the subsequent page.
|
|
473
|
-
//
|
|
474
|
-
// When paginating, all other parameters provided to `SearchTasks` must match
|
|
475
|
-
// the call that provided the page token.
|
|
476
|
-
string page_token = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
// The `SearchTasks` response. It contains the set of Tasks that meet the search
|
|
480
|
-
// criteria in the `SearchTasksRequest`.
|
|
481
|
-
message SearchTasksResponse {
|
|
482
|
-
option deprecated = true;
|
|
483
|
-
|
|
484
|
-
// The set of Tasks for the requested `tracking_id`. A successful response can
|
|
485
|
-
// also be empty. An empty response indicates that no Tasks are associated
|
|
486
|
-
// with the supplied `tracking_id`.
|
|
487
|
-
repeated Task tasks = 1;
|
|
488
|
-
|
|
489
|
-
// Pass this token in the `SearchTasksRequest` to continue to
|
|
490
|
-
// list results. If all results have been returned, then this field is either
|
|
491
|
-
// an empty string, or it doesn't appear in the response.
|
|
492
|
-
string next_page_token = 2;
|
|
497
|
+
string name = 2 [
|
|
498
|
+
(google.api.field_behavior) = REQUIRED,
|
|
499
|
+
(google.api.resource_reference) = {
|
|
500
|
+
type: "fleetengine.googleapis.com/Task"
|
|
501
|
+
}
|
|
502
|
+
];
|
|
493
503
|
}
|
|
494
504
|
|
|
495
505
|
// The `UpdateTask` request message.
|
|
@@ -554,8 +564,8 @@ message ListTasksRequest {
|
|
|
554
564
|
// Optional. A filter query to apply when listing Tasks. See
|
|
555
565
|
// http://aip.dev/160 for examples of filter syntax. If you don't specify a
|
|
556
566
|
// value, or if you filter on an empty string, then all Tasks are returned.
|
|
557
|
-
// For information about the Task properties that you can filter on, see [
|
|
558
|
-
//
|
|
567
|
+
// For information about the Task properties that you can filter on, see [List
|
|
568
|
+
// tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
|
|
559
569
|
string filter = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
560
570
|
}
|
|
561
571
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -27,8 +27,10 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
|
27
27
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
28
28
|
option java_multiple_files = true;
|
|
29
29
|
option java_outer_classname = "DeliveryVehicles";
|
|
30
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
30
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
31
31
|
option objc_class_prefix = "CFED";
|
|
32
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
33
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
32
34
|
|
|
33
35
|
// The `DeliveryVehicle` message. A delivery vehicle transports shipments from a
|
|
34
36
|
// depot to a delivery location, and from a pickup location to the depot. In
|
|
@@ -71,6 +73,14 @@ message DeliveryVehicle {
|
|
|
71
73
|
// The last reported location of the Delivery Vehicle.
|
|
72
74
|
DeliveryVehicleLocation last_location = 2;
|
|
73
75
|
|
|
76
|
+
// Input only. Locations where this Delivery Vehicle has been in the past that
|
|
77
|
+
// haven't yet been reported to Fleet Engine. This is used in
|
|
78
|
+
// `UpdateDeliveryVehicleRequest` to record locations which were previously
|
|
79
|
+
// unable to be sent to the server. Typically this happens when the Delivery
|
|
80
|
+
// Vehicle does not have internet connectivity.
|
|
81
|
+
repeated DeliveryVehicleLocation past_locations = 12
|
|
82
|
+
[(google.api.field_behavior) = INPUT_ONLY];
|
|
83
|
+
|
|
74
84
|
// The Delivery Vehicle's navigation status.
|
|
75
85
|
DeliveryVehicleNavigationStatus navigation_status = 3;
|
|
76
86
|
|
|
@@ -215,9 +225,8 @@ message VehicleJourneySegment {
|
|
|
215
225
|
message VehicleStop {
|
|
216
226
|
// Additional information about the Task performed at this stop.
|
|
217
227
|
message TaskInfo {
|
|
218
|
-
// The Task ID. This field won't be populated in the response of
|
|
219
|
-
//
|
|
220
|
-
// restrictions:
|
|
228
|
+
// The Task ID. This field won't be populated in the response of a `GetTask`
|
|
229
|
+
// call. Task IDs are subject to the following restrictions:
|
|
221
230
|
//
|
|
222
231
|
// * Must be a valid Unicode string.
|
|
223
232
|
// * Limited to a maximum length of 64 characters.
|
|
@@ -255,15 +264,14 @@ message VehicleStop {
|
|
|
255
264
|
|
|
256
265
|
// Required. The location of the stop. Note that the locations in the `Task`s
|
|
257
266
|
// 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
|
|
259
|
-
// or a `SearchTasks` call.
|
|
267
|
+
// of it. This field won't be populated in the response of a `GetTask` call.
|
|
260
268
|
LocationInfo planned_location = 1 [(google.api.field_behavior) = REQUIRED];
|
|
261
269
|
|
|
262
270
|
// The list of `Task`s to be performed at this stop. This field won't be
|
|
263
|
-
// populated in the response of
|
|
271
|
+
// populated in the response of a `GetTask` call.
|
|
264
272
|
repeated TaskInfo tasks = 2;
|
|
265
273
|
|
|
266
274
|
// The state of the `VehicleStop`. This field won't be populated in the
|
|
267
|
-
// response of
|
|
275
|
+
// response of a `GetTask` call.
|
|
268
276
|
State state = 3;
|
|
269
277
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -22,8 +22,10 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
|
22
22
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
23
23
|
option java_multiple_files = true;
|
|
24
24
|
option java_outer_classname = "Headers";
|
|
25
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
25
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
26
26
|
option objc_class_prefix = "CFED";
|
|
27
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
28
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
27
29
|
|
|
28
30
|
// A RequestHeader contains fields common to all Delivery RPC requests.
|
|
29
31
|
message DeliveryRequestHeader {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -29,8 +29,10 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
|
29
29
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
30
30
|
option java_multiple_files = true;
|
|
31
31
|
option java_outer_classname = "TaskTrackingInfoProto";
|
|
32
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
32
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
33
33
|
option objc_class_prefix = "CFED";
|
|
34
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
35
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
34
36
|
|
|
35
37
|
// The `TaskTrackingInfo` message. The message contains task tracking
|
|
36
38
|
// information which will be used for display. If a tracking ID is associated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -27,8 +27,10 @@ option csharp_namespace = "Google.Maps.FleetEngine.Delivery.V1";
|
|
|
27
27
|
option go_package = "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb";
|
|
28
28
|
option java_multiple_files = true;
|
|
29
29
|
option java_outer_classname = "Tasks";
|
|
30
|
-
option java_package = "google.maps.fleetengine.delivery.v1";
|
|
30
|
+
option java_package = "com.google.maps.fleetengine.delivery.v1";
|
|
31
31
|
option objc_class_prefix = "CFED";
|
|
32
|
+
option php_namespace = "Google\\Maps\\FleetEngine\\Delivery\\V1";
|
|
33
|
+
option ruby_package = "Google::Maps::FleetEngine::Delivery::V1";
|
|
32
34
|
|
|
33
35
|
// A Task in the Delivery API represents a single action to track. In general,
|
|
34
36
|
// there is a distinction between shipment-related Tasks and break Tasks. A
|