Skip to content

Commit e7c244d

Browse files
chore: [fleetengine] update copyright year for auto-generated protos (#6080)
* chore: update copyright year for auto-generated protos PiperOrigin-RevId: 731691059 Source-Link: googleapis/googleapis@7e5dd6b Source-Link: googleapis/googleapis-gen@2b78e07 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6IjJiNzhlMDdjZDJhMWViMzdmYjAxMDdjMjBjMWI2ZGNjM2Y0Y2I3NGIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Added Fleet Engine Delete APIs PiperOrigin-RevId: 731779200 Source-Link: googleapis/googleapis@fc5c0bd Source-Link: googleapis/googleapis-gen@776721a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6Ijc3NjcyMWEwYTdhYjJjYThmMDZhMmU4MGU0ZjE0NmU4MzVlYmJlNGMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update copyright year for auto-generated protos PiperOrigin-RevId: 732130682 Source-Link: googleapis/googleapis@9415ba0 Source-Link: googleapis/googleapis-gen@2905f83 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6IjI5MDVmODMzNzU2YzJiMjBiMzI4MmJlODRiNTExZTA0MGZlNTRmMzMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: danieljbruce <danieljbruce@users.noreply.github.com>
1 parent 1536d12 commit e7c244d

40 files changed

+3484
-18
lines changed

packages/google-maps-fleetengine/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,13 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
235235
| Sample | Source Code | Try it |
236236
| --------------------------- | --------------------------------- | ------ |
237237
| Trip_service.create_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.create_trip.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/samples/generated/v1/trip_service.create_trip.js,packages/google-maps-fleetengine/samples/README.md) |
238+
| Trip_service.delete_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.delete_trip.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/samples/generated/v1/trip_service.delete_trip.js,packages/google-maps-fleetengine/samples/README.md) |
238239
| Trip_service.get_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.get_trip.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/samples/generated/v1/trip_service.get_trip.js,packages/google-maps-fleetengine/samples/README.md) |
239240
| Trip_service.report_billable_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.report_billable_trip.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/samples/generated/v1/trip_service.report_billable_trip.js,packages/google-maps-fleetengine/samples/README.md) |
240241
| Trip_service.search_trips | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.search_trips.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/samples/generated/v1/trip_service.search_trips.js,packages/google-maps-fleetengine/samples/README.md) |
241242
| Trip_service.update_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.update_trip.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/samples/generated/v1/trip_service.update_trip.js,packages/google-maps-fleetengine/samples/README.md) |
242243
| Vehicle_service.create_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.create_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/samples/generated/v1/vehicle_service.create_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
244+
| Vehicle_service.delete_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.delete_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/samples/generated/v1/vehicle_service.delete_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
243245
| Vehicle_service.get_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.get_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/samples/generated/v1/vehicle_service.get_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
244246
| Vehicle_service.list_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.list_vehicles.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/samples/generated/v1/vehicle_service.list_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
245247
| Vehicle_service.search_fuzzed_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.search_fuzzed_vehicles.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/samples/generated/v1/vehicle_service.search_fuzzed_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |

packages/google-maps-fleetengine/protos/google/geo/type/viewport.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/fleetengine.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/header.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/traffic.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trip_api.proto

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -71,6 +71,23 @@ service TripService {
7171
};
7272
}
7373

74+
// Deletes a single Trip.
75+
//
76+
// Returns FAILED_PRECONDITION if the Trip is active and assigned to a
77+
// vehicle.
78+
rpc DeleteTrip(DeleteTripRequest) returns (google.protobuf.Empty) {
79+
option (google.api.http) = {
80+
delete: "/v1/{name=providers/*/trips/*}"
81+
};
82+
option (google.api.routing) = {
83+
routing_parameters {
84+
field: "name"
85+
path_template: "{provider_id=providers/*}"
86+
}
87+
};
88+
option (google.api.method_signature) = "name";
89+
}
90+
7491
// Report billable trip usage.
7592
rpc ReportBillableTrip(ReportBillableTripRequest)
7693
returns (google.protobuf.Empty) {
@@ -233,6 +250,23 @@ message GetTripRequest {
233250
google.protobuf.Timestamp remaining_waypoints_route_version = 10;
234251
}
235252

253+
// DeleteTrip request message.
254+
message DeleteTripRequest {
255+
// Optional. The standard Fleet Engine request header.
256+
RequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
257+
258+
// Required. Must be in the format `providers/{provider}/trips/{trip}`.
259+
// The provider must be the Project ID (for example, `sample-cloud-project`)
260+
// of the Google Cloud Project of which the service account making
261+
// this call is a member.
262+
string name = 2 [
263+
(google.api.field_behavior) = REQUIRED,
264+
(google.api.resource_reference) = {
265+
type: "fleetengine.googleapis.com/Trip"
266+
}
267+
];
268+
}
269+
236270
// ReportBillableTrip request message.
237271
message ReportBillableTripRequest {
238272
// Selector for different solution types of a reported trip.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/trips.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicle_api.proto

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ import "google/maps/fleetengine/v1/fleetengine.proto";
2626
import "google/maps/fleetengine/v1/header.proto";
2727
import "google/maps/fleetengine/v1/vehicles.proto";
2828
import "google/protobuf/duration.proto";
29+
import "google/protobuf/empty.proto";
2930
import "google/protobuf/field_mask.proto";
3031
import "google/protobuf/timestamp.proto";
3132
import "google/protobuf/wrappers.proto";
@@ -100,6 +101,23 @@ service VehicleService {
100101
};
101102
}
102103

104+
// Deletes a Vehicle from the Fleet Engine.
105+
//
106+
// Returns FAILED_PRECONDITION if the Vehicle has active Trips.
107+
// assigned to it.
108+
rpc DeleteVehicle(DeleteVehicleRequest) returns (google.protobuf.Empty) {
109+
option (google.api.http) = {
110+
delete: "/v1/{name=providers/*/vehicles/*}"
111+
};
112+
option (google.api.routing) = {
113+
routing_parameters {
114+
field: "name"
115+
path_template: "{provider_id=providers/*}"
116+
}
117+
};
118+
option (google.api.method_signature) = "name";
119+
}
120+
103121
// Writes updated vehicle data to the Fleet Engine.
104122
//
105123
// When updating a `Vehicle`, the following fields cannot be updated since
@@ -260,6 +278,24 @@ message GetVehicleRequest {
260278
google.protobuf.Timestamp waypoints_version = 5;
261279
}
262280

281+
// DeleteVehicle request message.
282+
message DeleteVehicleRequest {
283+
// Optional. The standard Fleet Engine request header.
284+
RequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
285+
286+
// Required. Must be in the format
287+
// `providers/{provider}/vehicles/{vehicle}`.
288+
// The {provider} must be the Project ID (for example, `sample-cloud-project`)
289+
// of the Google Cloud Project of which the service account making
290+
// this call is a member.
291+
string name = 2 [
292+
(google.api.field_behavior) = REQUIRED,
293+
(google.api.resource_reference) = {
294+
type: "fleetengine.googleapis.com/Vehicle"
295+
}
296+
];
297+
}
298+
263299
// `UpdateVehicle request message.
264300
message UpdateVehicleRequest {
265301
// The standard Fleet Engine request header.

packages/google-maps-fleetengine/protos/google/maps/fleetengine/v1/vehicles.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)