From 009eea5c8a64d21b92e33765cf102ba90f1543ef Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Jan 2025 04:14:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- ...ps.FleetEngine.V1.GeneratedSnippets.csproj | 15 - ...t.CreateTripRequestObjectAsyncSnippet.g.cs | 50 - ...Client.CreateTripRequestObjectSnippet.g.cs | 49 - ...ient.GetTripRequestObjectAsyncSnippet.g.cs | 55 - ...iceClient.GetTripRequestObjectSnippet.g.cs | 54 - ...BillableTripRequestObjectAsyncSnippet.g.cs | 51 - ...eportBillableTripRequestObjectSnippet.g.cs | 50 - ....SearchTripsRequestObjectAsyncSnippet.g.cs | 87 - ...lient.SearchTripsRequestObjectSnippet.g.cs | 85 - ...t.UpdateTripRequestObjectAsyncSnippet.g.cs | 51 - ...Client.UpdateTripRequestObjectSnippet.g.cs | 50 - ...reateVehicleRequestObjectAsyncSnippet.g.cs | 50 - ...ent.CreateVehicleRequestObjectSnippet.g.cs | 49 - ...t.GetVehicleRequestObjectAsyncSnippet.g.cs | 51 - ...Client.GetVehicleRequestObjectSnippet.g.cs | 50 - ...ListVehiclesRequestObjectAsyncSnippet.g.cs | 102 - ...ient.ListVehiclesRequestObjectSnippet.g.cs | 100 - ...archVehiclesRequestObjectAsyncSnippet.g.cs | 80 - ...nt.SearchVehiclesRequestObjectSnippet.g.cs | 79 - ...leAttributesRequestObjectAsyncSnippet.g.cs | 52 - ...VehicleAttributesRequestObjectSnippet.g.cs | 51 - ...pdateVehicleRequestObjectAsyncSnippet.g.cs | 51 - ...ent.UpdateVehicleRequestObjectSnippet.g.cs | 50 - .../snippet_metadata_maps.fleetengine.v1.json | 1080 ---- ...Google.Maps.FleetEngine.V1.Snippets.csproj | 15 - .../TripServiceClientSnippets.g.cs | 299 - .../VehicleServiceClientSnippets.g.cs | 419 -- .../Fleetengine.g.cs | 3482 ----------- .../Google.Maps.FleetEngine.V1.csproj | 47 - .../Google.Maps.FleetEngine.V1/Header.g.cs | 761 --- .../PackageApiMetadata.g.cs | 42 - .../ServiceCollectionExtensions.g.cs | 93 - .../Google.Maps.FleetEngine.V1/Traffic.g.cs | 596 -- .../Google.Maps.FleetEngine.V1/TripApi.g.cs | 2497 -------- .../TripApiGrpc.g.cs | 499 -- .../TripApiResourceNames.g.cs | 43 - .../TripServiceClient.g.cs | 618 -- .../Google.Maps.FleetEngine.V1/Trips.g.cs | 2159 ------- .../TripsResourceNames.g.cs | 252 - .../VehicleApi.g.cs | 5188 ----------------- .../VehicleApiGrpc.g.cs | 813 --- .../VehicleApiResourceNames.g.cs | 33 - .../VehicleServiceClient.g.cs | 937 --- .../Google.Maps.FleetEngine.V1/Vehicles.g.cs | 3161 ---------- .../VehiclesResourceNames.g.cs | 262 - .../gapic_metadata.json | 93 - 46 files changed, 24751 deletions(-) delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/Google.Maps.FleetEngine.V1.GeneratedSnippets.csproj delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectAsyncSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectSnippet.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/snippet_metadata_maps.fleetengine.v1.json delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/Google.Maps.FleetEngine.V1.Snippets.csproj delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/TripServiceClientSnippets.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/VehicleServiceClientSnippets.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Fleetengine.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.csproj delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Header.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/PackageApiMetadata.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/ServiceCollectionExtensions.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Traffic.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApi.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiGrpc.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiResourceNames.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripServiceClient.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Trips.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripsResourceNames.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApi.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiGrpc.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiResourceNames.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleServiceClient.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Vehicles.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehiclesResourceNames.g.cs delete mode 100755 owl-bot-staging/Google.Maps.FleetEngine.V1/gapic_metadata.json diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/Google.Maps.FleetEngine.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/Google.Maps.FleetEngine.V1.GeneratedSnippets.csproj deleted file mode 100755 index 4d6fefe9e0d9..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/Google.Maps.FleetEngine.V1.GeneratedSnippets.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - - net6.0;net462 - latest - - - - - - - - - \ No newline at end of file diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index ec245cc53cda..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_CreateTrip_async] - using Google.Maps.FleetEngine.V1; - using System.Threading.Tasks; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for CreateTripAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task CreateTripRequestObjectAsync() - { - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateTripRequest request = new CreateTripRequest - { - Header = new RequestHeader(), - ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - Trip = new Trip(), - TripId = "", - }; - // Make the request - Trip response = await tripServiceClient.CreateTripAsync(request); - } - } - // [END fleetengine_v1_generated_TripService_CreateTrip_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectSnippet.g.cs deleted file mode 100755 index 801dca8681a1..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.CreateTripRequestObjectSnippet.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_CreateTrip_sync] - using Google.Maps.FleetEngine.V1; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for CreateTrip - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void CreateTripRequestObject() - { - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - CreateTripRequest request = new CreateTripRequest - { - Header = new RequestHeader(), - ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - Trip = new Trip(), - TripId = "", - }; - // Make the request - Trip response = tripServiceClient.CreateTrip(request); - } - } - // [END fleetengine_v1_generated_TripService_CreateTrip_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index fc654a48b033..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_GetTrip_async] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for GetTripAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task GetTripRequestObjectAsync() - { - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - GetTripRequest request = new GetTripRequest - { - Header = new RequestHeader(), - TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - CurrentRouteSegmentVersion = new Timestamp(), - RemainingWaypointsVersion = new Timestamp(), - RouteFormatType = PolylineFormatType.UnknownFormatType, - CurrentRouteSegmentTrafficVersion = new Timestamp(), - RemainingWaypointsRouteVersion = new Timestamp(), - View = TripView.Unspecified, - }; - // Make the request - Trip response = await tripServiceClient.GetTripAsync(request); - } - } - // [END fleetengine_v1_generated_TripService_GetTrip_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectSnippet.g.cs deleted file mode 100755 index 16c761792ec7..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.GetTripRequestObjectSnippet.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_GetTrip_sync] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for GetTrip - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void GetTripRequestObject() - { - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - GetTripRequest request = new GetTripRequest - { - Header = new RequestHeader(), - TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - CurrentRouteSegmentVersion = new Timestamp(), - RemainingWaypointsVersion = new Timestamp(), - RouteFormatType = PolylineFormatType.UnknownFormatType, - CurrentRouteSegmentTrafficVersion = new Timestamp(), - RemainingWaypointsRouteVersion = new Timestamp(), - View = TripView.Unspecified, - }; - // Make the request - Trip response = tripServiceClient.GetTrip(request); - } - } - // [END fleetengine_v1_generated_TripService_GetTrip_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index f50de7543009..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_ReportBillableTrip_async] - using Google.Maps.FleetEngine.V1; - using System.Threading.Tasks; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for ReportBillableTripAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task ReportBillableTripRequestObjectAsync() - { - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - ReportBillableTripRequest request = new ReportBillableTripRequest - { - Name = "", - CountryCode = "", - Platform = BillingPlatformIdentifier.Unspecified, - RelatedIds = { "", }, - SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified, - }; - // Make the request - await tripServiceClient.ReportBillableTripAsync(request); - } - } - // [END fleetengine_v1_generated_TripService_ReportBillableTrip_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectSnippet.g.cs deleted file mode 100755 index 73a9bae62669..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.ReportBillableTripRequestObjectSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_ReportBillableTrip_sync] - using Google.Maps.FleetEngine.V1; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for ReportBillableTrip - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void ReportBillableTripRequestObject() - { - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - ReportBillableTripRequest request = new ReportBillableTripRequest - { - Name = "", - CountryCode = "", - Platform = BillingPlatformIdentifier.Unspecified, - RelatedIds = { "", }, - SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified, - }; - // Make the request - tripServiceClient.ReportBillableTrip(request); - } - } - // [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index 9ee22efcf496..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_SearchTrips_async] - using Google.Api.Gax; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - using System.Linq; - using System.Threading.Tasks; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for SearchTripsAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task SearchTripsRequestObjectAsync() - { - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - SearchTripsRequest request = new SearchTripsRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - ActiveTripsOnly = false, - MinimumStaleness = new Duration(), - }; - // Make the request - PagedAsyncEnumerable response = tripServiceClient.SearchTripsAsync(request); - - // Iterate over all response items, lazily performing RPCs as required - await response.ForEachAsync((Trip item) => - { - // Do something with each item - Console.WriteLine(item); - }); - - // Or iterate over pages (of server-defined size), performing one RPC per page - await response.AsRawResponses().ForEachAsync((SearchTripsResponse page) => - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Trip item in page) - { - // Do something with each item - Console.WriteLine(item); - } - }); - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = await response.ReadPageAsync(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Trip item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - } - } - // [END fleetengine_v1_generated_TripService_SearchTrips_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectSnippet.g.cs deleted file mode 100755 index 1ec98be2f3bd..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.SearchTripsRequestObjectSnippet.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_SearchTrips_sync] - using Google.Api.Gax; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for SearchTrips - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void SearchTripsRequestObject() - { - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - SearchTripsRequest request = new SearchTripsRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - ActiveTripsOnly = false, - MinimumStaleness = new Duration(), - }; - // Make the request - PagedEnumerable response = tripServiceClient.SearchTrips(request); - - // Iterate over all response items, lazily performing RPCs as required - foreach (Trip item in response) - { - // Do something with each item - Console.WriteLine(item); - } - - // Or iterate over pages (of server-defined size), performing one RPC per page - foreach (SearchTripsResponse page in response.AsRawResponses()) - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Trip item in page) - { - // Do something with each item - Console.WriteLine(item); - } - } - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = response.ReadPage(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Trip item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - } - } - // [END fleetengine_v1_generated_TripService_SearchTrips_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index 32522e1dff0d..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_UpdateTrip_async] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for UpdateTripAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task UpdateTripRequestObjectAsync() - { - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateTripRequest request = new UpdateTripRequest - { - Header = new RequestHeader(), - Name = "", - Trip = new Trip(), - UpdateMask = new FieldMask(), - }; - // Make the request - Trip response = await tripServiceClient.UpdateTripAsync(request); - } - } - // [END fleetengine_v1_generated_TripService_UpdateTrip_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectSnippet.g.cs deleted file mode 100755 index 73043cf5aeda..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/TripServiceClient.UpdateTripRequestObjectSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_TripService_UpdateTrip_sync] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedTripServiceClientSnippets - { - /// Snippet for UpdateTrip - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void UpdateTripRequestObject() - { - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - UpdateTripRequest request = new UpdateTripRequest - { - Header = new RequestHeader(), - Name = "", - Trip = new Trip(), - UpdateMask = new FieldMask(), - }; - // Make the request - Trip response = tripServiceClient.UpdateTrip(request); - } - } - // [END fleetengine_v1_generated_TripService_UpdateTrip_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index cd1dfbaee30f..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_CreateVehicle_async] - using Google.Maps.FleetEngine.V1; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for CreateVehicleAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task CreateVehicleRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateVehicleRequest request = new CreateVehicleRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - Vehicle = new Vehicle(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.CreateVehicleAsync(request); - } - } - // [END fleetengine_v1_generated_VehicleService_CreateVehicle_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectSnippet.g.cs deleted file mode 100755 index 2d7508ee1b3b..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.CreateVehicleRequestObjectSnippet.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_CreateVehicle_sync] - using Google.Maps.FleetEngine.V1; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for CreateVehicle - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void CreateVehicleRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - CreateVehicleRequest request = new CreateVehicleRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - Vehicle = new Vehicle(), - }; - // Make the request - Vehicle response = vehicleServiceClient.CreateVehicle(request); - } - } - // [END fleetengine_v1_generated_VehicleService_CreateVehicle_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index 5106c494d47e..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_GetVehicle_async] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for GetVehicleAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task GetVehicleRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - GetVehicleRequest request = new GetVehicleRequest - { - Header = new RequestHeader(), - VehicleName = VehicleName.FromProviderVehicle("[PROVIDER]", "[VEHICLE]"), - CurrentRouteSegmentVersion = new Timestamp(), - WaypointsVersion = new Timestamp(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.GetVehicleAsync(request); - } - } - // [END fleetengine_v1_generated_VehicleService_GetVehicle_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectSnippet.g.cs deleted file mode 100755 index 743c210ea973..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.GetVehicleRequestObjectSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_GetVehicle_sync] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for GetVehicle - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void GetVehicleRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - GetVehicleRequest request = new GetVehicleRequest - { - Header = new RequestHeader(), - VehicleName = VehicleName.FromProviderVehicle("[PROVIDER]", "[VEHICLE]"), - CurrentRouteSegmentVersion = new Timestamp(), - WaypointsVersion = new Timestamp(), - }; - // Make the request - Vehicle response = vehicleServiceClient.GetVehicle(request); - } - } - // [END fleetengine_v1_generated_VehicleService_GetVehicle_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index 2ba6c9d45f26..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_ListVehicles_async] - using Google.Api.Gax; - using Google.Geo.Type; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - using System.Linq; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for ListVehiclesAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task ListVehiclesRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - ListVehiclesRequest request = new ListVehiclesRequest - { - Parent = "", - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - VehicleTypeCategories = - { - Vehicle.Types.VehicleType.Types.Category.Unknown, - }, - RequiredAttributes = { "", }, - VehicleState = VehicleState.UnknownVehicleState, - Header = new RequestHeader(), - RequiredOneOfAttributes = { "", }, - OnTripOnly = false, - RequiredOneOfAttributeSets = { "", }, - Filter = "", - Viewport = new Viewport(), - }; - // Make the request - PagedAsyncEnumerable response = vehicleServiceClient.ListVehiclesAsync(request); - - // Iterate over all response items, lazily performing RPCs as required - await response.ForEachAsync((Vehicle item) => - { - // Do something with each item - Console.WriteLine(item); - }); - - // Or iterate over pages (of server-defined size), performing one RPC per page - await response.AsRawResponses().ForEachAsync((ListVehiclesResponse page) => - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Vehicle item in page) - { - // Do something with each item - Console.WriteLine(item); - } - }); - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = await response.ReadPageAsync(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Vehicle item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - } - } - // [END fleetengine_v1_generated_VehicleService_ListVehicles_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectSnippet.g.cs deleted file mode 100755 index bc5c5eb1e076..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.ListVehiclesRequestObjectSnippet.g.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_ListVehicles_sync] - using Google.Api.Gax; - using Google.Geo.Type; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for ListVehicles - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void ListVehiclesRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - ListVehiclesRequest request = new ListVehiclesRequest - { - Parent = "", - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - VehicleTypeCategories = - { - Vehicle.Types.VehicleType.Types.Category.Unknown, - }, - RequiredAttributes = { "", }, - VehicleState = VehicleState.UnknownVehicleState, - Header = new RequestHeader(), - RequiredOneOfAttributes = { "", }, - OnTripOnly = false, - RequiredOneOfAttributeSets = { "", }, - Filter = "", - Viewport = new Viewport(), - }; - // Make the request - PagedEnumerable response = vehicleServiceClient.ListVehicles(request); - - // Iterate over all response items, lazily performing RPCs as required - foreach (Vehicle item in response) - { - // Do something with each item - Console.WriteLine(item); - } - - // Or iterate over pages (of server-defined size), performing one RPC per page - foreach (ListVehiclesResponse page in response.AsRawResponses()) - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Vehicle item in page) - { - // Do something with each item - Console.WriteLine(item); - } - } - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = response.ReadPage(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Vehicle item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - } - } - // [END fleetengine_v1_generated_VehicleService_ListVehicles_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index 37f466d2be7f..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_SearchVehicles_async] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for SearchVehiclesAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task SearchVehiclesRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - SearchVehiclesRequest request = new SearchVehiclesRequest - { - Header = new RequestHeader(), - Parent = "", - PickupPoint = new TerminalLocation(), - DropoffPoint = new TerminalLocation(), - PickupRadiusMeters = 0, - Count = 0, - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - RequiredAttributes = - { - new VehicleAttribute(), - }, - OrderBy = SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder, - VehicleTypes = - { - new Vehicle.Types.VehicleType(), - }, - RequiredOneOfAttributes = - { - new VehicleAttributeList(), - }, - IncludeBackToBack = false, - TripId = "", - RequiredOneOfAttributeSets = - { - new VehicleAttributeList(), - }, - CurrentTripsPresent = SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified, - Filter = "", - }; - // Make the request - SearchVehiclesResponse response = await vehicleServiceClient.SearchVehiclesAsync(request); - } - } - // [END fleetengine_v1_generated_VehicleService_SearchVehicles_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectSnippet.g.cs deleted file mode 100755 index f21d323025b2..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.SearchVehiclesRequestObjectSnippet.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_SearchVehicles_sync] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for SearchVehicles - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void SearchVehiclesRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - SearchVehiclesRequest request = new SearchVehiclesRequest - { - Header = new RequestHeader(), - Parent = "", - PickupPoint = new TerminalLocation(), - DropoffPoint = new TerminalLocation(), - PickupRadiusMeters = 0, - Count = 0, - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - RequiredAttributes = - { - new VehicleAttribute(), - }, - OrderBy = SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder, - VehicleTypes = - { - new Vehicle.Types.VehicleType(), - }, - RequiredOneOfAttributes = - { - new VehicleAttributeList(), - }, - IncludeBackToBack = false, - TripId = "", - RequiredOneOfAttributeSets = - { - new VehicleAttributeList(), - }, - CurrentTripsPresent = SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified, - Filter = "", - }; - // Make the request - SearchVehiclesResponse response = vehicleServiceClient.SearchVehicles(request); - } - } - // [END fleetengine_v1_generated_VehicleService_SearchVehicles_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index b84eca5c5c56..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_async] - using Google.Maps.FleetEngine.V1; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for UpdateVehicleAttributesAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task UpdateVehicleAttributesRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateVehicleAttributesRequest request = new UpdateVehicleAttributesRequest - { - Header = new RequestHeader(), - Name = "", - Attributes = - { - new VehicleAttribute(), - }, - }; - // Make the request - UpdateVehicleAttributesResponse response = await vehicleServiceClient.UpdateVehicleAttributesAsync(request); - } - } - // [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectSnippet.g.cs deleted file mode 100755 index 7974f245a85c..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleAttributesRequestObjectSnippet.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] - using Google.Maps.FleetEngine.V1; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for UpdateVehicleAttributes - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void UpdateVehicleAttributesRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - UpdateVehicleAttributesRequest request = new UpdateVehicleAttributesRequest - { - Header = new RequestHeader(), - Name = "", - Attributes = - { - new VehicleAttribute(), - }, - }; - // Make the request - UpdateVehicleAttributesResponse response = vehicleServiceClient.UpdateVehicleAttributes(request); - } - } - // [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectAsyncSnippet.g.cs deleted file mode 100755 index dfc8e29e956e..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_UpdateVehicle_async] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for UpdateVehicleAsync - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public async Task UpdateVehicleRequestObjectAsync() - { - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateVehicleRequest request = new UpdateVehicleRequest - { - Header = new RequestHeader(), - Name = "", - Vehicle = new Vehicle(), - UpdateMask = new FieldMask(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.UpdateVehicleAsync(request); - } - } - // [END fleetengine_v1_generated_VehicleService_UpdateVehicle_async] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectSnippet.g.cs deleted file mode 100755 index a81d5216d8f6..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/VehicleServiceClient.UpdateVehicleRequestObjectSnippet.g.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - // [START fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedVehicleServiceClientSnippets - { - /// Snippet for UpdateVehicle - /// - /// This snippet has been automatically generated and should be regarded as a code template only. - /// It will require modifications to work: - /// - It may require correct/in-range values for request initialization. - /// - It may require specifying regional endpoints when creating the service client as shown in - /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. - /// - public void UpdateVehicleRequestObject() - { - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - UpdateVehicleRequest request = new UpdateVehicleRequest - { - Header = new RequestHeader(), - Name = "", - Vehicle = new Vehicle(), - UpdateMask = new FieldMask(), - }; - // Make the request - Vehicle response = vehicleServiceClient.UpdateVehicle(request); - } - } - // [END fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/snippet_metadata_maps.fleetengine.v1.json b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/snippet_metadata_maps.fleetengine.v1.json deleted file mode 100755 index b954a5cce5cf..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.GeneratedSnippets/snippet_metadata_maps.fleetengine.v1.json +++ /dev/null @@ -1,1080 +0,0 @@ -{ - "clientLibrary": { - "name": "Google.Maps.FleetEngine.V1", - "language": "C_SHARP", - "apis": [ - { - "id": "maps.fleetengine.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "fleetengine_v1_generated_TripService_CreateTrip_sync", - "title": "CreateTripRequestObject", - "description": "Snippet for CreateTrip", - "file": "TripServiceClient.CreateTripRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateTrip", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.CreateTrip", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.CreateTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "CreateTrip", - "fullName": "maps.fleetengine.v1.TripService.CreateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 47, - "type": "FULL" - }, - { - "start": 34, - "end": 45, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_CreateTrip_async", - "title": "CreateTripRequestObjectAsync", - "description": "Snippet for CreateTripAsync", - "file": "TripServiceClient.CreateTripRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateTripAsync", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.CreateTripAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.CreateTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "CreateTrip", - "fullName": "maps.fleetengine.v1.TripService.CreateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 35, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_GetTrip_sync", - "title": "GetTripRequestObject", - "description": "Snippet for GetTrip", - "file": "TripServiceClient.GetTripRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetTrip", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.GetTrip", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.GetTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "GetTrip", - "fullName": "maps.fleetengine.v1.TripService.GetTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 52, - "type": "FULL" - }, - { - "start": 35, - "end": 50, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_GetTrip_async", - "title": "GetTripRequestObjectAsync", - "description": "Snippet for GetTripAsync", - "file": "TripServiceClient.GetTripRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetTripAsync", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.GetTripAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.GetTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "GetTrip", - "fullName": "maps.fleetengine.v1.TripService.GetTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - }, - { - "start": 36, - "end": 51, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_ReportBillableTrip_sync", - "title": "ReportBillableTripRequestObject", - "description": "Snippet for ReportBillableTrip", - "file": "TripServiceClient.ReportBillableTripRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ReportBillableTrip", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.ReportBillableTrip", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.ReportBillableTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "ReportBillableTrip", - "fullName": "maps.fleetengine.v1.TripService.ReportBillableTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 34, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_ReportBillableTrip_async", - "title": "ReportBillableTripRequestObjectAsync", - "description": "Snippet for ReportBillableTripAsync", - "file": "TripServiceClient.ReportBillableTripRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ReportBillableTripAsync", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.ReportBillableTripAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.ReportBillableTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "ReportBillableTrip", - "fullName": "maps.fleetengine.v1.TripService.ReportBillableTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 49, - "type": "FULL" - }, - { - "start": 35, - "end": 47, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_SearchTrips_sync", - "title": "SearchTripsRequestObject", - "description": "Snippet for SearchTrips", - "file": "TripServiceClient.SearchTripsRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SearchTrips", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.SearchTrips", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.SearchTripsRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Api.Gax.PagedEnumerable", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "SearchTrips", - "fullName": "maps.fleetengine.v1.TripService.SearchTrips", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 83, - "type": "FULL" - }, - { - "start": 37, - "end": 81, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_SearchTrips_async", - "title": "SearchTripsRequestObjectAsync", - "description": "Snippet for SearchTripsAsync", - "file": "TripServiceClient.SearchTripsRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SearchTripsAsync", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.SearchTripsAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.SearchTripsRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Api.Gax.PagedAsyncEnumerable", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "SearchTrips", - "fullName": "maps.fleetengine.v1.TripService.SearchTrips", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 85, - "type": "FULL" - }, - { - "start": 39, - "end": 83, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_UpdateTrip_sync", - "title": "UpdateTripRequestObject", - "description": "Snippet for UpdateTrip", - "file": "TripServiceClient.UpdateTripRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateTrip", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.UpdateTrip", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "UpdateTrip", - "fullName": "maps.fleetengine.v1.TripService.UpdateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 35, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_TripService_UpdateTrip_async", - "title": "UpdateTripRequestObjectAsync", - "description": "Snippet for UpdateTripAsync", - "file": "TripServiceClient.UpdateTripRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateTripAsync", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient.UpdateTripAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateTripRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "TripServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.TripServiceClient" - }, - "method": { - "shortName": "UpdateTrip", - "fullName": "maps.fleetengine.v1.TripService.UpdateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 49, - "type": "FULL" - }, - { - "start": 36, - "end": 47, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_CreateVehicle_sync", - "title": "CreateVehicleRequestObject", - "description": "Snippet for CreateVehicle", - "file": "VehicleServiceClient.CreateVehicleRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateVehicle", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.CreateVehicle", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.CreateVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "CreateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.CreateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 47, - "type": "FULL" - }, - { - "start": 34, - "end": 45, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_CreateVehicle_async", - "title": "CreateVehicleRequestObjectAsync", - "description": "Snippet for CreateVehicleAsync", - "file": "VehicleServiceClient.CreateVehicleRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateVehicleAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.CreateVehicleAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.CreateVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "CreateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.CreateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 35, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_GetVehicle_sync", - "title": "GetVehicleRequestObject", - "description": "Snippet for GetVehicle", - "file": "VehicleServiceClient.GetVehicleRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetVehicle", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.GetVehicle", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.GetVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "GetVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.GetVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 35, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_GetVehicle_async", - "title": "GetVehicleRequestObjectAsync", - "description": "Snippet for GetVehicleAsync", - "file": "VehicleServiceClient.GetVehicleRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetVehicleAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.GetVehicleAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.GetVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "GetVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.GetVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 49, - "type": "FULL" - }, - { - "start": 36, - "end": 47, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicle_sync", - "title": "UpdateVehicleRequestObject", - "description": "Snippet for UpdateVehicle", - "file": "VehicleServiceClient.UpdateVehicleRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateVehicle", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.UpdateVehicle", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 48, - "type": "FULL" - }, - { - "start": 35, - "end": 46, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicle_async", - "title": "UpdateVehicleRequestObjectAsync", - "description": "Snippet for UpdateVehicleAsync", - "file": "VehicleServiceClient.UpdateVehicleRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateVehicleAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.UpdateVehicleAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateVehicleRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 49, - "type": "FULL" - }, - { - "start": 36, - "end": 47, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync", - "title": "UpdateVehicleAttributesRequestObject", - "description": "Snippet for UpdateVehicleAttributes", - "file": "VehicleServiceClient.UpdateVehicleAttributesRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateVehicleAttributes", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.UpdateVehicleAttributes", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicleAttributes", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 49, - "type": "FULL" - }, - { - "start": 34, - "end": 47, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_async", - "title": "UpdateVehicleAttributesRequestObjectAsync", - "description": "Snippet for UpdateVehicleAttributesAsync", - "file": "VehicleServiceClient.UpdateVehicleAttributesRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateVehicleAttributesAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.UpdateVehicleAttributesAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicleAttributes", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - }, - { - "start": 35, - "end": 48, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_ListVehicles_sync", - "title": "ListVehiclesRequestObject", - "description": "Snippet for ListVehicles", - "file": "VehicleServiceClient.ListVehiclesRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ListVehicles", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.ListVehicles", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.ListVehiclesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Api.Gax.PagedEnumerable", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "ListVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.ListVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 98, - "type": "FULL" - }, - { - "start": 38, - "end": 96, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_ListVehicles_async", - "title": "ListVehiclesRequestObjectAsync", - "description": "Snippet for ListVehiclesAsync", - "file": "VehicleServiceClient.ListVehiclesRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ListVehiclesAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.ListVehiclesAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.ListVehiclesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Api.Gax.PagedAsyncEnumerable", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "ListVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.ListVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 100, - "type": "FULL" - }, - { - "start": 40, - "end": 98, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_SearchVehicles_sync", - "title": "SearchVehiclesRequestObject", - "description": "Snippet for SearchVehicles", - "file": "VehicleServiceClient.SearchVehiclesRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SearchVehicles", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.SearchVehicles", - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.SearchVehiclesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Maps.FleetEngine.V1.SearchVehiclesResponse", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "SearchVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.SearchVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 77, - "type": "FULL" - }, - { - "start": 35, - "end": 75, - "type": "SHORT" - } - ] - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_SearchVehicles_async", - "title": "SearchVehiclesRequestObjectAsync", - "description": "Snippet for SearchVehiclesAsync", - "file": "VehicleServiceClient.SearchVehiclesRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SearchVehiclesAsync", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient.SearchVehiclesAsync", - "async": true, - "parameters": [ - { - "type": "Google.Maps.FleetEngine.V1.SearchVehiclesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "Google.Maps.FleetEngine.V1.VehicleServiceClient" - }, - "method": { - "shortName": "SearchVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.SearchVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 78, - "type": "FULL" - }, - { - "start": 36, - "end": 76, - "type": "SHORT" - } - ] - } - ] -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/Google.Maps.FleetEngine.V1.Snippets.csproj b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/Google.Maps.FleetEngine.V1.Snippets.csproj deleted file mode 100755 index 4d6fefe9e0d9..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/Google.Maps.FleetEngine.V1.Snippets.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - - net6.0;net462 - latest - - - - - - - - - \ No newline at end of file diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/TripServiceClientSnippets.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/TripServiceClientSnippets.g.cs deleted file mode 100755 index f6dcba5458cd..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/TripServiceClientSnippets.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - using Google.Api.Gax; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - using System.Linq; - using System.Threading.Tasks; - - /// Generated snippets. - public sealed class AllGeneratedTripServiceClientSnippets - { - /// Snippet for CreateTrip - public void CreateTripRequestObject() - { - // Snippet: CreateTrip(CreateTripRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - CreateTripRequest request = new CreateTripRequest - { - Header = new RequestHeader(), - ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - Trip = new Trip(), - TripId = "", - }; - // Make the request - Trip response = tripServiceClient.CreateTrip(request); - // End snippet - } - - /// Snippet for CreateTripAsync - public async Task CreateTripRequestObjectAsync() - { - // Snippet: CreateTripAsync(CreateTripRequest, CallSettings) - // Additional: CreateTripAsync(CreateTripRequest, CancellationToken) - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateTripRequest request = new CreateTripRequest - { - Header = new RequestHeader(), - ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - Trip = new Trip(), - TripId = "", - }; - // Make the request - Trip response = await tripServiceClient.CreateTripAsync(request); - // End snippet - } - - /// Snippet for GetTrip - public void GetTripRequestObject() - { - // Snippet: GetTrip(GetTripRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - GetTripRequest request = new GetTripRequest - { - Header = new RequestHeader(), - TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - CurrentRouteSegmentVersion = new Timestamp(), - RemainingWaypointsVersion = new Timestamp(), - RouteFormatType = PolylineFormatType.UnknownFormatType, - CurrentRouteSegmentTrafficVersion = new Timestamp(), - RemainingWaypointsRouteVersion = new Timestamp(), - View = TripView.Unspecified, - }; - // Make the request - Trip response = tripServiceClient.GetTrip(request); - // End snippet - } - - /// Snippet for GetTripAsync - public async Task GetTripRequestObjectAsync() - { - // Snippet: GetTripAsync(GetTripRequest, CallSettings) - // Additional: GetTripAsync(GetTripRequest, CancellationToken) - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - GetTripRequest request = new GetTripRequest - { - Header = new RequestHeader(), - TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"), - CurrentRouteSegmentVersion = new Timestamp(), - RemainingWaypointsVersion = new Timestamp(), - RouteFormatType = PolylineFormatType.UnknownFormatType, - CurrentRouteSegmentTrafficVersion = new Timestamp(), - RemainingWaypointsRouteVersion = new Timestamp(), - View = TripView.Unspecified, - }; - // Make the request - Trip response = await tripServiceClient.GetTripAsync(request); - // End snippet - } - - /// Snippet for ReportBillableTrip - public void ReportBillableTripRequestObject() - { - // Snippet: ReportBillableTrip(ReportBillableTripRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - ReportBillableTripRequest request = new ReportBillableTripRequest - { - Name = "", - CountryCode = "", - Platform = BillingPlatformIdentifier.Unspecified, - RelatedIds = { "", }, - SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified, - }; - // Make the request - tripServiceClient.ReportBillableTrip(request); - // End snippet - } - - /// Snippet for ReportBillableTripAsync - public async Task ReportBillableTripRequestObjectAsync() - { - // Snippet: ReportBillableTripAsync(ReportBillableTripRequest, CallSettings) - // Additional: ReportBillableTripAsync(ReportBillableTripRequest, CancellationToken) - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - ReportBillableTripRequest request = new ReportBillableTripRequest - { - Name = "", - CountryCode = "", - Platform = BillingPlatformIdentifier.Unspecified, - RelatedIds = { "", }, - SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified, - }; - // Make the request - await tripServiceClient.ReportBillableTripAsync(request); - // End snippet - } - - /// Snippet for SearchTrips - public void SearchTripsRequestObject() - { - // Snippet: SearchTrips(SearchTripsRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - SearchTripsRequest request = new SearchTripsRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - ActiveTripsOnly = false, - MinimumStaleness = new Duration(), - }; - // Make the request - PagedEnumerable response = tripServiceClient.SearchTrips(request); - - // Iterate over all response items, lazily performing RPCs as required - foreach (Trip item in response) - { - // Do something with each item - Console.WriteLine(item); - } - - // Or iterate over pages (of server-defined size), performing one RPC per page - foreach (SearchTripsResponse page in response.AsRawResponses()) - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Trip item in page) - { - // Do something with each item - Console.WriteLine(item); - } - } - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = response.ReadPage(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Trip item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - // End snippet - } - - /// Snippet for SearchTripsAsync - public async Task SearchTripsRequestObjectAsync() - { - // Snippet: SearchTripsAsync(SearchTripsRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - SearchTripsRequest request = new SearchTripsRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - ActiveTripsOnly = false, - MinimumStaleness = new Duration(), - }; - // Make the request - PagedAsyncEnumerable response = tripServiceClient.SearchTripsAsync(request); - - // Iterate over all response items, lazily performing RPCs as required - await response.ForEachAsync((Trip item) => - { - // Do something with each item - Console.WriteLine(item); - }); - - // Or iterate over pages (of server-defined size), performing one RPC per page - await response.AsRawResponses().ForEachAsync((SearchTripsResponse page) => - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Trip item in page) - { - // Do something with each item - Console.WriteLine(item); - } - }); - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = await response.ReadPageAsync(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Trip item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - // End snippet - } - - /// Snippet for UpdateTrip - public void UpdateTripRequestObject() - { - // Snippet: UpdateTrip(UpdateTripRequest, CallSettings) - // Create client - TripServiceClient tripServiceClient = TripServiceClient.Create(); - // Initialize request argument(s) - UpdateTripRequest request = new UpdateTripRequest - { - Header = new RequestHeader(), - Name = "", - Trip = new Trip(), - UpdateMask = new FieldMask(), - }; - // Make the request - Trip response = tripServiceClient.UpdateTrip(request); - // End snippet - } - - /// Snippet for UpdateTripAsync - public async Task UpdateTripRequestObjectAsync() - { - // Snippet: UpdateTripAsync(UpdateTripRequest, CallSettings) - // Additional: UpdateTripAsync(UpdateTripRequest, CancellationToken) - // Create client - TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateTripRequest request = new UpdateTripRequest - { - Header = new RequestHeader(), - Name = "", - Trip = new Trip(), - UpdateMask = new FieldMask(), - }; - // Make the request - Trip response = await tripServiceClient.UpdateTripAsync(request); - // End snippet - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/VehicleServiceClientSnippets.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/VehicleServiceClientSnippets.g.cs deleted file mode 100755 index e11f86910daf..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.Snippets/VehicleServiceClientSnippets.g.cs +++ /dev/null @@ -1,419 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -namespace GoogleCSharpSnippets -{ - using Google.Api.Gax; - using Google.Geo.Type; - using Google.Maps.FleetEngine.V1; - using Google.Protobuf.WellKnownTypes; - using System; - using System.Linq; - using System.Threading.Tasks; - - /// Generated snippets. - public sealed class AllGeneratedVehicleServiceClientSnippets - { - /// Snippet for CreateVehicle - public void CreateVehicleRequestObject() - { - // Snippet: CreateVehicle(CreateVehicleRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - CreateVehicleRequest request = new CreateVehicleRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - Vehicle = new Vehicle(), - }; - // Make the request - Vehicle response = vehicleServiceClient.CreateVehicle(request); - // End snippet - } - - /// Snippet for CreateVehicleAsync - public async Task CreateVehicleRequestObjectAsync() - { - // Snippet: CreateVehicleAsync(CreateVehicleRequest, CallSettings) - // Additional: CreateVehicleAsync(CreateVehicleRequest, CancellationToken) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateVehicleRequest request = new CreateVehicleRequest - { - Header = new RequestHeader(), - Parent = "", - VehicleId = "", - Vehicle = new Vehicle(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.CreateVehicleAsync(request); - // End snippet - } - - /// Snippet for GetVehicle - public void GetVehicleRequestObject() - { - // Snippet: GetVehicle(GetVehicleRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - GetVehicleRequest request = new GetVehicleRequest - { - Header = new RequestHeader(), - VehicleName = VehicleName.FromProviderVehicle("[PROVIDER]", "[VEHICLE]"), - CurrentRouteSegmentVersion = new Timestamp(), - WaypointsVersion = new Timestamp(), - }; - // Make the request - Vehicle response = vehicleServiceClient.GetVehicle(request); - // End snippet - } - - /// Snippet for GetVehicleAsync - public async Task GetVehicleRequestObjectAsync() - { - // Snippet: GetVehicleAsync(GetVehicleRequest, CallSettings) - // Additional: GetVehicleAsync(GetVehicleRequest, CancellationToken) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - GetVehicleRequest request = new GetVehicleRequest - { - Header = new RequestHeader(), - VehicleName = VehicleName.FromProviderVehicle("[PROVIDER]", "[VEHICLE]"), - CurrentRouteSegmentVersion = new Timestamp(), - WaypointsVersion = new Timestamp(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.GetVehicleAsync(request); - // End snippet - } - - /// Snippet for UpdateVehicle - public void UpdateVehicleRequestObject() - { - // Snippet: UpdateVehicle(UpdateVehicleRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - UpdateVehicleRequest request = new UpdateVehicleRequest - { - Header = new RequestHeader(), - Name = "", - Vehicle = new Vehicle(), - UpdateMask = new FieldMask(), - }; - // Make the request - Vehicle response = vehicleServiceClient.UpdateVehicle(request); - // End snippet - } - - /// Snippet for UpdateVehicleAsync - public async Task UpdateVehicleRequestObjectAsync() - { - // Snippet: UpdateVehicleAsync(UpdateVehicleRequest, CallSettings) - // Additional: UpdateVehicleAsync(UpdateVehicleRequest, CancellationToken) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateVehicleRequest request = new UpdateVehicleRequest - { - Header = new RequestHeader(), - Name = "", - Vehicle = new Vehicle(), - UpdateMask = new FieldMask(), - }; - // Make the request - Vehicle response = await vehicleServiceClient.UpdateVehicleAsync(request); - // End snippet - } - - /// Snippet for UpdateVehicleAttributes - public void UpdateVehicleAttributesRequestObject() - { - // Snippet: UpdateVehicleAttributes(UpdateVehicleAttributesRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - UpdateVehicleAttributesRequest request = new UpdateVehicleAttributesRequest - { - Header = new RequestHeader(), - Name = "", - Attributes = - { - new VehicleAttribute(), - }, - }; - // Make the request - UpdateVehicleAttributesResponse response = vehicleServiceClient.UpdateVehicleAttributes(request); - // End snippet - } - - /// Snippet for UpdateVehicleAttributesAsync - public async Task UpdateVehicleAttributesRequestObjectAsync() - { - // Snippet: UpdateVehicleAttributesAsync(UpdateVehicleAttributesRequest, CallSettings) - // Additional: UpdateVehicleAttributesAsync(UpdateVehicleAttributesRequest, CancellationToken) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateVehicleAttributesRequest request = new UpdateVehicleAttributesRequest - { - Header = new RequestHeader(), - Name = "", - Attributes = - { - new VehicleAttribute(), - }, - }; - // Make the request - UpdateVehicleAttributesResponse response = await vehicleServiceClient.UpdateVehicleAttributesAsync(request); - // End snippet - } - - /// Snippet for ListVehicles - public void ListVehiclesRequestObject() - { - // Snippet: ListVehicles(ListVehiclesRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - ListVehiclesRequest request = new ListVehiclesRequest - { - Parent = "", - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - VehicleTypeCategories = - { - Vehicle.Types.VehicleType.Types.Category.Unknown, - }, - RequiredAttributes = { "", }, - VehicleState = VehicleState.UnknownVehicleState, - Header = new RequestHeader(), - RequiredOneOfAttributes = { "", }, - OnTripOnly = false, - RequiredOneOfAttributeSets = { "", }, - Filter = "", - Viewport = new Viewport(), - }; - // Make the request - PagedEnumerable response = vehicleServiceClient.ListVehicles(request); - - // Iterate over all response items, lazily performing RPCs as required - foreach (Vehicle item in response) - { - // Do something with each item - Console.WriteLine(item); - } - - // Or iterate over pages (of server-defined size), performing one RPC per page - foreach (ListVehiclesResponse page in response.AsRawResponses()) - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Vehicle item in page) - { - // Do something with each item - Console.WriteLine(item); - } - } - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = response.ReadPage(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Vehicle item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - // End snippet - } - - /// Snippet for ListVehiclesAsync - public async Task ListVehiclesRequestObjectAsync() - { - // Snippet: ListVehiclesAsync(ListVehiclesRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - ListVehiclesRequest request = new ListVehiclesRequest - { - Parent = "", - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - VehicleTypeCategories = - { - Vehicle.Types.VehicleType.Types.Category.Unknown, - }, - RequiredAttributes = { "", }, - VehicleState = VehicleState.UnknownVehicleState, - Header = new RequestHeader(), - RequiredOneOfAttributes = { "", }, - OnTripOnly = false, - RequiredOneOfAttributeSets = { "", }, - Filter = "", - Viewport = new Viewport(), - }; - // Make the request - PagedAsyncEnumerable response = vehicleServiceClient.ListVehiclesAsync(request); - - // Iterate over all response items, lazily performing RPCs as required - await response.ForEachAsync((Vehicle item) => - { - // Do something with each item - Console.WriteLine(item); - }); - - // Or iterate over pages (of server-defined size), performing one RPC per page - await response.AsRawResponses().ForEachAsync((ListVehiclesResponse page) => - { - // Do something with each page of items - Console.WriteLine("A page of results:"); - foreach (Vehicle item in page) - { - // Do something with each item - Console.WriteLine(item); - } - }); - - // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required - int pageSize = 10; - Page singlePage = await response.ReadPageAsync(pageSize); - // Do something with the page of items - Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); - foreach (Vehicle item in singlePage) - { - // Do something with each item - Console.WriteLine(item); - } - // Store the pageToken, for when the next page is required. - string nextPageToken = singlePage.NextPageToken; - // End snippet - } - - /// Snippet for SearchVehicles - public void SearchVehiclesRequestObject() - { - // Snippet: SearchVehicles(SearchVehiclesRequest, CallSettings) - // Create client - VehicleServiceClient vehicleServiceClient = VehicleServiceClient.Create(); - // Initialize request argument(s) - SearchVehiclesRequest request = new SearchVehiclesRequest - { - Header = new RequestHeader(), - Parent = "", - PickupPoint = new TerminalLocation(), - DropoffPoint = new TerminalLocation(), - PickupRadiusMeters = 0, - Count = 0, - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - RequiredAttributes = - { - new VehicleAttribute(), - }, - OrderBy = SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder, - VehicleTypes = - { - new Vehicle.Types.VehicleType(), - }, - RequiredOneOfAttributes = - { - new VehicleAttributeList(), - }, - IncludeBackToBack = false, - TripId = "", - RequiredOneOfAttributeSets = - { - new VehicleAttributeList(), - }, - CurrentTripsPresent = SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified, - Filter = "", - }; - // Make the request - SearchVehiclesResponse response = vehicleServiceClient.SearchVehicles(request); - // End snippet - } - - /// Snippet for SearchVehiclesAsync - public async Task SearchVehiclesRequestObjectAsync() - { - // Snippet: SearchVehiclesAsync(SearchVehiclesRequest, CallSettings) - // Additional: SearchVehiclesAsync(SearchVehiclesRequest, CancellationToken) - // Create client - VehicleServiceClient vehicleServiceClient = await VehicleServiceClient.CreateAsync(); - // Initialize request argument(s) - SearchVehiclesRequest request = new SearchVehiclesRequest - { - Header = new RequestHeader(), - Parent = "", - PickupPoint = new TerminalLocation(), - DropoffPoint = new TerminalLocation(), - PickupRadiusMeters = 0, - Count = 0, - MinimumCapacity = 0, - TripTypes = - { - TripType.UnknownTripType, - }, - MaximumStaleness = new Duration(), - RequiredAttributes = - { - new VehicleAttribute(), - }, - OrderBy = SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder, - VehicleTypes = - { - new Vehicle.Types.VehicleType(), - }, - RequiredOneOfAttributes = - { - new VehicleAttributeList(), - }, - IncludeBackToBack = false, - TripId = "", - RequiredOneOfAttributeSets = - { - new VehicleAttributeList(), - }, - CurrentTripsPresent = SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified, - Filter = "", - }; - // Make the request - SearchVehiclesResponse response = await vehicleServiceClient.SearchVehiclesAsync(request); - // End snippet - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Fleetengine.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Fleetengine.g.cs deleted file mode 100755 index 6ac1880a95aa..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Fleetengine.g.cs +++ /dev/null @@ -1,3482 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/fleetengine.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/fleetengine.proto - public static partial class FleetengineReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/fleetengine.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FleetengineReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cixnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS9mbGVldGVuZ2luZS5wcm90", - "bxITbWFwcy5mbGVldGVuZ2luZS52MRofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", - "dmlvci5wcm90bxooZ29vZ2xlL21hcHMvZmxlZXRlbmdpbmUvdjEvdHJhZmZp", - "Yy5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29n", - "bGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGh5nb29nbGUvcHJvdG9idWYv", - "d3JhcHBlcnMucHJvdG8aGGdvb2dsZS90eXBlL2xhdGxuZy5wcm90byJiCg9U", - "ZXJtaW5hbFBvaW50SWQSFgoIcGxhY2VfaWQYAiABKAlCAhgBSAASGgoMZ2Vu", - "ZXJhdGVkX2lkGAMgASgJQgIYAUgAEhEKBXZhbHVlGAQgASgJQgIYAToCGAFC", - "BAoCSWQi+QEKEFRlcm1pbmFsTG9jYXRpb24SJwoFcG9pbnQYASABKAsyEy5n", - "b29nbGUudHlwZS5MYXRMbmdCA+BBAhJDChF0ZXJtaW5hbF9wb2ludF9pZBgC", - "IAEoCzIkLm1hcHMuZmxlZXRlbmdpbmUudjEuVGVybWluYWxQb2ludElkQgIY", - "ARIbCg9hY2Nlc3NfcG9pbnRfaWQYAyABKAlCAhgBEhMKB3RyaXBfaWQYBCAB", - "KAlCAhgBEkUKFnRlcm1pbmFsX2xvY2F0aW9uX3R5cGUYBSABKA4yIS5tYXBz", - "LmZsZWV0ZW5naW5lLnYxLldheXBvaW50VHlwZUICGAEivAMKDFRyaXBXYXlw", - "b2ludBI3Cghsb2NhdGlvbhgBIAEoCzIlLm1hcHMuZmxlZXRlbmdpbmUudjEu", - "VGVybWluYWxMb2NhdGlvbhIPCgd0cmlwX2lkGAIgASgJEjgKDXdheXBvaW50", - "X3R5cGUYAyABKA4yIS5tYXBzLmZsZWV0ZW5naW5lLnYxLldheXBvaW50VHlw", - "ZRItChBwYXRoX3RvX3dheXBvaW50GAQgAygLMhMuZ29vZ2xlLnR5cGUuTGF0", - "TG5nEiAKGGVuY29kZWRfcGF0aF90b193YXlwb2ludBgFIAEoCRJLChN0cmFm", - "ZmljX3RvX3dheXBvaW50GAogASgLMi4ubWFwcy5mbGVldGVuZ2luZS52MS5D", - "b25zdW1hYmxlVHJhZmZpY1BvbHlsaW5lEjQKD2Rpc3RhbmNlX21ldGVycxgG", - "IAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEicKA2V0YRgHIAEo", - "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASKwoIZHVyYXRpb24YCCAB", - "KAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24ijwEKEFZlaGljbGVBdHRy", - "aWJ1dGUSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJEhYKDHN0cmluZ192", - "YWx1ZRgDIAEoCUgAEhQKCmJvb2xfdmFsdWUYBCABKAhIABIWCgxudW1iZXJf", - "dmFsdWUYBSABKAFIAEIZChd2ZWhpY2xlX2F0dHJpYnV0ZV92YWx1ZSKkDAoP", - "VmVoaWNsZUxvY2F0aW9uEiUKCGxvY2F0aW9uGAEgASgLMhMuZ29vZ2xlLnR5", - "cGUuTGF0TG5nEj0KE2hvcml6b250YWxfYWNjdXJhY3kYCCABKAsyHC5nb29n", - "bGUucHJvdG9idWYuRG91YmxlVmFsdWVCAhgBEjUKD2xhdGxuZ19hY2N1cmFj", - "eRgWIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZRIsCgdoZWFk", - "aW5nGAIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSOgoQYmVh", - "cmluZ19hY2N1cmFjeRgKIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5Eb3VibGVW", - "YWx1ZUICGAESNgoQaGVhZGluZ19hY2N1cmFjeRgXIAEoCzIcLmdvb2dsZS5w", - "cm90b2J1Zi5Eb3VibGVWYWx1ZRIuCghhbHRpdHVkZRgFIAEoCzIcLmdvb2ds", - "ZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZRI7ChF2ZXJ0aWNhbF9hY2N1cmFjeRgJ", - "IAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZUICGAESNwoRYWx0", - "aXR1ZGVfYWNjdXJhY3kYGCABKAsyHC5nb29nbGUucHJvdG9idWYuRG91Ymxl", - "VmFsdWUSMwoKc3BlZWRfa21waBgDIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5J", - "bnQzMlZhbHVlQgIYARIrCgVzcGVlZBgGIAEoCzIcLmdvb2dsZS5wcm90b2J1", - "Zi5Eb3VibGVWYWx1ZRI0Cg5zcGVlZF9hY2N1cmFjeRgHIAEoCzIcLmdvb2ds", - "ZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZRIvCgt1cGRhdGVfdGltZRgEIAEoCzIa", - "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNAoLc2VydmVyX3RpbWUYDSAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSPAoPbG9jYXRp", - "b25fc2Vuc29yGAsgASgOMiMubWFwcy5mbGVldGVuZ2luZS52MS5Mb2NhdGlv", - "blNlbnNvchIzCg9pc19yb2FkX3NuYXBwZWQYGyABKAsyGi5nb29nbGUucHJv", - "dG9idWYuQm9vbFZhbHVlEj4KFWlzX2dwc19zZW5zb3JfZW5hYmxlZBgMIAEo", - "CzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWVCA+BBBBI7ChF0aW1lX3Np", - "bmNlX3VwZGF0ZRgOIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVl", - "QgPgQQQSPQoRbnVtX3N0YWxlX3VwZGF0ZXMYDyABKAsyGy5nb29nbGUucHJv", - "dG9idWYuSW50MzJWYWx1ZUIFGAHgQQQSKQoMcmF3X2xvY2F0aW9uGBAgASgL", - "MhMuZ29vZ2xlLnR5cGUuTGF0TG5nEjUKEXJhd19sb2NhdGlvbl90aW1lGBEg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJAChNyYXdfbG9jYXRp", - "b25fc2Vuc29yGBwgASgOMiMubWFwcy5mbGVldGVuZ2luZS52MS5Mb2NhdGlv", - "blNlbnNvchI7ChVyYXdfbG9jYXRpb25fYWNjdXJhY3kYGSABKAsyHC5nb29n", - "bGUucHJvdG9idWYuRG91YmxlVmFsdWUSMgoVc3VwcGxlbWVudGFsX2xvY2F0", - "aW9uGBIgASgLMhMuZ29vZ2xlLnR5cGUuTGF0TG5nEj4KGnN1cHBsZW1lbnRh", - "bF9sb2NhdGlvbl90aW1lGBMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", - "dGFtcBJJChxzdXBwbGVtZW50YWxfbG9jYXRpb25fc2Vuc29yGBQgASgOMiMu", - "bWFwcy5mbGVldGVuZ2luZS52MS5Mb2NhdGlvblNlbnNvchJECh5zdXBwbGVt", - "ZW50YWxfbG9jYXRpb25fYWNjdXJhY3kYFSABKAsyHC5nb29nbGUucHJvdG9i", - "dWYuRG91YmxlVmFsdWUSGAoMcm9hZF9zbmFwcGVkGBogASgIQgIYASo8CghU", - "cmlwVHlwZRIVChFVTktOT1dOX1RSSVBfVFlQRRAAEgoKBlNIQVJFRBABEg0K", - "CUVYQ0xVU0lWRRACKosBCgxXYXlwb2ludFR5cGUSGQoVVU5LTk9XTl9XQVlQ", - "T0lOVF9UWVBFEAASGAoUUElDS1VQX1dBWVBPSU5UX1RZUEUQARIaChZEUk9Q", - "X09GRl9XQVlQT0lOVF9UWVBFEAISKgomSU5URVJNRURJQVRFX0RFU1RJTkFU", - "SU9OX1dBWVBPSU5UX1RZUEUQAypfChJQb2x5bGluZUZvcm1hdFR5cGUSFwoT", - "VU5LTk9XTl9GT1JNQVRfVFlQRRAAEhUKEUxBVF9MTkdfTElTVF9UWVBFEAES", - "GQoVRU5DT0RFRF9QT0xZTElORV9UWVBFEAIqiQEKEE5hdmlnYXRpb25TdGF0", - "dXMSHQoZVU5LTk9XTl9OQVZJR0FUSU9OX1NUQVRVUxAAEg8KC05PX0dVSURB", - "TkNFEAESGgoWRU5ST1VURV9UT19ERVNUSU5BVElPThACEg0KCU9GRl9ST1VU", - "RRADEhoKFkFSUklWRURfQVRfREVTVElOQVRJT04QBCrXAQoOTG9jYXRpb25T", - "ZW5zb3ISEgoOVU5LTk9XTl9TRU5TT1IQABIHCgNHUFMQARILCgdORVRXT1JL", - "EAISCwoHUEFTU0lWRRADEiIKHlJPQURfU05BUFBFRF9MT0NBVElPTl9QUk9W", - "SURFUhAEEh4KGkNVU1RPTUVSX1NVUFBMSUVEX0xPQ0FUSU9OEAUSGQoVRkxF", - "RVRfRU5HSU5FX0xPQ0FUSU9OEAYSGwoXRlVTRURfTE9DQVRJT05fUFJPVklE", - "RVIQZBISCg1DT1JFX0xPQ0FUSU9OEMgBQtcBCh5jb20uZ29vZ2xlLm1hcHMu", - "ZmxlZXRlbmdpbmUudjFCC0ZsZWV0RW5naW5lUAFaRmNsb3VkLmdvb2dsZS5j", - "b20vZ28vbWFwcy9mbGVldGVuZ2luZS9hcGl2MS9mbGVldGVuZ2luZXBiO2Zs", - "ZWV0ZW5naW5lcGKiAgNDRkWqAhpHb29nbGUuTWFwcy5GbGVldEVuZ2luZS5W", - "McoCGkdvb2dsZVxNYXBzXEZsZWV0RW5naW5lXFYx6gIdR29vZ2xlOjpNYXBz", - "OjpGbGVldEVuZ2luZTo6VjFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Maps.FleetEngine.V1.TrafficReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.LatlngReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Maps.FleetEngine.V1.TripType), typeof(global::Google.Maps.FleetEngine.V1.WaypointType), typeof(global::Google.Maps.FleetEngine.V1.PolylineFormatType), typeof(global::Google.Maps.FleetEngine.V1.NavigationStatus), typeof(global::Google.Maps.FleetEngine.V1.LocationSensor), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.TerminalPointId), global::Google.Maps.FleetEngine.V1.TerminalPointId.Parser, new[]{ "PlaceId", "GeneratedId", "Value" }, new[]{ "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.TerminalLocation), global::Google.Maps.FleetEngine.V1.TerminalLocation.Parser, new[]{ "Point", "TerminalPointId", "AccessPointId", "TripId", "TerminalLocationType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.TripWaypoint), global::Google.Maps.FleetEngine.V1.TripWaypoint.Parser, new[]{ "Location", "TripId", "WaypointType", "PathToWaypoint", "EncodedPathToWaypoint", "TrafficToWaypoint", "DistanceMeters", "Eta", "Duration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VehicleAttribute), global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser, new[]{ "Key", "Value", "StringValue", "BoolValue", "NumberValue" }, new[]{ "VehicleAttributeValue" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VehicleLocation), global::Google.Maps.FleetEngine.V1.VehicleLocation.Parser, new[]{ "Location", "HorizontalAccuracy", "LatlngAccuracy", "Heading", "BearingAccuracy", "HeadingAccuracy", "Altitude", "VerticalAccuracy", "AltitudeAccuracy", "SpeedKmph", "Speed", "SpeedAccuracy", "UpdateTime", "ServerTime", "LocationSensor", "IsRoadSnapped", "IsGpsSensorEnabled", "TimeSinceUpdate", "NumStaleUpdates", "RawLocation", "RawLocationTime", "RawLocationSensor", "RawLocationAccuracy", "SupplementalLocation", "SupplementalLocationTime", "SupplementalLocationSensor", "SupplementalLocationAccuracy", "RoadSnapped" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - /// The type of a trip. - /// - public enum TripType { - /// - /// Default, used for unspecified or unrecognized trip types. - /// - [pbr::OriginalName("UNKNOWN_TRIP_TYPE")] UnknownTripType = 0, - /// - /// The trip may share a vehicle with other trips. - /// - [pbr::OriginalName("SHARED")] Shared = 1, - /// - /// The trip is exclusive to a vehicle. - /// - [pbr::OriginalName("EXCLUSIVE")] Exclusive = 2, - } - - /// - /// The type of waypoint. - /// - public enum WaypointType { - /// - /// Unknown or unspecified waypoint type. - /// - [pbr::OriginalName("UNKNOWN_WAYPOINT_TYPE")] UnknownWaypointType = 0, - /// - /// Waypoints for picking up riders or items. - /// - [pbr::OriginalName("PICKUP_WAYPOINT_TYPE")] PickupWaypointType = 1, - /// - /// Waypoints for dropping off riders or items. - /// - [pbr::OriginalName("DROP_OFF_WAYPOINT_TYPE")] DropOffWaypointType = 2, - /// - /// Waypoints for intermediate destinations in a multi-destination trip. - /// - [pbr::OriginalName("INTERMEDIATE_DESTINATION_WAYPOINT_TYPE")] IntermediateDestinationWaypointType = 3, - } - - /// - /// The type of polyline format. - /// - public enum PolylineFormatType { - /// - /// The format is unspecified or unknown. - /// - [pbr::OriginalName("UNKNOWN_FORMAT_TYPE")] UnknownFormatType = 0, - /// - /// A list of `google.type.LatLng`. - /// - [pbr::OriginalName("LAT_LNG_LIST_TYPE")] LatLngListType = 1, - /// - /// A polyline encoded with a polyline compression algorithm. Decoding is not - /// yet supported. - /// - [pbr::OriginalName("ENCODED_POLYLINE_TYPE")] EncodedPolylineType = 2, - } - - /// - /// The vehicle's navigation status. - /// - public enum NavigationStatus { - /// - /// Unspecified navigation status. - /// - [pbr::OriginalName("UNKNOWN_NAVIGATION_STATUS")] UnknownNavigationStatus = 0, - /// - /// The Driver app's navigation is in `FREE_NAV` mode. - /// - [pbr::OriginalName("NO_GUIDANCE")] NoGuidance = 1, - /// - /// Turn-by-turn navigation is available and the Driver app navigation has - /// entered `GUIDED_NAV` mode. - /// - [pbr::OriginalName("ENROUTE_TO_DESTINATION")] EnrouteToDestination = 2, - /// - /// The vehicle has gone off the suggested route. - /// - [pbr::OriginalName("OFF_ROUTE")] OffRoute = 3, - /// - /// The vehicle is within approximately 50m of the destination. - /// - [pbr::OriginalName("ARRIVED_AT_DESTINATION")] ArrivedAtDestination = 4, - } - - /// - /// The sensor or methodology used to determine the location. - /// - public enum LocationSensor { - /// - /// The sensor is unspecified or unknown. - /// - [pbr::OriginalName("UNKNOWN_SENSOR")] UnknownSensor = 0, - /// - /// GPS or Assisted GPS. - /// - [pbr::OriginalName("GPS")] Gps = 1, - /// - /// Assisted GPS, cell tower ID, or WiFi access point. - /// - [pbr::OriginalName("NETWORK")] Network = 2, - /// - /// Cell tower ID or WiFi access point. - /// - [pbr::OriginalName("PASSIVE")] Passive = 3, - /// - /// A location determined by the mobile device to be the most likely - /// road position. - /// - [pbr::OriginalName("ROAD_SNAPPED_LOCATION_PROVIDER")] RoadSnappedLocationProvider = 4, - /// - /// A customer-supplied location from an independent source. Typically, this - /// value is used for a location provided from sources other than the mobile - /// device running Driver SDK. If the original source is described by one of - /// the other enum values, use that value. Locations marked - /// CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's - /// `last_location.supplemental_location_sensor`. - /// - [pbr::OriginalName("CUSTOMER_SUPPLIED_LOCATION")] CustomerSuppliedLocation = 5, - /// - /// A location calculated by Fleet Engine based on the signals available to it. - /// Output only. This value will be rejected if it is received in a request. - /// - [pbr::OriginalName("FLEET_ENGINE_LOCATION")] FleetEngineLocation = 6, - /// - /// Android's Fused Location Provider. - /// - [pbr::OriginalName("FUSED_LOCATION_PROVIDER")] FusedLocationProvider = 100, - /// - /// The location provider on Apple operating systems. - /// - [pbr::OriginalName("CORE_LOCATION")] CoreLocation = 200, - } - - #endregion - - #region Messages - /// - /// Deprecated: TerminalPoints are no longer supported in Fleet Engine. Use - /// `TerminalLocation.point` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TerminalPointId : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminalPointId()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalPointId() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalPointId(TerminalPointId other) : this() { - value_ = other.value_; - switch (other.IdCase) { - case IdOneofCase.PlaceId: - PlaceId = other.PlaceId; - break; - case IdOneofCase.GeneratedId: - GeneratedId = other.GeneratedId; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalPointId Clone() { - return new TerminalPointId(this); - } - - /// Field number for the "place_id" field. - public const int PlaceIdFieldNumber = 2; - /// - /// Deprecated. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PlaceId { - get { return HasPlaceId ? (string) id_ : ""; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - idCase_ = IdOneofCase.PlaceId; - } - } - /// Gets whether the "place_id" field is set - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlaceId { - get { return idCase_ == IdOneofCase.PlaceId; } - } - /// Clears the value of the oneof if it's currently set to "place_id" - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlaceId() { - if (HasPlaceId) { - ClearId(); - } - } - - /// Field number for the "generated_id" field. - public const int GeneratedIdFieldNumber = 3; - /// - /// Deprecated. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeneratedId { - get { return HasGeneratedId ? (string) id_ : ""; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - idCase_ = IdOneofCase.GeneratedId; - } - } - /// Gets whether the "generated_id" field is set - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGeneratedId { - get { return idCase_ == IdOneofCase.GeneratedId; } - } - /// Clears the value of the oneof if it's currently set to "generated_id" - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGeneratedId() { - if (HasGeneratedId) { - ClearId(); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 4; - private string value_ = ""; - /// - /// Deprecated. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - private object id_; - /// Enum of possible cases for the "Id" oneof. - public enum IdOneofCase { - None = 0, - PlaceId = 2, - GeneratedId = 3, - } - private IdOneofCase idCase_ = IdOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IdOneofCase IdCase { - get { return idCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - idCase_ = IdOneofCase.None; - id_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TerminalPointId); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TerminalPointId other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlaceId != other.PlaceId) return false; - if (GeneratedId != other.GeneratedId) return false; - if (Value != other.Value) return false; - if (IdCase != other.IdCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPlaceId) hash ^= PlaceId.GetHashCode(); - if (HasGeneratedId) hash ^= GeneratedId.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - hash ^= (int) idCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasPlaceId) { - output.WriteRawTag(18); - output.WriteString(PlaceId); - } - if (HasGeneratedId) { - output.WriteRawTag(26); - output.WriteString(GeneratedId); - } - if (Value.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasPlaceId) { - output.WriteRawTag(18); - output.WriteString(PlaceId); - } - if (HasGeneratedId) { - output.WriteRawTag(26); - output.WriteString(GeneratedId); - } - if (Value.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPlaceId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PlaceId); - } - if (HasGeneratedId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeneratedId); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TerminalPointId other) { - if (other == null) { - return; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - switch (other.IdCase) { - case IdOneofCase.PlaceId: - PlaceId = other.PlaceId; - break; - case IdOneofCase.GeneratedId: - GeneratedId = other.GeneratedId; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - PlaceId = input.ReadString(); - break; - } - case 26: { - GeneratedId = input.ReadString(); - break; - } - case 34: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - PlaceId = input.ReadString(); - break; - } - case 26: { - GeneratedId = input.ReadString(); - break; - } - case 34: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Describes the location of a waypoint. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TerminalLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminalLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalLocation(TerminalLocation other) : this() { - point_ = other.point_ != null ? other.point_.Clone() : null; - terminalPointId_ = other.terminalPointId_ != null ? other.terminalPointId_.Clone() : null; - accessPointId_ = other.accessPointId_; - tripId_ = other.tripId_; - terminalLocationType_ = other.terminalLocationType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminalLocation Clone() { - return new TerminalLocation(this); - } - - /// Field number for the "point" field. - public const int PointFieldNumber = 1; - private global::Google.Type.LatLng point_; - /// - /// Required. Denotes the location of a trip waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng Point { - get { return point_; } - set { - point_ = value; - } - } - - /// Field number for the "terminal_point_id" field. - public const int TerminalPointIdFieldNumber = 2; - private global::Google.Maps.FleetEngine.V1.TerminalPointId terminalPointId_; - /// - /// Deprecated: Specify the `point` field instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalPointId TerminalPointId { - get { return terminalPointId_; } - set { - terminalPointId_ = value; - } - } - - /// Field number for the "access_point_id" field. - public const int AccessPointIdFieldNumber = 3; - private string accessPointId_ = ""; - /// - /// Deprecated: Specify the `point` field instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccessPointId { - get { return accessPointId_; } - set { - accessPointId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trip_id" field. - public const int TripIdFieldNumber = 4; - private string tripId_ = ""; - /// - /// Deprecated. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TripId { - get { return tripId_; } - set { - tripId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "terminal_location_type" field. - public const int TerminalLocationTypeFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.WaypointType terminalLocationType_ = global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType; - /// - /// Deprecated: `Vehicle.waypoint` will have this data. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.WaypointType TerminalLocationType { - get { return terminalLocationType_; } - set { - terminalLocationType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TerminalLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TerminalLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Point, other.Point)) return false; - if (!object.Equals(TerminalPointId, other.TerminalPointId)) return false; - if (AccessPointId != other.AccessPointId) return false; - if (TripId != other.TripId) return false; - if (TerminalLocationType != other.TerminalLocationType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (point_ != null) hash ^= Point.GetHashCode(); - if (terminalPointId_ != null) hash ^= TerminalPointId.GetHashCode(); - if (AccessPointId.Length != 0) hash ^= AccessPointId.GetHashCode(); - if (TripId.Length != 0) hash ^= TripId.GetHashCode(); - if (TerminalLocationType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) hash ^= TerminalLocationType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (point_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Point); - } - if (terminalPointId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TerminalPointId); - } - if (AccessPointId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AccessPointId); - } - if (TripId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TripId); - } - if (TerminalLocationType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - output.WriteRawTag(40); - output.WriteEnum((int) TerminalLocationType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (point_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Point); - } - if (terminalPointId_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TerminalPointId); - } - if (AccessPointId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AccessPointId); - } - if (TripId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TripId); - } - if (TerminalLocationType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - output.WriteRawTag(40); - output.WriteEnum((int) TerminalLocationType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (point_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point); - } - if (terminalPointId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TerminalPointId); - } - if (AccessPointId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessPointId); - } - if (TripId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TripId); - } - if (TerminalLocationType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TerminalLocationType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TerminalLocation other) { - if (other == null) { - return; - } - if (other.point_ != null) { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - Point.MergeFrom(other.Point); - } - if (other.terminalPointId_ != null) { - if (terminalPointId_ == null) { - TerminalPointId = new global::Google.Maps.FleetEngine.V1.TerminalPointId(); - } - TerminalPointId.MergeFrom(other.TerminalPointId); - } - if (other.AccessPointId.Length != 0) { - AccessPointId = other.AccessPointId; - } - if (other.TripId.Length != 0) { - TripId = other.TripId; - } - if (other.TerminalLocationType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - TerminalLocationType = other.TerminalLocationType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - input.ReadMessage(Point); - break; - } - case 18: { - if (terminalPointId_ == null) { - TerminalPointId = new global::Google.Maps.FleetEngine.V1.TerminalPointId(); - } - input.ReadMessage(TerminalPointId); - break; - } - case 26: { - AccessPointId = input.ReadString(); - break; - } - case 34: { - TripId = input.ReadString(); - break; - } - case 40: { - TerminalLocationType = (global::Google.Maps.FleetEngine.V1.WaypointType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - input.ReadMessage(Point); - break; - } - case 18: { - if (terminalPointId_ == null) { - TerminalPointId = new global::Google.Maps.FleetEngine.V1.TerminalPointId(); - } - input.ReadMessage(TerminalPointId); - break; - } - case 26: { - AccessPointId = input.ReadString(); - break; - } - case 34: { - TripId = input.ReadString(); - break; - } - case 40: { - TerminalLocationType = (global::Google.Maps.FleetEngine.V1.WaypointType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Describes a stopping point on a vehicle's route or an ending point on a - /// vehicle's trip. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TripWaypoint : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TripWaypoint()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TripWaypoint() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TripWaypoint(TripWaypoint other) : this() { - location_ = other.location_ != null ? other.location_.Clone() : null; - tripId_ = other.tripId_; - waypointType_ = other.waypointType_; - pathToWaypoint_ = other.pathToWaypoint_.Clone(); - encodedPathToWaypoint_ = other.encodedPathToWaypoint_; - trafficToWaypoint_ = other.trafficToWaypoint_ != null ? other.trafficToWaypoint_.Clone() : null; - DistanceMeters = other.DistanceMeters; - eta_ = other.eta_ != null ? other.eta_.Clone() : null; - duration_ = other.duration_ != null ? other.duration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TripWaypoint Clone() { - return new TripWaypoint(this); - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.TerminalLocation location_; - /// - /// The location of this waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalLocation Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "trip_id" field. - public const int TripIdFieldNumber = 2; - private string tripId_ = ""; - /// - /// The trip associated with this waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TripId { - get { return tripId_; } - set { - tripId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "waypoint_type" field. - public const int WaypointTypeFieldNumber = 3; - private global::Google.Maps.FleetEngine.V1.WaypointType waypointType_ = global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType; - /// - /// The role this waypoint plays in this trip, such as pickup or dropoff. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.WaypointType WaypointType { - get { return waypointType_; } - set { - waypointType_ = value; - } - } - - /// Field number for the "path_to_waypoint" field. - public const int PathToWaypointFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_pathToWaypoint_codec - = pb::FieldCodec.ForMessage(34, global::Google.Type.LatLng.Parser); - private readonly pbc::RepeatedField pathToWaypoint_ = new pbc::RepeatedField(); - /// - /// The path from the previous waypoint to the current waypoint. Undefined for - /// the first waypoint in a list. This field is only populated when requested. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PathToWaypoint { - get { return pathToWaypoint_; } - } - - /// Field number for the "encoded_path_to_waypoint" field. - public const int EncodedPathToWaypointFieldNumber = 5; - private string encodedPathToWaypoint_ = ""; - /// - /// The encoded path from the previous waypoint to the current waypoint. - /// - /// <p>Note: This field is intended only for use by the Driver SDK and Consumer - /// SDK. Decoding is not yet supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EncodedPathToWaypoint { - get { return encodedPathToWaypoint_; } - set { - encodedPathToWaypoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "traffic_to_waypoint" field. - public const int TrafficToWaypointFieldNumber = 10; - private global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline trafficToWaypoint_; - /// - /// The traffic conditions along the path to this waypoint. Note that traffic - /// is only available for Google Map Platform Rides and Deliveries Solution - /// customers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline TrafficToWaypoint { - get { return trafficToWaypoint_; } - set { - trafficToWaypoint_ = value; - } - } - - /// Field number for the "distance_meters" field. - public const int DistanceMetersFieldNumber = 6; - private static readonly pb::FieldCodec _single_distanceMeters_codec = pb::FieldCodec.ForStructWrapper(50); - private int? distanceMeters_; - /// - /// The path distance from the previous waypoint to the current waypoint. - /// Undefined for the first waypoint in a list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? DistanceMeters { - get { return distanceMeters_; } - set { - distanceMeters_ = value; - } - } - - - /// Field number for the "eta" field. - public const int EtaFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp eta_; - /// - /// The estimated time of arrival at this waypoint. Undefined for the first - /// waypoint in a list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Eta { - get { return eta_; } - set { - eta_ = value; - } - } - - /// Field number for the "duration" field. - public const int DurationFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Duration duration_; - /// - /// The travel time from previous waypoint to this point. Undefined for the - /// first waypoint in a list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration Duration { - get { return duration_; } - set { - duration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TripWaypoint); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TripWaypoint other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Location, other.Location)) return false; - if (TripId != other.TripId) return false; - if (WaypointType != other.WaypointType) return false; - if(!pathToWaypoint_.Equals(other.pathToWaypoint_)) return false; - if (EncodedPathToWaypoint != other.EncodedPathToWaypoint) return false; - if (!object.Equals(TrafficToWaypoint, other.TrafficToWaypoint)) return false; - if (DistanceMeters != other.DistanceMeters) return false; - if (!object.Equals(Eta, other.Eta)) return false; - if (!object.Equals(Duration, other.Duration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (location_ != null) hash ^= Location.GetHashCode(); - if (TripId.Length != 0) hash ^= TripId.GetHashCode(); - if (WaypointType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) hash ^= WaypointType.GetHashCode(); - hash ^= pathToWaypoint_.GetHashCode(); - if (EncodedPathToWaypoint.Length != 0) hash ^= EncodedPathToWaypoint.GetHashCode(); - if (trafficToWaypoint_ != null) hash ^= TrafficToWaypoint.GetHashCode(); - if (distanceMeters_ != null) hash ^= DistanceMeters.GetHashCode(); - if (eta_ != null) hash ^= Eta.GetHashCode(); - if (duration_ != null) hash ^= Duration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (location_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Location); - } - if (TripId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TripId); - } - if (WaypointType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - output.WriteRawTag(24); - output.WriteEnum((int) WaypointType); - } - pathToWaypoint_.WriteTo(output, _repeated_pathToWaypoint_codec); - if (EncodedPathToWaypoint.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EncodedPathToWaypoint); - } - if (distanceMeters_ != null) { - _single_distanceMeters_codec.WriteTagAndValue(output, DistanceMeters); - } - if (eta_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Eta); - } - if (duration_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Duration); - } - if (trafficToWaypoint_ != null) { - output.WriteRawTag(82); - output.WriteMessage(TrafficToWaypoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (location_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Location); - } - if (TripId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TripId); - } - if (WaypointType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - output.WriteRawTag(24); - output.WriteEnum((int) WaypointType); - } - pathToWaypoint_.WriteTo(ref output, _repeated_pathToWaypoint_codec); - if (EncodedPathToWaypoint.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EncodedPathToWaypoint); - } - if (distanceMeters_ != null) { - _single_distanceMeters_codec.WriteTagAndValue(ref output, DistanceMeters); - } - if (eta_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Eta); - } - if (duration_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Duration); - } - if (trafficToWaypoint_ != null) { - output.WriteRawTag(82); - output.WriteMessage(TrafficToWaypoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (TripId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TripId); - } - if (WaypointType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WaypointType); - } - size += pathToWaypoint_.CalculateSize(_repeated_pathToWaypoint_codec); - if (EncodedPathToWaypoint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EncodedPathToWaypoint); - } - if (trafficToWaypoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrafficToWaypoint); - } - if (distanceMeters_ != null) { - size += _single_distanceMeters_codec.CalculateSizeWithTag(DistanceMeters); - } - if (eta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eta); - } - if (duration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Duration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TripWaypoint other) { - if (other == null) { - return; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - Location.MergeFrom(other.Location); - } - if (other.TripId.Length != 0) { - TripId = other.TripId; - } - if (other.WaypointType != global::Google.Maps.FleetEngine.V1.WaypointType.UnknownWaypointType) { - WaypointType = other.WaypointType; - } - pathToWaypoint_.Add(other.pathToWaypoint_); - if (other.EncodedPathToWaypoint.Length != 0) { - EncodedPathToWaypoint = other.EncodedPathToWaypoint; - } - if (other.trafficToWaypoint_ != null) { - if (trafficToWaypoint_ == null) { - TrafficToWaypoint = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - TrafficToWaypoint.MergeFrom(other.TrafficToWaypoint); - } - if (other.distanceMeters_ != null) { - if (distanceMeters_ == null || other.DistanceMeters != 0) { - DistanceMeters = other.DistanceMeters; - } - } - if (other.eta_ != null) { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Eta.MergeFrom(other.Eta); - } - if (other.duration_ != null) { - if (duration_ == null) { - Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - Duration.MergeFrom(other.Duration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (location_ == null) { - Location = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(Location); - break; - } - case 18: { - TripId = input.ReadString(); - break; - } - case 24: { - WaypointType = (global::Google.Maps.FleetEngine.V1.WaypointType) input.ReadEnum(); - break; - } - case 34: { - pathToWaypoint_.AddEntriesFrom(input, _repeated_pathToWaypoint_codec); - break; - } - case 42: { - EncodedPathToWaypoint = input.ReadString(); - break; - } - case 50: { - int? value = _single_distanceMeters_codec.Read(input); - if (distanceMeters_ == null || value != 0) { - DistanceMeters = value; - } - break; - } - case 58: { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Eta); - break; - } - case 66: { - if (duration_ == null) { - Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(Duration); - break; - } - case 82: { - if (trafficToWaypoint_ == null) { - TrafficToWaypoint = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - input.ReadMessage(TrafficToWaypoint); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (location_ == null) { - Location = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(Location); - break; - } - case 18: { - TripId = input.ReadString(); - break; - } - case 24: { - WaypointType = (global::Google.Maps.FleetEngine.V1.WaypointType) input.ReadEnum(); - break; - } - case 34: { - pathToWaypoint_.AddEntriesFrom(ref input, _repeated_pathToWaypoint_codec); - break; - } - case 42: { - EncodedPathToWaypoint = input.ReadString(); - break; - } - case 50: { - int? value = _single_distanceMeters_codec.Read(ref input); - if (distanceMeters_ == null || value != 0) { - DistanceMeters = value; - } - break; - } - case 58: { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Eta); - break; - } - case 66: { - if (duration_ == null) { - Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(Duration); - break; - } - case 82: { - if (trafficToWaypoint_ == null) { - TrafficToWaypoint = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - input.ReadMessage(TrafficToWaypoint); - break; - } - } - } - } - #endif - - } - - /// - /// Describes a vehicle attribute as a key-value pair. The "key:value" string - /// length cannot exceed 256 characters. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VehicleAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VehicleAttribute()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttribute(VehicleAttribute other) : this() { - key_ = other.key_; - value_ = other.value_; - switch (other.VehicleAttributeValueCase) { - case VehicleAttributeValueOneofCase.StringValue: - StringValue = other.StringValue; - break; - case VehicleAttributeValueOneofCase.BoolValue: - BoolValue = other.BoolValue; - break; - case VehicleAttributeValueOneofCase.NumberValue: - NumberValue = other.NumberValue; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttribute Clone() { - return new VehicleAttribute(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 1; - private string key_ = ""; - /// - /// The attribute's key. Keys may not contain the colon character (:). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Key { - get { return key_; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - /// - /// The attribute's value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "string_value" field. - public const int StringValueFieldNumber = 3; - /// - /// String typed attribute value. - /// - /// Note: This is identical to the `value` field which will eventually be - /// deprecated. For create or update methods, either field can be used, but - /// it's strongly recommended to use `string_value`. If both `string_value` - /// and `value` are set, they must be identical or an error will be thrown. - /// Both fields are populated in responses. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StringValue { - get { return HasStringValue ? (string) vehicleAttributeValue_ : ""; } - set { - vehicleAttributeValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - vehicleAttributeValueCase_ = VehicleAttributeValueOneofCase.StringValue; - } - } - /// Gets whether the "string_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStringValue { - get { return vehicleAttributeValueCase_ == VehicleAttributeValueOneofCase.StringValue; } - } - /// Clears the value of the oneof if it's currently set to "string_value" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStringValue() { - if (HasStringValue) { - ClearVehicleAttributeValue(); - } - } - - /// Field number for the "bool_value" field. - public const int BoolValueFieldNumber = 4; - /// - /// Boolean typed attribute value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool BoolValue { - get { return HasBoolValue ? (bool) vehicleAttributeValue_ : false; } - set { - vehicleAttributeValue_ = value; - vehicleAttributeValueCase_ = VehicleAttributeValueOneofCase.BoolValue; - } - } - /// Gets whether the "bool_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBoolValue { - get { return vehicleAttributeValueCase_ == VehicleAttributeValueOneofCase.BoolValue; } - } - /// Clears the value of the oneof if it's currently set to "bool_value" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBoolValue() { - if (HasBoolValue) { - ClearVehicleAttributeValue(); - } - } - - /// Field number for the "number_value" field. - public const int NumberValueFieldNumber = 5; - /// - /// Double typed attribute value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double NumberValue { - get { return HasNumberValue ? (double) vehicleAttributeValue_ : 0D; } - set { - vehicleAttributeValue_ = value; - vehicleAttributeValueCase_ = VehicleAttributeValueOneofCase.NumberValue; - } - } - /// Gets whether the "number_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNumberValue { - get { return vehicleAttributeValueCase_ == VehicleAttributeValueOneofCase.NumberValue; } - } - /// Clears the value of the oneof if it's currently set to "number_value" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNumberValue() { - if (HasNumberValue) { - ClearVehicleAttributeValue(); - } - } - - private object vehicleAttributeValue_; - /// Enum of possible cases for the "vehicle_attribute_value" oneof. - public enum VehicleAttributeValueOneofCase { - None = 0, - StringValue = 3, - BoolValue = 4, - NumberValue = 5, - } - private VehicleAttributeValueOneofCase vehicleAttributeValueCase_ = VehicleAttributeValueOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttributeValueOneofCase VehicleAttributeValueCase { - get { return vehicleAttributeValueCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearVehicleAttributeValue() { - vehicleAttributeValueCase_ = VehicleAttributeValueOneofCase.None; - vehicleAttributeValue_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VehicleAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VehicleAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Key != other.Key) return false; - if (Value != other.Value) return false; - if (StringValue != other.StringValue) return false; - if (BoolValue != other.BoolValue) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumberValue, other.NumberValue)) return false; - if (VehicleAttributeValueCase != other.VehicleAttributeValueCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Key.Length != 0) hash ^= Key.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (HasStringValue) hash ^= StringValue.GetHashCode(); - if (HasBoolValue) hash ^= BoolValue.GetHashCode(); - if (HasNumberValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumberValue); - hash ^= (int) vehicleAttributeValueCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Key.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Key); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (HasStringValue) { - output.WriteRawTag(26); - output.WriteString(StringValue); - } - if (HasBoolValue) { - output.WriteRawTag(32); - output.WriteBool(BoolValue); - } - if (HasNumberValue) { - output.WriteRawTag(41); - output.WriteDouble(NumberValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Key.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Key); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (HasStringValue) { - output.WriteRawTag(26); - output.WriteString(StringValue); - } - if (HasBoolValue) { - output.WriteRawTag(32); - output.WriteBool(BoolValue); - } - if (HasNumberValue) { - output.WriteRawTag(41); - output.WriteDouble(NumberValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (HasStringValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); - } - if (HasBoolValue) { - size += 1 + 1; - } - if (HasNumberValue) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VehicleAttribute other) { - if (other == null) { - return; - } - if (other.Key.Length != 0) { - Key = other.Key; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - switch (other.VehicleAttributeValueCase) { - case VehicleAttributeValueOneofCase.StringValue: - StringValue = other.StringValue; - break; - case VehicleAttributeValueOneofCase.BoolValue: - BoolValue = other.BoolValue; - break; - case VehicleAttributeValueOneofCase.NumberValue: - NumberValue = other.NumberValue; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Key = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - case 26: { - StringValue = input.ReadString(); - break; - } - case 32: { - BoolValue = input.ReadBool(); - break; - } - case 41: { - NumberValue = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Key = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - case 26: { - StringValue = input.ReadString(); - break; - } - case 32: { - BoolValue = input.ReadBool(); - break; - } - case 41: { - NumberValue = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// The location, speed, and heading of a vehicle at a point in time. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VehicleLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VehicleLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleLocation(VehicleLocation other) : this() { - location_ = other.location_ != null ? other.location_.Clone() : null; - HorizontalAccuracy = other.HorizontalAccuracy; - LatlngAccuracy = other.LatlngAccuracy; - Heading = other.Heading; - BearingAccuracy = other.BearingAccuracy; - HeadingAccuracy = other.HeadingAccuracy; - Altitude = other.Altitude; - VerticalAccuracy = other.VerticalAccuracy; - AltitudeAccuracy = other.AltitudeAccuracy; - SpeedKmph = other.SpeedKmph; - Speed = other.Speed; - SpeedAccuracy = other.SpeedAccuracy; - updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; - serverTime_ = other.serverTime_ != null ? other.serverTime_.Clone() : null; - locationSensor_ = other.locationSensor_; - IsRoadSnapped = other.IsRoadSnapped; - IsGpsSensorEnabled = other.IsGpsSensorEnabled; - TimeSinceUpdate = other.TimeSinceUpdate; - NumStaleUpdates = other.NumStaleUpdates; - rawLocation_ = other.rawLocation_ != null ? other.rawLocation_.Clone() : null; - rawLocationTime_ = other.rawLocationTime_ != null ? other.rawLocationTime_.Clone() : null; - rawLocationSensor_ = other.rawLocationSensor_; - RawLocationAccuracy = other.RawLocationAccuracy; - supplementalLocation_ = other.supplementalLocation_ != null ? other.supplementalLocation_.Clone() : null; - supplementalLocationTime_ = other.supplementalLocationTime_ != null ? other.supplementalLocationTime_.Clone() : null; - supplementalLocationSensor_ = other.supplementalLocationSensor_; - SupplementalLocationAccuracy = other.SupplementalLocationAccuracy; - roadSnapped_ = other.roadSnapped_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleLocation Clone() { - return new VehicleLocation(this); - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 1; - private global::Google.Type.LatLng location_; - /// - /// The location of the vehicle. - /// When it is sent to Fleet Engine, the vehicle's location is a GPS location. - /// When you receive it in a response, the vehicle's location can be either a - /// GPS location, a supplemental location, or some other estimated location. - /// The source is specified in `location_sensor`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "horizontal_accuracy" field. - public const int HorizontalAccuracyFieldNumber = 8; - private static readonly pb::FieldCodec _single_horizontalAccuracy_codec = pb::FieldCodec.ForStructWrapper(66); - private double? horizontalAccuracy_; - /// - /// Deprecated: Use `latlng_accuracy` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? HorizontalAccuracy { - get { return horizontalAccuracy_; } - set { - horizontalAccuracy_ = value; - } - } - - - /// Field number for the "latlng_accuracy" field. - public const int LatlngAccuracyFieldNumber = 22; - private static readonly pb::FieldCodec _single_latlngAccuracy_codec = pb::FieldCodec.ForStructWrapper(178); - private double? latlngAccuracy_; - /// - /// Accuracy of `location` in meters as a radius. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? LatlngAccuracy { - get { return latlngAccuracy_; } - set { - latlngAccuracy_ = value; - } - } - - - /// Field number for the "heading" field. - public const int HeadingFieldNumber = 2; - private static readonly pb::FieldCodec _single_heading_codec = pb::FieldCodec.ForStructWrapper(18); - private int? heading_; - /// - /// Direction the vehicle is moving in degrees. 0 represents North. - /// The valid range is [0,360). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? Heading { - get { return heading_; } - set { - heading_ = value; - } - } - - - /// Field number for the "bearing_accuracy" field. - public const int BearingAccuracyFieldNumber = 10; - private static readonly pb::FieldCodec _single_bearingAccuracy_codec = pb::FieldCodec.ForStructWrapper(82); - private double? bearingAccuracy_; - /// - /// Deprecated: Use `heading_accuracy` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? BearingAccuracy { - get { return bearingAccuracy_; } - set { - bearingAccuracy_ = value; - } - } - - - /// Field number for the "heading_accuracy" field. - public const int HeadingAccuracyFieldNumber = 23; - private static readonly pb::FieldCodec _single_headingAccuracy_codec = pb::FieldCodec.ForStructWrapper(186); - private double? headingAccuracy_; - /// - /// Accuracy of `heading` in degrees. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? HeadingAccuracy { - get { return headingAccuracy_; } - set { - headingAccuracy_ = value; - } - } - - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 5; - private static readonly pb::FieldCodec _single_altitude_codec = pb::FieldCodec.ForStructWrapper(42); - private double? altitude_; - /// - /// Altitude in meters above WGS84. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? Altitude { - get { return altitude_; } - set { - altitude_ = value; - } - } - - - /// Field number for the "vertical_accuracy" field. - public const int VerticalAccuracyFieldNumber = 9; - private static readonly pb::FieldCodec _single_verticalAccuracy_codec = pb::FieldCodec.ForStructWrapper(74); - private double? verticalAccuracy_; - /// - /// Deprecated: Use `altitude_accuracy` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? VerticalAccuracy { - get { return verticalAccuracy_; } - set { - verticalAccuracy_ = value; - } - } - - - /// Field number for the "altitude_accuracy" field. - public const int AltitudeAccuracyFieldNumber = 24; - private static readonly pb::FieldCodec _single_altitudeAccuracy_codec = pb::FieldCodec.ForStructWrapper(194); - private double? altitudeAccuracy_; - /// - /// Accuracy of `altitude` in meters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? AltitudeAccuracy { - get { return altitudeAccuracy_; } - set { - altitudeAccuracy_ = value; - } - } - - - /// Field number for the "speed_kmph" field. - public const int SpeedKmphFieldNumber = 3; - private static readonly pb::FieldCodec _single_speedKmph_codec = pb::FieldCodec.ForStructWrapper(26); - private int? speedKmph_; - /// - /// Speed of the vehicle in kilometers per hour. - /// Deprecated: Use `speed` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? SpeedKmph { - get { return speedKmph_; } - set { - speedKmph_ = value; - } - } - - - /// Field number for the "speed" field. - public const int SpeedFieldNumber = 6; - private static readonly pb::FieldCodec _single_speed_codec = pb::FieldCodec.ForStructWrapper(50); - private double? speed_; - /// - /// Speed of the vehicle in meters/second - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? Speed { - get { return speed_; } - set { - speed_ = value; - } - } - - - /// Field number for the "speed_accuracy" field. - public const int SpeedAccuracyFieldNumber = 7; - private static readonly pb::FieldCodec _single_speedAccuracy_codec = pb::FieldCodec.ForStructWrapper(58); - private double? speedAccuracy_; - /// - /// Accuracy of `speed` in meters/second. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? SpeedAccuracy { - get { return speedAccuracy_; } - set { - speedAccuracy_ = value; - } - } - - - /// Field number for the "update_time" field. - public const int UpdateTimeFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; - /// - /// The time when `location` was reported by the sensor according to the - /// sensor's clock. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { - get { return updateTime_; } - set { - updateTime_ = value; - } - } - - /// Field number for the "server_time" field. - public const int ServerTimeFieldNumber = 13; - private global::Google.Protobuf.WellKnownTypes.Timestamp serverTime_; - /// - /// Output only. The time when the server received the location information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp ServerTime { - get { return serverTime_; } - set { - serverTime_ = value; - } - } - - /// Field number for the "location_sensor" field. - public const int LocationSensorFieldNumber = 11; - private global::Google.Maps.FleetEngine.V1.LocationSensor locationSensor_ = global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor; - /// - /// Provider of location data (for example, `GPS`). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.LocationSensor LocationSensor { - get { return locationSensor_; } - set { - locationSensor_ = value; - } - } - - /// Field number for the "is_road_snapped" field. - public const int IsRoadSnappedFieldNumber = 27; - private static readonly pb::FieldCodec _single_isRoadSnapped_codec = pb::FieldCodec.ForStructWrapper(218); - private bool? isRoadSnapped_; - /// - /// Whether `location` is snapped to a road. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool? IsRoadSnapped { - get { return isRoadSnapped_; } - set { - isRoadSnapped_ = value; - } - } - - - /// Field number for the "is_gps_sensor_enabled" field. - public const int IsGpsSensorEnabledFieldNumber = 12; - private static readonly pb::FieldCodec _single_isGpsSensorEnabled_codec = pb::FieldCodec.ForStructWrapper(98); - private bool? isGpsSensorEnabled_; - /// - /// Input only. Indicates whether the GPS sensor is enabled on the mobile - /// device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool? IsGpsSensorEnabled { - get { return isGpsSensorEnabled_; } - set { - isGpsSensorEnabled_ = value; - } - } - - - /// Field number for the "time_since_update" field. - public const int TimeSinceUpdateFieldNumber = 14; - private static readonly pb::FieldCodec _single_timeSinceUpdate_codec = pb::FieldCodec.ForStructWrapper(114); - private int? timeSinceUpdate_; - /// - /// Input only. Time (in seconds) since this location was first sent to the - /// server. This will be zero for the first update. If the time is unknown (for - /// example, when the app restarts), this value resets to zero. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? TimeSinceUpdate { - get { return timeSinceUpdate_; } - set { - timeSinceUpdate_ = value; - } - } - - - /// Field number for the "num_stale_updates" field. - public const int NumStaleUpdatesFieldNumber = 15; - private static readonly pb::FieldCodec _single_numStaleUpdates_codec = pb::FieldCodec.ForStructWrapper(122); - private int? numStaleUpdates_; - /// - /// Input only. Deprecated: Other signals are now used to determine if a - /// location is stale. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? NumStaleUpdates { - get { return numStaleUpdates_; } - set { - numStaleUpdates_ = value; - } - } - - - /// Field number for the "raw_location" field. - public const int RawLocationFieldNumber = 16; - private global::Google.Type.LatLng rawLocation_; - /// - /// Raw vehicle location (unprocessed by road-snapper). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng RawLocation { - get { return rawLocation_; } - set { - rawLocation_ = value; - } - } - - /// Field number for the "raw_location_time" field. - public const int RawLocationTimeFieldNumber = 17; - private global::Google.Protobuf.WellKnownTypes.Timestamp rawLocationTime_; - /// - /// Timestamp associated with the raw location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RawLocationTime { - get { return rawLocationTime_; } - set { - rawLocationTime_ = value; - } - } - - /// Field number for the "raw_location_sensor" field. - public const int RawLocationSensorFieldNumber = 28; - private global::Google.Maps.FleetEngine.V1.LocationSensor rawLocationSensor_ = global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor; - /// - /// Source of the raw location. Defaults to `GPS`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.LocationSensor RawLocationSensor { - get { return rawLocationSensor_; } - set { - rawLocationSensor_ = value; - } - } - - /// Field number for the "raw_location_accuracy" field. - public const int RawLocationAccuracyFieldNumber = 25; - private static readonly pb::FieldCodec _single_rawLocationAccuracy_codec = pb::FieldCodec.ForStructWrapper(202); - private double? rawLocationAccuracy_; - /// - /// Accuracy of `raw_location` as a radius, in meters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? RawLocationAccuracy { - get { return rawLocationAccuracy_; } - set { - rawLocationAccuracy_ = value; - } - } - - - /// Field number for the "supplemental_location" field. - public const int SupplementalLocationFieldNumber = 18; - private global::Google.Type.LatLng supplementalLocation_; - /// - /// Supplemental location provided by the integrating app. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng SupplementalLocation { - get { return supplementalLocation_; } - set { - supplementalLocation_ = value; - } - } - - /// Field number for the "supplemental_location_time" field. - public const int SupplementalLocationTimeFieldNumber = 19; - private global::Google.Protobuf.WellKnownTypes.Timestamp supplementalLocationTime_; - /// - /// Timestamp associated with the supplemental location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp SupplementalLocationTime { - get { return supplementalLocationTime_; } - set { - supplementalLocationTime_ = value; - } - } - - /// Field number for the "supplemental_location_sensor" field. - public const int SupplementalLocationSensorFieldNumber = 20; - private global::Google.Maps.FleetEngine.V1.LocationSensor supplementalLocationSensor_ = global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor; - /// - /// Source of the supplemental location. Defaults to - /// `CUSTOMER_SUPPLIED_LOCATION`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.LocationSensor SupplementalLocationSensor { - get { return supplementalLocationSensor_; } - set { - supplementalLocationSensor_ = value; - } - } - - /// Field number for the "supplemental_location_accuracy" field. - public const int SupplementalLocationAccuracyFieldNumber = 21; - private static readonly pb::FieldCodec _single_supplementalLocationAccuracy_codec = pb::FieldCodec.ForStructWrapper(170); - private double? supplementalLocationAccuracy_; - /// - /// Accuracy of `supplemental_location` as a radius, in meters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double? SupplementalLocationAccuracy { - get { return supplementalLocationAccuracy_; } - set { - supplementalLocationAccuracy_ = value; - } - } - - - /// Field number for the "road_snapped" field. - public const int RoadSnappedFieldNumber = 26; - private bool roadSnapped_; - /// - /// Deprecated: Use `is_road_snapped` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool RoadSnapped { - get { return roadSnapped_; } - set { - roadSnapped_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VehicleLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VehicleLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Location, other.Location)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(HorizontalAccuracy, other.HorizontalAccuracy)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(LatlngAccuracy, other.LatlngAccuracy)) return false; - if (Heading != other.Heading) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(BearingAccuracy, other.BearingAccuracy)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(HeadingAccuracy, other.HeadingAccuracy)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(Altitude, other.Altitude)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(VerticalAccuracy, other.VerticalAccuracy)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(AltitudeAccuracy, other.AltitudeAccuracy)) return false; - if (SpeedKmph != other.SpeedKmph) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(Speed, other.Speed)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(SpeedAccuracy, other.SpeedAccuracy)) return false; - if (!object.Equals(UpdateTime, other.UpdateTime)) return false; - if (!object.Equals(ServerTime, other.ServerTime)) return false; - if (LocationSensor != other.LocationSensor) return false; - if (IsRoadSnapped != other.IsRoadSnapped) return false; - if (IsGpsSensorEnabled != other.IsGpsSensorEnabled) return false; - if (TimeSinceUpdate != other.TimeSinceUpdate) return false; - if (NumStaleUpdates != other.NumStaleUpdates) return false; - if (!object.Equals(RawLocation, other.RawLocation)) return false; - if (!object.Equals(RawLocationTime, other.RawLocationTime)) return false; - if (RawLocationSensor != other.RawLocationSensor) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(RawLocationAccuracy, other.RawLocationAccuracy)) return false; - if (!object.Equals(SupplementalLocation, other.SupplementalLocation)) return false; - if (!object.Equals(SupplementalLocationTime, other.SupplementalLocationTime)) return false; - if (SupplementalLocationSensor != other.SupplementalLocationSensor) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(SupplementalLocationAccuracy, other.SupplementalLocationAccuracy)) return false; - if (RoadSnapped != other.RoadSnapped) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (location_ != null) hash ^= Location.GetHashCode(); - if (horizontalAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(HorizontalAccuracy); - if (latlngAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(LatlngAccuracy); - if (heading_ != null) hash ^= Heading.GetHashCode(); - if (bearingAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(BearingAccuracy); - if (headingAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(HeadingAccuracy); - if (altitude_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(Altitude); - if (verticalAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(VerticalAccuracy); - if (altitudeAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(AltitudeAccuracy); - if (speedKmph_ != null) hash ^= SpeedKmph.GetHashCode(); - if (speed_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(Speed); - if (speedAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(SpeedAccuracy); - if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); - if (serverTime_ != null) hash ^= ServerTime.GetHashCode(); - if (LocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) hash ^= LocationSensor.GetHashCode(); - if (isRoadSnapped_ != null) hash ^= IsRoadSnapped.GetHashCode(); - if (isGpsSensorEnabled_ != null) hash ^= IsGpsSensorEnabled.GetHashCode(); - if (timeSinceUpdate_ != null) hash ^= TimeSinceUpdate.GetHashCode(); - if (numStaleUpdates_ != null) hash ^= NumStaleUpdates.GetHashCode(); - if (rawLocation_ != null) hash ^= RawLocation.GetHashCode(); - if (rawLocationTime_ != null) hash ^= RawLocationTime.GetHashCode(); - if (RawLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) hash ^= RawLocationSensor.GetHashCode(); - if (rawLocationAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(RawLocationAccuracy); - if (supplementalLocation_ != null) hash ^= SupplementalLocation.GetHashCode(); - if (supplementalLocationTime_ != null) hash ^= SupplementalLocationTime.GetHashCode(); - if (SupplementalLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) hash ^= SupplementalLocationSensor.GetHashCode(); - if (supplementalLocationAccuracy_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(SupplementalLocationAccuracy); - if (RoadSnapped != false) hash ^= RoadSnapped.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (location_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Location); - } - if (heading_ != null) { - _single_heading_codec.WriteTagAndValue(output, Heading); - } - if (speedKmph_ != null) { - _single_speedKmph_codec.WriteTagAndValue(output, SpeedKmph); - } - if (updateTime_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateTime); - } - if (altitude_ != null) { - _single_altitude_codec.WriteTagAndValue(output, Altitude); - } - if (speed_ != null) { - _single_speed_codec.WriteTagAndValue(output, Speed); - } - if (speedAccuracy_ != null) { - _single_speedAccuracy_codec.WriteTagAndValue(output, SpeedAccuracy); - } - if (horizontalAccuracy_ != null) { - _single_horizontalAccuracy_codec.WriteTagAndValue(output, HorizontalAccuracy); - } - if (verticalAccuracy_ != null) { - _single_verticalAccuracy_codec.WriteTagAndValue(output, VerticalAccuracy); - } - if (bearingAccuracy_ != null) { - _single_bearingAccuracy_codec.WriteTagAndValue(output, BearingAccuracy); - } - if (LocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(88); - output.WriteEnum((int) LocationSensor); - } - if (isGpsSensorEnabled_ != null) { - _single_isGpsSensorEnabled_codec.WriteTagAndValue(output, IsGpsSensorEnabled); - } - if (serverTime_ != null) { - output.WriteRawTag(106); - output.WriteMessage(ServerTime); - } - if (timeSinceUpdate_ != null) { - _single_timeSinceUpdate_codec.WriteTagAndValue(output, TimeSinceUpdate); - } - if (numStaleUpdates_ != null) { - _single_numStaleUpdates_codec.WriteTagAndValue(output, NumStaleUpdates); - } - if (rawLocation_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(RawLocation); - } - if (rawLocationTime_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(RawLocationTime); - } - if (supplementalLocation_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(SupplementalLocation); - } - if (supplementalLocationTime_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(SupplementalLocationTime); - } - if (SupplementalLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) SupplementalLocationSensor); - } - if (supplementalLocationAccuracy_ != null) { - _single_supplementalLocationAccuracy_codec.WriteTagAndValue(output, SupplementalLocationAccuracy); - } - if (latlngAccuracy_ != null) { - _single_latlngAccuracy_codec.WriteTagAndValue(output, LatlngAccuracy); - } - if (headingAccuracy_ != null) { - _single_headingAccuracy_codec.WriteTagAndValue(output, HeadingAccuracy); - } - if (altitudeAccuracy_ != null) { - _single_altitudeAccuracy_codec.WriteTagAndValue(output, AltitudeAccuracy); - } - if (rawLocationAccuracy_ != null) { - _single_rawLocationAccuracy_codec.WriteTagAndValue(output, RawLocationAccuracy); - } - if (RoadSnapped != false) { - output.WriteRawTag(208, 1); - output.WriteBool(RoadSnapped); - } - if (isRoadSnapped_ != null) { - _single_isRoadSnapped_codec.WriteTagAndValue(output, IsRoadSnapped); - } - if (RawLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(224, 1); - output.WriteEnum((int) RawLocationSensor); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (location_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Location); - } - if (heading_ != null) { - _single_heading_codec.WriteTagAndValue(ref output, Heading); - } - if (speedKmph_ != null) { - _single_speedKmph_codec.WriteTagAndValue(ref output, SpeedKmph); - } - if (updateTime_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateTime); - } - if (altitude_ != null) { - _single_altitude_codec.WriteTagAndValue(ref output, Altitude); - } - if (speed_ != null) { - _single_speed_codec.WriteTagAndValue(ref output, Speed); - } - if (speedAccuracy_ != null) { - _single_speedAccuracy_codec.WriteTagAndValue(ref output, SpeedAccuracy); - } - if (horizontalAccuracy_ != null) { - _single_horizontalAccuracy_codec.WriteTagAndValue(ref output, HorizontalAccuracy); - } - if (verticalAccuracy_ != null) { - _single_verticalAccuracy_codec.WriteTagAndValue(ref output, VerticalAccuracy); - } - if (bearingAccuracy_ != null) { - _single_bearingAccuracy_codec.WriteTagAndValue(ref output, BearingAccuracy); - } - if (LocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(88); - output.WriteEnum((int) LocationSensor); - } - if (isGpsSensorEnabled_ != null) { - _single_isGpsSensorEnabled_codec.WriteTagAndValue(ref output, IsGpsSensorEnabled); - } - if (serverTime_ != null) { - output.WriteRawTag(106); - output.WriteMessage(ServerTime); - } - if (timeSinceUpdate_ != null) { - _single_timeSinceUpdate_codec.WriteTagAndValue(ref output, TimeSinceUpdate); - } - if (numStaleUpdates_ != null) { - _single_numStaleUpdates_codec.WriteTagAndValue(ref output, NumStaleUpdates); - } - if (rawLocation_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(RawLocation); - } - if (rawLocationTime_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(RawLocationTime); - } - if (supplementalLocation_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(SupplementalLocation); - } - if (supplementalLocationTime_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(SupplementalLocationTime); - } - if (SupplementalLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) SupplementalLocationSensor); - } - if (supplementalLocationAccuracy_ != null) { - _single_supplementalLocationAccuracy_codec.WriteTagAndValue(ref output, SupplementalLocationAccuracy); - } - if (latlngAccuracy_ != null) { - _single_latlngAccuracy_codec.WriteTagAndValue(ref output, LatlngAccuracy); - } - if (headingAccuracy_ != null) { - _single_headingAccuracy_codec.WriteTagAndValue(ref output, HeadingAccuracy); - } - if (altitudeAccuracy_ != null) { - _single_altitudeAccuracy_codec.WriteTagAndValue(ref output, AltitudeAccuracy); - } - if (rawLocationAccuracy_ != null) { - _single_rawLocationAccuracy_codec.WriteTagAndValue(ref output, RawLocationAccuracy); - } - if (RoadSnapped != false) { - output.WriteRawTag(208, 1); - output.WriteBool(RoadSnapped); - } - if (isRoadSnapped_ != null) { - _single_isRoadSnapped_codec.WriteTagAndValue(ref output, IsRoadSnapped); - } - if (RawLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - output.WriteRawTag(224, 1); - output.WriteEnum((int) RawLocationSensor); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (horizontalAccuracy_ != null) { - size += _single_horizontalAccuracy_codec.CalculateSizeWithTag(HorizontalAccuracy); - } - if (latlngAccuracy_ != null) { - size += _single_latlngAccuracy_codec.CalculateSizeWithTag(LatlngAccuracy); - } - if (heading_ != null) { - size += _single_heading_codec.CalculateSizeWithTag(Heading); - } - if (bearingAccuracy_ != null) { - size += _single_bearingAccuracy_codec.CalculateSizeWithTag(BearingAccuracy); - } - if (headingAccuracy_ != null) { - size += _single_headingAccuracy_codec.CalculateSizeWithTag(HeadingAccuracy); - } - if (altitude_ != null) { - size += _single_altitude_codec.CalculateSizeWithTag(Altitude); - } - if (verticalAccuracy_ != null) { - size += _single_verticalAccuracy_codec.CalculateSizeWithTag(VerticalAccuracy); - } - if (altitudeAccuracy_ != null) { - size += _single_altitudeAccuracy_codec.CalculateSizeWithTag(AltitudeAccuracy); - } - if (speedKmph_ != null) { - size += _single_speedKmph_codec.CalculateSizeWithTag(SpeedKmph); - } - if (speed_ != null) { - size += _single_speed_codec.CalculateSizeWithTag(Speed); - } - if (speedAccuracy_ != null) { - size += _single_speedAccuracy_codec.CalculateSizeWithTag(SpeedAccuracy); - } - if (updateTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); - } - if (serverTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerTime); - } - if (LocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationSensor); - } - if (isRoadSnapped_ != null) { - size += _single_isRoadSnapped_codec.CalculateSizeWithTag(IsRoadSnapped); - } - if (isGpsSensorEnabled_ != null) { - size += _single_isGpsSensorEnabled_codec.CalculateSizeWithTag(IsGpsSensorEnabled); - } - if (timeSinceUpdate_ != null) { - size += _single_timeSinceUpdate_codec.CalculateSizeWithTag(TimeSinceUpdate); - } - if (numStaleUpdates_ != null) { - size += _single_numStaleUpdates_codec.CalculateSizeWithTag(NumStaleUpdates); - } - if (rawLocation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RawLocation); - } - if (rawLocationTime_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RawLocationTime); - } - if (RawLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RawLocationSensor); - } - if (rawLocationAccuracy_ != null) { - size += _single_rawLocationAccuracy_codec.CalculateSizeWithTag(RawLocationAccuracy); - } - if (supplementalLocation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SupplementalLocation); - } - if (supplementalLocationTime_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SupplementalLocationTime); - } - if (SupplementalLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SupplementalLocationSensor); - } - if (supplementalLocationAccuracy_ != null) { - size += _single_supplementalLocationAccuracy_codec.CalculateSizeWithTag(SupplementalLocationAccuracy); - } - if (RoadSnapped != false) { - size += 2 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VehicleLocation other) { - if (other == null) { - return; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Google.Type.LatLng(); - } - Location.MergeFrom(other.Location); - } - if (other.horizontalAccuracy_ != null) { - if (horizontalAccuracy_ == null || other.HorizontalAccuracy != 0D) { - HorizontalAccuracy = other.HorizontalAccuracy; - } - } - if (other.latlngAccuracy_ != null) { - if (latlngAccuracy_ == null || other.LatlngAccuracy != 0D) { - LatlngAccuracy = other.LatlngAccuracy; - } - } - if (other.heading_ != null) { - if (heading_ == null || other.Heading != 0) { - Heading = other.Heading; - } - } - if (other.bearingAccuracy_ != null) { - if (bearingAccuracy_ == null || other.BearingAccuracy != 0D) { - BearingAccuracy = other.BearingAccuracy; - } - } - if (other.headingAccuracy_ != null) { - if (headingAccuracy_ == null || other.HeadingAccuracy != 0D) { - HeadingAccuracy = other.HeadingAccuracy; - } - } - if (other.altitude_ != null) { - if (altitude_ == null || other.Altitude != 0D) { - Altitude = other.Altitude; - } - } - if (other.verticalAccuracy_ != null) { - if (verticalAccuracy_ == null || other.VerticalAccuracy != 0D) { - VerticalAccuracy = other.VerticalAccuracy; - } - } - if (other.altitudeAccuracy_ != null) { - if (altitudeAccuracy_ == null || other.AltitudeAccuracy != 0D) { - AltitudeAccuracy = other.AltitudeAccuracy; - } - } - if (other.speedKmph_ != null) { - if (speedKmph_ == null || other.SpeedKmph != 0) { - SpeedKmph = other.SpeedKmph; - } - } - if (other.speed_ != null) { - if (speed_ == null || other.Speed != 0D) { - Speed = other.Speed; - } - } - if (other.speedAccuracy_ != null) { - if (speedAccuracy_ == null || other.SpeedAccuracy != 0D) { - SpeedAccuracy = other.SpeedAccuracy; - } - } - if (other.updateTime_ != null) { - if (updateTime_ == null) { - UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdateTime.MergeFrom(other.UpdateTime); - } - if (other.serverTime_ != null) { - if (serverTime_ == null) { - ServerTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - ServerTime.MergeFrom(other.ServerTime); - } - if (other.LocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - LocationSensor = other.LocationSensor; - } - if (other.isRoadSnapped_ != null) { - if (isRoadSnapped_ == null || other.IsRoadSnapped != false) { - IsRoadSnapped = other.IsRoadSnapped; - } - } - if (other.isGpsSensorEnabled_ != null) { - if (isGpsSensorEnabled_ == null || other.IsGpsSensorEnabled != false) { - IsGpsSensorEnabled = other.IsGpsSensorEnabled; - } - } - if (other.timeSinceUpdate_ != null) { - if (timeSinceUpdate_ == null || other.TimeSinceUpdate != 0) { - TimeSinceUpdate = other.TimeSinceUpdate; - } - } - if (other.numStaleUpdates_ != null) { - if (numStaleUpdates_ == null || other.NumStaleUpdates != 0) { - NumStaleUpdates = other.NumStaleUpdates; - } - } - if (other.rawLocation_ != null) { - if (rawLocation_ == null) { - RawLocation = new global::Google.Type.LatLng(); - } - RawLocation.MergeFrom(other.RawLocation); - } - if (other.rawLocationTime_ != null) { - if (rawLocationTime_ == null) { - RawLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RawLocationTime.MergeFrom(other.RawLocationTime); - } - if (other.RawLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - RawLocationSensor = other.RawLocationSensor; - } - if (other.rawLocationAccuracy_ != null) { - if (rawLocationAccuracy_ == null || other.RawLocationAccuracy != 0D) { - RawLocationAccuracy = other.RawLocationAccuracy; - } - } - if (other.supplementalLocation_ != null) { - if (supplementalLocation_ == null) { - SupplementalLocation = new global::Google.Type.LatLng(); - } - SupplementalLocation.MergeFrom(other.SupplementalLocation); - } - if (other.supplementalLocationTime_ != null) { - if (supplementalLocationTime_ == null) { - SupplementalLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - SupplementalLocationTime.MergeFrom(other.SupplementalLocationTime); - } - if (other.SupplementalLocationSensor != global::Google.Maps.FleetEngine.V1.LocationSensor.UnknownSensor) { - SupplementalLocationSensor = other.SupplementalLocationSensor; - } - if (other.supplementalLocationAccuracy_ != null) { - if (supplementalLocationAccuracy_ == null || other.SupplementalLocationAccuracy != 0D) { - SupplementalLocationAccuracy = other.SupplementalLocationAccuracy; - } - } - if (other.RoadSnapped != false) { - RoadSnapped = other.RoadSnapped; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (location_ == null) { - Location = new global::Google.Type.LatLng(); - } - input.ReadMessage(Location); - break; - } - case 18: { - int? value = _single_heading_codec.Read(input); - if (heading_ == null || value != 0) { - Heading = value; - } - break; - } - case 26: { - int? value = _single_speedKmph_codec.Read(input); - if (speedKmph_ == null || value != 0) { - SpeedKmph = value; - } - break; - } - case 34: { - if (updateTime_ == null) { - UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdateTime); - break; - } - case 42: { - double? value = _single_altitude_codec.Read(input); - if (altitude_ == null || value != 0D) { - Altitude = value; - } - break; - } - case 50: { - double? value = _single_speed_codec.Read(input); - if (speed_ == null || value != 0D) { - Speed = value; - } - break; - } - case 58: { - double? value = _single_speedAccuracy_codec.Read(input); - if (speedAccuracy_ == null || value != 0D) { - SpeedAccuracy = value; - } - break; - } - case 66: { - double? value = _single_horizontalAccuracy_codec.Read(input); - if (horizontalAccuracy_ == null || value != 0D) { - HorizontalAccuracy = value; - } - break; - } - case 74: { - double? value = _single_verticalAccuracy_codec.Read(input); - if (verticalAccuracy_ == null || value != 0D) { - VerticalAccuracy = value; - } - break; - } - case 82: { - double? value = _single_bearingAccuracy_codec.Read(input); - if (bearingAccuracy_ == null || value != 0D) { - BearingAccuracy = value; - } - break; - } - case 88: { - LocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - case 98: { - bool? value = _single_isGpsSensorEnabled_codec.Read(input); - if (isGpsSensorEnabled_ == null || value != false) { - IsGpsSensorEnabled = value; - } - break; - } - case 106: { - if (serverTime_ == null) { - ServerTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ServerTime); - break; - } - case 114: { - int? value = _single_timeSinceUpdate_codec.Read(input); - if (timeSinceUpdate_ == null || value != 0) { - TimeSinceUpdate = value; - } - break; - } - case 122: { - int? value = _single_numStaleUpdates_codec.Read(input); - if (numStaleUpdates_ == null || value != 0) { - NumStaleUpdates = value; - } - break; - } - case 130: { - if (rawLocation_ == null) { - RawLocation = new global::Google.Type.LatLng(); - } - input.ReadMessage(RawLocation); - break; - } - case 138: { - if (rawLocationTime_ == null) { - RawLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RawLocationTime); - break; - } - case 146: { - if (supplementalLocation_ == null) { - SupplementalLocation = new global::Google.Type.LatLng(); - } - input.ReadMessage(SupplementalLocation); - break; - } - case 154: { - if (supplementalLocationTime_ == null) { - SupplementalLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(SupplementalLocationTime); - break; - } - case 160: { - SupplementalLocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - case 170: { - double? value = _single_supplementalLocationAccuracy_codec.Read(input); - if (supplementalLocationAccuracy_ == null || value != 0D) { - SupplementalLocationAccuracy = value; - } - break; - } - case 178: { - double? value = _single_latlngAccuracy_codec.Read(input); - if (latlngAccuracy_ == null || value != 0D) { - LatlngAccuracy = value; - } - break; - } - case 186: { - double? value = _single_headingAccuracy_codec.Read(input); - if (headingAccuracy_ == null || value != 0D) { - HeadingAccuracy = value; - } - break; - } - case 194: { - double? value = _single_altitudeAccuracy_codec.Read(input); - if (altitudeAccuracy_ == null || value != 0D) { - AltitudeAccuracy = value; - } - break; - } - case 202: { - double? value = _single_rawLocationAccuracy_codec.Read(input); - if (rawLocationAccuracy_ == null || value != 0D) { - RawLocationAccuracy = value; - } - break; - } - case 208: { - RoadSnapped = input.ReadBool(); - break; - } - case 218: { - bool? value = _single_isRoadSnapped_codec.Read(input); - if (isRoadSnapped_ == null || value != false) { - IsRoadSnapped = value; - } - break; - } - case 224: { - RawLocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (location_ == null) { - Location = new global::Google.Type.LatLng(); - } - input.ReadMessage(Location); - break; - } - case 18: { - int? value = _single_heading_codec.Read(ref input); - if (heading_ == null || value != 0) { - Heading = value; - } - break; - } - case 26: { - int? value = _single_speedKmph_codec.Read(ref input); - if (speedKmph_ == null || value != 0) { - SpeedKmph = value; - } - break; - } - case 34: { - if (updateTime_ == null) { - UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdateTime); - break; - } - case 42: { - double? value = _single_altitude_codec.Read(ref input); - if (altitude_ == null || value != 0D) { - Altitude = value; - } - break; - } - case 50: { - double? value = _single_speed_codec.Read(ref input); - if (speed_ == null || value != 0D) { - Speed = value; - } - break; - } - case 58: { - double? value = _single_speedAccuracy_codec.Read(ref input); - if (speedAccuracy_ == null || value != 0D) { - SpeedAccuracy = value; - } - break; - } - case 66: { - double? value = _single_horizontalAccuracy_codec.Read(ref input); - if (horizontalAccuracy_ == null || value != 0D) { - HorizontalAccuracy = value; - } - break; - } - case 74: { - double? value = _single_verticalAccuracy_codec.Read(ref input); - if (verticalAccuracy_ == null || value != 0D) { - VerticalAccuracy = value; - } - break; - } - case 82: { - double? value = _single_bearingAccuracy_codec.Read(ref input); - if (bearingAccuracy_ == null || value != 0D) { - BearingAccuracy = value; - } - break; - } - case 88: { - LocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - case 98: { - bool? value = _single_isGpsSensorEnabled_codec.Read(ref input); - if (isGpsSensorEnabled_ == null || value != false) { - IsGpsSensorEnabled = value; - } - break; - } - case 106: { - if (serverTime_ == null) { - ServerTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ServerTime); - break; - } - case 114: { - int? value = _single_timeSinceUpdate_codec.Read(ref input); - if (timeSinceUpdate_ == null || value != 0) { - TimeSinceUpdate = value; - } - break; - } - case 122: { - int? value = _single_numStaleUpdates_codec.Read(ref input); - if (numStaleUpdates_ == null || value != 0) { - NumStaleUpdates = value; - } - break; - } - case 130: { - if (rawLocation_ == null) { - RawLocation = new global::Google.Type.LatLng(); - } - input.ReadMessage(RawLocation); - break; - } - case 138: { - if (rawLocationTime_ == null) { - RawLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RawLocationTime); - break; - } - case 146: { - if (supplementalLocation_ == null) { - SupplementalLocation = new global::Google.Type.LatLng(); - } - input.ReadMessage(SupplementalLocation); - break; - } - case 154: { - if (supplementalLocationTime_ == null) { - SupplementalLocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(SupplementalLocationTime); - break; - } - case 160: { - SupplementalLocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - case 170: { - double? value = _single_supplementalLocationAccuracy_codec.Read(ref input); - if (supplementalLocationAccuracy_ == null || value != 0D) { - SupplementalLocationAccuracy = value; - } - break; - } - case 178: { - double? value = _single_latlngAccuracy_codec.Read(ref input); - if (latlngAccuracy_ == null || value != 0D) { - LatlngAccuracy = value; - } - break; - } - case 186: { - double? value = _single_headingAccuracy_codec.Read(ref input); - if (headingAccuracy_ == null || value != 0D) { - HeadingAccuracy = value; - } - break; - } - case 194: { - double? value = _single_altitudeAccuracy_codec.Read(ref input); - if (altitudeAccuracy_ == null || value != 0D) { - AltitudeAccuracy = value; - } - break; - } - case 202: { - double? value = _single_rawLocationAccuracy_codec.Read(ref input); - if (rawLocationAccuracy_ == null || value != 0D) { - RawLocationAccuracy = value; - } - break; - } - case 208: { - RoadSnapped = input.ReadBool(); - break; - } - case 218: { - bool? value = _single_isRoadSnapped_codec.Read(ref input); - if (isRoadSnapped_ == null || value != false) { - IsRoadSnapped = value; - } - break; - } - case 224: { - RawLocationSensor = (global::Google.Maps.FleetEngine.V1.LocationSensor) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.csproj b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.csproj deleted file mode 100755 index 2058a9a4c33b..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.csproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - 1.0.0-alpha01 - - - - - - - - - netstandard2.0;net462 - latest - true - true - true - - - - - - - - - - \ No newline at end of file diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Header.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Header.g.cs deleted file mode 100755 index 720ab9f1ffaf..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Header.g.cs +++ /dev/null @@ -1,761 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/header.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/header.proto - public static partial class HeaderReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/header.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HeaderReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cidnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS9oZWFkZXIucHJvdG8SE21h", - "cHMuZmxlZXRlbmdpbmUudjEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8ihgQKDVJlcXVlc3RIZWFkZXISFQoNbGFuZ3VhZ2VfY29kZRgBIAEo", - "CRIYCgtyZWdpb25fY29kZRgCIAEoCUID4EECEhMKC3Nka192ZXJzaW9uGAMg", - "ASgJEhIKCm9zX3ZlcnNpb24YBCABKAkSFAoMZGV2aWNlX21vZGVsGAUgASgJ", - "EjwKCHNka190eXBlGAYgASgOMioubWFwcy5mbGVldGVuZ2luZS52MS5SZXF1", - "ZXN0SGVhZGVyLlNka1R5cGUSGAoQbWFwc19zZGtfdmVyc2lvbhgHIAEoCRIX", - "Cg9uYXZfc2RrX3ZlcnNpb24YCCABKAkSPQoIcGxhdGZvcm0YCSABKA4yKy5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLlJlcXVlc3RIZWFkZXIuUGxhdGZvcm0SFAoM", - "bWFudWZhY3R1cmVyGAogASgJEhkKEWFuZHJvaWRfYXBpX2xldmVsGAsgASgF", - "EhAKCHRyYWNlX2lkGAwgASgJIk0KB1Nka1R5cGUSGAoUU0RLX1RZUEVfVU5T", - "UEVDSUZJRUQQABIMCghDT05TVU1FUhABEgoKBkRSSVZFUhACEg4KCkpBVkFT", - "Q1JJUFQQAyJDCghQbGF0Zm9ybRIYChRQTEFURk9STV9VTlNQRUNJRklFRBAA", - "EgsKB0FORFJPSUQQARIHCgNJT1MQAhIHCgNXRUIQA0LTAQoeY29tLmdvb2ds", - "ZS5tYXBzLmZsZWV0ZW5naW5lLnYxQgdIZWFkZXJzUAFaRmNsb3VkLmdvb2ds", - "ZS5jb20vZ28vbWFwcy9mbGVldGVuZ2luZS9hcGl2MS9mbGVldGVuZ2luZXBi", - "O2ZsZWV0ZW5naW5lcGKiAgNDRkWqAhpHb29nbGUuTWFwcy5GbGVldEVuZ2lu", - "ZS5WMcoCGkdvb2dsZVxNYXBzXEZsZWV0RW5naW5lXFYx6gIdR29vZ2xlOjpN", - "YXBzOjpGbGVldEVuZ2luZTo6VjFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.RequestHeader), global::Google.Maps.FleetEngine.V1.RequestHeader.Parser, new[]{ "LanguageCode", "RegionCode", "SdkVersion", "OsVersion", "DeviceModel", "SdkType", "MapsSdkVersion", "NavSdkVersion", "Platform", "Manufacturer", "AndroidApiLevel", "TraceId" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType), typeof(global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A RequestHeader contains fields common to all Fleet Engine RPC requests. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RequestHeader : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestHeader()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.HeaderReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestHeader() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestHeader(RequestHeader other) : this() { - languageCode_ = other.languageCode_; - regionCode_ = other.regionCode_; - sdkVersion_ = other.sdkVersion_; - osVersion_ = other.osVersion_; - deviceModel_ = other.deviceModel_; - sdkType_ = other.sdkType_; - mapsSdkVersion_ = other.mapsSdkVersion_; - navSdkVersion_ = other.navSdkVersion_; - platform_ = other.platform_; - manufacturer_ = other.manufacturer_; - androidApiLevel_ = other.androidApiLevel_; - traceId_ = other.traceId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestHeader Clone() { - return new RequestHeader(this); - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 1; - private string languageCode_ = ""; - /// - /// The BCP-47 language code, such as en-US or sr-Latn. For more information, - /// see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - /// is specified, the response may be in any language, with a preference for - /// English if such a name exists. Field value example: `en-US`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region_code" field. - public const int RegionCodeFieldNumber = 2; - private string regionCode_ = ""; - /// - /// Required. CLDR region code of the region where the request originates. - /// Field value example: `US`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RegionCode { - get { return regionCode_; } - set { - regionCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sdk_version" field. - public const int SdkVersionFieldNumber = 3; - private string sdkVersion_ = ""; - /// - /// Version of the calling SDK, if applicable. - /// The version format is "major.minor.patch", example: `1.1.2`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SdkVersion { - get { return sdkVersion_; } - set { - sdkVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "os_version" field. - public const int OsVersionFieldNumber = 4; - private string osVersion_ = ""; - /// - /// Version of the operating system on which the calling SDK is running. - /// Field value examples: `4.4.1`, `12.1`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OsVersion { - get { return osVersion_; } - set { - osVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model" field. - public const int DeviceModelFieldNumber = 5; - private string deviceModel_ = ""; - /// - /// Model of the device on which the calling SDK is running. - /// Field value examples: `iPhone12,1`, `SM-G920F`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceModel { - get { return deviceModel_; } - set { - deviceModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sdk_type" field. - public const int SdkTypeFieldNumber = 6; - private global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType sdkType_ = global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified; - /// - /// The type of SDK sending the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType SdkType { - get { return sdkType_; } - set { - sdkType_ = value; - } - } - - /// Field number for the "maps_sdk_version" field. - public const int MapsSdkVersionFieldNumber = 7; - private string mapsSdkVersion_ = ""; - /// - /// Version of the MapSDK which the calling SDK depends on, if applicable. - /// The version format is "major.minor.patch", example: `5.2.1`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MapsSdkVersion { - get { return mapsSdkVersion_; } - set { - mapsSdkVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "nav_sdk_version" field. - public const int NavSdkVersionFieldNumber = 8; - private string navSdkVersion_ = ""; - /// - /// Version of the NavSDK which the calling SDK depends on, if applicable. - /// The version format is "major.minor.patch", example: `2.1.0`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NavSdkVersion { - get { return navSdkVersion_; } - set { - navSdkVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "platform" field. - public const int PlatformFieldNumber = 9; - private global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform platform_ = global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified; - /// - /// Platform of the calling SDK. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform Platform { - get { return platform_; } - set { - platform_ = value; - } - } - - /// Field number for the "manufacturer" field. - public const int ManufacturerFieldNumber = 10; - private string manufacturer_ = ""; - /// - /// Manufacturer of the Android device from the calling SDK, only applicable - /// for the Android SDKs. - /// Field value example: `Samsung`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Manufacturer { - get { return manufacturer_; } - set { - manufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_api_level" field. - public const int AndroidApiLevelFieldNumber = 11; - private int androidApiLevel_; - /// - /// Android API level of the calling SDK, only applicable for the Android SDKs. - /// Field value example: `23`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int AndroidApiLevel { - get { return androidApiLevel_; } - set { - androidApiLevel_ = value; - } - } - - /// Field number for the "trace_id" field. - public const int TraceIdFieldNumber = 12; - private string traceId_ = ""; - /// - /// Optional ID that can be provided for logging purposes in order to identify - /// the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TraceId { - get { return traceId_; } - set { - traceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RequestHeader); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RequestHeader other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LanguageCode != other.LanguageCode) return false; - if (RegionCode != other.RegionCode) return false; - if (SdkVersion != other.SdkVersion) return false; - if (OsVersion != other.OsVersion) return false; - if (DeviceModel != other.DeviceModel) return false; - if (SdkType != other.SdkType) return false; - if (MapsSdkVersion != other.MapsSdkVersion) return false; - if (NavSdkVersion != other.NavSdkVersion) return false; - if (Platform != other.Platform) return false; - if (Manufacturer != other.Manufacturer) return false; - if (AndroidApiLevel != other.AndroidApiLevel) return false; - if (TraceId != other.TraceId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - if (RegionCode.Length != 0) hash ^= RegionCode.GetHashCode(); - if (SdkVersion.Length != 0) hash ^= SdkVersion.GetHashCode(); - if (OsVersion.Length != 0) hash ^= OsVersion.GetHashCode(); - if (DeviceModel.Length != 0) hash ^= DeviceModel.GetHashCode(); - if (SdkType != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified) hash ^= SdkType.GetHashCode(); - if (MapsSdkVersion.Length != 0) hash ^= MapsSdkVersion.GetHashCode(); - if (NavSdkVersion.Length != 0) hash ^= NavSdkVersion.GetHashCode(); - if (Platform != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified) hash ^= Platform.GetHashCode(); - if (Manufacturer.Length != 0) hash ^= Manufacturer.GetHashCode(); - if (AndroidApiLevel != 0) hash ^= AndroidApiLevel.GetHashCode(); - if (TraceId.Length != 0) hash ^= TraceId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (LanguageCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LanguageCode); - } - if (RegionCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RegionCode); - } - if (SdkVersion.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SdkVersion); - } - if (OsVersion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(OsVersion); - } - if (DeviceModel.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceModel); - } - if (SdkType != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) SdkType); - } - if (MapsSdkVersion.Length != 0) { - output.WriteRawTag(58); - output.WriteString(MapsSdkVersion); - } - if (NavSdkVersion.Length != 0) { - output.WriteRawTag(66); - output.WriteString(NavSdkVersion); - } - if (Platform != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Platform); - } - if (Manufacturer.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Manufacturer); - } - if (AndroidApiLevel != 0) { - output.WriteRawTag(88); - output.WriteInt32(AndroidApiLevel); - } - if (TraceId.Length != 0) { - output.WriteRawTag(98); - output.WriteString(TraceId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LanguageCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LanguageCode); - } - if (RegionCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RegionCode); - } - if (SdkVersion.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SdkVersion); - } - if (OsVersion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(OsVersion); - } - if (DeviceModel.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceModel); - } - if (SdkType != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) SdkType); - } - if (MapsSdkVersion.Length != 0) { - output.WriteRawTag(58); - output.WriteString(MapsSdkVersion); - } - if (NavSdkVersion.Length != 0) { - output.WriteRawTag(66); - output.WriteString(NavSdkVersion); - } - if (Platform != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Platform); - } - if (Manufacturer.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Manufacturer); - } - if (AndroidApiLevel != 0) { - output.WriteRawTag(88); - output.WriteInt32(AndroidApiLevel); - } - if (TraceId.Length != 0) { - output.WriteRawTag(98); - output.WriteString(TraceId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (RegionCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RegionCode); - } - if (SdkVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SdkVersion); - } - if (OsVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OsVersion); - } - if (DeviceModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModel); - } - if (SdkType != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SdkType); - } - if (MapsSdkVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MapsSdkVersion); - } - if (NavSdkVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NavSdkVersion); - } - if (Platform != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Platform); - } - if (Manufacturer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Manufacturer); - } - if (AndroidApiLevel != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(AndroidApiLevel); - } - if (TraceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TraceId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RequestHeader other) { - if (other == null) { - return; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - if (other.RegionCode.Length != 0) { - RegionCode = other.RegionCode; - } - if (other.SdkVersion.Length != 0) { - SdkVersion = other.SdkVersion; - } - if (other.OsVersion.Length != 0) { - OsVersion = other.OsVersion; - } - if (other.DeviceModel.Length != 0) { - DeviceModel = other.DeviceModel; - } - if (other.SdkType != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType.Unspecified) { - SdkType = other.SdkType; - } - if (other.MapsSdkVersion.Length != 0) { - MapsSdkVersion = other.MapsSdkVersion; - } - if (other.NavSdkVersion.Length != 0) { - NavSdkVersion = other.NavSdkVersion; - } - if (other.Platform != global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform.Unspecified) { - Platform = other.Platform; - } - if (other.Manufacturer.Length != 0) { - Manufacturer = other.Manufacturer; - } - if (other.AndroidApiLevel != 0) { - AndroidApiLevel = other.AndroidApiLevel; - } - if (other.TraceId.Length != 0) { - TraceId = other.TraceId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - LanguageCode = input.ReadString(); - break; - } - case 18: { - RegionCode = input.ReadString(); - break; - } - case 26: { - SdkVersion = input.ReadString(); - break; - } - case 34: { - OsVersion = input.ReadString(); - break; - } - case 42: { - DeviceModel = input.ReadString(); - break; - } - case 48: { - SdkType = (global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType) input.ReadEnum(); - break; - } - case 58: { - MapsSdkVersion = input.ReadString(); - break; - } - case 66: { - NavSdkVersion = input.ReadString(); - break; - } - case 72: { - Platform = (global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform) input.ReadEnum(); - break; - } - case 82: { - Manufacturer = input.ReadString(); - break; - } - case 88: { - AndroidApiLevel = input.ReadInt32(); - break; - } - case 98: { - TraceId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - LanguageCode = input.ReadString(); - break; - } - case 18: { - RegionCode = input.ReadString(); - break; - } - case 26: { - SdkVersion = input.ReadString(); - break; - } - case 34: { - OsVersion = input.ReadString(); - break; - } - case 42: { - DeviceModel = input.ReadString(); - break; - } - case 48: { - SdkType = (global::Google.Maps.FleetEngine.V1.RequestHeader.Types.SdkType) input.ReadEnum(); - break; - } - case 58: { - MapsSdkVersion = input.ReadString(); - break; - } - case 66: { - NavSdkVersion = input.ReadString(); - break; - } - case 72: { - Platform = (global::Google.Maps.FleetEngine.V1.RequestHeader.Types.Platform) input.ReadEnum(); - break; - } - case 82: { - Manufacturer = input.ReadString(); - break; - } - case 88: { - AndroidApiLevel = input.ReadInt32(); - break; - } - case 98: { - TraceId = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the RequestHeader message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible types of SDK. - /// - public enum SdkType { - /// - /// The default value. This value is used if the `sdk_type` is omitted. - /// - [pbr::OriginalName("SDK_TYPE_UNSPECIFIED")] Unspecified = 0, - /// - /// The calling SDK is Consumer. - /// - [pbr::OriginalName("CONSUMER")] Consumer = 1, - /// - /// The calling SDK is Driver. - /// - [pbr::OriginalName("DRIVER")] Driver = 2, - /// - /// The calling SDK is JavaScript. - /// - [pbr::OriginalName("JAVASCRIPT")] Javascript = 3, - } - - /// - /// The platform of the calling SDK. - /// - public enum Platform { - /// - /// The default value. This value is used if the platform is omitted. - /// - [pbr::OriginalName("PLATFORM_UNSPECIFIED")] Unspecified = 0, - /// - /// The request is coming from Android. - /// - [pbr::OriginalName("ANDROID")] Android = 1, - /// - /// The request is coming from iOS. - /// - [pbr::OriginalName("IOS")] Ios = 2, - /// - /// The request is coming from the web. - /// - [pbr::OriginalName("WEB")] Web = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/PackageApiMetadata.g.cs deleted file mode 100755 index a35e5162af32..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/PackageApiMetadata.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gpr = Google.Protobuf.Reflection; -using scg = System.Collections.Generic; - -namespace Google.Maps.FleetEngine.V1 -{ - /// Static class to provide common access to package-wide API metadata. - internal static class PackageApiMetadata - { - /// The for services in this package. - internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Maps.FleetEngine.V1", GetFileDescriptors) - .WithRequestNumericEnumJsonEncoding(true); - - private static scg::IEnumerable GetFileDescriptors() - { - yield return FleetengineReflection.Descriptor; - yield return HeaderReflection.Descriptor; - yield return TrafficReflection.Descriptor; - yield return TripApiReflection.Descriptor; - yield return TripsReflection.Descriptor; - yield return VehicleApiReflection.Descriptor; - yield return VehiclesReflection.Descriptor; - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/ServiceCollectionExtensions.g.cs deleted file mode 100755 index d98c3c3dad13..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/ServiceCollectionExtensions.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gmfv = Google.Maps.FleetEngine.V1; -using gpr = Google.Protobuf.Reflection; -using scg = System.Collections.Generic; -using sys = System; - -namespace Microsoft.Extensions.DependencyInjection -{ - /// Static class to provide extension methods to configure API clients. - public static partial class ServiceCollectionExtensions - { - /// Adds a singleton to . - /// - /// The service collection to add the client to. The services are used to configure the client when requested. - /// - /// - /// An optional action to invoke on the client builder. This is invoked before services from - /// are used. - /// - public static IServiceCollection AddTripServiceClient(this IServiceCollection services, sys::Action action = null) => - services.AddSingleton(provider => - { - gmfv::TripServiceClientBuilder builder = new gmfv::TripServiceClientBuilder(); - action?.Invoke(builder); - return builder.Build(provider); - }); - - /// Adds a singleton to . - /// - /// The service collection to add the client to. The services are used to configure the client when requested. - /// - /// - /// An optional action to invoke on the client builder. This is invoked before services from - /// are used. - /// - public static IServiceCollection AddTripServiceClient(this IServiceCollection services, sys::Action action) => - services.AddSingleton(provider => - { - gmfv::TripServiceClientBuilder builder = new gmfv::TripServiceClientBuilder(); - action?.Invoke(provider, builder); - return builder.Build(provider); - }); - - /// Adds a singleton to . - /// - /// The service collection to add the client to. The services are used to configure the client when requested. - /// - /// - /// An optional action to invoke on the client builder. This is invoked before services from - /// are used. - /// - public static IServiceCollection AddVehicleServiceClient(this IServiceCollection services, sys::Action action = null) => - services.AddSingleton(provider => - { - gmfv::VehicleServiceClientBuilder builder = new gmfv::VehicleServiceClientBuilder(); - action?.Invoke(builder); - return builder.Build(provider); - }); - - /// Adds a singleton to . - /// - /// The service collection to add the client to. The services are used to configure the client when requested. - /// - /// - /// An optional action to invoke on the client builder. This is invoked before services from - /// are used. - /// - public static IServiceCollection AddVehicleServiceClient(this IServiceCollection services, sys::Action action) => - services.AddSingleton(provider => - { - gmfv::VehicleServiceClientBuilder builder = new gmfv::VehicleServiceClientBuilder(); - action?.Invoke(provider, builder); - return builder.Build(provider); - }); - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Traffic.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Traffic.g.cs deleted file mode 100755 index 15f5ffb46c76..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Traffic.g.cs +++ /dev/null @@ -1,596 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/traffic.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/traffic.proto - public static partial class TrafficReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/traffic.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TrafficReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cihnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS90cmFmZmljLnByb3RvEhNt", - "YXBzLmZsZWV0ZW5naW5lLnYxIuMBChRTcGVlZFJlYWRpbmdJbnRlcnZhbBIi", - "ChpzdGFydF9wb2x5bGluZV9wb2ludF9pbmRleBgBIAEoBRIgChhlbmRfcG9s", - "eWxpbmVfcG9pbnRfaW5kZXgYAiABKAUSPgoFc3BlZWQYAyABKA4yLy5tYXBz", - "LmZsZWV0ZW5naW5lLnYxLlNwZWVkUmVhZGluZ0ludGVydmFsLlNwZWVkIkUK", - "BVNwZWVkEhUKEVNQRUVEX1VOU1BFQ0lGSUVEEAASCgoGTk9STUFMEAESCAoE", - "U0xPVxACEg8KC1RSQUZGSUNfSkFNEAMiiAEKGUNvbnN1bWFibGVUcmFmZmlj", - "UG9seWxpbmUSSQoWc3BlZWRfcmVhZGluZ19pbnRlcnZhbBgBIAMoCzIpLm1h", - "cHMuZmxlZXRlbmdpbmUudjEuU3BlZWRSZWFkaW5nSW50ZXJ2YWwSIAoYZW5j", - "b2RlZF9wYXRoX3RvX3dheXBvaW50GAIgASgJQtgBCh5jb20uZ29vZ2xlLm1h", - "cHMuZmxlZXRlbmdpbmUudjFCDFRyYWZmaWNQcm90b1ABWkZjbG91ZC5nb29n", - "bGUuY29tL2dvL21hcHMvZmxlZXRlbmdpbmUvYXBpdjEvZmxlZXRlbmdpbmVw", - "YjtmbGVldGVuZ2luZXBiogIDQ0ZFqgIaR29vZ2xlLk1hcHMuRmxlZXRFbmdp", - "bmUuVjHKAhpHb29nbGVcTWFwc1xGbGVldEVuZ2luZVxWMeoCHUdvb2dsZTo6", - "TWFwczo6RmxlZXRFbmdpbmU6OlYxYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.SpeedReadingInterval), global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Parser, new[]{ "StartPolylinePointIndex", "EndPolylinePointIndex", "Speed" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline), global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline.Parser, new[]{ "SpeedReadingInterval", "EncodedPathToWaypoint" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Traffic density indicator on a contiguous segment of a path. Given a path - /// with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval - /// defines an interval and describes its traffic using the following categories. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpeedReadingInterval : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpeedReadingInterval()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TrafficReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpeedReadingInterval() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpeedReadingInterval(SpeedReadingInterval other) : this() { - startPolylinePointIndex_ = other.startPolylinePointIndex_; - endPolylinePointIndex_ = other.endPolylinePointIndex_; - speed_ = other.speed_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpeedReadingInterval Clone() { - return new SpeedReadingInterval(this); - } - - /// Field number for the "start_polyline_point_index" field. - public const int StartPolylinePointIndexFieldNumber = 1; - private int startPolylinePointIndex_; - /// - /// The starting index of this interval in the path. - /// In JSON, when the index is 0, the field will appear to be unpopulated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartPolylinePointIndex { - get { return startPolylinePointIndex_; } - set { - startPolylinePointIndex_ = value; - } - } - - /// Field number for the "end_polyline_point_index" field. - public const int EndPolylinePointIndexFieldNumber = 2; - private int endPolylinePointIndex_; - /// - /// The ending index of this interval in the path. - /// In JSON, when the index is 0, the field will appear to be unpopulated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int EndPolylinePointIndex { - get { return endPolylinePointIndex_; } - set { - endPolylinePointIndex_ = value; - } - } - - /// Field number for the "speed" field. - public const int SpeedFieldNumber = 3; - private global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed speed_ = global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified; - /// - /// Traffic speed in this interval. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed Speed { - get { return speed_; } - set { - speed_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpeedReadingInterval); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpeedReadingInterval other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartPolylinePointIndex != other.StartPolylinePointIndex) return false; - if (EndPolylinePointIndex != other.EndPolylinePointIndex) return false; - if (Speed != other.Speed) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (StartPolylinePointIndex != 0) hash ^= StartPolylinePointIndex.GetHashCode(); - if (EndPolylinePointIndex != 0) hash ^= EndPolylinePointIndex.GetHashCode(); - if (Speed != global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified) hash ^= Speed.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (StartPolylinePointIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(StartPolylinePointIndex); - } - if (EndPolylinePointIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(EndPolylinePointIndex); - } - if (Speed != global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Speed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (StartPolylinePointIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(StartPolylinePointIndex); - } - if (EndPolylinePointIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(EndPolylinePointIndex); - } - if (Speed != global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Speed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (StartPolylinePointIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartPolylinePointIndex); - } - if (EndPolylinePointIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndPolylinePointIndex); - } - if (Speed != global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Speed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpeedReadingInterval other) { - if (other == null) { - return; - } - if (other.StartPolylinePointIndex != 0) { - StartPolylinePointIndex = other.StartPolylinePointIndex; - } - if (other.EndPolylinePointIndex != 0) { - EndPolylinePointIndex = other.EndPolylinePointIndex; - } - if (other.Speed != global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed.Unspecified) { - Speed = other.Speed; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - StartPolylinePointIndex = input.ReadInt32(); - break; - } - case 16: { - EndPolylinePointIndex = input.ReadInt32(); - break; - } - case 24: { - Speed = (global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - StartPolylinePointIndex = input.ReadInt32(); - break; - } - case 16: { - EndPolylinePointIndex = input.ReadInt32(); - break; - } - case 24: { - Speed = (global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Types.Speed) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SpeedReadingInterval message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The classification of polyline speed based on traffic data. - /// - public enum Speed { - /// - /// Default value. This value is unused. - /// - [pbr::OriginalName("SPEED_UNSPECIFIED")] Unspecified = 0, - /// - /// Normal speed, no slowdown is detected. - /// - [pbr::OriginalName("NORMAL")] Normal = 1, - /// - /// Slowdown detected, but no traffic jam formed. - /// - [pbr::OriginalName("SLOW")] Slow = 2, - /// - /// Traffic jam detected. - /// - [pbr::OriginalName("TRAFFIC_JAM")] TrafficJam = 3, - } - - } - #endregion - - } - - /// - /// Traffic density along a Vehicle's path. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConsumableTrafficPolyline : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConsumableTrafficPolyline()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TrafficReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConsumableTrafficPolyline() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConsumableTrafficPolyline(ConsumableTrafficPolyline other) : this() { - speedReadingInterval_ = other.speedReadingInterval_.Clone(); - encodedPathToWaypoint_ = other.encodedPathToWaypoint_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConsumableTrafficPolyline Clone() { - return new ConsumableTrafficPolyline(this); - } - - /// Field number for the "speed_reading_interval" field. - public const int SpeedReadingIntervalFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_speedReadingInterval_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.SpeedReadingInterval.Parser); - private readonly pbc::RepeatedField speedReadingInterval_ = new pbc::RepeatedField(); - /// - /// Traffic speed along the path from the previous waypoint to the current - /// waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SpeedReadingInterval { - get { return speedReadingInterval_; } - } - - /// Field number for the "encoded_path_to_waypoint" field. - public const int EncodedPathToWaypointFieldNumber = 2; - private string encodedPathToWaypoint_ = ""; - /// - /// The path the driver is taking from the previous waypoint to the current - /// waypoint. This path has landmarks in it so clients can show traffic markers - /// along the path (see `speed_reading_interval`). Decoding is not yet - /// supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EncodedPathToWaypoint { - get { return encodedPathToWaypoint_; } - set { - encodedPathToWaypoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConsumableTrafficPolyline); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConsumableTrafficPolyline other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!speedReadingInterval_.Equals(other.speedReadingInterval_)) return false; - if (EncodedPathToWaypoint != other.EncodedPathToWaypoint) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= speedReadingInterval_.GetHashCode(); - if (EncodedPathToWaypoint.Length != 0) hash ^= EncodedPathToWaypoint.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - speedReadingInterval_.WriteTo(output, _repeated_speedReadingInterval_codec); - if (EncodedPathToWaypoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EncodedPathToWaypoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - speedReadingInterval_.WriteTo(ref output, _repeated_speedReadingInterval_codec); - if (EncodedPathToWaypoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EncodedPathToWaypoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += speedReadingInterval_.CalculateSize(_repeated_speedReadingInterval_codec); - if (EncodedPathToWaypoint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EncodedPathToWaypoint); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConsumableTrafficPolyline other) { - if (other == null) { - return; - } - speedReadingInterval_.Add(other.speedReadingInterval_); - if (other.EncodedPathToWaypoint.Length != 0) { - EncodedPathToWaypoint = other.EncodedPathToWaypoint; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - speedReadingInterval_.AddEntriesFrom(input, _repeated_speedReadingInterval_codec); - break; - } - case 18: { - EncodedPathToWaypoint = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - speedReadingInterval_.AddEntriesFrom(ref input, _repeated_speedReadingInterval_codec); - break; - } - case 18: { - EncodedPathToWaypoint = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApi.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApi.g.cs deleted file mode 100755 index b7a6d12d3345..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApi.g.cs +++ /dev/null @@ -1,2497 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/trip_api.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/trip_api.proto - public static partial class TripApiReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/trip_api.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TripApiReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cilnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS90cmlwX2FwaS5wcm90bxIT", - "bWFwcy5mbGVldGVuZ2luZS52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5w", - "cm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmll", - "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8a", - "GGdvb2dsZS9hcGkvcm91dGluZy5wcm90bxosZ29vZ2xlL21hcHMvZmxlZXRl", - "bmdpbmUvdjEvZmxlZXRlbmdpbmUucHJvdG8aJ2dvb2dsZS9tYXBzL2ZsZWV0", - "ZW5naW5lL3YxL2hlYWRlci5wcm90bxomZ29vZ2xlL21hcHMvZmxlZXRlbmdp", - "bmUvdjEvdHJpcHMucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5w", - "cm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGiBnb29nbGUvcHJv", - "dG9idWYvZmllbGRfbWFzay5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz", - "dGFtcC5wcm90byLEAQoRQ3JlYXRlVHJpcFJlcXVlc3QSMgoGaGVhZGVyGAEg", - "ASgLMiIubWFwcy5mbGVldGVuZ2luZS52MS5SZXF1ZXN0SGVhZGVyEjcKBnBh", - "cmVudBgDIAEoCUIn4EEC+kEhCh9mbGVldGVuZ2luZS5nb29nbGVhcGlzLmNv", - "bS9UcmlwEhQKB3RyaXBfaWQYBSABKAlCA+BBAhIsCgR0cmlwGAQgASgLMhku", - "bWFwcy5mbGVldGVuZ2luZS52MS5UcmlwQgPgQQIiggQKDkdldFRyaXBSZXF1", - "ZXN0EjIKBmhlYWRlchgBIAEoCzIiLm1hcHMuZmxlZXRlbmdpbmUudjEuUmVx", - "dWVzdEhlYWRlchI1CgRuYW1lGAMgASgJQifgQQL6QSEKH2ZsZWV0ZW5naW5l", - "Lmdvb2dsZWFwaXMuY29tL1RyaXASKwoEdmlldxgLIAEoDjIdLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuVHJpcFZpZXcSQQodY3VycmVudF9yb3V0ZV9zZWdtZW50", - "X3ZlcnNpb24YBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEj8K", - "G3JlbWFpbmluZ193YXlwb2ludHNfdmVyc2lvbhgHIAEoCzIaLmdvb2dsZS5w", - "cm90b2J1Zi5UaW1lc3RhbXASQgoRcm91dGVfZm9ybWF0X3R5cGUYCCABKA4y", - "Jy5tYXBzLmZsZWV0ZW5naW5lLnYxLlBvbHlsaW5lRm9ybWF0VHlwZRJJCiVj", - "dXJyZW50X3JvdXRlX3NlZ21lbnRfdHJhZmZpY192ZXJzaW9uGAkgASgLMhou", - "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJFCiFyZW1haW5pbmdfd2F5cG9p", - "bnRzX3JvdXRlX3ZlcnNpb24YCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", - "ZXN0YW1wIs0CChlSZXBvcnRCaWxsYWJsZVRyaXBSZXF1ZXN0EhEKBG5hbWUY", - "AiABKAlCA+BBAhIZCgxjb3VudHJ5X2NvZGUYAyABKAlCA+BBAhJACghwbGF0", - "Zm9ybRgFIAEoDjIuLm1hcHMuZmxlZXRlbmdpbmUudjEuQmlsbGluZ1BsYXRm", - "b3JtSWRlbnRpZmllchITCgtyZWxhdGVkX2lkcxgGIAMoCRJSCg1zb2x1dGlv", - "bl90eXBlGAcgASgOMjsubWFwcy5mbGVldGVuZ2luZS52MS5SZXBvcnRCaWxs", - "YWJsZVRyaXBSZXF1ZXN0LlNvbHV0aW9uVHlwZSJXCgxTb2x1dGlvblR5cGUS", - "HQoZU09MVVRJT05fVFlQRV9VTlNQRUNJRklFRBAAEigKJE9OX0RFTUFORF9S", - "SURFU0hBUklOR19BTkRfREVMSVZFUklFUxABIr4BChFVcGRhdGVUcmlwUmVx", - "dWVzdBIyCgZoZWFkZXIYASABKAsyIi5tYXBzLmZsZWV0ZW5naW5lLnYxLlJl", - "cXVlc3RIZWFkZXISEQoEbmFtZRgDIAEoCUID4EECEiwKBHRyaXAYBCABKAsy", - "GS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBCA+BBAhI0Cgt1cGRhdGVfbWFz", - "axgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAiLpAQoS", - "U2VhcmNoVHJpcHNSZXF1ZXN0EjIKBmhlYWRlchgBIAEoCzIiLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuUmVxdWVzdEhlYWRlchITCgZwYXJlbnQYAyABKAlCA+BB", - "AhISCgp2ZWhpY2xlX2lkGAQgASgJEhkKEWFjdGl2ZV90cmlwc19vbmx5GAUg", - "ASgIEhEKCXBhZ2Vfc2l6ZRgGIAEoBRISCgpwYWdlX3Rva2VuGAcgASgJEjQK", - "EW1pbmltdW1fc3RhbGVuZXNzGAggASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1", - "cmF0aW9uIlgKE1NlYXJjaFRyaXBzUmVzcG9uc2USKAoFdHJpcHMYASADKAsy", - "GS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXASFwoPbmV4dF9wYWdlX3Rva2Vu", - "GAIgASgJMtAHCgtUcmlwU2VydmljZRKoAQoKQ3JlYXRlVHJpcBImLm1hcHMu", - "ZmxlZXRlbmdpbmUudjEuQ3JlYXRlVHJpcFJlcXVlc3QaGS5tYXBzLmZsZWV0", - "ZW5naW5lLnYxLlRyaXAiV4LT5JMCJiIeL3YxL3twYXJlbnQ9cHJvdmlkZXJz", - "Lyp9L3RyaXBzOgR0cmlwitPkkwIlEiMKBnBhcmVudBIZe3Byb3ZpZGVyX2lk", - "PXByb3ZpZGVycy8qfRKaAQoHR2V0VHJpcBIjLm1hcHMuZmxlZXRlbmdpbmUu", - "djEuR2V0VHJpcFJlcXVlc3QaGS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXAi", - "T4LT5JMCIBIeL3YxL3tuYW1lPXByb3ZpZGVycy8qL3RyaXBzLyp9itPkkwIj", - "EiEKBG5hbWUSGXtwcm92aWRlcl9pZD1wcm92aWRlcnMvKn0SvwEKElJlcG9y", - "dEJpbGxhYmxlVHJpcBIuLm1hcHMuZmxlZXRlbmdpbmUudjEuUmVwb3J0Qmls", - "bGFibGVUcmlwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJhgtPk", - "kwIyIi0vdjEve25hbWU9cHJvdmlkZXJzLyovYmlsbGFibGVUcmlwcy8qfTpy", - "ZXBvcnQ6ASqK0+STAiMSIQoEbmFtZRIZe3Byb3ZpZGVyX2lkPXByb3ZpZGVy", - "cy8qfRK9AQoLU2VhcmNoVHJpcHMSJy5tYXBzLmZsZWV0ZW5naW5lLnYxLlNl", - "YXJjaFRyaXBzUmVxdWVzdBooLm1hcHMuZmxlZXRlbmdpbmUudjEuU2VhcmNo", - "VHJpcHNSZXNwb25zZSJbgtPkkwIqIiUvdjEve3BhcmVudD1wcm92aWRlcnMv", - "Kn0vdHJpcHM6c2VhcmNoOgEqitPkkwIlEiMKBnBhcmVudBIZe3Byb3ZpZGVy", - "X2lkPXByb3ZpZGVycy8qfRKmAQoKVXBkYXRlVHJpcBImLm1hcHMuZmxlZXRl", - "bmdpbmUudjEuVXBkYXRlVHJpcFJlcXVlc3QaGS5tYXBzLmZsZWV0ZW5naW5l", - "LnYxLlRyaXAiVYLT5JMCJhoeL3YxL3tuYW1lPXByb3ZpZGVycy8qL3RyaXBz", - "Lyp9OgR0cmlwitPkkwIjEiEKBG5hbWUSGXtwcm92aWRlcl9pZD1wcm92aWRl", - "cnMvKn0aTspBGmZsZWV0ZW5naW5lLmdvb2dsZWFwaXMuY29t0kEuaHR0cHM6", - "Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9ybULTAQoe", - "Y29tLmdvb2dsZS5tYXBzLmZsZWV0ZW5naW5lLnYxQgdUcmlwQXBpUAFaRmNs", - "b3VkLmdvb2dsZS5jb20vZ28vbWFwcy9mbGVldGVuZ2luZS9hcGl2MS9mbGVl", - "dGVuZ2luZXBiO2ZsZWV0ZW5naW5lcGKiAgNDRkWqAhpHb29nbGUuTWFwcy5G", - "bGVldEVuZ2luZS5WMcoCGkdvb2dsZVxNYXBzXEZsZWV0RW5naW5lXFYx6gId", - "R29vZ2xlOjpNYXBzOjpGbGVldEVuZ2luZTo6VjFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Api.RoutingReflection.Descriptor, global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor, global::Google.Maps.FleetEngine.V1.HeaderReflection.Descriptor, global::Google.Maps.FleetEngine.V1.TripsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.CreateTripRequest), global::Google.Maps.FleetEngine.V1.CreateTripRequest.Parser, new[]{ "Header", "Parent", "TripId", "Trip" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.GetTripRequest), global::Google.Maps.FleetEngine.V1.GetTripRequest.Parser, new[]{ "Header", "Name", "View", "CurrentRouteSegmentVersion", "RemainingWaypointsVersion", "RouteFormatType", "CurrentRouteSegmentTrafficVersion", "RemainingWaypointsRouteVersion" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest), global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Parser, new[]{ "Name", "CountryCode", "Platform", "RelatedIds", "SolutionType" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.UpdateTripRequest), global::Google.Maps.FleetEngine.V1.UpdateTripRequest.Parser, new[]{ "Header", "Name", "Trip", "UpdateMask" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.SearchTripsRequest), global::Google.Maps.FleetEngine.V1.SearchTripsRequest.Parser, new[]{ "Header", "Parent", "VehicleId", "ActiveTripsOnly", "PageSize", "PageToken", "MinimumStaleness" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.SearchTripsResponse), global::Google.Maps.FleetEngine.V1.SearchTripsResponse.Parser, new[]{ "Trips", "NextPageToken" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// CreateTrip request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class CreateTripRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTripRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTripRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTripRequest(CreateTripRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - parent_ = other.parent_; - tripId_ = other.tripId_; - trip_ = other.trip_ != null ? other.trip_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTripRequest Clone() { - return new CreateTripRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 3; - private string parent_ = ""; - /// - /// Required. Must be in the format `providers/{provider}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trip_id" field. - public const int TripIdFieldNumber = 5; - private string tripId_ = ""; - /// - /// Required. Unique Trip ID. - /// Subject to the following restrictions: - /// - /// * Must be a valid Unicode string. - /// * Limited to a maximum length of 64 characters. - /// * Normalized according to [Unicode Normalization Form C] - /// (http://www.unicode.org/reports/tr15/). - /// * May not contain any of the following ASCII characters: '/', ':', '?', - /// ',', or '#'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TripId { - get { return tripId_; } - set { - tripId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trip" field. - public const int TripFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.Trip trip_; - /// - /// Required. Trip entity to create. - /// - /// When creating a Trip, the following fields are required: - /// - /// * `trip_type` - /// * `pickup_point` - /// - /// The following fields are used if you provide them: - /// - /// * `number_of_passengers` - /// * `vehicle_id` - /// * `dropoff_point` - /// * `intermediate_destinations` - /// * `vehicle_waypoints` - /// - /// All other Trip fields are ignored. For example, all trips start with a - /// `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - /// the creation request. - /// - /// Only `EXCLUSIVE` trips support `intermediate_destinations`. - /// - /// When `vehicle_id` is set for a shared trip, you must supply - /// the list of `Trip.vehicle_waypoints` to specify the order of the remaining - /// waypoints for the vehicle, otherwise the waypoint order will be - /// undetermined. - /// - /// When you specify `Trip.vehicle_waypoints`, the list must contain all - /// the remaining waypoints of the vehicle's trips, with no extra waypoints. - /// You must order these waypoints such that for a given trip, the pickup - /// point is before intermediate destinations, and all intermediate - /// destinations come before the drop-off point. An `EXCLUSIVE` trip's - /// waypoints must not interleave with any other trips. - /// - /// The `trip_id`, `waypoint_type` and `location` fields are used, and all - /// other TripWaypoint fields in `vehicle_waypoints` are ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Trip Trip { - get { return trip_; } - set { - trip_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateTripRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateTripRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Parent != other.Parent) return false; - if (TripId != other.TripId) return false; - if (!object.Equals(Trip, other.Trip)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (TripId.Length != 0) hash ^= TripId.GetHashCode(); - if (trip_ != null) hash ^= Trip.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (trip_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Trip); - } - if (TripId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TripId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (trip_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Trip); - } - if (TripId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TripId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (TripId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TripId); - } - if (trip_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Trip); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateTripRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.TripId.Length != 0) { - TripId = other.TripId; - } - if (other.trip_ != null) { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - Trip.MergeFrom(other.Trip); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - input.ReadMessage(Trip); - break; - } - case 42: { - TripId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - input.ReadMessage(Trip); - break; - } - case 42: { - TripId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// GetTrip request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetTripRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTripRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTripRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTripRequest(GetTripRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - name_ = other.name_; - view_ = other.view_; - currentRouteSegmentVersion_ = other.currentRouteSegmentVersion_ != null ? other.currentRouteSegmentVersion_.Clone() : null; - remainingWaypointsVersion_ = other.remainingWaypointsVersion_ != null ? other.remainingWaypointsVersion_.Clone() : null; - routeFormatType_ = other.routeFormatType_; - currentRouteSegmentTrafficVersion_ = other.currentRouteSegmentTrafficVersion_ != null ? other.currentRouteSegmentTrafficVersion_.Clone() : null; - remainingWaypointsRouteVersion_ = other.remainingWaypointsRouteVersion_ != null ? other.remainingWaypointsRouteVersion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTripRequest Clone() { - return new GetTripRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Must be in the format `providers/{provider}/trips/{trip}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "view" field. - public const int ViewFieldNumber = 11; - private global::Google.Maps.FleetEngine.V1.TripView view_ = global::Google.Maps.FleetEngine.V1.TripView.Unspecified; - /// - /// The subset of Trip fields that should be returned and their interpretation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripView View { - get { return view_; } - set { - view_ = value; - } - } - - /// Field number for the "current_route_segment_version" field. - public const int CurrentRouteSegmentVersionFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which `Trip.route` or - /// `Trip.current_route_segment` data are retrieved. If route data are - /// unchanged since this timestamp, the route field is not set in the response. - /// If a minimum is unspecified, the route data are always retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentVersion { - get { return currentRouteSegmentVersion_; } - set { - currentRouteSegmentVersion_ = value; - } - } - - /// Field number for the "remaining_waypoints_version" field. - public const int RemainingWaypointsVersionFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp remainingWaypointsVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which - /// `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - /// timestamp, the `remaining_waypoints` are not set in the response. If this - /// field is unspecified, `remaining_waypoints` is always retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RemainingWaypointsVersion { - get { return remainingWaypointsVersion_; } - set { - remainingWaypointsVersion_ = value; - } - } - - /// Field number for the "route_format_type" field. - public const int RouteFormatTypeFieldNumber = 8; - private global::Google.Maps.FleetEngine.V1.PolylineFormatType routeFormatType_ = global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType; - /// - /// The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - /// or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - /// is `LAT_LNG_LIST_TYPE`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.PolylineFormatType RouteFormatType { - get { return routeFormatType_; } - set { - routeFormatType_ = value; - } - } - - /// Field number for the "current_route_segment_traffic_version" field. - public const int CurrentRouteSegmentTrafficVersionFieldNumber = 9; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentTrafficVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which - /// `Trip.current_route_segment_traffic` is retrieved. If traffic data are - /// unchanged since this timestamp, the `current_route_segment_traffic` field - /// is not set in the response. If a minimum is unspecified, the traffic data - /// are always retrieved. Note that traffic is only available for On-Demand - /// Rides and Deliveries Solution customers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentTrafficVersion { - get { return currentRouteSegmentTrafficVersion_; } - set { - currentRouteSegmentTrafficVersion_ = value; - } - } - - /// Field number for the "remaining_waypoints_route_version" field. - public const int RemainingWaypointsRouteVersionFieldNumber = 10; - private global::Google.Protobuf.WellKnownTypes.Timestamp remainingWaypointsRouteVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which - /// `Trip.remaining_waypoints.traffic_to_waypoint` and - /// `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - /// unchanged since this timestamp, the fields above are - /// not set in the response. If `remaining_waypoints_route_version` is - /// unspecified, traffic and path are always retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RemainingWaypointsRouteVersion { - get { return remainingWaypointsRouteVersion_; } - set { - remainingWaypointsRouteVersion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetTripRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetTripRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Name != other.Name) return false; - if (View != other.View) return false; - if (!object.Equals(CurrentRouteSegmentVersion, other.CurrentRouteSegmentVersion)) return false; - if (!object.Equals(RemainingWaypointsVersion, other.RemainingWaypointsVersion)) return false; - if (RouteFormatType != other.RouteFormatType) return false; - if (!object.Equals(CurrentRouteSegmentTrafficVersion, other.CurrentRouteSegmentTrafficVersion)) return false; - if (!object.Equals(RemainingWaypointsRouteVersion, other.RemainingWaypointsRouteVersion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) hash ^= View.GetHashCode(); - if (currentRouteSegmentVersion_ != null) hash ^= CurrentRouteSegmentVersion.GetHashCode(); - if (remainingWaypointsVersion_ != null) hash ^= RemainingWaypointsVersion.GetHashCode(); - if (RouteFormatType != global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType) hash ^= RouteFormatType.GetHashCode(); - if (currentRouteSegmentTrafficVersion_ != null) hash ^= CurrentRouteSegmentTrafficVersion.GetHashCode(); - if (remainingWaypointsRouteVersion_ != null) hash ^= RemainingWaypointsRouteVersion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (remainingWaypointsVersion_ != null) { - output.WriteRawTag(58); - output.WriteMessage(RemainingWaypointsVersion); - } - if (RouteFormatType != global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType) { - output.WriteRawTag(64); - output.WriteEnum((int) RouteFormatType); - } - if (currentRouteSegmentTrafficVersion_ != null) { - output.WriteRawTag(74); - output.WriteMessage(CurrentRouteSegmentTrafficVersion); - } - if (remainingWaypointsRouteVersion_ != null) { - output.WriteRawTag(82); - output.WriteMessage(RemainingWaypointsRouteVersion); - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) View); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (remainingWaypointsVersion_ != null) { - output.WriteRawTag(58); - output.WriteMessage(RemainingWaypointsVersion); - } - if (RouteFormatType != global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType) { - output.WriteRawTag(64); - output.WriteEnum((int) RouteFormatType); - } - if (currentRouteSegmentTrafficVersion_ != null) { - output.WriteRawTag(74); - output.WriteMessage(CurrentRouteSegmentTrafficVersion); - } - if (remainingWaypointsRouteVersion_ != null) { - output.WriteRawTag(82); - output.WriteMessage(RemainingWaypointsRouteVersion); - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) View); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); - } - if (currentRouteSegmentVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentVersion); - } - if (remainingWaypointsVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemainingWaypointsVersion); - } - if (RouteFormatType != global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RouteFormatType); - } - if (currentRouteSegmentTrafficVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentTrafficVersion); - } - if (remainingWaypointsRouteVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemainingWaypointsRouteVersion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetTripRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - View = other.View; - } - if (other.currentRouteSegmentVersion_ != null) { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentVersion.MergeFrom(other.CurrentRouteSegmentVersion); - } - if (other.remainingWaypointsVersion_ != null) { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RemainingWaypointsVersion.MergeFrom(other.RemainingWaypointsVersion); - } - if (other.RouteFormatType != global::Google.Maps.FleetEngine.V1.PolylineFormatType.UnknownFormatType) { - RouteFormatType = other.RouteFormatType; - } - if (other.currentRouteSegmentTrafficVersion_ != null) { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentTrafficVersion.MergeFrom(other.CurrentRouteSegmentTrafficVersion); - } - if (other.remainingWaypointsRouteVersion_ != null) { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RemainingWaypointsRouteVersion.MergeFrom(other.RemainingWaypointsRouteVersion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 50: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 58: { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsVersion); - break; - } - case 64: { - RouteFormatType = (global::Google.Maps.FleetEngine.V1.PolylineFormatType) input.ReadEnum(); - break; - } - case 74: { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentTrafficVersion); - break; - } - case 82: { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsRouteVersion); - break; - } - case 88: { - View = (global::Google.Maps.FleetEngine.V1.TripView) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 50: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 58: { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsVersion); - break; - } - case 64: { - RouteFormatType = (global::Google.Maps.FleetEngine.V1.PolylineFormatType) input.ReadEnum(); - break; - } - case 74: { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentTrafficVersion); - break; - } - case 82: { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsRouteVersion); - break; - } - case 88: { - View = (global::Google.Maps.FleetEngine.V1.TripView) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// ReportBillableTrip request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ReportBillableTripRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReportBillableTripRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ReportBillableTripRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ReportBillableTripRequest(ReportBillableTripRequest other) : this() { - name_ = other.name_; - countryCode_ = other.countryCode_; - platform_ = other.platform_; - relatedIds_ = other.relatedIds_.Clone(); - solutionType_ = other.solutionType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ReportBillableTripRequest Clone() { - return new ReportBillableTripRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Required. Must be in the format - /// `providers/{provider}/billableTrips/{billable_trip}`. The - /// provider must be the Project ID (for example, `sample-cloud-project`) of - /// the Google Cloud Project of which the service account making this call is a - /// member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 3; - private string countryCode_ = ""; - /// - /// Required. Two letter country code of the country where the trip takes - /// place. Price is defined according to country code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "platform" field. - public const int PlatformFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier platform_ = global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified; - /// - /// The platform upon which the request was issued. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier Platform { - get { return platform_; } - set { - platform_ = value; - } - } - - /// Field number for the "related_ids" field. - public const int RelatedIdsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_relatedIds_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField relatedIds_ = new pbc::RepeatedField(); - /// - /// The identifiers that are directly related to the trip being reported. These - /// are usually IDs (for example, session IDs) of pre-booking operations done - /// before the trip ID is available. The number of `related_ids` is - /// limited to 50. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RelatedIds { - get { return relatedIds_; } - } - - /// Field number for the "solution_type" field. - public const int SolutionTypeFieldNumber = 7; - private global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType solutionType_ = global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified; - /// - /// The type of GMP product solution (for example, - /// `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType SolutionType { - get { return solutionType_; } - set { - solutionType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ReportBillableTripRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ReportBillableTripRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (CountryCode != other.CountryCode) return false; - if (Platform != other.Platform) return false; - if(!relatedIds_.Equals(other.relatedIds_)) return false; - if (SolutionType != other.SolutionType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); - if (Platform != global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified) hash ^= Platform.GetHashCode(); - hash ^= relatedIds_.GetHashCode(); - if (SolutionType != global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified) hash ^= SolutionType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (CountryCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CountryCode); - } - if (Platform != global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Platform); - } - relatedIds_.WriteTo(output, _repeated_relatedIds_codec); - if (SolutionType != global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) SolutionType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (CountryCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CountryCode); - } - if (Platform != global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Platform); - } - relatedIds_.WriteTo(ref output, _repeated_relatedIds_codec); - if (SolutionType != global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) SolutionType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (CountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (Platform != global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Platform); - } - size += relatedIds_.CalculateSize(_repeated_relatedIds_codec); - if (SolutionType != global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SolutionType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ReportBillableTripRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.CountryCode.Length != 0) { - CountryCode = other.CountryCode; - } - if (other.Platform != global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier.Unspecified) { - Platform = other.Platform; - } - relatedIds_.Add(other.relatedIds_); - if (other.SolutionType != global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType.Unspecified) { - SolutionType = other.SolutionType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - CountryCode = input.ReadString(); - break; - } - case 40: { - Platform = (global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier) input.ReadEnum(); - break; - } - case 50: { - relatedIds_.AddEntriesFrom(input, _repeated_relatedIds_codec); - break; - } - case 56: { - SolutionType = (global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - CountryCode = input.ReadString(); - break; - } - case 40: { - Platform = (global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier) input.ReadEnum(); - break; - } - case 50: { - relatedIds_.AddEntriesFrom(ref input, _repeated_relatedIds_codec); - break; - } - case 56: { - SolutionType = (global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Types.SolutionType) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ReportBillableTripRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Selector for different solution types of a reported trip. - /// - public enum SolutionType { - /// - /// The default value. For backwards-compatibility, the API will use - /// `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first - /// supported solution type. - /// - [pbr::OriginalName("SOLUTION_TYPE_UNSPECIFIED")] Unspecified = 0, - /// - /// The solution is an on-demand ridesharing and deliveries trip. - /// - [pbr::OriginalName("ON_DEMAND_RIDESHARING_AND_DELIVERIES")] OnDemandRidesharingAndDeliveries = 1, - } - - } - #endregion - - } - - /// - /// UpdateTrip request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateTripRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTripRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTripRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTripRequest(UpdateTripRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - name_ = other.name_; - trip_ = other.trip_ != null ? other.trip_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTripRequest Clone() { - return new UpdateTripRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Must be in the format - /// `providers/{provider}/trips/{trip}`. The provider must - /// be the Project ID (for example, `sample-consumer-project`) of the Google - /// Cloud Project of which the service account making this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trip" field. - public const int TripFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.Trip trip_; - /// - /// Required. The Trip associated with the update. - /// - /// The following fields are maintained by the Fleet Engine. Do not update - /// them using Trip.update. - /// - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_traffic` - /// * `current_route_segment_traffic_version` - /// * `current_route_segment_version` - /// * `dropoff_time` - /// * `eta_to_next_waypoint` - /// * `intermediate_destinations_version` - /// * `last_location` - /// * `name` - /// * `number_of_passengers` - /// * `pickup_time` - /// * `remaining_distance_meters` - /// * `remaining_time_to_first_waypoint` - /// * `remaining_waypoints` - /// * `remaining_waypoints_version` - /// * `route` - /// - /// When you update the `Trip.vehicle_id` for a shared trip, you must supply - /// the list of `Trip.vehicle_waypoints` to specify the order of the remaining - /// waypoints, otherwise the order will be undetermined. - /// - /// When you specify `Trip.vehicle_waypoints`, the list must contain all - /// the remaining waypoints of the vehicle's trips, with no extra waypoints. - /// You must order these waypoints such that for a given trip, the pickup - /// point is before intermediate destinations, and all intermediate - /// destinations come before the drop-off point. An `EXCLUSIVE` trip's - /// waypoints must not interleave with any other trips. - /// The `trip_id`, `waypoint_type` and `location` fields are used, and all - /// other TripWaypoint fields in `vehicle_waypoints` are ignored. - /// - /// To avoid a race condition for trips with multiple destinations, you - /// should provide `Trip.intermediate_destinations_version` when updating - /// the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - /// `Trip.intermediate_destinations_version` passed must be consistent with - /// Fleet Engine's version. If it isn't, the request fails. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Trip Trip { - get { return trip_; } - set { - trip_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// Required. The field mask indicating which fields in Trip to update. - /// The `update_mask` must contain at least one field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateTripRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateTripRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Name != other.Name) return false; - if (!object.Equals(Trip, other.Trip)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (trip_ != null) hash ^= Trip.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (trip_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Trip); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (trip_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Trip); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (trip_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Trip); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateTripRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.trip_ != null) { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - Trip.MergeFrom(other.Trip); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - input.ReadMessage(Trip); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (trip_ == null) { - Trip = new global::Google.Maps.FleetEngine.V1.Trip(); - } - input.ReadMessage(Trip); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// SearchTrips request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SearchTripsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchTripsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsRequest(SearchTripsRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - parent_ = other.parent_; - vehicleId_ = other.vehicleId_; - activeTripsOnly_ = other.activeTripsOnly_; - pageSize_ = other.pageSize_; - pageToken_ = other.pageToken_; - minimumStaleness_ = other.minimumStaleness_ != null ? other.minimumStaleness_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsRequest Clone() { - return new SearchTripsRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 3; - private string parent_ = ""; - /// - /// Required. Must be in the format `providers/{provider}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle_id" field. - public const int VehicleIdFieldNumber = 4; - private string vehicleId_ = ""; - /// - /// The vehicle associated with the trips in the request. If unspecified, the - /// returned trips do not contain: - /// - /// * `current_route_segment` - /// * `remaining_waypoints` - /// * `remaining_distance_meters` - /// * `eta_to_first_waypoint` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string VehicleId { - get { return vehicleId_; } - set { - vehicleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "active_trips_only" field. - public const int ActiveTripsOnlyFieldNumber = 5; - private bool activeTripsOnly_; - /// - /// If set to true, the response includes Trips that influence a driver's - /// route. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ActiveTripsOnly { - get { return activeTripsOnly_; } - set { - activeTripsOnly_ = value; - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 6; - private int pageSize_; - /// - /// If not set, the server decides the number of results to return. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 7; - private string pageToken_ = ""; - /// - /// Set this to a value previously returned in the `SearchTripsResponse` to - /// continue from previous results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "minimum_staleness" field. - public const int MinimumStalenessFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Duration minimumStaleness_; - /// - /// If specified, returns the trips that have not been updated after the time - /// `(current - minimum_staleness)`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration MinimumStaleness { - get { return minimumStaleness_; } - set { - minimumStaleness_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchTripsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchTripsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Parent != other.Parent) return false; - if (VehicleId != other.VehicleId) return false; - if (ActiveTripsOnly != other.ActiveTripsOnly) return false; - if (PageSize != other.PageSize) return false; - if (PageToken != other.PageToken) return false; - if (!object.Equals(MinimumStaleness, other.MinimumStaleness)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (VehicleId.Length != 0) hash ^= VehicleId.GetHashCode(); - if (ActiveTripsOnly != false) hash ^= ActiveTripsOnly.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (minimumStaleness_ != null) hash ^= MinimumStaleness.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(VehicleId); - } - if (ActiveTripsOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ActiveTripsOnly); - } - if (PageSize != 0) { - output.WriteRawTag(48); - output.WriteInt32(PageSize); - } - if (PageToken.Length != 0) { - output.WriteRawTag(58); - output.WriteString(PageToken); - } - if (minimumStaleness_ != null) { - output.WriteRawTag(66); - output.WriteMessage(MinimumStaleness); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(VehicleId); - } - if (ActiveTripsOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ActiveTripsOnly); - } - if (PageSize != 0) { - output.WriteRawTag(48); - output.WriteInt32(PageSize); - } - if (PageToken.Length != 0) { - output.WriteRawTag(58); - output.WriteString(PageToken); - } - if (minimumStaleness_ != null) { - output.WriteRawTag(66); - output.WriteMessage(MinimumStaleness); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (VehicleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(VehicleId); - } - if (ActiveTripsOnly != false) { - size += 1 + 1; - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (minimumStaleness_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinimumStaleness); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchTripsRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.VehicleId.Length != 0) { - VehicleId = other.VehicleId; - } - if (other.ActiveTripsOnly != false) { - ActiveTripsOnly = other.ActiveTripsOnly; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.minimumStaleness_ != null) { - if (minimumStaleness_ == null) { - MinimumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - MinimumStaleness.MergeFrom(other.MinimumStaleness); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - VehicleId = input.ReadString(); - break; - } - case 40: { - ActiveTripsOnly = input.ReadBool(); - break; - } - case 48: { - PageSize = input.ReadInt32(); - break; - } - case 58: { - PageToken = input.ReadString(); - break; - } - case 66: { - if (minimumStaleness_ == null) { - MinimumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MinimumStaleness); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - VehicleId = input.ReadString(); - break; - } - case 40: { - ActiveTripsOnly = input.ReadBool(); - break; - } - case 48: { - PageSize = input.ReadInt32(); - break; - } - case 58: { - PageToken = input.ReadString(); - break; - } - case 66: { - if (minimumStaleness_ == null) { - MinimumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MinimumStaleness); - break; - } - } - } - } - #endif - - } - - /// - /// SearchTrips response message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SearchTripsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchTripsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsResponse(SearchTripsResponse other) : this() { - trips_ = other.trips_.Clone(); - nextPageToken_ = other.nextPageToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchTripsResponse Clone() { - return new SearchTripsResponse(this); - } - - /// Field number for the "trips" field. - public const int TripsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_trips_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.Trip.Parser); - private readonly pbc::RepeatedField trips_ = new pbc::RepeatedField(); - /// - /// The list of trips for the requested vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Trips { - get { return trips_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pass this token in the SearchTripsRequest to page through list results. The - /// API returns a trip list on each call, and when no more results remain the - /// trip list is empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchTripsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchTripsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!trips_.Equals(other.trips_)) return false; - if (NextPageToken != other.NextPageToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= trips_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - trips_.WriteTo(output, _repeated_trips_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - trips_.WriteTo(ref output, _repeated_trips_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += trips_.CalculateSize(_repeated_trips_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchTripsResponse other) { - if (other == null) { - return; - } - trips_.Add(other.trips_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - trips_.AddEntriesFrom(input, _repeated_trips_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - trips_.AddEntriesFrom(ref input, _repeated_trips_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiGrpc.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiGrpc.g.cs deleted file mode 100755 index 8480f252c9c5..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiGrpc.g.cs +++ /dev/null @@ -1,499 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/trip_api.proto -// -// Original file comments: -// Copyright 2024 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Maps.FleetEngine.V1 { - /// - /// Trip management service. - /// - public static partial class TripService - { - static readonly string __ServiceName = "maps.fleetengine.v1.TripService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_CreateTripRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.CreateTripRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_Trip = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.Trip.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_GetTripRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.GetTripRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_ReportBillableTripRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_SearchTripsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.SearchTripsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_SearchTripsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.SearchTripsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_UpdateTripRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.UpdateTripRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateTrip = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateTrip", - __Marshaller_maps_fleetengine_v1_CreateTripRequest, - __Marshaller_maps_fleetengine_v1_Trip); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetTrip = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetTrip", - __Marshaller_maps_fleetengine_v1_GetTripRequest, - __Marshaller_maps_fleetengine_v1_Trip); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ReportBillableTrip = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ReportBillableTrip", - __Marshaller_maps_fleetengine_v1_ReportBillableTripRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SearchTrips = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SearchTrips", - __Marshaller_maps_fleetengine_v1_SearchTripsRequest, - __Marshaller_maps_fleetengine_v1_SearchTripsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateTrip = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateTrip", - __Marshaller_maps_fleetengine_v1_UpdateTripRequest, - __Marshaller_maps_fleetengine_v1_Trip); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Maps.FleetEngine.V1.TripApiReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of TripService - [grpc::BindServiceMethod(typeof(TripService), "BindService")] - public abstract partial class TripServiceBase - { - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateTrip(global::Google.Maps.FleetEngine.V1.CreateTripRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get information about a single trip. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetTrip(global::Google.Maps.FleetEngine.V1.GetTripRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Report billable trip usage. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ReportBillableTrip(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get all the trips for a specific vehicle. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SearchTrips(global::Google.Maps.FleetEngine.V1.SearchTripsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Updates trip data. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateTrip(global::Google.Maps.FleetEngine.V1.UpdateTripRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for TripService - public partial class TripServiceClient : grpc::ClientBase - { - /// Creates a new client for TripService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public TripServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for TripService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public TripServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected TripServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected TripServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip CreateTrip(global::Google.Maps.FleetEngine.V1.CreateTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateTrip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip CreateTrip(global::Google.Maps.FleetEngine.V1.CreateTripRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateTrip, null, options, request); - } - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateTripAsync(global::Google.Maps.FleetEngine.V1.CreateTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateTripAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateTripAsync(global::Google.Maps.FleetEngine.V1.CreateTripRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateTrip, null, options, request); - } - /// - /// Get information about a single trip. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip GetTrip(global::Google.Maps.FleetEngine.V1.GetTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetTrip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get information about a single trip. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip GetTrip(global::Google.Maps.FleetEngine.V1.GetTripRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetTrip, null, options, request); - } - /// - /// Get information about a single trip. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetTripAsync(global::Google.Maps.FleetEngine.V1.GetTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetTripAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get information about a single trip. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetTripAsync(global::Google.Maps.FleetEngine.V1.GetTripRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetTrip, null, options, request); - } - /// - /// Report billable trip usage. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty ReportBillableTrip(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ReportBillableTrip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Report billable trip usage. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty ReportBillableTrip(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ReportBillableTrip, null, options, request); - } - /// - /// Report billable trip usage. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReportBillableTripAsync(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ReportBillableTripAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Report billable trip usage. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ReportBillableTripAsync(global::Google.Maps.FleetEngine.V1.ReportBillableTripRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ReportBillableTrip, null, options, request); - } - /// - /// Get all the trips for a specific vehicle. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.SearchTripsResponse SearchTrips(global::Google.Maps.FleetEngine.V1.SearchTripsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchTrips(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get all the trips for a specific vehicle. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.SearchTripsResponse SearchTrips(global::Google.Maps.FleetEngine.V1.SearchTripsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SearchTrips, null, options, request); - } - /// - /// Get all the trips for a specific vehicle. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchTripsAsync(global::Google.Maps.FleetEngine.V1.SearchTripsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchTripsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get all the trips for a specific vehicle. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchTripsAsync(global::Google.Maps.FleetEngine.V1.SearchTripsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SearchTrips, null, options, request); - } - /// - /// Updates trip data. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip UpdateTrip(global::Google.Maps.FleetEngine.V1.UpdateTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateTrip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates trip data. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Trip UpdateTrip(global::Google.Maps.FleetEngine.V1.UpdateTripRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateTrip, null, options, request); - } - /// - /// Updates trip data. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateTripAsync(global::Google.Maps.FleetEngine.V1.UpdateTripRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateTripAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates trip data. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateTripAsync(global::Google.Maps.FleetEngine.V1.UpdateTripRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateTrip, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override TripServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new TripServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(TripServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_CreateTrip, serviceImpl.CreateTrip) - .AddMethod(__Method_GetTrip, serviceImpl.GetTrip) - .AddMethod(__Method_ReportBillableTrip, serviceImpl.ReportBillableTrip) - .AddMethod(__Method_SearchTrips, serviceImpl.SearchTrips) - .AddMethod(__Method_UpdateTrip, serviceImpl.UpdateTrip).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, TripServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_CreateTrip, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateTrip)); - serviceBinder.AddMethod(__Method_GetTrip, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTrip)); - serviceBinder.AddMethod(__Method_ReportBillableTrip, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ReportBillableTrip)); - serviceBinder.AddMethod(__Method_SearchTrips, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchTrips)); - serviceBinder.AddMethod(__Method_UpdateTrip, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateTrip)); - } - - } -} -#endregion diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiResourceNames.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiResourceNames.g.cs deleted file mode 100755 index aefbc38f4635..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripApiResourceNames.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gmfv = Google.Maps.FleetEngine.V1; - -namespace Google.Maps.FleetEngine.V1 -{ - public partial class CreateTripRequest - { - /// -typed view over the resource name property. - public TripName ParentAsTripName - { - get => string.IsNullOrEmpty(Parent) ? null : TripName.Parse(Parent, allowUnparsed: true); - set => Parent = value?.ToString() ?? ""; - } - } - - public partial class GetTripRequest - { - /// - /// -typed view over the resource name property. - /// - public gmfv::TripName TripName - { - get => string.IsNullOrEmpty(Name) ? null : gmfv::TripName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripServiceClient.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripServiceClient.g.cs deleted file mode 100755 index aeb380e2085f..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripServiceClient.g.cs +++ /dev/null @@ -1,618 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using proto = Google.Protobuf; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; -using sys = System; -using wkt = Google.Protobuf.WellKnownTypes; - -namespace Google.Maps.FleetEngine.V1 -{ - /// Settings for instances. - public sealed partial class TripServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static TripServiceSettings GetDefault() => new TripServiceSettings(); - - /// Constructs a new object with default settings. - public TripServiceSettings() - { - } - - private TripServiceSettings(TripServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - CreateTripSettings = existing.CreateTripSettings; - GetTripSettings = existing.GetTripSettings; - ReportBillableTripSettings = existing.ReportBillableTripSettings; - SearchTripsSettings = existing.SearchTripsSettings; - UpdateTripSettings = existing.UpdateTripSettings; - OnCopy(existing); - } - - partial void OnCopy(TripServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// TripServiceClient.CreateTrip and TripServiceClient.CreateTripAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings CreateTripSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to TripServiceClient.GetTrip - /// and TripServiceClient.GetTripAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings GetTripSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// TripServiceClient.ReportBillableTrip and TripServiceClient.ReportBillableTripAsync. - /// - /// - /// - /// This call will not be retried. - /// No timeout is applied. - /// - /// - public gaxgrpc::CallSettings ReportBillableTripSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); - - /// - /// for synchronous and asynchronous calls to - /// TripServiceClient.SearchTrips and TripServiceClient.SearchTripsAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings SearchTripsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// TripServiceClient.UpdateTrip and TripServiceClient.UpdateTripAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings UpdateTripSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public TripServiceSettings Clone() => new TripServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint etc. - /// - public sealed partial class TripServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public TripServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public TripServiceClientBuilder() : base(TripServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref TripServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override TripServiceClient Build() - { - TripServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private TripServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return TripServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return TripServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => TripServiceClient.ChannelPool; - } - - /// TripService client wrapper, for convenient use. - /// - /// Trip management service. - /// - public abstract partial class TripServiceClient - { - /// - /// The default endpoint for the TripService service, which is a host of "fleetengine.googleapis.com" and a port - /// of 443. - /// - public static string DefaultEndpoint { get; } = "fleetengine.googleapis.com:443"; - - /// The default TripService scopes. - /// - /// The default TripService scopes are: - /// - /// https://www.googleapis.com/auth/cloud-platform - /// - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/cloud-platform", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(TripService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new TripServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static TripServiceClient Create() => new TripServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static TripServiceClient Create(grpccore::CallInvoker callInvoker, TripServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - TripService.TripServiceClient grpcClient = new TripService.TripServiceClient(callInvoker); - return new TripServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC TripService client - public virtual TripService.TripServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Trip CreateTrip(CreateTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateTripAsync(CreateTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateTripAsync(CreateTripRequest request, st::CancellationToken cancellationToken) => - CreateTripAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Get information about a single trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Trip GetTrip(GetTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Get information about a single trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetTripAsync(GetTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Get information about a single trip. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetTripAsync(GetTripRequest request, st::CancellationToken cancellationToken) => - GetTripAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Report billable trip usage. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void ReportBillableTrip(ReportBillableTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Report billable trip usage. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ReportBillableTripAsync(ReportBillableTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Report billable trip usage. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ReportBillableTripAsync(ReportBillableTripRequest request, st::CancellationToken cancellationToken) => - ReportBillableTripAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Get all the trips for a specific vehicle. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable SearchTrips(SearchTripsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Get all the trips for a specific vehicle. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable SearchTripsAsync(SearchTripsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates trip data. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Trip UpdateTrip(UpdateTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates trip data. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UpdateTripAsync(UpdateTripRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates trip data. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UpdateTripAsync(UpdateTripRequest request, st::CancellationToken cancellationToken) => - UpdateTripAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// TripService client wrapper implementation, for convenient use. - /// - /// Trip management service. - /// - public sealed partial class TripServiceClientImpl : TripServiceClient - { - private readonly gaxgrpc::ApiCall _callCreateTrip; - - private readonly gaxgrpc::ApiCall _callGetTrip; - - private readonly gaxgrpc::ApiCall _callReportBillableTrip; - - private readonly gaxgrpc::ApiCall _callSearchTrips; - - private readonly gaxgrpc::ApiCall _callUpdateTrip; - - /// - /// Constructs a client wrapper for the TripService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public TripServiceClientImpl(TripService.TripServiceClient grpcClient, TripServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - TripServiceSettings effectiveSettings = settings ?? TripServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options - { - Settings = effectiveSettings, - Logger = logger, - }); - _callCreateTrip = clientHelper.BuildApiCall("CreateTrip", grpcClient.CreateTripAsync, grpcClient.CreateTrip, effectiveSettings.CreateTripSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Parent)); - Modify_ApiCall(ref _callCreateTrip); - Modify_CreateTripApiCall(ref _callCreateTrip); - _callGetTrip = clientHelper.BuildApiCall("GetTrip", grpcClient.GetTripAsync, grpcClient.GetTrip, effectiveSettings.GetTripSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callGetTrip); - Modify_GetTripApiCall(ref _callGetTrip); - _callReportBillableTrip = clientHelper.BuildApiCall("ReportBillableTrip", grpcClient.ReportBillableTripAsync, grpcClient.ReportBillableTrip, effectiveSettings.ReportBillableTripSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callReportBillableTrip); - Modify_ReportBillableTripApiCall(ref _callReportBillableTrip); - _callSearchTrips = clientHelper.BuildApiCall("SearchTrips", grpcClient.SearchTripsAsync, grpcClient.SearchTrips, effectiveSettings.SearchTripsSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Parent)); - Modify_ApiCall(ref _callSearchTrips); - Modify_SearchTripsApiCall(ref _callSearchTrips); - _callUpdateTrip = clientHelper.BuildApiCall("UpdateTrip", grpcClient.UpdateTripAsync, grpcClient.UpdateTrip, effectiveSettings.UpdateTripSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callUpdateTrip); - Modify_UpdateTripApiCall(ref _callUpdateTrip); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_CreateTripApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GetTripApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ReportBillableTripApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_SearchTripsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_UpdateTripApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(TripService.TripServiceClient grpcClient, TripServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC TripService client - public override TripService.TripServiceClient GrpcClient { get; } - - partial void Modify_CreateTripRequest(ref CreateTripRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GetTripRequest(ref GetTripRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ReportBillableTripRequest(ref ReportBillableTripRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_SearchTripsRequest(ref SearchTripsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_UpdateTripRequest(ref UpdateTripRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Trip CreateTrip(CreateTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateTripRequest(ref request, ref callSettings); - return _callCreateTrip.Sync(request, callSettings); - } - - /// - /// Creates a trip in the Fleet Engine and returns the new trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task CreateTripAsync(CreateTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateTripRequest(ref request, ref callSettings); - return _callCreateTrip.Async(request, callSettings); - } - - /// - /// Get information about a single trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Trip GetTrip(GetTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetTripRequest(ref request, ref callSettings); - return _callGetTrip.Sync(request, callSettings); - } - - /// - /// Get information about a single trip. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GetTripAsync(GetTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetTripRequest(ref request, ref callSettings); - return _callGetTrip.Async(request, callSettings); - } - - /// - /// Report billable trip usage. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override void ReportBillableTrip(ReportBillableTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ReportBillableTripRequest(ref request, ref callSettings); - _callReportBillableTrip.Sync(request, callSettings); - } - - /// - /// Report billable trip usage. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ReportBillableTripAsync(ReportBillableTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ReportBillableTripRequest(ref request, ref callSettings); - return _callReportBillableTrip.Async(request, callSettings); - } - - /// - /// Get all the trips for a specific vehicle. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable SearchTrips(SearchTripsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchTripsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callSearchTrips, request, callSettings); - } - - /// - /// Get all the trips for a specific vehicle. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable SearchTripsAsync(SearchTripsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchTripsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callSearchTrips, request, callSettings); - } - - /// - /// Updates trip data. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Trip UpdateTrip(UpdateTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateTripRequest(ref request, ref callSettings); - return _callUpdateTrip.Sync(request, callSettings); - } - - /// - /// Updates trip data. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UpdateTripAsync(UpdateTripRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateTripRequest(ref request, ref callSettings); - return _callUpdateTrip.Async(request, callSettings); - } - } - - public partial class SearchTripsRequest : gaxgrpc::IPageRequest - { - } - - public partial class SearchTripsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Trips.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Trips.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Trips.g.cs deleted file mode 100755 index db14ec7d1520..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Trips.g.cs +++ /dev/null @@ -1,2159 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/trips.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/trips.proto - public static partial class TripsReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/trips.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TripsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiZnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS90cmlwcy5wcm90bxITbWFw", - "cy5mbGVldGVuZ2luZS52MRofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", - "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxosZ29vZ2xlL21hcHMv", - "ZmxlZXRlbmdpbmUvdjEvZmxlZXRlbmdpbmUucHJvdG8aKGdvb2dsZS9tYXBz", - "L2ZsZWV0ZW5naW5lL3YxL3RyYWZmaWMucHJvdG8aHmdvb2dsZS9wcm90b2J1", - "Zi9kdXJhdGlvbi5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5w", - "cm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGhhnb29nbGUv", - "dHlwZS9sYXRsbmcucHJvdG8itxAKBFRyaXASEQoEbmFtZRgBIAEoCUID4EED", - "EhIKCnZlaGljbGVfaWQYAiABKAkSNAoLdHJpcF9zdGF0dXMYAyABKA4yHy5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBTdGF0dXMSMAoJdHJpcF90eXBlGAQg", - "ASgOMh0ubWFwcy5mbGVldGVuZ2luZS52MS5UcmlwVHlwZRI7CgxwaWNrdXBf", - "cG9pbnQYBSABKAsyJS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRlcm1pbmFsTG9j", - "YXRpb24SQwoTYWN0dWFsX3BpY2t1cF9wb2ludBgWIAEoCzIhLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuU3RvcExvY2F0aW9uQgPgQQQSSwobYWN0dWFsX3BpY2t1", - "cF9hcnJpdmFsX3BvaW50GCAgASgLMiEubWFwcy5mbGVldGVuZ2luZS52MS5T", - "dG9wTG9jYXRpb25CA+BBBBI0CgtwaWNrdXBfdGltZRgGIAEoCzIaLmdvb2ds", - "ZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJIChlpbnRlcm1lZGlhdGVfZGVz", - "dGluYXRpb25zGA4gAygLMiUubWFwcy5mbGVldGVuZ2luZS52MS5UZXJtaW5h", - "bExvY2F0aW9uEkUKIWludGVybWVkaWF0ZV9kZXN0aW5hdGlvbnNfdmVyc2lv", - "bhgZIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJgoeaW50ZXJt", - "ZWRpYXRlX2Rlc3RpbmF0aW9uX2luZGV4GA8gASgFEl4KLmFjdHVhbF9pbnRl", - "cm1lZGlhdGVfZGVzdGluYXRpb25fYXJyaXZhbF9wb2ludHMYISADKAsyIS5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLlN0b3BMb2NhdGlvbkID4EEEElAKIGFjdHVh", - "bF9pbnRlcm1lZGlhdGVfZGVzdGluYXRpb25zGCIgAygLMiEubWFwcy5mbGVl", - "dGVuZ2luZS52MS5TdG9wTG9jYXRpb25CA+BBBBI8Cg1kcm9wb2ZmX3BvaW50", - "GAcgASgLMiUubWFwcy5mbGVldGVuZ2luZS52MS5UZXJtaW5hbExvY2F0aW9u", - "EkQKFGFjdHVhbF9kcm9wb2ZmX3BvaW50GBcgASgLMiEubWFwcy5mbGVldGVu", - "Z2luZS52MS5TdG9wTG9jYXRpb25CA+BBBBI1Cgxkcm9wb2ZmX3RpbWUYCCAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSQwoTcmVtYWlu", - "aW5nX3dheXBvaW50cxgQIAMoCzIhLm1hcHMuZmxlZXRlbmdpbmUudjEuVHJp", - "cFdheXBvaW50QgPgQQMSPAoRdmVoaWNsZV93YXlwb2ludHMYFCADKAsyIS5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBXYXlwb2ludBInCgVyb3V0ZRgJIAMo", - "CzITLmdvb2dsZS50eXBlLkxhdExuZ0ID4EEDEiIKFWN1cnJlbnRfcm91dGVf", - "c2VnbWVudBgVIAEoCUID4EEDEkYKHWN1cnJlbnRfcm91dGVfc2VnbWVudF92", - "ZXJzaW9uGBEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EED", - "EloKHWN1cnJlbnRfcm91dGVfc2VnbWVudF90cmFmZmljGBwgASgLMi4ubWFw", - "cy5mbGVldGVuZ2luZS52MS5Db25zdW1hYmxlVHJhZmZpY1BvbHlsaW5lQgPg", - "QQMSTgolY3VycmVudF9yb3V0ZV9zZWdtZW50X3RyYWZmaWNfdmVyc2lvbhge", - "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJPCh9jdXJy", - "ZW50X3JvdXRlX3NlZ21lbnRfZW5kX3BvaW50GBggASgLMiEubWFwcy5mbGVl", - "dGVuZ2luZS52MS5UcmlwV2F5cG9pbnRCA+BBAxJDChlyZW1haW5pbmdfZGlz", - "dGFuY2VfbWV0ZXJzGAwgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFs", - "dWVCA+BBAxI+ChVldGFfdG9fZmlyc3Rfd2F5cG9pbnQYDSABKAsyGi5nb29n", - "bGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSSAogcmVtYWluaW5nX3RpbWVf", - "dG9fZmlyc3Rfd2F5cG9pbnQYGyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVy", - "YXRpb25CA+BBAxJEChtyZW1haW5pbmdfd2F5cG9pbnRzX3ZlcnNpb24YEyAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSSgohcmVtYWlu", - "aW5nX3dheXBvaW50c19yb3V0ZV92ZXJzaW9uGB0gASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLlRpbWVzdGFtcEID4EEDEiEKFG51bWJlcl9vZl9wYXNzZW5nZXJz", - "GAogASgFQgPgQQUSQAoNbGFzdF9sb2NhdGlvbhgLIAEoCzIkLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuVmVoaWNsZUxvY2F0aW9uQgPgQQMSJAoXbGFzdF9sb2Nh", - "dGlvbl9zbmFwcGFibGUYGiABKAhCA+BBAxIrCgR2aWV3GB8gASgOMh0ubWFw", - "cy5mbGVldGVuZ2luZS52MS5UcmlwVmlldzpH6kFECh9mbGVldGVuZ2luZS5n", - "b29nbGVhcGlzLmNvbS9UcmlwEiFwcm92aWRlcnMve3Byb3ZpZGVyfS90cmlw", - "cy97dHJpcH0inAEKDFN0b3BMb2NhdGlvbhInCgVwb2ludBgBIAEoCzITLmdv", - "b2dsZS50eXBlLkxhdExuZ0ID4EECEi0KCXRpbWVzdGFtcBgCIAEoCzIaLmdv", - "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNAoJc3RvcF90aW1lGAMgASgLMhou", - "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIFGAHgQQQq4gEKClRyaXBTdGF0", - "dXMSFwoTVU5LTk9XTl9UUklQX1NUQVRVUxAAEgcKA05FVxABEhUKEUVOUk9V", - "VEVfVE9fUElDS1VQEAISFQoRQVJSSVZFRF9BVF9QSUNLVVAQAxInCiNBUlJJ", - "VkVEX0FUX0lOVEVSTUVESUFURV9ERVNUSU5BVElPThAHEicKI0VOUk9VVEVf", - "VE9fSU5URVJNRURJQVRFX0RFU1RJTkFUSU9OEAgSFgoSRU5ST1VURV9UT19E", - "Uk9QT0ZGEAQSDAoIQ09NUExFVEUQBRIMCghDQU5DRUxFRBAGKn8KGUJpbGxp", - "bmdQbGF0Zm9ybUlkZW50aWZpZXISKwonQklMTElOR19QTEFURk9STV9JREVO", - "VElGSUVSX1VOU1BFQ0lGSUVEEAASCgoGU0VSVkVSEAESBwoDV0VCEAISCwoH", - "QU5EUk9JRBADEgcKA0lPUxAEEgoKBk9USEVSUxAFKkcKCFRyaXBWaWV3EhkK", - "FVRSSVBfVklFV19VTlNQRUNJRklFRBAAEgcKA1NESxABEhcKE0pPVVJORVlf", - "U0hBUklOR19WMVMQAkLRAQoeY29tLmdvb2dsZS5tYXBzLmZsZWV0ZW5naW5l", - "LnYxQgVUcmlwc1ABWkZjbG91ZC5nb29nbGUuY29tL2dvL21hcHMvZmxlZXRl", - "bmdpbmUvYXBpdjEvZmxlZXRlbmdpbmVwYjtmbGVldGVuZ2luZXBiogIDQ0ZF", - "qgIaR29vZ2xlLk1hcHMuRmxlZXRFbmdpbmUuVjHKAhpHb29nbGVcTWFwc1xG", - "bGVldEVuZ2luZVxWMeoCHUdvb2dsZTo6TWFwczo6RmxlZXRFbmdpbmU6OlYx", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor, global::Google.Maps.FleetEngine.V1.TrafficReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.LatlngReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Maps.FleetEngine.V1.TripStatus), typeof(global::Google.Maps.FleetEngine.V1.BillingPlatformIdentifier), typeof(global::Google.Maps.FleetEngine.V1.TripView), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.Trip), global::Google.Maps.FleetEngine.V1.Trip.Parser, new[]{ "Name", "VehicleId", "TripStatus", "TripType", "PickupPoint", "ActualPickupPoint", "ActualPickupArrivalPoint", "PickupTime", "IntermediateDestinations", "IntermediateDestinationsVersion", "IntermediateDestinationIndex", "ActualIntermediateDestinationArrivalPoints", "ActualIntermediateDestinations", "DropoffPoint", "ActualDropoffPoint", "DropoffTime", "RemainingWaypoints", "VehicleWaypoints", "Route", "CurrentRouteSegment", "CurrentRouteSegmentVersion", "CurrentRouteSegmentTraffic", "CurrentRouteSegmentTrafficVersion", "CurrentRouteSegmentEndPoint", "RemainingDistanceMeters", "EtaToFirstWaypoint", "RemainingTimeToFirstWaypoint", "RemainingWaypointsVersion", "RemainingWaypointsRouteVersion", "NumberOfPassengers", "LastLocation", "LastLocationSnappable", "View" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.StopLocation), global::Google.Maps.FleetEngine.V1.StopLocation.Parser, new[]{ "Point", "Timestamp", "StopTime" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - /// The status of a trip indicating its progression. - /// - public enum TripStatus { - /// - /// Default, used for unspecified or unrecognized trip status. - /// - [pbr::OriginalName("UNKNOWN_TRIP_STATUS")] UnknownTripStatus = 0, - /// - /// Newly created trip. - /// - [pbr::OriginalName("NEW")] New = 1, - /// - /// The driver is on their way to the pickup point. - /// - [pbr::OriginalName("ENROUTE_TO_PICKUP")] EnrouteToPickup = 2, - /// - /// The driver has arrived at the pickup point. - /// - [pbr::OriginalName("ARRIVED_AT_PICKUP")] ArrivedAtPickup = 3, - /// - /// The driver has arrived at an intermediate destination and is waiting for - /// the rider. - /// - [pbr::OriginalName("ARRIVED_AT_INTERMEDIATE_DESTINATION")] ArrivedAtIntermediateDestination = 7, - /// - /// The driver is on their way to an intermediate destination - /// (not the dropoff point). - /// - [pbr::OriginalName("ENROUTE_TO_INTERMEDIATE_DESTINATION")] EnrouteToIntermediateDestination = 8, - /// - /// The driver has picked up the rider and is on their way to the - /// next destination. - /// - [pbr::OriginalName("ENROUTE_TO_DROPOFF")] EnrouteToDropoff = 4, - /// - /// The rider has been dropped off and the trip is complete. - /// - [pbr::OriginalName("COMPLETE")] Complete = 5, - /// - /// The trip was canceled prior to pickup by the driver, rider, or - /// rideshare provider. - /// - [pbr::OriginalName("CANCELED")] Canceled = 6, - } - - /// - /// A set of values that indicate upon which platform the request was issued. - /// - public enum BillingPlatformIdentifier { - /// - /// Default. Used for unspecified platforms. - /// - [pbr::OriginalName("BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED")] Unspecified = 0, - /// - /// The platform is a client server. - /// - [pbr::OriginalName("SERVER")] Server = 1, - /// - /// The platform is a web browser. - /// - [pbr::OriginalName("WEB")] Web = 2, - /// - /// The platform is an Android mobile device. - /// - [pbr::OriginalName("ANDROID")] Android = 3, - /// - /// The platform is an IOS mobile device. - /// - [pbr::OriginalName("IOS")] Ios = 4, - /// - /// Other platforms that are not listed in this enumeration. - /// - [pbr::OriginalName("OTHERS")] Others = 5, - } - - /// - /// Selector for different sets of Trip fields in a `GetTrip` response. See - /// [AIP-157](https://google.aip.dev/157) for context. Additional views are - /// likely to be added. - /// - public enum TripView { - /// - /// The default value. For backwards-compatibility, the API will default to an - /// SDK view. To ensure stability and support, customers are - /// advised to select a `TripView` other than `SDK`. - /// - [pbr::OriginalName("TRIP_VIEW_UNSPECIFIED")] Unspecified = 0, - /// - /// Includes fields that may not be interpretable or supportable using - /// publicly available libraries. - /// - [pbr::OriginalName("SDK")] Sdk = 1, - /// - /// Trip fields are populated for the Journey Sharing use case. This view is - /// intended for server-to-server communications. - /// - [pbr::OriginalName("JOURNEY_SHARING_V1S")] JourneySharingV1S = 2, - } - - #endregion - - #region Messages - /// - /// Trip metadata. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Trip : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Trip()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripsReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Trip() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Trip(Trip other) : this() { - name_ = other.name_; - vehicleId_ = other.vehicleId_; - tripStatus_ = other.tripStatus_; - tripType_ = other.tripType_; - pickupPoint_ = other.pickupPoint_ != null ? other.pickupPoint_.Clone() : null; - actualPickupPoint_ = other.actualPickupPoint_ != null ? other.actualPickupPoint_.Clone() : null; - actualPickupArrivalPoint_ = other.actualPickupArrivalPoint_ != null ? other.actualPickupArrivalPoint_.Clone() : null; - pickupTime_ = other.pickupTime_ != null ? other.pickupTime_.Clone() : null; - intermediateDestinations_ = other.intermediateDestinations_.Clone(); - intermediateDestinationsVersion_ = other.intermediateDestinationsVersion_ != null ? other.intermediateDestinationsVersion_.Clone() : null; - intermediateDestinationIndex_ = other.intermediateDestinationIndex_; - actualIntermediateDestinationArrivalPoints_ = other.actualIntermediateDestinationArrivalPoints_.Clone(); - actualIntermediateDestinations_ = other.actualIntermediateDestinations_.Clone(); - dropoffPoint_ = other.dropoffPoint_ != null ? other.dropoffPoint_.Clone() : null; - actualDropoffPoint_ = other.actualDropoffPoint_ != null ? other.actualDropoffPoint_.Clone() : null; - dropoffTime_ = other.dropoffTime_ != null ? other.dropoffTime_.Clone() : null; - remainingWaypoints_ = other.remainingWaypoints_.Clone(); - vehicleWaypoints_ = other.vehicleWaypoints_.Clone(); - route_ = other.route_.Clone(); - currentRouteSegment_ = other.currentRouteSegment_; - currentRouteSegmentVersion_ = other.currentRouteSegmentVersion_ != null ? other.currentRouteSegmentVersion_.Clone() : null; - currentRouteSegmentTraffic_ = other.currentRouteSegmentTraffic_ != null ? other.currentRouteSegmentTraffic_.Clone() : null; - currentRouteSegmentTrafficVersion_ = other.currentRouteSegmentTrafficVersion_ != null ? other.currentRouteSegmentTrafficVersion_.Clone() : null; - currentRouteSegmentEndPoint_ = other.currentRouteSegmentEndPoint_ != null ? other.currentRouteSegmentEndPoint_.Clone() : null; - RemainingDistanceMeters = other.RemainingDistanceMeters; - etaToFirstWaypoint_ = other.etaToFirstWaypoint_ != null ? other.etaToFirstWaypoint_.Clone() : null; - remainingTimeToFirstWaypoint_ = other.remainingTimeToFirstWaypoint_ != null ? other.remainingTimeToFirstWaypoint_.Clone() : null; - remainingWaypointsVersion_ = other.remainingWaypointsVersion_ != null ? other.remainingWaypointsVersion_.Clone() : null; - remainingWaypointsRouteVersion_ = other.remainingWaypointsRouteVersion_ != null ? other.remainingWaypointsRouteVersion_.Clone() : null; - numberOfPassengers_ = other.numberOfPassengers_; - lastLocation_ = other.lastLocation_ != null ? other.lastLocation_.Clone() : null; - lastLocationSnappable_ = other.lastLocationSnappable_; - view_ = other.view_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Trip Clone() { - return new Trip(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Output only. In the format "providers/{provider}/trips/{trip}" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle_id" field. - public const int VehicleIdFieldNumber = 2; - private string vehicleId_ = ""; - /// - /// ID of the vehicle making this trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string VehicleId { - get { return vehicleId_; } - set { - vehicleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trip_status" field. - public const int TripStatusFieldNumber = 3; - private global::Google.Maps.FleetEngine.V1.TripStatus tripStatus_ = global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus; - /// - /// Current status of the trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripStatus TripStatus { - get { return tripStatus_; } - set { - tripStatus_ = value; - } - } - - /// Field number for the "trip_type" field. - public const int TripTypeFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.TripType tripType_ = global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType; - /// - /// The type of the trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripType TripType { - get { return tripType_; } - set { - tripType_ = value; - } - } - - /// Field number for the "pickup_point" field. - public const int PickupPointFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.TerminalLocation pickupPoint_; - /// - /// Location where customer indicates they will be picked up. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalLocation PickupPoint { - get { return pickupPoint_; } - set { - pickupPoint_ = value; - } - } - - /// Field number for the "actual_pickup_point" field. - public const int ActualPickupPointFieldNumber = 22; - private global::Google.Maps.FleetEngine.V1.StopLocation actualPickupPoint_; - /// - /// Input only. The actual location when and where customer was picked up. - /// This field is for provider to provide feedback on actual pickup - /// information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.StopLocation ActualPickupPoint { - get { return actualPickupPoint_; } - set { - actualPickupPoint_ = value; - } - } - - /// Field number for the "actual_pickup_arrival_point" field. - public const int ActualPickupArrivalPointFieldNumber = 32; - private global::Google.Maps.FleetEngine.V1.StopLocation actualPickupArrivalPoint_; - /// - /// Input only. The actual time and location of the driver arrival at - /// the pickup point. - /// This field is for provider to provide feedback on actual arrival - /// information at the pickup point. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.StopLocation ActualPickupArrivalPoint { - get { return actualPickupArrivalPoint_; } - set { - actualPickupArrivalPoint_ = value; - } - } - - /// Field number for the "pickup_time" field. - public const int PickupTimeFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Timestamp pickupTime_; - /// - /// Output only. Either the estimated future time when the rider(s) will be - /// picked up, or the actual time when they were picked up. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp PickupTime { - get { return pickupTime_; } - set { - pickupTime_ = value; - } - } - - /// Field number for the "intermediate_destinations" field. - public const int IntermediateDestinationsFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_intermediateDestinations_codec - = pb::FieldCodec.ForMessage(114, global::Google.Maps.FleetEngine.V1.TerminalLocation.Parser); - private readonly pbc::RepeatedField intermediateDestinations_ = new pbc::RepeatedField(); - /// - /// Intermediate stops in order that the trip requests (in addition - /// to pickup and dropoff). Initially this will not be supported for shared - /// trips. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IntermediateDestinations { - get { return intermediateDestinations_; } - } - - /// Field number for the "intermediate_destinations_version" field. - public const int IntermediateDestinationsVersionFieldNumber = 25; - private global::Google.Protobuf.WellKnownTypes.Timestamp intermediateDestinationsVersion_; - /// - /// Indicates the last time the `intermediate_destinations` was modified. - /// Your server should cache this value and pass it in `UpdateTripRequest` - /// when update `intermediate_destination_index` to ensure the - /// `intermediate_destinations` is not changed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp IntermediateDestinationsVersion { - get { return intermediateDestinationsVersion_; } - set { - intermediateDestinationsVersion_ = value; - } - } - - /// Field number for the "intermediate_destination_index" field. - public const int IntermediateDestinationIndexFieldNumber = 15; - private int intermediateDestinationIndex_; - /// - /// When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - /// between [0..N-1] indicating which intermediate destination the vehicle will - /// cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - /// number between [0..N-1] indicating which intermediate destination the - /// vehicle is at. The provider sets this value. If there are no - /// `intermediate_destinations`, this field is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int IntermediateDestinationIndex { - get { return intermediateDestinationIndex_; } - set { - intermediateDestinationIndex_ = value; - } - } - - /// Field number for the "actual_intermediate_destination_arrival_points" field. - public const int ActualIntermediateDestinationArrivalPointsFieldNumber = 33; - private static readonly pb::FieldCodec _repeated_actualIntermediateDestinationArrivalPoints_codec - = pb::FieldCodec.ForMessage(266, global::Google.Maps.FleetEngine.V1.StopLocation.Parser); - private readonly pbc::RepeatedField actualIntermediateDestinationArrivalPoints_ = new pbc::RepeatedField(); - /// - /// Input only. The actual time and location of the driver's arrival at - /// an intermediate destination. - /// This field is for provider to provide feedback on actual arrival - /// information at intermediate destinations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ActualIntermediateDestinationArrivalPoints { - get { return actualIntermediateDestinationArrivalPoints_; } - } - - /// Field number for the "actual_intermediate_destinations" field. - public const int ActualIntermediateDestinationsFieldNumber = 34; - private static readonly pb::FieldCodec _repeated_actualIntermediateDestinations_codec - = pb::FieldCodec.ForMessage(274, global::Google.Maps.FleetEngine.V1.StopLocation.Parser); - private readonly pbc::RepeatedField actualIntermediateDestinations_ = new pbc::RepeatedField(); - /// - /// Input only. The actual time and location when and where the customer was - /// picked up from an intermediate destination. This field is for provider to - /// provide feedback on actual pickup information at intermediate destinations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ActualIntermediateDestinations { - get { return actualIntermediateDestinations_; } - } - - /// Field number for the "dropoff_point" field. - public const int DropoffPointFieldNumber = 7; - private global::Google.Maps.FleetEngine.V1.TerminalLocation dropoffPoint_; - /// - /// Location where customer indicates they will be dropped off. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalLocation DropoffPoint { - get { return dropoffPoint_; } - set { - dropoffPoint_ = value; - } - } - - /// Field number for the "actual_dropoff_point" field. - public const int ActualDropoffPointFieldNumber = 23; - private global::Google.Maps.FleetEngine.V1.StopLocation actualDropoffPoint_; - /// - /// Input only. The actual time and location when and where customer was - /// dropped off. This field is for provider to provide feedback on actual - /// dropoff information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.StopLocation ActualDropoffPoint { - get { return actualDropoffPoint_; } - set { - actualDropoffPoint_ = value; - } - } - - /// Field number for the "dropoff_time" field. - public const int DropoffTimeFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Timestamp dropoffTime_; - /// - /// Output only. Either the estimated future time when the rider(s) will be - /// dropped off at the final destination, or the actual time when they were - /// dropped off. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp DropoffTime { - get { return dropoffTime_; } - set { - dropoffTime_ = value; - } - } - - /// Field number for the "remaining_waypoints" field. - public const int RemainingWaypointsFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_remainingWaypoints_codec - = pb::FieldCodec.ForMessage(130, global::Google.Maps.FleetEngine.V1.TripWaypoint.Parser); - private readonly pbc::RepeatedField remainingWaypoints_ = new pbc::RepeatedField(); - /// - /// Output only. The full path from the current location to the dropoff point, - /// inclusive. This path could include waypoints from other trips. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RemainingWaypoints { - get { return remainingWaypoints_; } - } - - /// Field number for the "vehicle_waypoints" field. - public const int VehicleWaypointsFieldNumber = 20; - private static readonly pb::FieldCodec _repeated_vehicleWaypoints_codec - = pb::FieldCodec.ForMessage(162, global::Google.Maps.FleetEngine.V1.TripWaypoint.Parser); - private readonly pbc::RepeatedField vehicleWaypoints_ = new pbc::RepeatedField(); - /// - /// This field supports manual ordering of the waypoints for the trip. It - /// contains all of the remaining waypoints for the assigned vehicle, as well - /// as the pickup and drop-off waypoints for this trip. If the trip hasn't been - /// assigned to a vehicle, then Fleet Engine ignores this field. For privacy - /// reasons, this field is only populated by the server on `UpdateTrip` and - /// `CreateTrip` calls, NOT on `GetTrip` calls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField VehicleWaypoints { - get { return vehicleWaypoints_; } - } - - /// Field number for the "route" field. - public const int RouteFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_route_codec - = pb::FieldCodec.ForMessage(74, global::Google.Type.LatLng.Parser); - private readonly pbc::RepeatedField route_ = new pbc::RepeatedField(); - /// - /// Output only. Anticipated route for this trip to the first entry in - /// remaining_waypoints. Note that the first waypoint may belong to a different - /// trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Route { - get { return route_; } - } - - /// Field number for the "current_route_segment" field. - public const int CurrentRouteSegmentFieldNumber = 21; - private string currentRouteSegment_ = ""; - /// - /// Output only. An encoded path to the next waypoint. - /// - /// Note: This field is intended only for use by the Driver SDK and Consumer - /// SDK. Decoding is not yet supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrentRouteSegment { - get { return currentRouteSegment_; } - set { - currentRouteSegment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "current_route_segment_version" field. - public const int CurrentRouteSegmentVersionFieldNumber = 17; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentVersion_; - /// - /// Output only. Indicates the last time the route was modified. - /// - /// Note: This field is intended only for use by the Driver SDK and Consumer - /// SDK. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentVersion { - get { return currentRouteSegmentVersion_; } - set { - currentRouteSegmentVersion_ = value; - } - } - - /// Field number for the "current_route_segment_traffic" field. - public const int CurrentRouteSegmentTrafficFieldNumber = 28; - private global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline currentRouteSegmentTraffic_; - /// - /// Output only. Indicates the traffic conditions along the - /// `current_route_segment` when they're available. - /// - /// Note: This field is intended only for use by the Driver SDK and Consumer - /// SDK. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline CurrentRouteSegmentTraffic { - get { return currentRouteSegmentTraffic_; } - set { - currentRouteSegmentTraffic_ = value; - } - } - - /// Field number for the "current_route_segment_traffic_version" field. - public const int CurrentRouteSegmentTrafficVersionFieldNumber = 30; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentTrafficVersion_; - /// - /// Output only. Indicates the last time the `current_route_segment_traffic` - /// was modified. - /// - /// Note: This field is intended only for use by the Driver SDK and Consumer - /// SDK. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentTrafficVersion { - get { return currentRouteSegmentTrafficVersion_; } - set { - currentRouteSegmentTrafficVersion_ = value; - } - } - - /// Field number for the "current_route_segment_end_point" field. - public const int CurrentRouteSegmentEndPointFieldNumber = 24; - private global::Google.Maps.FleetEngine.V1.TripWaypoint currentRouteSegmentEndPoint_; - /// - /// Output only. The waypoint where `current_route_segment` ends. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripWaypoint CurrentRouteSegmentEndPoint { - get { return currentRouteSegmentEndPoint_; } - set { - currentRouteSegmentEndPoint_ = value; - } - } - - /// Field number for the "remaining_distance_meters" field. - public const int RemainingDistanceMetersFieldNumber = 12; - private static readonly pb::FieldCodec _single_remainingDistanceMeters_codec = pb::FieldCodec.ForStructWrapper(98); - private int? remainingDistanceMeters_; - /// - /// Output only. The remaining driving distance in the `current_route_segment` - /// field. The value is unspecified if the trip is not assigned to a vehicle, - /// or the trip is completed or cancelled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? RemainingDistanceMeters { - get { return remainingDistanceMeters_; } - set { - remainingDistanceMeters_ = value; - } - } - - - /// Field number for the "eta_to_first_waypoint" field. - public const int EtaToFirstWaypointFieldNumber = 13; - private global::Google.Protobuf.WellKnownTypes.Timestamp etaToFirstWaypoint_; - /// - /// Output only. The ETA to the next waypoint (the first entry in the - /// `remaining_waypoints` field). The value is unspecified if the trip is not - /// assigned to a vehicle, or the trip is inactive (completed or cancelled). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp EtaToFirstWaypoint { - get { return etaToFirstWaypoint_; } - set { - etaToFirstWaypoint_ = value; - } - } - - /// Field number for the "remaining_time_to_first_waypoint" field. - public const int RemainingTimeToFirstWaypointFieldNumber = 27; - private global::Google.Protobuf.WellKnownTypes.Duration remainingTimeToFirstWaypoint_; - /// - /// Output only. The duration from when the Trip data is returned to the time - /// in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - /// not assigned to a vehicle, or the trip is inactive (completed or - /// cancelled). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration RemainingTimeToFirstWaypoint { - get { return remainingTimeToFirstWaypoint_; } - set { - remainingTimeToFirstWaypoint_ = value; - } - } - - /// Field number for the "remaining_waypoints_version" field. - public const int RemainingWaypointsVersionFieldNumber = 19; - private global::Google.Protobuf.WellKnownTypes.Timestamp remainingWaypointsVersion_; - /// - /// Output only. Indicates the last time that `remaining_waypoints` was changed - /// (a waypoint was added, removed, or changed). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RemainingWaypointsVersion { - get { return remainingWaypointsVersion_; } - set { - remainingWaypointsVersion_ = value; - } - } - - /// Field number for the "remaining_waypoints_route_version" field. - public const int RemainingWaypointsRouteVersionFieldNumber = 29; - private global::Google.Protobuf.WellKnownTypes.Timestamp remainingWaypointsRouteVersion_; - /// - /// Output only. Indicates the last time the - /// `remaining_waypoints.path_to_waypoint` and - /// `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - /// should cache this value and pass it in `GetTripRequest` to ensure the - /// paths and traffic for `remaining_waypoints` are only returned if updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RemainingWaypointsRouteVersion { - get { return remainingWaypointsRouteVersion_; } - set { - remainingWaypointsRouteVersion_ = value; - } - } - - /// Field number for the "number_of_passengers" field. - public const int NumberOfPassengersFieldNumber = 10; - private int numberOfPassengers_; - /// - /// Immutable. Indicates the number of passengers on this trip and does not - /// include the driver. A vehicle must have available capacity to be returned - /// in a `SearchVehicles` response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NumberOfPassengers { - get { return numberOfPassengers_; } - set { - numberOfPassengers_ = value; - } - } - - /// Field number for the "last_location" field. - public const int LastLocationFieldNumber = 11; - private global::Google.Maps.FleetEngine.V1.VehicleLocation lastLocation_; - /// - /// Output only. Indicates the last reported location of the vehicle along the - /// route. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VehicleLocation LastLocation { - get { return lastLocation_; } - set { - lastLocation_ = value; - } - } - - /// Field number for the "last_location_snappable" field. - public const int LastLocationSnappableFieldNumber = 26; - private bool lastLocationSnappable_; - /// - /// Output only. Indicates whether the vehicle's `last_location` can be snapped - /// to the current_route_segment. False if `last_location` or - /// `current_route_segment` doesn't exist. - /// It is computed by Fleet Engine. Any update from clients will be ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LastLocationSnappable { - get { return lastLocationSnappable_; } - set { - lastLocationSnappable_ = value; - } - } - - /// Field number for the "view" field. - public const int ViewFieldNumber = 31; - private global::Google.Maps.FleetEngine.V1.TripView view_ = global::Google.Maps.FleetEngine.V1.TripView.Unspecified; - /// - /// The subset of Trip fields that are populated and how they should be - /// interpreted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripView View { - get { return view_; } - set { - view_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Trip); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Trip other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (VehicleId != other.VehicleId) return false; - if (TripStatus != other.TripStatus) return false; - if (TripType != other.TripType) return false; - if (!object.Equals(PickupPoint, other.PickupPoint)) return false; - if (!object.Equals(ActualPickupPoint, other.ActualPickupPoint)) return false; - if (!object.Equals(ActualPickupArrivalPoint, other.ActualPickupArrivalPoint)) return false; - if (!object.Equals(PickupTime, other.PickupTime)) return false; - if(!intermediateDestinations_.Equals(other.intermediateDestinations_)) return false; - if (!object.Equals(IntermediateDestinationsVersion, other.IntermediateDestinationsVersion)) return false; - if (IntermediateDestinationIndex != other.IntermediateDestinationIndex) return false; - if(!actualIntermediateDestinationArrivalPoints_.Equals(other.actualIntermediateDestinationArrivalPoints_)) return false; - if(!actualIntermediateDestinations_.Equals(other.actualIntermediateDestinations_)) return false; - if (!object.Equals(DropoffPoint, other.DropoffPoint)) return false; - if (!object.Equals(ActualDropoffPoint, other.ActualDropoffPoint)) return false; - if (!object.Equals(DropoffTime, other.DropoffTime)) return false; - if(!remainingWaypoints_.Equals(other.remainingWaypoints_)) return false; - if(!vehicleWaypoints_.Equals(other.vehicleWaypoints_)) return false; - if(!route_.Equals(other.route_)) return false; - if (CurrentRouteSegment != other.CurrentRouteSegment) return false; - if (!object.Equals(CurrentRouteSegmentVersion, other.CurrentRouteSegmentVersion)) return false; - if (!object.Equals(CurrentRouteSegmentTraffic, other.CurrentRouteSegmentTraffic)) return false; - if (!object.Equals(CurrentRouteSegmentTrafficVersion, other.CurrentRouteSegmentTrafficVersion)) return false; - if (!object.Equals(CurrentRouteSegmentEndPoint, other.CurrentRouteSegmentEndPoint)) return false; - if (RemainingDistanceMeters != other.RemainingDistanceMeters) return false; - if (!object.Equals(EtaToFirstWaypoint, other.EtaToFirstWaypoint)) return false; - if (!object.Equals(RemainingTimeToFirstWaypoint, other.RemainingTimeToFirstWaypoint)) return false; - if (!object.Equals(RemainingWaypointsVersion, other.RemainingWaypointsVersion)) return false; - if (!object.Equals(RemainingWaypointsRouteVersion, other.RemainingWaypointsRouteVersion)) return false; - if (NumberOfPassengers != other.NumberOfPassengers) return false; - if (!object.Equals(LastLocation, other.LastLocation)) return false; - if (LastLocationSnappable != other.LastLocationSnappable) return false; - if (View != other.View) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (VehicleId.Length != 0) hash ^= VehicleId.GetHashCode(); - if (TripStatus != global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus) hash ^= TripStatus.GetHashCode(); - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) hash ^= TripType.GetHashCode(); - if (pickupPoint_ != null) hash ^= PickupPoint.GetHashCode(); - if (actualPickupPoint_ != null) hash ^= ActualPickupPoint.GetHashCode(); - if (actualPickupArrivalPoint_ != null) hash ^= ActualPickupArrivalPoint.GetHashCode(); - if (pickupTime_ != null) hash ^= PickupTime.GetHashCode(); - hash ^= intermediateDestinations_.GetHashCode(); - if (intermediateDestinationsVersion_ != null) hash ^= IntermediateDestinationsVersion.GetHashCode(); - if (IntermediateDestinationIndex != 0) hash ^= IntermediateDestinationIndex.GetHashCode(); - hash ^= actualIntermediateDestinationArrivalPoints_.GetHashCode(); - hash ^= actualIntermediateDestinations_.GetHashCode(); - if (dropoffPoint_ != null) hash ^= DropoffPoint.GetHashCode(); - if (actualDropoffPoint_ != null) hash ^= ActualDropoffPoint.GetHashCode(); - if (dropoffTime_ != null) hash ^= DropoffTime.GetHashCode(); - hash ^= remainingWaypoints_.GetHashCode(); - hash ^= vehicleWaypoints_.GetHashCode(); - hash ^= route_.GetHashCode(); - if (CurrentRouteSegment.Length != 0) hash ^= CurrentRouteSegment.GetHashCode(); - if (currentRouteSegmentVersion_ != null) hash ^= CurrentRouteSegmentVersion.GetHashCode(); - if (currentRouteSegmentTraffic_ != null) hash ^= CurrentRouteSegmentTraffic.GetHashCode(); - if (currentRouteSegmentTrafficVersion_ != null) hash ^= CurrentRouteSegmentTrafficVersion.GetHashCode(); - if (currentRouteSegmentEndPoint_ != null) hash ^= CurrentRouteSegmentEndPoint.GetHashCode(); - if (remainingDistanceMeters_ != null) hash ^= RemainingDistanceMeters.GetHashCode(); - if (etaToFirstWaypoint_ != null) hash ^= EtaToFirstWaypoint.GetHashCode(); - if (remainingTimeToFirstWaypoint_ != null) hash ^= RemainingTimeToFirstWaypoint.GetHashCode(); - if (remainingWaypointsVersion_ != null) hash ^= RemainingWaypointsVersion.GetHashCode(); - if (remainingWaypointsRouteVersion_ != null) hash ^= RemainingWaypointsRouteVersion.GetHashCode(); - if (NumberOfPassengers != 0) hash ^= NumberOfPassengers.GetHashCode(); - if (lastLocation_ != null) hash ^= LastLocation.GetHashCode(); - if (LastLocationSnappable != false) hash ^= LastLocationSnappable.GetHashCode(); - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) hash ^= View.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(VehicleId); - } - if (TripStatus != global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus) { - output.WriteRawTag(24); - output.WriteEnum((int) TripStatus); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - output.WriteRawTag(32); - output.WriteEnum((int) TripType); - } - if (pickupPoint_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PickupPoint); - } - if (pickupTime_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PickupTime); - } - if (dropoffPoint_ != null) { - output.WriteRawTag(58); - output.WriteMessage(DropoffPoint); - } - if (dropoffTime_ != null) { - output.WriteRawTag(66); - output.WriteMessage(DropoffTime); - } - route_.WriteTo(output, _repeated_route_codec); - if (NumberOfPassengers != 0) { - output.WriteRawTag(80); - output.WriteInt32(NumberOfPassengers); - } - if (lastLocation_ != null) { - output.WriteRawTag(90); - output.WriteMessage(LastLocation); - } - if (remainingDistanceMeters_ != null) { - _single_remainingDistanceMeters_codec.WriteTagAndValue(output, RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - output.WriteRawTag(106); - output.WriteMessage(EtaToFirstWaypoint); - } - intermediateDestinations_.WriteTo(output, _repeated_intermediateDestinations_codec); - if (IntermediateDestinationIndex != 0) { - output.WriteRawTag(120); - output.WriteInt32(IntermediateDestinationIndex); - } - remainingWaypoints_.WriteTo(output, _repeated_remainingWaypoints_codec); - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (remainingWaypointsVersion_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(RemainingWaypointsVersion); - } - vehicleWaypoints_.WriteTo(output, _repeated_vehicleWaypoints_codec); - if (CurrentRouteSegment.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(CurrentRouteSegment); - } - if (actualPickupPoint_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(ActualPickupPoint); - } - if (actualDropoffPoint_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(ActualDropoffPoint); - } - if (currentRouteSegmentEndPoint_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(CurrentRouteSegmentEndPoint); - } - if (intermediateDestinationsVersion_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(IntermediateDestinationsVersion); - } - if (LastLocationSnappable != false) { - output.WriteRawTag(208, 1); - output.WriteBool(LastLocationSnappable); - } - if (remainingTimeToFirstWaypoint_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(RemainingTimeToFirstWaypoint); - } - if (currentRouteSegmentTraffic_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(CurrentRouteSegmentTraffic); - } - if (remainingWaypointsRouteVersion_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(RemainingWaypointsRouteVersion); - } - if (currentRouteSegmentTrafficVersion_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CurrentRouteSegmentTrafficVersion); - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - output.WriteRawTag(248, 1); - output.WriteEnum((int) View); - } - if (actualPickupArrivalPoint_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(ActualPickupArrivalPoint); - } - actualIntermediateDestinationArrivalPoints_.WriteTo(output, _repeated_actualIntermediateDestinationArrivalPoints_codec); - actualIntermediateDestinations_.WriteTo(output, _repeated_actualIntermediateDestinations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(VehicleId); - } - if (TripStatus != global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus) { - output.WriteRawTag(24); - output.WriteEnum((int) TripStatus); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - output.WriteRawTag(32); - output.WriteEnum((int) TripType); - } - if (pickupPoint_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PickupPoint); - } - if (pickupTime_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PickupTime); - } - if (dropoffPoint_ != null) { - output.WriteRawTag(58); - output.WriteMessage(DropoffPoint); - } - if (dropoffTime_ != null) { - output.WriteRawTag(66); - output.WriteMessage(DropoffTime); - } - route_.WriteTo(ref output, _repeated_route_codec); - if (NumberOfPassengers != 0) { - output.WriteRawTag(80); - output.WriteInt32(NumberOfPassengers); - } - if (lastLocation_ != null) { - output.WriteRawTag(90); - output.WriteMessage(LastLocation); - } - if (remainingDistanceMeters_ != null) { - _single_remainingDistanceMeters_codec.WriteTagAndValue(ref output, RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - output.WriteRawTag(106); - output.WriteMessage(EtaToFirstWaypoint); - } - intermediateDestinations_.WriteTo(ref output, _repeated_intermediateDestinations_codec); - if (IntermediateDestinationIndex != 0) { - output.WriteRawTag(120); - output.WriteInt32(IntermediateDestinationIndex); - } - remainingWaypoints_.WriteTo(ref output, _repeated_remainingWaypoints_codec); - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (remainingWaypointsVersion_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(RemainingWaypointsVersion); - } - vehicleWaypoints_.WriteTo(ref output, _repeated_vehicleWaypoints_codec); - if (CurrentRouteSegment.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(CurrentRouteSegment); - } - if (actualPickupPoint_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(ActualPickupPoint); - } - if (actualDropoffPoint_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(ActualDropoffPoint); - } - if (currentRouteSegmentEndPoint_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(CurrentRouteSegmentEndPoint); - } - if (intermediateDestinationsVersion_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(IntermediateDestinationsVersion); - } - if (LastLocationSnappable != false) { - output.WriteRawTag(208, 1); - output.WriteBool(LastLocationSnappable); - } - if (remainingTimeToFirstWaypoint_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(RemainingTimeToFirstWaypoint); - } - if (currentRouteSegmentTraffic_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(CurrentRouteSegmentTraffic); - } - if (remainingWaypointsRouteVersion_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(RemainingWaypointsRouteVersion); - } - if (currentRouteSegmentTrafficVersion_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CurrentRouteSegmentTrafficVersion); - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - output.WriteRawTag(248, 1); - output.WriteEnum((int) View); - } - if (actualPickupArrivalPoint_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(ActualPickupArrivalPoint); - } - actualIntermediateDestinationArrivalPoints_.WriteTo(ref output, _repeated_actualIntermediateDestinationArrivalPoints_codec); - actualIntermediateDestinations_.WriteTo(ref output, _repeated_actualIntermediateDestinations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (VehicleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(VehicleId); - } - if (TripStatus != global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TripStatus); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TripType); - } - if (pickupPoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PickupPoint); - } - if (actualPickupPoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActualPickupPoint); - } - if (actualPickupArrivalPoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActualPickupArrivalPoint); - } - if (pickupTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PickupTime); - } - size += intermediateDestinations_.CalculateSize(_repeated_intermediateDestinations_codec); - if (intermediateDestinationsVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(IntermediateDestinationsVersion); - } - if (IntermediateDestinationIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntermediateDestinationIndex); - } - size += actualIntermediateDestinationArrivalPoints_.CalculateSize(_repeated_actualIntermediateDestinationArrivalPoints_codec); - size += actualIntermediateDestinations_.CalculateSize(_repeated_actualIntermediateDestinations_codec); - if (dropoffPoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropoffPoint); - } - if (actualDropoffPoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ActualDropoffPoint); - } - if (dropoffTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropoffTime); - } - size += remainingWaypoints_.CalculateSize(_repeated_remainingWaypoints_codec); - size += vehicleWaypoints_.CalculateSize(_repeated_vehicleWaypoints_codec); - size += route_.CalculateSize(_repeated_route_codec); - if (CurrentRouteSegment.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrentRouteSegment); - } - if (currentRouteSegmentVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentVersion); - } - if (currentRouteSegmentTraffic_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentTraffic); - } - if (currentRouteSegmentTrafficVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentTrafficVersion); - } - if (currentRouteSegmentEndPoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentEndPoint); - } - if (remainingDistanceMeters_ != null) { - size += _single_remainingDistanceMeters_codec.CalculateSizeWithTag(RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EtaToFirstWaypoint); - } - if (remainingTimeToFirstWaypoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemainingTimeToFirstWaypoint); - } - if (remainingWaypointsVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemainingWaypointsVersion); - } - if (remainingWaypointsRouteVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemainingWaypointsRouteVersion); - } - if (NumberOfPassengers != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumberOfPassengers); - } - if (lastLocation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastLocation); - } - if (LastLocationSnappable != false) { - size += 2 + 1; - } - if (View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) View); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Trip other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.VehicleId.Length != 0) { - VehicleId = other.VehicleId; - } - if (other.TripStatus != global::Google.Maps.FleetEngine.V1.TripStatus.UnknownTripStatus) { - TripStatus = other.TripStatus; - } - if (other.TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - TripType = other.TripType; - } - if (other.pickupPoint_ != null) { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - PickupPoint.MergeFrom(other.PickupPoint); - } - if (other.actualPickupPoint_ != null) { - if (actualPickupPoint_ == null) { - ActualPickupPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - ActualPickupPoint.MergeFrom(other.ActualPickupPoint); - } - if (other.actualPickupArrivalPoint_ != null) { - if (actualPickupArrivalPoint_ == null) { - ActualPickupArrivalPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - ActualPickupArrivalPoint.MergeFrom(other.ActualPickupArrivalPoint); - } - if (other.pickupTime_ != null) { - if (pickupTime_ == null) { - PickupTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - PickupTime.MergeFrom(other.PickupTime); - } - intermediateDestinations_.Add(other.intermediateDestinations_); - if (other.intermediateDestinationsVersion_ != null) { - if (intermediateDestinationsVersion_ == null) { - IntermediateDestinationsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - IntermediateDestinationsVersion.MergeFrom(other.IntermediateDestinationsVersion); - } - if (other.IntermediateDestinationIndex != 0) { - IntermediateDestinationIndex = other.IntermediateDestinationIndex; - } - actualIntermediateDestinationArrivalPoints_.Add(other.actualIntermediateDestinationArrivalPoints_); - actualIntermediateDestinations_.Add(other.actualIntermediateDestinations_); - if (other.dropoffPoint_ != null) { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - DropoffPoint.MergeFrom(other.DropoffPoint); - } - if (other.actualDropoffPoint_ != null) { - if (actualDropoffPoint_ == null) { - ActualDropoffPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - ActualDropoffPoint.MergeFrom(other.ActualDropoffPoint); - } - if (other.dropoffTime_ != null) { - if (dropoffTime_ == null) { - DropoffTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - DropoffTime.MergeFrom(other.DropoffTime); - } - remainingWaypoints_.Add(other.remainingWaypoints_); - vehicleWaypoints_.Add(other.vehicleWaypoints_); - route_.Add(other.route_); - if (other.CurrentRouteSegment.Length != 0) { - CurrentRouteSegment = other.CurrentRouteSegment; - } - if (other.currentRouteSegmentVersion_ != null) { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentVersion.MergeFrom(other.CurrentRouteSegmentVersion); - } - if (other.currentRouteSegmentTraffic_ != null) { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - CurrentRouteSegmentTraffic.MergeFrom(other.CurrentRouteSegmentTraffic); - } - if (other.currentRouteSegmentTrafficVersion_ != null) { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentTrafficVersion.MergeFrom(other.CurrentRouteSegmentTrafficVersion); - } - if (other.currentRouteSegmentEndPoint_ != null) { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - CurrentRouteSegmentEndPoint.MergeFrom(other.CurrentRouteSegmentEndPoint); - } - if (other.remainingDistanceMeters_ != null) { - if (remainingDistanceMeters_ == null || other.RemainingDistanceMeters != 0) { - RemainingDistanceMeters = other.RemainingDistanceMeters; - } - } - if (other.etaToFirstWaypoint_ != null) { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - EtaToFirstWaypoint.MergeFrom(other.EtaToFirstWaypoint); - } - if (other.remainingTimeToFirstWaypoint_ != null) { - if (remainingTimeToFirstWaypoint_ == null) { - RemainingTimeToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - RemainingTimeToFirstWaypoint.MergeFrom(other.RemainingTimeToFirstWaypoint); - } - if (other.remainingWaypointsVersion_ != null) { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RemainingWaypointsVersion.MergeFrom(other.RemainingWaypointsVersion); - } - if (other.remainingWaypointsRouteVersion_ != null) { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RemainingWaypointsRouteVersion.MergeFrom(other.RemainingWaypointsRouteVersion); - } - if (other.NumberOfPassengers != 0) { - NumberOfPassengers = other.NumberOfPassengers; - } - if (other.lastLocation_ != null) { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - LastLocation.MergeFrom(other.LastLocation); - } - if (other.LastLocationSnappable != false) { - LastLocationSnappable = other.LastLocationSnappable; - } - if (other.View != global::Google.Maps.FleetEngine.V1.TripView.Unspecified) { - View = other.View; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - VehicleId = input.ReadString(); - break; - } - case 24: { - TripStatus = (global::Google.Maps.FleetEngine.V1.TripStatus) input.ReadEnum(); - break; - } - case 32: { - TripType = (global::Google.Maps.FleetEngine.V1.TripType) input.ReadEnum(); - break; - } - case 42: { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(PickupPoint); - break; - } - case 50: { - if (pickupTime_ == null) { - PickupTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(PickupTime); - break; - } - case 58: { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(DropoffPoint); - break; - } - case 66: { - if (dropoffTime_ == null) { - DropoffTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(DropoffTime); - break; - } - case 74: { - route_.AddEntriesFrom(input, _repeated_route_codec); - break; - } - case 80: { - NumberOfPassengers = input.ReadInt32(); - break; - } - case 90: { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - input.ReadMessage(LastLocation); - break; - } - case 98: { - int? value = _single_remainingDistanceMeters_codec.Read(input); - if (remainingDistanceMeters_ == null || value != 0) { - RemainingDistanceMeters = value; - } - break; - } - case 106: { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(EtaToFirstWaypoint); - break; - } - case 114: { - intermediateDestinations_.AddEntriesFrom(input, _repeated_intermediateDestinations_codec); - break; - } - case 120: { - IntermediateDestinationIndex = input.ReadInt32(); - break; - } - case 130: { - remainingWaypoints_.AddEntriesFrom(input, _repeated_remainingWaypoints_codec); - break; - } - case 138: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 154: { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsVersion); - break; - } - case 162: { - vehicleWaypoints_.AddEntriesFrom(input, _repeated_vehicleWaypoints_codec); - break; - } - case 170: { - CurrentRouteSegment = input.ReadString(); - break; - } - case 178: { - if (actualPickupPoint_ == null) { - ActualPickupPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualPickupPoint); - break; - } - case 186: { - if (actualDropoffPoint_ == null) { - ActualDropoffPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualDropoffPoint); - break; - } - case 194: { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - input.ReadMessage(CurrentRouteSegmentEndPoint); - break; - } - case 202: { - if (intermediateDestinationsVersion_ == null) { - IntermediateDestinationsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(IntermediateDestinationsVersion); - break; - } - case 208: { - LastLocationSnappable = input.ReadBool(); - break; - } - case 218: { - if (remainingTimeToFirstWaypoint_ == null) { - RemainingTimeToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RemainingTimeToFirstWaypoint); - break; - } - case 226: { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - input.ReadMessage(CurrentRouteSegmentTraffic); - break; - } - case 234: { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsRouteVersion); - break; - } - case 242: { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentTrafficVersion); - break; - } - case 248: { - View = (global::Google.Maps.FleetEngine.V1.TripView) input.ReadEnum(); - break; - } - case 258: { - if (actualPickupArrivalPoint_ == null) { - ActualPickupArrivalPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualPickupArrivalPoint); - break; - } - case 266: { - actualIntermediateDestinationArrivalPoints_.AddEntriesFrom(input, _repeated_actualIntermediateDestinationArrivalPoints_codec); - break; - } - case 274: { - actualIntermediateDestinations_.AddEntriesFrom(input, _repeated_actualIntermediateDestinations_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - VehicleId = input.ReadString(); - break; - } - case 24: { - TripStatus = (global::Google.Maps.FleetEngine.V1.TripStatus) input.ReadEnum(); - break; - } - case 32: { - TripType = (global::Google.Maps.FleetEngine.V1.TripType) input.ReadEnum(); - break; - } - case 42: { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(PickupPoint); - break; - } - case 50: { - if (pickupTime_ == null) { - PickupTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(PickupTime); - break; - } - case 58: { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(DropoffPoint); - break; - } - case 66: { - if (dropoffTime_ == null) { - DropoffTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(DropoffTime); - break; - } - case 74: { - route_.AddEntriesFrom(ref input, _repeated_route_codec); - break; - } - case 80: { - NumberOfPassengers = input.ReadInt32(); - break; - } - case 90: { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - input.ReadMessage(LastLocation); - break; - } - case 98: { - int? value = _single_remainingDistanceMeters_codec.Read(ref input); - if (remainingDistanceMeters_ == null || value != 0) { - RemainingDistanceMeters = value; - } - break; - } - case 106: { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(EtaToFirstWaypoint); - break; - } - case 114: { - intermediateDestinations_.AddEntriesFrom(ref input, _repeated_intermediateDestinations_codec); - break; - } - case 120: { - IntermediateDestinationIndex = input.ReadInt32(); - break; - } - case 130: { - remainingWaypoints_.AddEntriesFrom(ref input, _repeated_remainingWaypoints_codec); - break; - } - case 138: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 154: { - if (remainingWaypointsVersion_ == null) { - RemainingWaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsVersion); - break; - } - case 162: { - vehicleWaypoints_.AddEntriesFrom(ref input, _repeated_vehicleWaypoints_codec); - break; - } - case 170: { - CurrentRouteSegment = input.ReadString(); - break; - } - case 178: { - if (actualPickupPoint_ == null) { - ActualPickupPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualPickupPoint); - break; - } - case 186: { - if (actualDropoffPoint_ == null) { - ActualDropoffPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualDropoffPoint); - break; - } - case 194: { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - input.ReadMessage(CurrentRouteSegmentEndPoint); - break; - } - case 202: { - if (intermediateDestinationsVersion_ == null) { - IntermediateDestinationsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(IntermediateDestinationsVersion); - break; - } - case 208: { - LastLocationSnappable = input.ReadBool(); - break; - } - case 218: { - if (remainingTimeToFirstWaypoint_ == null) { - RemainingTimeToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RemainingTimeToFirstWaypoint); - break; - } - case 226: { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.ConsumableTrafficPolyline(); - } - input.ReadMessage(CurrentRouteSegmentTraffic); - break; - } - case 234: { - if (remainingWaypointsRouteVersion_ == null) { - RemainingWaypointsRouteVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RemainingWaypointsRouteVersion); - break; - } - case 242: { - if (currentRouteSegmentTrafficVersion_ == null) { - CurrentRouteSegmentTrafficVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentTrafficVersion); - break; - } - case 248: { - View = (global::Google.Maps.FleetEngine.V1.TripView) input.ReadEnum(); - break; - } - case 258: { - if (actualPickupArrivalPoint_ == null) { - ActualPickupArrivalPoint = new global::Google.Maps.FleetEngine.V1.StopLocation(); - } - input.ReadMessage(ActualPickupArrivalPoint); - break; - } - case 266: { - actualIntermediateDestinationArrivalPoints_.AddEntriesFrom(ref input, _repeated_actualIntermediateDestinationArrivalPoints_codec); - break; - } - case 274: { - actualIntermediateDestinations_.AddEntriesFrom(ref input, _repeated_actualIntermediateDestinations_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The actual location where a stop (pickup/dropoff) happened. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StopLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StopLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.TripsReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StopLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StopLocation(StopLocation other) : this() { - point_ = other.point_ != null ? other.point_.Clone() : null; - timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null; - stopTime_ = other.stopTime_ != null ? other.stopTime_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StopLocation Clone() { - return new StopLocation(this); - } - - /// Field number for the "point" field. - public const int PointFieldNumber = 1; - private global::Google.Type.LatLng point_; - /// - /// Required. Denotes the actual location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng Point { - get { return point_; } - set { - point_ = value; - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_; - /// - /// Indicates when the stop happened. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp { - get { return timestamp_; } - set { - timestamp_ = value; - } - } - - /// Field number for the "stop_time" field. - public const int StopTimeFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp stopTime_; - /// - /// Input only. Deprecated. Use the timestamp field. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp StopTime { - get { return stopTime_; } - set { - stopTime_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StopLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StopLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Point, other.Point)) return false; - if (!object.Equals(Timestamp, other.Timestamp)) return false; - if (!object.Equals(StopTime, other.StopTime)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (point_ != null) hash ^= Point.GetHashCode(); - if (timestamp_ != null) hash ^= Timestamp.GetHashCode(); - if (stopTime_ != null) hash ^= StopTime.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (point_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Point); - } - if (timestamp_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Timestamp); - } - if (stopTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(StopTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (point_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Point); - } - if (timestamp_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Timestamp); - } - if (stopTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(StopTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (point_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point); - } - if (timestamp_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp); - } - if (stopTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StopTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StopLocation other) { - if (other == null) { - return; - } - if (other.point_ != null) { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - Point.MergeFrom(other.Point); - } - if (other.timestamp_ != null) { - if (timestamp_ == null) { - Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Timestamp.MergeFrom(other.Timestamp); - } - if (other.stopTime_ != null) { - if (stopTime_ == null) { - StopTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - StopTime.MergeFrom(other.StopTime); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - input.ReadMessage(Point); - break; - } - case 18: { - if (timestamp_ == null) { - Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Timestamp); - break; - } - case 26: { - if (stopTime_ == null) { - StopTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(StopTime); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (point_ == null) { - Point = new global::Google.Type.LatLng(); - } - input.ReadMessage(Point); - break; - } - case 18: { - if (timestamp_ == null) { - Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Timestamp); - break; - } - case 26: { - if (stopTime_ == null) { - StopTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(StopTime); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripsResourceNames.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripsResourceNames.g.cs deleted file mode 100755 index 8b533c91bb22..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/TripsResourceNames.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gmfv = Google.Maps.FleetEngine.V1; -using sys = System; - -namespace Google.Maps.FleetEngine.V1 -{ - /// Resource name for the Trip resource. - public sealed partial class TripName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern providers/{provider}/trips/{trip}. - ProviderTrip = 1, - } - - private static gax::PathTemplate s_providerTrip = new gax::PathTemplate("providers/{provider}/trips/{trip}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static TripName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new TripName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern providers/{provider}/trips/{trip}. - /// - /// The Provider ID. Must not be null or empty. - /// The Trip ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static TripName FromProviderTrip(string providerId, string tripId) => - new TripName(ResourceNameType.ProviderTrip, providerId: gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), tripId: gax::GaxPreconditions.CheckNotNullOrEmpty(tripId, nameof(tripId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// providers/{provider}/trips/{trip}. - /// - /// The Provider ID. Must not be null or empty. - /// The Trip ID. Must not be null or empty. - /// - /// The string representation of this with pattern providers/{provider}/trips/{trip} - /// . - /// - public static string Format(string providerId, string tripId) => FormatProviderTrip(providerId, tripId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// providers/{provider}/trips/{trip}. - /// - /// The Provider ID. Must not be null or empty. - /// The Trip ID. Must not be null or empty. - /// - /// The string representation of this with pattern providers/{provider}/trips/{trip} - /// . - /// - public static string FormatProviderTrip(string providerId, string tripId) => - s_providerTrip.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(tripId, nameof(tripId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// providers/{provider}/trips/{trip} - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static TripName Parse(string tripName) => Parse(tripName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// providers/{provider}/trips/{trip} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static TripName Parse(string tripName, bool allowUnparsed) => - TryParse(tripName, allowUnparsed, out TripName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// Tries to parse the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// providers/{provider}/trips/{trip} - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string tripName, out TripName result) => TryParse(tripName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// providers/{provider}/trips/{trip} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string tripName, bool allowUnparsed, out TripName result) - { - gax::GaxPreconditions.CheckNotNull(tripName, nameof(tripName)); - gax::TemplatedResourceName resourceName; - if (s_providerTrip.TryParseName(tripName, out resourceName)) - { - result = FromProviderTrip(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(tripName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private TripName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string providerId = null, string tripId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ProviderId = providerId; - TripId = tripId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// providers/{provider}/trips/{trip} - /// - /// The Provider ID. Must not be null or empty. - /// The Trip ID. Must not be null or empty. - public TripName(string providerId, string tripId) : this(ResourceNameType.ProviderTrip, providerId: gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), tripId: gax::GaxPreconditions.CheckNotNullOrEmpty(tripId, nameof(tripId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Provider ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string ProviderId { get; } - - /// - /// The Trip ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TripId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.ProviderTrip: return s_providerTrip.Expand(ProviderId, TripId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as TripName); - - /// - public bool Equals(TripName other) => ToString() == other?.ToString(); - - /// Determines whether two specified resource names have the same value. - /// The first resource name to compare, or null. - /// The second resource name to compare, or null. - /// - /// true if the value of is the same as the value of ; otherwise, - /// false. - /// - public static bool operator ==(TripName a, TripName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// Determines whether two specified resource names have different values. - /// The first resource name to compare, or null. - /// The second resource name to compare, or null. - /// - /// true if the value of is different from the value of ; otherwise, - /// false. - /// - public static bool operator !=(TripName a, TripName b) => !(a == b); - } - - public partial class Trip - { - /// - /// -typed view over the resource name property. - /// - public gmfv::TripName TripName - { - get => string.IsNullOrEmpty(Name) ? null : gmfv::TripName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApi.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApi.g.cs deleted file mode 100755 index c7d686eb3bae..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApi.g.cs +++ /dev/null @@ -1,5188 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/vehicle_api.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/vehicle_api.proto - public static partial class VehicleApiReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/vehicle_api.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static VehicleApiReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cixnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS92ZWhpY2xlX2FwaS5wcm90", - "bxITbWFwcy5mbGVldGVuZ2luZS52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9u", - "cy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkv", - "ZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJv", - "dG8aGGdvb2dsZS9hcGkvcm91dGluZy5wcm90bxoeZ29vZ2xlL2dlby90eXBl", - "L3ZpZXdwb3J0LnByb3RvGixnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS9m", - "bGVldGVuZ2luZS5wcm90bxonZ29vZ2xlL21hcHMvZmxlZXRlbmdpbmUvdjEv", - "aGVhZGVyLnByb3RvGilnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS92ZWhp", - "Y2xlcy5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGiBn", - "b29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxofZ29vZ2xlL3Byb3Rv", - "YnVmL3RpbWVzdGFtcC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJz", - "LnByb3RvGhhnb29nbGUvdHlwZS9sYXRsbmcucHJvdG8irAEKFENyZWF0ZVZl", - "aGljbGVSZXF1ZXN0EjIKBmhlYWRlchgBIAEoCzIiLm1hcHMuZmxlZXRlbmdp", - "bmUudjEuUmVxdWVzdEhlYWRlchITCgZwYXJlbnQYAyABKAlCA+BBAhIXCgp2", - "ZWhpY2xlX2lkGAQgASgJQgPgQQISMgoHdmVoaWNsZRgFIAEoCzIcLm1hcHMu", - "ZmxlZXRlbmdpbmUudjEuVmVoaWNsZUID4EECIvsBChFHZXRWZWhpY2xlUmVx", - "dWVzdBIyCgZoZWFkZXIYASABKAsyIi5tYXBzLmZsZWV0ZW5naW5lLnYxLlJl", - "cXVlc3RIZWFkZXISOAoEbmFtZRgDIAEoCUIq4EEC+kEkCiJmbGVldGVuZ2lu", - "ZS5nb29nbGVhcGlzLmNvbS9WZWhpY2xlEkEKHWN1cnJlbnRfcm91dGVfc2Vn", - "bWVudF92ZXJzaW9uGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", - "cBI1ChF3YXlwb2ludHNfdmVyc2lvbhgFIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXAixwEKFFVwZGF0ZVZlaGljbGVSZXF1ZXN0EjIKBmhlYWRl", - "chgBIAEoCzIiLm1hcHMuZmxlZXRlbmdpbmUudjEuUmVxdWVzdEhlYWRlchIR", - "CgRuYW1lGAMgASgJQgPgQQISMgoHdmVoaWNsZRgEIAEoCzIcLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuVmVoaWNsZUID4EECEjQKC3VwZGF0ZV9tYXNrGAUgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EECIqcBCh5VcGRhdGVW", - "ZWhpY2xlQXR0cmlidXRlc1JlcXVlc3QSMgoGaGVhZGVyGAEgASgLMiIubWFw", - "cy5mbGVldGVuZ2luZS52MS5SZXF1ZXN0SGVhZGVyEhEKBG5hbWUYAyABKAlC", - "A+BBAhI+CgphdHRyaWJ1dGVzGAQgAygLMiUubWFwcy5mbGVldGVuZ2luZS52", - "MS5WZWhpY2xlQXR0cmlidXRlQgPgQQIiYQofVXBkYXRlVmVoaWNsZUF0dHJp", - "YnV0ZXNSZXNwb25zZRI+CgphdHRyaWJ1dGVzGAEgAygLMiUubWFwcy5mbGVl", - "dGVuZ2luZS52MS5WZWhpY2xlQXR0cmlidXRlQgPgQQIixgkKFVNlYXJjaFZl", - "aGljbGVzUmVxdWVzdBIyCgZoZWFkZXIYASABKAsyIi5tYXBzLmZsZWV0ZW5n", - "aW5lLnYxLlJlcXVlc3RIZWFkZXISEwoGcGFyZW50GAMgASgJQgPgQQISQAoM", - "cGlja3VwX3BvaW50GAQgASgLMiUubWFwcy5mbGVldGVuZ2luZS52MS5UZXJt", - "aW5hbExvY2F0aW9uQgPgQQISPAoNZHJvcG9mZl9wb2ludBgFIAEoCzIlLm1h", - "cHMuZmxlZXRlbmdpbmUudjEuVGVybWluYWxMb2NhdGlvbhIhChRwaWNrdXBf", - "cmFkaXVzX21ldGVycxgGIAEoBUID4EECEhIKBWNvdW50GAcgASgFQgPgQQIS", - "HQoQbWluaW11bV9jYXBhY2l0eRgIIAEoBUID4EECEjYKCnRyaXBfdHlwZXMY", - "CSADKA4yHS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBUeXBlQgPgQQISNAoR", - "bWF4aW11bV9zdGFsZW5lc3MYCiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVy", - "YXRpb24SRAoNdmVoaWNsZV90eXBlcxgOIAMoCzIoLm1hcHMuZmxlZXRlbmdp", - "bmUudjEuVmVoaWNsZS5WZWhpY2xlVHlwZUID4EECEkIKE3JlcXVpcmVkX2F0", - "dHJpYnV0ZXMYDCADKAsyJS5tYXBzLmZsZWV0ZW5naW5lLnYxLlZlaGljbGVB", - "dHRyaWJ1dGUSTQoacmVxdWlyZWRfb25lX29mX2F0dHJpYnV0ZXMYDyADKAsy", - "KS5tYXBzLmZsZWV0ZW5naW5lLnYxLlZlaGljbGVBdHRyaWJ1dGVMaXN0ElEK", - "HnJlcXVpcmVkX29uZV9vZl9hdHRyaWJ1dGVfc2V0cxgUIAMoCzIpLm1hcHMu", - "ZmxlZXRlbmdpbmUudjEuVmVoaWNsZUF0dHJpYnV0ZUxpc3QSUwoIb3JkZXJf", - "YnkYDSABKA4yPC5tYXBzLmZsZWV0ZW5naW5lLnYxLlNlYXJjaFZlaGljbGVz", - "UmVxdWVzdC5WZWhpY2xlTWF0Y2hPcmRlckID4EECEhwKFGluY2x1ZGVfYmFj", - "a190b19iYWNrGBIgASgIEg8KB3RyaXBfaWQYEyABKAkSXQoVY3VycmVudF90", - "cmlwc19wcmVzZW50GBUgASgOMj4ubWFwcy5mbGVldGVuZ2luZS52MS5TZWFy", - "Y2hWZWhpY2xlc1JlcXVlc3QuQ3VycmVudFRyaXBzUHJlc2VudBITCgZmaWx0", - "ZXIYFiABKAlCA+BBASKqAQoRVmVoaWNsZU1hdGNoT3JkZXISHwobVU5LTk9X", - "Tl9WRUhJQ0xFX01BVENIX09SREVSEAASFAoQUElDS1VQX1BPSU5UX0VUQRAB", - "EhkKFVBJQ0tVUF9QT0lOVF9ESVNUQU5DRRACEhUKEURST1BPRkZfUE9JTlRf", - "RVRBEAMSIgoeUElDS1VQX1BPSU5UX1NUUkFJR0hUX0RJU1RBTkNFEAQSCAoE", - "Q09TVBAFIk8KE0N1cnJlbnRUcmlwc1ByZXNlbnQSJQohQ1VSUkVOVF9UUklQ", - "U19QUkVTRU5UX1VOU1BFQ0lGSUVEEAASCAoETk9ORRABEgcKA0FOWRACIkwK", - "FlNlYXJjaFZlaGljbGVzUmVzcG9uc2USMgoHbWF0Y2hlcxgBIAMoCzIhLm1h", - "cHMuZmxlZXRlbmdpbmUudjEuVmVoaWNsZU1hdGNoIv4EChNMaXN0VmVoaWNs", - "ZXNSZXF1ZXN0EjIKBmhlYWRlchgMIAEoCzIiLm1hcHMuZmxlZXRlbmdpbmUu", - "djEuUmVxdWVzdEhlYWRlchITCgZwYXJlbnQYASABKAlCA+BBAhIRCglwYWdl", - "X3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCRI1ChBtaW5pbXVtX2Nh", - "cGFjaXR5GAYgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMQoK", - "dHJpcF90eXBlcxgHIAMoDjIdLm1hcHMuZmxlZXRlbmdpbmUudjEuVHJpcFR5", - "cGUSNAoRbWF4aW11bV9zdGFsZW5lc3MYCCABKAsyGS5nb29nbGUucHJvdG9i", - "dWYuRHVyYXRpb24SVwoXdmVoaWNsZV90eXBlX2NhdGVnb3JpZXMYCSADKA4y", - "MS5tYXBzLmZsZWV0ZW5naW5lLnYxLlZlaGljbGUuVmVoaWNsZVR5cGUuQ2F0", - "ZWdvcnlCA+BBAhIbChNyZXF1aXJlZF9hdHRyaWJ1dGVzGAogAygJEiIKGnJl", - "cXVpcmVkX29uZV9vZl9hdHRyaWJ1dGVzGA0gAygJEiYKHnJlcXVpcmVkX29u", - "ZV9vZl9hdHRyaWJ1dGVfc2V0cxgPIAMoCRI4Cg12ZWhpY2xlX3N0YXRlGAsg", - "ASgOMiEubWFwcy5mbGVldGVuZ2luZS52MS5WZWhpY2xlU3RhdGUSFAoMb25f", - "dHJpcF9vbmx5GA4gASgIEhMKBmZpbHRlchgQIAEoCUID4EEBEjAKCHZpZXdw", - "b3J0GBEgASgLMhkuZ29vZ2xlLmdlby50eXBlLlZpZXdwb3J0QgPgQQEieAoU", - "TGlzdFZlaGljbGVzUmVzcG9uc2USLgoIdmVoaWNsZXMYASADKAsyHC5tYXBz", - "LmZsZWV0ZW5naW5lLnYxLlZlaGljbGUSFwoPbmV4dF9wYWdlX3Rva2VuGAIg", - "ASgJEhcKCnRvdGFsX3NpemUYAyABKANCA+BBAiJZCghXYXlwb2ludBIkCgds", - "YXRfbG5nGAEgASgLMhMuZ29vZ2xlLnR5cGUuTGF0TG5nEicKA2V0YRgCIAEo", - "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi/gYKDFZlaGljbGVNYXRj", - "aBIyCgd2ZWhpY2xlGAEgASgLMhwubWFwcy5mbGVldGVuZ2luZS52MS5WZWhp", - "Y2xlQgPgQQISNgoSdmVoaWNsZV9waWNrdXBfZXRhGAIgASgLMhouZ29vZ2xl", - "LnByb3RvYnVmLlRpbWVzdGFtcBJDCh52ZWhpY2xlX3BpY2t1cF9kaXN0YW5j", - "ZV9tZXRlcnMYAyABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRJW", - "Cix2ZWhpY2xlX3BpY2t1cF9zdHJhaWdodF9saW5lX2Rpc3RhbmNlX21ldGVy", - "cxgLIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlQgPgQQISNwoT", - "dmVoaWNsZV9kcm9wb2ZmX2V0YRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", - "aW1lc3RhbXASTgopdmVoaWNsZV9waWNrdXBfdG9fZHJvcG9mZl9kaXN0YW5j", - "ZV9tZXRlcnMYBSABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRI1", - "Cgl0cmlwX3R5cGUYBiABKA4yHS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBU", - "eXBlQgPgQQISPgoXdmVoaWNsZV90cmlwc193YXlwb2ludHMYByADKAsyHS5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLldheXBvaW50Ek4KEnZlaGljbGVfbWF0Y2hf", - "dHlwZRgIIAEoDjIyLm1hcHMuZmxlZXRlbmdpbmUudjEuVmVoaWNsZU1hdGNo", - "LlZlaGljbGVNYXRjaFR5cGUSWgoUcmVxdWVzdGVkX29yZGVyZWRfYnkYCSAB", - "KA4yPC5tYXBzLmZsZWV0ZW5naW5lLnYxLlNlYXJjaFZlaGljbGVzUmVxdWVz", - "dC5WZWhpY2xlTWF0Y2hPcmRlchJQCgpvcmRlcmVkX2J5GAogASgOMjwubWFw", - "cy5mbGVldGVuZ2luZS52MS5TZWFyY2hWZWhpY2xlc1JlcXVlc3QuVmVoaWNs", - "ZU1hdGNoT3JkZXIiZwoQVmVoaWNsZU1hdGNoVHlwZRILCgdVTktOT1dOEAAS", - "DQoJRVhDTFVTSVZFEAESEAoMQkFDS19UT19CQUNLEAISCwoHQ0FSUE9PTBAD", - "EhgKFENBUlBPT0xfQkFDS19UT19CQUNLEAQiUQoUVmVoaWNsZUF0dHJpYnV0", - "ZUxpc3QSOQoKYXR0cmlidXRlcxgBIAMoCzIlLm1hcHMuZmxlZXRlbmdpbmUu", - "djEuVmVoaWNsZUF0dHJpYnV0ZTLyCQoOVmVoaWNsZVNlcnZpY2UStwEKDUNy", - "ZWF0ZVZlaGljbGUSKS5tYXBzLmZsZWV0ZW5naW5lLnYxLkNyZWF0ZVZlaGlj", - "bGVSZXF1ZXN0GhwubWFwcy5mbGVldGVuZ2luZS52MS5WZWhpY2xlIl2C0+ST", - "AiwiIS92MS97cGFyZW50PXByb3ZpZGVycy8qfS92ZWhpY2xlczoHdmVoaWNs", - "ZYrT5JMCJRIjCgZwYXJlbnQSGXtwcm92aWRlcl9pZD1wcm92aWRlcnMvKn0S", - "pgEKCkdldFZlaGljbGUSJi5tYXBzLmZsZWV0ZW5naW5lLnYxLkdldFZlaGlj", - "bGVSZXF1ZXN0GhwubWFwcy5mbGVldGVuZ2luZS52MS5WZWhpY2xlIlKC0+ST", - "AiMSIS92MS97bmFtZT1wcm92aWRlcnMvKi92ZWhpY2xlcy8qfYrT5JMCIxIh", - "CgRuYW1lEhl7cHJvdmlkZXJfaWQ9cHJvdmlkZXJzLyp9ErUBCg1VcGRhdGVW", - "ZWhpY2xlEikubWFwcy5mbGVldGVuZ2luZS52MS5VcGRhdGVWZWhpY2xlUmVx", - "dWVzdBocLm1hcHMuZmxlZXRlbmdpbmUudjEuVmVoaWNsZSJbgtPkkwIsGiEv", - "djEve25hbWU9cHJvdmlkZXJzLyovdmVoaWNsZXMvKn06B3ZlaGljbGWK0+ST", - "AiMSIQoEbmFtZRIZe3Byb3ZpZGVyX2lkPXByb3ZpZGVycy8qfRLsAQoXVXBk", - "YXRlVmVoaWNsZUF0dHJpYnV0ZXMSMy5tYXBzLmZsZWV0ZW5naW5lLnYxLlVw", - "ZGF0ZVZlaGljbGVBdHRyaWJ1dGVzUmVxdWVzdBo0Lm1hcHMuZmxlZXRlbmdp", - "bmUudjEuVXBkYXRlVmVoaWNsZUF0dHJpYnV0ZXNSZXNwb25zZSJmgtPkkwI3", - "IjIvdjEve25hbWU9cHJvdmlkZXJzLyovdmVoaWNsZXMvKn06dXBkYXRlQXR0", - "cmlidXRlczoBKorT5JMCIxIhCgRuYW1lEhl7cHJvdmlkZXJfaWQ9cHJvdmlk", - "ZXJzLyp9ErkBCgxMaXN0VmVoaWNsZXMSKC5tYXBzLmZsZWV0ZW5naW5lLnYx", - "Lkxpc3RWZWhpY2xlc1JlcXVlc3QaKS5tYXBzLmZsZWV0ZW5naW5lLnYxLkxp", - "c3RWZWhpY2xlc1Jlc3BvbnNlIlSC0+STAiMSIS92MS97cGFyZW50PXByb3Zp", - "ZGVycy8qfS92ZWhpY2xlc4rT5JMCJRIjCgZwYXJlbnQSGXtwcm92aWRlcl9p", - "ZD1wcm92aWRlcnMvKn0SyQEKDlNlYXJjaFZlaGljbGVzEioubWFwcy5mbGVl", - "dGVuZ2luZS52MS5TZWFyY2hWZWhpY2xlc1JlcXVlc3QaKy5tYXBzLmZsZWV0", - "ZW5naW5lLnYxLlNlYXJjaFZlaGljbGVzUmVzcG9uc2UiXoLT5JMCLSIoL3Yx", - "L3twYXJlbnQ9cHJvdmlkZXJzLyp9L3ZlaGljbGVzOnNlYXJjaDoBKorT5JMC", - "JRIjCgZwYXJlbnQSGXtwcm92aWRlcl9pZD1wcm92aWRlcnMvKn0aTspBGmZs", - "ZWV0ZW5naW5lLmdvb2dsZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xl", - "YXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9ybULWAQoeY29tLmdvb2dsZS5t", - "YXBzLmZsZWV0ZW5naW5lLnYxQgpWZWhpY2xlQXBpUAFaRmNsb3VkLmdvb2ds", - "ZS5jb20vZ28vbWFwcy9mbGVldGVuZ2luZS9hcGl2MS9mbGVldGVuZ2luZXBi", - "O2ZsZWV0ZW5naW5lcGKiAgNDRkWqAhpHb29nbGUuTWFwcy5GbGVldEVuZ2lu", - "ZS5WMcoCGkdvb2dsZVxNYXBzXEZsZWV0RW5naW5lXFYx6gIdR29vZ2xlOjpN", - "YXBzOjpGbGVldEVuZ2luZTo6VjFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Api.RoutingReflection.Descriptor, global::Google.Geo.Type.ViewportReflection.Descriptor, global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor, global::Google.Maps.FleetEngine.V1.HeaderReflection.Descriptor, global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.LatlngReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest), global::Google.Maps.FleetEngine.V1.CreateVehicleRequest.Parser, new[]{ "Header", "Parent", "VehicleId", "Vehicle" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.GetVehicleRequest), global::Google.Maps.FleetEngine.V1.GetVehicleRequest.Parser, new[]{ "Header", "Name", "CurrentRouteSegmentVersion", "WaypointsVersion" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest), global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest.Parser, new[]{ "Header", "Name", "Vehicle", "UpdateMask" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest), global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest.Parser, new[]{ "Header", "Name", "Attributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse), global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse.Parser, new[]{ "Attributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest), global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Parser, new[]{ "Header", "Parent", "PickupPoint", "DropoffPoint", "PickupRadiusMeters", "Count", "MinimumCapacity", "TripTypes", "MaximumStaleness", "VehicleTypes", "RequiredAttributes", "RequiredOneOfAttributes", "RequiredOneOfAttributeSets", "OrderBy", "IncludeBackToBack", "TripId", "CurrentTripsPresent", "Filter" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder), typeof(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.SearchVehiclesResponse), global::Google.Maps.FleetEngine.V1.SearchVehiclesResponse.Parser, new[]{ "Matches" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest), global::Google.Maps.FleetEngine.V1.ListVehiclesRequest.Parser, new[]{ "Header", "Parent", "PageSize", "PageToken", "MinimumCapacity", "TripTypes", "MaximumStaleness", "VehicleTypeCategories", "RequiredAttributes", "RequiredOneOfAttributes", "RequiredOneOfAttributeSets", "VehicleState", "OnTripOnly", "Filter", "Viewport" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.ListVehiclesResponse), global::Google.Maps.FleetEngine.V1.ListVehiclesResponse.Parser, new[]{ "Vehicles", "NextPageToken", "TotalSize" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.Waypoint), global::Google.Maps.FleetEngine.V1.Waypoint.Parser, new[]{ "LatLng", "Eta" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VehicleMatch), global::Google.Maps.FleetEngine.V1.VehicleMatch.Parser, new[]{ "Vehicle", "VehiclePickupEta", "VehiclePickupDistanceMeters", "VehiclePickupStraightLineDistanceMeters", "VehicleDropoffEta", "VehiclePickupToDropoffDistanceMeters", "TripType", "VehicleTripsWaypoints", "VehicleMatchType", "RequestedOrderedBy", "OrderedBy" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VehicleAttributeList), global::Google.Maps.FleetEngine.V1.VehicleAttributeList.Parser, new[]{ "Attributes" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// `CreateVehicle` request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class CreateVehicleRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateVehicleRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateVehicleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateVehicleRequest(CreateVehicleRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - parent_ = other.parent_; - vehicleId_ = other.vehicleId_; - vehicle_ = other.vehicle_ != null ? other.vehicle_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateVehicleRequest Clone() { - return new CreateVehicleRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 3; - private string parent_ = ""; - /// - /// Required. Must be in the format `providers/{provider}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle_id" field. - public const int VehicleIdFieldNumber = 4; - private string vehicleId_ = ""; - /// - /// Required. Unique Vehicle ID. - /// Subject to the following restrictions: - /// - /// * Must be a valid Unicode string. - /// * Limited to a maximum length of 64 characters. - /// * Normalized according to [Unicode Normalization Form C] - /// (http://www.unicode.org/reports/tr15/). - /// * May not contain any of the following ASCII characters: '/', ':', '?', - /// ',', or '#'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string VehicleId { - get { return vehicleId_; } - set { - vehicleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle" field. - public const int VehicleFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.Vehicle vehicle_; - /// - /// Required. The Vehicle entity to create. When creating a Vehicle, the - /// following fields are required: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// When creating a Vehicle, the following fields are ignored: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Vehicle Vehicle { - get { return vehicle_; } - set { - vehicle_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateVehicleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateVehicleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Parent != other.Parent) return false; - if (VehicleId != other.VehicleId) return false; - if (!object.Equals(Vehicle, other.Vehicle)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (VehicleId.Length != 0) hash ^= VehicleId.GetHashCode(); - if (vehicle_ != null) hash ^= Vehicle.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(VehicleId); - } - if (vehicle_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Vehicle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (VehicleId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(VehicleId); - } - if (vehicle_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Vehicle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (VehicleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(VehicleId); - } - if (vehicle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Vehicle); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateVehicleRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.VehicleId.Length != 0) { - VehicleId = other.VehicleId; - } - if (other.vehicle_ != null) { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - Vehicle.MergeFrom(other.Vehicle); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - VehicleId = input.ReadString(); - break; - } - case 42: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - VehicleId = input.ReadString(); - break; - } - case 42: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - } - } - } - #endif - - } - - /// - /// `GetVehicle` request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetVehicleRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVehicleRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetVehicleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetVehicleRequest(GetVehicleRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - name_ = other.name_; - currentRouteSegmentVersion_ = other.currentRouteSegmentVersion_ != null ? other.currentRouteSegmentVersion_.Clone() : null; - waypointsVersion_ = other.waypointsVersion_ != null ? other.waypointsVersion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetVehicleRequest Clone() { - return new GetVehicleRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Must be in the format - /// `providers/{provider}/vehicles/{vehicle}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "current_route_segment_version" field. - public const int CurrentRouteSegmentVersionFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which - /// `Vehicle.current_route_segment` is retrieved. - /// If the route is unchanged since this timestamp, the `current_route_segment` - /// field is not set in the response. If a minimum is unspecified, the - /// `current_route_segment` is always retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentVersion { - get { return currentRouteSegmentVersion_; } - set { - currentRouteSegmentVersion_ = value; - } - } - - /// Field number for the "waypoints_version" field. - public const int WaypointsVersionFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.Timestamp waypointsVersion_; - /// - /// Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - /// data is retrieved. If the waypoints are unchanged since this timestamp, the - /// `vehicle.waypoints` data is not set in the response. If this field is - /// unspecified, `vehicle.waypoints` is always retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp WaypointsVersion { - get { return waypointsVersion_; } - set { - waypointsVersion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetVehicleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetVehicleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Name != other.Name) return false; - if (!object.Equals(CurrentRouteSegmentVersion, other.CurrentRouteSegmentVersion)) return false; - if (!object.Equals(WaypointsVersion, other.WaypointsVersion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (currentRouteSegmentVersion_ != null) hash ^= CurrentRouteSegmentVersion.GetHashCode(); - if (waypointsVersion_ != null) hash ^= WaypointsVersion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(34); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (waypointsVersion_ != null) { - output.WriteRawTag(42); - output.WriteMessage(WaypointsVersion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(34); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (waypointsVersion_ != null) { - output.WriteRawTag(42); - output.WriteMessage(WaypointsVersion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (currentRouteSegmentVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentVersion); - } - if (waypointsVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WaypointsVersion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetVehicleRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.currentRouteSegmentVersion_ != null) { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentVersion.MergeFrom(other.CurrentRouteSegmentVersion); - } - if (other.waypointsVersion_ != null) { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - WaypointsVersion.MergeFrom(other.WaypointsVersion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 42: { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(WaypointsVersion); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 42: { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(WaypointsVersion); - break; - } - } - } - } - #endif - - } - - /// - /// `UpdateVehicle request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateVehicleRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateVehicleRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleRequest(UpdateVehicleRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - name_ = other.name_; - vehicle_ = other.vehicle_ != null ? other.vehicle_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleRequest Clone() { - return new UpdateVehicleRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Must be in the format - /// `providers/{provider}/vehicles/{vehicle}`. - /// The {provider} must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle" field. - public const int VehicleFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.Vehicle vehicle_; - /// - /// Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - /// the following fields may not be updated as they are managed by the - /// server. - /// - /// * `available_capacity` - /// * `current_route_segment_version` - /// * `current_trips` - /// * `name` - /// * `waypoints_version` - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. - /// - /// Likewise, the `waypoints` field can be updated, but must contain all the - /// waypoints currently on the vehicle, and no other waypoints. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Vehicle Vehicle { - get { return vehicle_; } - set { - vehicle_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// Required. A field mask indicating which fields of the `Vehicle` to update. - /// At least one field name must be provided. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateVehicleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateVehicleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Name != other.Name) return false; - if (!object.Equals(Vehicle, other.Vehicle)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (vehicle_ != null) hash ^= Vehicle.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (vehicle_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Vehicle); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (vehicle_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Vehicle); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (vehicle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Vehicle); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateVehicleRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.vehicle_ != null) { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - Vehicle.MergeFrom(other.Vehicle); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// `UpdateVehicleAttributes` request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateVehicleAttributesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateVehicleAttributesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesRequest(UpdateVehicleAttributesRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - name_ = other.name_; - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesRequest Clone() { - return new UpdateVehicleAttributesRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Must be in the format `providers/{provider}/vehicles/{vehicle}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(34, global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// Required. The vehicle attributes to update. Unmentioned attributes are not - /// altered or removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateVehicleAttributesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateVehicleAttributesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Name != other.Name) return false; - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateVehicleAttributesRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// `UpdateVehicleAttributes` response message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateVehicleAttributesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateVehicleAttributesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesResponse(UpdateVehicleAttributesResponse other) : this() { - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateVehicleAttributesResponse Clone() { - return new UpdateVehicleAttributesResponse(this); - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// Required. The updated full list of vehicle attributes, including new, - /// altered, and untouched attributes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateVehicleAttributesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateVehicleAttributesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateVehicleAttributesResponse other) { - if (other == null) { - return; - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// `SearchVehicles` request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SearchVehiclesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchVehiclesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesRequest(SearchVehiclesRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - parent_ = other.parent_; - pickupPoint_ = other.pickupPoint_ != null ? other.pickupPoint_.Clone() : null; - dropoffPoint_ = other.dropoffPoint_ != null ? other.dropoffPoint_.Clone() : null; - pickupRadiusMeters_ = other.pickupRadiusMeters_; - count_ = other.count_; - minimumCapacity_ = other.minimumCapacity_; - tripTypes_ = other.tripTypes_.Clone(); - maximumStaleness_ = other.maximumStaleness_ != null ? other.maximumStaleness_.Clone() : null; - vehicleTypes_ = other.vehicleTypes_.Clone(); - requiredAttributes_ = other.requiredAttributes_.Clone(); - requiredOneOfAttributes_ = other.requiredOneOfAttributes_.Clone(); - requiredOneOfAttributeSets_ = other.requiredOneOfAttributeSets_.Clone(); - orderBy_ = other.orderBy_; - includeBackToBack_ = other.includeBackToBack_; - tripId_ = other.tripId_; - currentTripsPresent_ = other.currentTripsPresent_; - filter_ = other.filter_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesRequest Clone() { - return new SearchVehiclesRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 3; - private string parent_ = ""; - /// - /// Required. Must be in the format `providers/{provider}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "pickup_point" field. - public const int PickupPointFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.TerminalLocation pickupPoint_; - /// - /// Required. The pickup point to search near. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalLocation PickupPoint { - get { return pickupPoint_; } - set { - pickupPoint_ = value; - } - } - - /// Field number for the "dropoff_point" field. - public const int DropoffPointFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.TerminalLocation dropoffPoint_; - /// - /// The customer's intended dropoff location. The field is required if - /// `trip_types` contains `TripType.SHARED`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TerminalLocation DropoffPoint { - get { return dropoffPoint_; } - set { - dropoffPoint_ = value; - } - } - - /// Field number for the "pickup_radius_meters" field. - public const int PickupRadiusMetersFieldNumber = 6; - private int pickupRadiusMeters_; - /// - /// Required. Defines the vehicle search radius around the pickup point. Only - /// vehicles within the search radius will be returned. Value must be between - /// 400 and 10000 meters (inclusive). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PickupRadiusMeters { - get { return pickupRadiusMeters_; } - set { - pickupRadiusMeters_ = value; - } - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 7; - private int count_; - /// - /// Required. Specifies the maximum number of vehicles to return. The value - /// must be between 1 and 50 (inclusive). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Count { - get { return count_; } - set { - count_ = value; - } - } - - /// Field number for the "minimum_capacity" field. - public const int MinimumCapacityFieldNumber = 8; - private int minimumCapacity_; - /// - /// Required. Specifies the number of passengers being considered for a trip. - /// The value must be greater than or equal to one. The driver is not - /// considered in the capacity value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MinimumCapacity { - get { return minimumCapacity_; } - set { - minimumCapacity_ = value; - } - } - - /// Field number for the "trip_types" field. - public const int TripTypesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_tripTypes_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Maps.FleetEngine.V1.TripType) x); - private readonly pbc::RepeatedField tripTypes_ = new pbc::RepeatedField(); - /// - /// Required. Represents the type of proposed trip. Must include exactly one - /// type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - /// those vehicles that can support that trip type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TripTypes { - get { return tripTypes_; } - } - - /// Field number for the "maximum_staleness" field. - public const int MaximumStalenessFieldNumber = 10; - private global::Google.Protobuf.WellKnownTypes.Duration maximumStaleness_; - /// - /// Restricts the search to only those vehicles that have sent location updates - /// to Fleet Engine within the specified duration. Stationary vehicles still - /// transmitting their locations are not considered stale. If this field is not - /// set, the server uses five minutes as the default value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration MaximumStaleness { - get { return maximumStaleness_; } - set { - maximumStaleness_ = value; - } - } - - /// Field number for the "vehicle_types" field. - public const int VehicleTypesFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_vehicleTypes_codec - = pb::FieldCodec.ForMessage(114, global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Parser); - private readonly pbc::RepeatedField vehicleTypes_ = new pbc::RepeatedField(); - /// - /// Required. Restricts the search to vehicles with one of the specified types. - /// At least one vehicle type must be specified. VehicleTypes with a category - /// of `UNKNOWN` are not allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField VehicleTypes { - get { return vehicleTypes_; } - } - - /// Field number for the "required_attributes" field. - public const int RequiredAttributesFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_requiredAttributes_codec - = pb::FieldCodec.ForMessage(98, global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser); - private readonly pbc::RepeatedField requiredAttributes_ = new pbc::RepeatedField(); - /// - /// Callers can form complex logical operations using any combination of the - /// `required_attributes`, `required_one_of_attributes`, and - /// `required_one_of_attribute_sets` fields. - /// - /// `required_attributes` is a list; `required_one_of_attributes` uses a - /// message which allows a list of lists. In combination, the two fields allow - /// the composition of this expression: - /// - /// ``` - /// (required_attributes[0] AND required_attributes[1] AND ...) - /// AND - /// (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - /// ...) - /// AND - /// (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - /// ...) - /// ``` - /// - /// Restricts the search to only those vehicles with the specified attributes. - /// This field is a conjunction/AND operation. A max of 50 required_attributes - /// is allowed. This matches the maximum number of attributes allowed on a - /// vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredAttributes { - get { return requiredAttributes_; } - } - - /// Field number for the "required_one_of_attributes" field. - public const int RequiredOneOfAttributesFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_requiredOneOfAttributes_codec - = pb::FieldCodec.ForMessage(122, global::Google.Maps.FleetEngine.V1.VehicleAttributeList.Parser); - private readonly pbc::RepeatedField requiredOneOfAttributes_ = new pbc::RepeatedField(); - /// - /// Restricts the search to only those vehicles with at least one of - /// the specified attributes in each `VehicleAttributeList`. Within each - /// list, a vehicle must match at least one of the attributes. This field is an - /// inclusive disjunction/OR operation in each `VehicleAttributeList` and a - /// conjunction/AND operation across the collection of `VehicleAttributeList`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredOneOfAttributes { - get { return requiredOneOfAttributes_; } - } - - /// Field number for the "required_one_of_attribute_sets" field. - public const int RequiredOneOfAttributeSetsFieldNumber = 20; - private static readonly pb::FieldCodec _repeated_requiredOneOfAttributeSets_codec - = pb::FieldCodec.ForMessage(162, global::Google.Maps.FleetEngine.V1.VehicleAttributeList.Parser); - private readonly pbc::RepeatedField requiredOneOfAttributeSets_ = new pbc::RepeatedField(); - /// - /// `required_one_of_attribute_sets` provides additional functionality. - /// - /// Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - /// uses a message which allows a list of lists, allowing expressions such as - /// this one: - /// - /// ``` - /// (required_attributes[0] AND required_attributes[1] AND ...) - /// AND - /// ( - /// (required_one_of_attribute_sets[0][0] AND - /// required_one_of_attribute_sets[0][1] AND - /// ...) - /// OR - /// (required_one_of_attribute_sets[1][0] AND - /// required_one_of_attribute_sets[1][1] AND - /// ...) - /// ) - /// ``` - /// - /// Restricts the search to only those vehicles with all the attributes in a - /// `VehicleAttributeList`. Within each list, a - /// vehicle must match all of the attributes. This field is a conjunction/AND - /// operation in each `VehicleAttributeList` and inclusive disjunction/OR - /// operation across the collection of `VehicleAttributeList`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredOneOfAttributeSets { - get { return requiredOneOfAttributeSets_; } - } - - /// Field number for the "order_by" field. - public const int OrderByFieldNumber = 13; - private global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder orderBy_ = global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder; - /// - /// Required. Specifies the desired ordering criterion for results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder OrderBy { - get { return orderBy_; } - set { - orderBy_ = value; - } - } - - /// Field number for the "include_back_to_back" field. - public const int IncludeBackToBackFieldNumber = 18; - private bool includeBackToBack_; - /// - /// This indicates if vehicles with a single active trip are eligible for this - /// search. This field is only used when `current_trips_present` is - /// unspecified. When `current_trips_present` is unspecified and this field - /// is `false`, vehicles with assigned trips are excluded from the search - /// results. When `current_trips_present` is unspecified and this field is - /// `true`, search results can include vehicles with one active trip that has a - /// status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - /// this field cannot be set to true. - /// - /// The default value is `false`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeBackToBack { - get { return includeBackToBack_; } - set { - includeBackToBack_ = value; - } - } - - /// Field number for the "trip_id" field. - public const int TripIdFieldNumber = 19; - private string tripId_ = ""; - /// - /// Indicates the trip associated with this `SearchVehicleRequest`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TripId { - get { return tripId_; } - set { - tripId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "current_trips_present" field. - public const int CurrentTripsPresentFieldNumber = 21; - private global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent currentTripsPresent_ = global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified; - /// - /// This indicates if vehicles with active trips are eligible for this search. - /// This must be set to something other than - /// `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent CurrentTripsPresent { - get { return currentTripsPresent_; } - set { - currentTripsPresent_ = value; - } - } - - /// Field number for the "filter" field. - public const int FilterFieldNumber = 22; - private string filter_ = ""; - /// - /// Optional. A filter query to apply when searching vehicles. See - /// http://aip.dev/160 for examples of the filter syntax. - /// - /// This field is designed to replace the `required_attributes`, - /// `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - /// If a non-empty value is specified here, the following fields must be empty: - /// `required_attributes`, `required_one_of_attributes`, and - /// `required_one_of_attributes_sets`. - /// - /// This filter functions as an AND clause with other constraints, - /// such as `minimum_capacity` or `vehicle_types`. - /// - /// Note that the only queries supported are on vehicle attributes (for - /// example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND - /// attributes.<key2> = <value2>`). The maximum number of restrictions allowed - /// in a filter query is 50. - /// - /// Also, all attributes are stored as strings, so the only supported - /// comparisons against attributes are string comparisons. In order to compare - /// against number or boolean values, the values must be explicitly quoted to - /// be treated as strings (for example, `attributes.<key> = "10"` or - /// `attributes.<key> = "true"`). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Filter { - get { return filter_; } - set { - filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchVehiclesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchVehiclesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Parent != other.Parent) return false; - if (!object.Equals(PickupPoint, other.PickupPoint)) return false; - if (!object.Equals(DropoffPoint, other.DropoffPoint)) return false; - if (PickupRadiusMeters != other.PickupRadiusMeters) return false; - if (Count != other.Count) return false; - if (MinimumCapacity != other.MinimumCapacity) return false; - if(!tripTypes_.Equals(other.tripTypes_)) return false; - if (!object.Equals(MaximumStaleness, other.MaximumStaleness)) return false; - if(!vehicleTypes_.Equals(other.vehicleTypes_)) return false; - if(!requiredAttributes_.Equals(other.requiredAttributes_)) return false; - if(!requiredOneOfAttributes_.Equals(other.requiredOneOfAttributes_)) return false; - if(!requiredOneOfAttributeSets_.Equals(other.requiredOneOfAttributeSets_)) return false; - if (OrderBy != other.OrderBy) return false; - if (IncludeBackToBack != other.IncludeBackToBack) return false; - if (TripId != other.TripId) return false; - if (CurrentTripsPresent != other.CurrentTripsPresent) return false; - if (Filter != other.Filter) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (pickupPoint_ != null) hash ^= PickupPoint.GetHashCode(); - if (dropoffPoint_ != null) hash ^= DropoffPoint.GetHashCode(); - if (PickupRadiusMeters != 0) hash ^= PickupRadiusMeters.GetHashCode(); - if (Count != 0) hash ^= Count.GetHashCode(); - if (MinimumCapacity != 0) hash ^= MinimumCapacity.GetHashCode(); - hash ^= tripTypes_.GetHashCode(); - if (maximumStaleness_ != null) hash ^= MaximumStaleness.GetHashCode(); - hash ^= vehicleTypes_.GetHashCode(); - hash ^= requiredAttributes_.GetHashCode(); - hash ^= requiredOneOfAttributes_.GetHashCode(); - hash ^= requiredOneOfAttributeSets_.GetHashCode(); - if (OrderBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) hash ^= OrderBy.GetHashCode(); - if (IncludeBackToBack != false) hash ^= IncludeBackToBack.GetHashCode(); - if (TripId.Length != 0) hash ^= TripId.GetHashCode(); - if (CurrentTripsPresent != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified) hash ^= CurrentTripsPresent.GetHashCode(); - if (Filter.Length != 0) hash ^= Filter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (pickupPoint_ != null) { - output.WriteRawTag(34); - output.WriteMessage(PickupPoint); - } - if (dropoffPoint_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DropoffPoint); - } - if (PickupRadiusMeters != 0) { - output.WriteRawTag(48); - output.WriteInt32(PickupRadiusMeters); - } - if (Count != 0) { - output.WriteRawTag(56); - output.WriteInt32(Count); - } - if (MinimumCapacity != 0) { - output.WriteRawTag(64); - output.WriteInt32(MinimumCapacity); - } - tripTypes_.WriteTo(output, _repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - output.WriteRawTag(82); - output.WriteMessage(MaximumStaleness); - } - requiredAttributes_.WriteTo(output, _repeated_requiredAttributes_codec); - if (OrderBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(104); - output.WriteEnum((int) OrderBy); - } - vehicleTypes_.WriteTo(output, _repeated_vehicleTypes_codec); - requiredOneOfAttributes_.WriteTo(output, _repeated_requiredOneOfAttributes_codec); - if (IncludeBackToBack != false) { - output.WriteRawTag(144, 1); - output.WriteBool(IncludeBackToBack); - } - if (TripId.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(TripId); - } - requiredOneOfAttributeSets_.WriteTo(output, _repeated_requiredOneOfAttributeSets_codec); - if (CurrentTripsPresent != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) CurrentTripsPresent); - } - if (Filter.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(Filter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (header_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Header); - } - if (Parent.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Parent); - } - if (pickupPoint_ != null) { - output.WriteRawTag(34); - output.WriteMessage(PickupPoint); - } - if (dropoffPoint_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DropoffPoint); - } - if (PickupRadiusMeters != 0) { - output.WriteRawTag(48); - output.WriteInt32(PickupRadiusMeters); - } - if (Count != 0) { - output.WriteRawTag(56); - output.WriteInt32(Count); - } - if (MinimumCapacity != 0) { - output.WriteRawTag(64); - output.WriteInt32(MinimumCapacity); - } - tripTypes_.WriteTo(ref output, _repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - output.WriteRawTag(82); - output.WriteMessage(MaximumStaleness); - } - requiredAttributes_.WriteTo(ref output, _repeated_requiredAttributes_codec); - if (OrderBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(104); - output.WriteEnum((int) OrderBy); - } - vehicleTypes_.WriteTo(ref output, _repeated_vehicleTypes_codec); - requiredOneOfAttributes_.WriteTo(ref output, _repeated_requiredOneOfAttributes_codec); - if (IncludeBackToBack != false) { - output.WriteRawTag(144, 1); - output.WriteBool(IncludeBackToBack); - } - if (TripId.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(TripId); - } - requiredOneOfAttributeSets_.WriteTo(ref output, _repeated_requiredOneOfAttributeSets_codec); - if (CurrentTripsPresent != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) CurrentTripsPresent); - } - if (Filter.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(Filter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (pickupPoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PickupPoint); - } - if (dropoffPoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropoffPoint); - } - if (PickupRadiusMeters != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PickupRadiusMeters); - } - if (Count != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); - } - if (MinimumCapacity != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumCapacity); - } - size += tripTypes_.CalculateSize(_repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximumStaleness); - } - size += vehicleTypes_.CalculateSize(_repeated_vehicleTypes_codec); - size += requiredAttributes_.CalculateSize(_repeated_requiredAttributes_codec); - size += requiredOneOfAttributes_.CalculateSize(_repeated_requiredOneOfAttributes_codec); - size += requiredOneOfAttributeSets_.CalculateSize(_repeated_requiredOneOfAttributeSets_codec); - if (OrderBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderBy); - } - if (IncludeBackToBack != false) { - size += 2 + 1; - } - if (TripId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TripId); - } - if (CurrentTripsPresent != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CurrentTripsPresent); - } - if (Filter.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Filter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchVehiclesRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.pickupPoint_ != null) { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - PickupPoint.MergeFrom(other.PickupPoint); - } - if (other.dropoffPoint_ != null) { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - DropoffPoint.MergeFrom(other.DropoffPoint); - } - if (other.PickupRadiusMeters != 0) { - PickupRadiusMeters = other.PickupRadiusMeters; - } - if (other.Count != 0) { - Count = other.Count; - } - if (other.MinimumCapacity != 0) { - MinimumCapacity = other.MinimumCapacity; - } - tripTypes_.Add(other.tripTypes_); - if (other.maximumStaleness_ != null) { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - MaximumStaleness.MergeFrom(other.MaximumStaleness); - } - vehicleTypes_.Add(other.vehicleTypes_); - requiredAttributes_.Add(other.requiredAttributes_); - requiredOneOfAttributes_.Add(other.requiredOneOfAttributes_); - requiredOneOfAttributeSets_.Add(other.requiredOneOfAttributeSets_); - if (other.OrderBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - OrderBy = other.OrderBy; - } - if (other.IncludeBackToBack != false) { - IncludeBackToBack = other.IncludeBackToBack; - } - if (other.TripId.Length != 0) { - TripId = other.TripId; - } - if (other.CurrentTripsPresent != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent.Unspecified) { - CurrentTripsPresent = other.CurrentTripsPresent; - } - if (other.Filter.Length != 0) { - Filter = other.Filter; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(PickupPoint); - break; - } - case 42: { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(DropoffPoint); - break; - } - case 48: { - PickupRadiusMeters = input.ReadInt32(); - break; - } - case 56: { - Count = input.ReadInt32(); - break; - } - case 64: { - MinimumCapacity = input.ReadInt32(); - break; - } - case 74: - case 72: { - tripTypes_.AddEntriesFrom(input, _repeated_tripTypes_codec); - break; - } - case 82: { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MaximumStaleness); - break; - } - case 98: { - requiredAttributes_.AddEntriesFrom(input, _repeated_requiredAttributes_codec); - break; - } - case 104: { - OrderBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 114: { - vehicleTypes_.AddEntriesFrom(input, _repeated_vehicleTypes_codec); - break; - } - case 122: { - requiredOneOfAttributes_.AddEntriesFrom(input, _repeated_requiredOneOfAttributes_codec); - break; - } - case 144: { - IncludeBackToBack = input.ReadBool(); - break; - } - case 154: { - TripId = input.ReadString(); - break; - } - case 162: { - requiredOneOfAttributeSets_.AddEntriesFrom(input, _repeated_requiredOneOfAttributeSets_codec); - break; - } - case 168: { - CurrentTripsPresent = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent) input.ReadEnum(); - break; - } - case 178: { - Filter = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 26: { - Parent = input.ReadString(); - break; - } - case 34: { - if (pickupPoint_ == null) { - PickupPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(PickupPoint); - break; - } - case 42: { - if (dropoffPoint_ == null) { - DropoffPoint = new global::Google.Maps.FleetEngine.V1.TerminalLocation(); - } - input.ReadMessage(DropoffPoint); - break; - } - case 48: { - PickupRadiusMeters = input.ReadInt32(); - break; - } - case 56: { - Count = input.ReadInt32(); - break; - } - case 64: { - MinimumCapacity = input.ReadInt32(); - break; - } - case 74: - case 72: { - tripTypes_.AddEntriesFrom(ref input, _repeated_tripTypes_codec); - break; - } - case 82: { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MaximumStaleness); - break; - } - case 98: { - requiredAttributes_.AddEntriesFrom(ref input, _repeated_requiredAttributes_codec); - break; - } - case 104: { - OrderBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 114: { - vehicleTypes_.AddEntriesFrom(ref input, _repeated_vehicleTypes_codec); - break; - } - case 122: { - requiredOneOfAttributes_.AddEntriesFrom(ref input, _repeated_requiredOneOfAttributes_codec); - break; - } - case 144: { - IncludeBackToBack = input.ReadBool(); - break; - } - case 154: { - TripId = input.ReadString(); - break; - } - case 162: { - requiredOneOfAttributeSets_.AddEntriesFrom(ref input, _repeated_requiredOneOfAttributeSets_codec); - break; - } - case 168: { - CurrentTripsPresent = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.CurrentTripsPresent) input.ReadEnum(); - break; - } - case 178: { - Filter = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SearchVehiclesRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Specifies the order of the vehicle matches in the response. - /// - public enum VehicleMatchOrder { - /// - /// Default, used for unspecified or unrecognized vehicle matches order. - /// - [pbr::OriginalName("UNKNOWN_VEHICLE_MATCH_ORDER")] UnknownVehicleMatchOrder = 0, - /// - /// Ascending order by vehicle driving time to the pickup point. - /// - [pbr::OriginalName("PICKUP_POINT_ETA")] PickupPointEta = 1, - /// - /// Ascending order by vehicle driving distance to the pickup point. - /// - [pbr::OriginalName("PICKUP_POINT_DISTANCE")] PickupPointDistance = 2, - /// - /// Ascending order by vehicle driving time to the dropoff point. This order - /// can only be used if the dropoff point is specified in the request. - /// - [pbr::OriginalName("DROPOFF_POINT_ETA")] DropoffPointEta = 3, - /// - /// Ascending order by straight-line distance from the vehicle's last - /// reported location to the pickup point. - /// - [pbr::OriginalName("PICKUP_POINT_STRAIGHT_DISTANCE")] PickupPointStraightDistance = 4, - /// - /// Ascending order by the configured match cost. Match cost is defined as a - /// weighted calculation between straight-line distance and ETA. Weights are - /// set with default values and can be modified per customer. Please contact - /// Google support if these weights need to be modified for your project. - /// - [pbr::OriginalName("COST")] Cost = 5, - } - - /// - /// Specifies the types of restrictions on a vehicle's current trips. - /// - public enum CurrentTripsPresent { - /// - /// The availability of vehicles with trips present is governed by the - /// `include_back_to_back` field. - /// - [pbr::OriginalName("CURRENT_TRIPS_PRESENT_UNSPECIFIED")] Unspecified = 0, - /// - /// Vehicles without trips can appear in search results. When this value is - /// used, `include_back_to_back` cannot be `true`. - /// - [pbr::OriginalName("NONE")] None = 1, - /// - /// Vehicles with at most 5 current trips and 10 waypoints are included - /// in the search results. When this value is used, `include_back_to_back` - /// cannot be `true`. - /// - [pbr::OriginalName("ANY")] Any = 2, - } - - } - #endregion - - } - - /// - /// `SearchVehicles` response message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SearchVehiclesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchVehiclesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesResponse(SearchVehiclesResponse other) : this() { - matches_ = other.matches_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchVehiclesResponse Clone() { - return new SearchVehiclesResponse(this); - } - - /// Field number for the "matches" field. - public const int MatchesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_matches_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.VehicleMatch.Parser); - private readonly pbc::RepeatedField matches_ = new pbc::RepeatedField(); - /// - /// List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - /// according to `SearchVehiclesRequest.order_by` field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Matches { - get { return matches_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchVehiclesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchVehiclesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!matches_.Equals(other.matches_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= matches_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - matches_.WriteTo(output, _repeated_matches_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - matches_.WriteTo(ref output, _repeated_matches_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += matches_.CalculateSize(_repeated_matches_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchVehiclesResponse other) { - if (other == null) { - return; - } - matches_.Add(other.matches_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - matches_.AddEntriesFrom(input, _repeated_matches_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - matches_.AddEntriesFrom(ref input, _repeated_matches_codec); - break; - } - } - } - } - #endif - - } - - /// - /// `ListVehicles` request message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ListVehiclesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListVehiclesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesRequest(ListVehiclesRequest other) : this() { - header_ = other.header_ != null ? other.header_.Clone() : null; - parent_ = other.parent_; - pageSize_ = other.pageSize_; - pageToken_ = other.pageToken_; - MinimumCapacity = other.MinimumCapacity; - tripTypes_ = other.tripTypes_.Clone(); - maximumStaleness_ = other.maximumStaleness_ != null ? other.maximumStaleness_.Clone() : null; - vehicleTypeCategories_ = other.vehicleTypeCategories_.Clone(); - requiredAttributes_ = other.requiredAttributes_.Clone(); - requiredOneOfAttributes_ = other.requiredOneOfAttributes_.Clone(); - requiredOneOfAttributeSets_ = other.requiredOneOfAttributeSets_.Clone(); - vehicleState_ = other.vehicleState_; - onTripOnly_ = other.onTripOnly_; - filter_ = other.filter_; - viewport_ = other.viewport_ != null ? other.viewport_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesRequest Clone() { - return new ListVehiclesRequest(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 12; - private global::Google.Maps.FleetEngine.V1.RequestHeader header_; - /// - /// The standard Fleet Engine request header. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.RequestHeader Header { - get { return header_; } - set { - header_ = value; - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 1; - private string parent_ = ""; - /// - /// Required. Must be in the format `providers/{provider}`. - /// The provider must be the Project ID (for example, `sample-cloud-project`) - /// of the Google Cloud Project of which the service account making - /// this call is a member. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 3; - private int pageSize_; - /// - /// The maximum number of vehicles to return. - /// Default value: 100. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 4; - private string pageToken_ = ""; - /// - /// The value of the `next_page_token` provided by a previous call to - /// `ListVehicles` so that you can paginate through groups of vehicles. The - /// value is undefined if the filter criteria of the request is not the same as - /// the filter criteria for the previous call to `ListVehicles`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "minimum_capacity" field. - public const int MinimumCapacityFieldNumber = 6; - private static readonly pb::FieldCodec _single_minimumCapacity_codec = pb::FieldCodec.ForStructWrapper(50); - private int? minimumCapacity_; - /// - /// Specifies the required minimum capacity of the vehicle. All vehicles - /// returned will have a `maximum_capacity` greater than or equal to this - /// value. If set, must be greater or equal to 0. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? MinimumCapacity { - get { return minimumCapacity_; } - set { - minimumCapacity_ = value; - } - } - - - /// Field number for the "trip_types" field. - public const int TripTypesFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_tripTypes_codec - = pb::FieldCodec.ForEnum(58, x => (int) x, x => (global::Google.Maps.FleetEngine.V1.TripType) x); - private readonly pbc::RepeatedField tripTypes_ = new pbc::RepeatedField(); - /// - /// Restricts the response to vehicles that support at least one of the - /// specified trip types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TripTypes { - get { return tripTypes_; } - } - - /// Field number for the "maximum_staleness" field. - public const int MaximumStalenessFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Duration maximumStaleness_; - /// - /// Restricts the response to vehicles that have sent location updates to Fleet - /// Engine within the specified duration. Stationary vehicles still - /// transmitting their locations are not considered stale. If present, must be - /// a valid positive duration. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration MaximumStaleness { - get { return maximumStaleness_; } - set { - maximumStaleness_ = value; - } - } - - /// Field number for the "vehicle_type_categories" field. - public const int VehicleTypeCategoriesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_vehicleTypeCategories_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category) x); - private readonly pbc::RepeatedField vehicleTypeCategories_ = new pbc::RepeatedField(); - /// - /// Required. Restricts the response to vehicles with one of the specified type - /// categories. `UNKNOWN` is not allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField VehicleTypeCategories { - get { return vehicleTypeCategories_; } - } - - /// Field number for the "required_attributes" field. - public const int RequiredAttributesFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_requiredAttributes_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField requiredAttributes_ = new pbc::RepeatedField(); - /// - /// Callers can form complex logical operations using any combination of the - /// `required_attributes`, `required_one_of_attributes`, and - /// `required_one_of_attribute_sets` fields. - /// - /// `required_attributes` is a list; `required_one_of_attributes` uses a - /// message which allows a list of lists. In combination, the two fields allow - /// the composition of this expression: - /// - /// ``` - /// (required_attributes[0] AND required_attributes[1] AND ...) - /// AND - /// (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - /// ...) - /// AND - /// (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - /// ...) - /// ``` - /// - /// Restricts the response to vehicles with the specified attributes. This - /// field is a conjunction/AND operation. A max of 50 required_attributes is - /// allowed. This matches the maximum number of attributes allowed on a - /// vehicle. Each repeated string should be of the format "key:value". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredAttributes { - get { return requiredAttributes_; } - } - - /// Field number for the "required_one_of_attributes" field. - public const int RequiredOneOfAttributesFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_requiredOneOfAttributes_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField requiredOneOfAttributes_ = new pbc::RepeatedField(); - /// - /// Restricts the response to vehicles with at least one of the specified - /// attributes in each `VehicleAttributeList`. Within each list, a vehicle must - /// match at least one of the attributes. This field is an inclusive - /// disjunction/OR operation in each `VehicleAttributeList` and a - /// conjunction/AND operation across the collection of `VehicleAttributeList`. - /// Each repeated string should be of the format - /// "key1:value1|key2:value2|key3:value3". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredOneOfAttributes { - get { return requiredOneOfAttributes_; } - } - - /// Field number for the "required_one_of_attribute_sets" field. - public const int RequiredOneOfAttributeSetsFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_requiredOneOfAttributeSets_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField requiredOneOfAttributeSets_ = new pbc::RepeatedField(); - /// - /// `required_one_of_attribute_sets` provides additional functionality. - /// - /// Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - /// uses a message which allows a list of lists, allowing expressions such as - /// this one: - /// - /// ``` - /// (required_attributes[0] AND required_attributes[1] AND ...) - /// AND - /// ( - /// (required_one_of_attribute_sets[0][0] AND - /// required_one_of_attribute_sets[0][1] AND - /// ...) - /// OR - /// (required_one_of_attribute_sets[1][0] AND - /// required_one_of_attribute_sets[1][1] AND - /// ...) - /// ) - /// ``` - /// - /// Restricts the response to vehicles that match all the attributes in a - /// `VehicleAttributeList`. Within each list, a vehicle must match all of the - /// attributes. This field is a conjunction/AND operation in each - /// `VehicleAttributeList` and inclusive disjunction/OR operation across the - /// collection of `VehicleAttributeList`. Each repeated string should be of the - /// format "key1:value1|key2:value2|key3:value3". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RequiredOneOfAttributeSets { - get { return requiredOneOfAttributeSets_; } - } - - /// Field number for the "vehicle_state" field. - public const int VehicleStateFieldNumber = 11; - private global::Google.Maps.FleetEngine.V1.VehicleState vehicleState_ = global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState; - /// - /// Restricts the response to vehicles that have this vehicle state. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VehicleState VehicleState { - get { return vehicleState_; } - set { - vehicleState_ = value; - } - } - - /// Field number for the "on_trip_only" field. - public const int OnTripOnlyFieldNumber = 14; - private bool onTripOnly_; - /// - /// Only return the vehicles with current trip(s). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool OnTripOnly { - get { return onTripOnly_; } - set { - onTripOnly_ = value; - } - } - - /// Field number for the "filter" field. - public const int FilterFieldNumber = 16; - private string filter_ = ""; - /// - /// Optional. A filter query to apply when listing vehicles. See - /// http://aip.dev/160 for examples of the filter syntax. - /// - /// This field is designed to replace the `required_attributes`, - /// `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - /// If a non-empty value is specified here, the following fields must be empty: - /// `required_attributes`, `required_one_of_attributes`, and - /// `required_one_of_attributes_sets`. - /// - /// This filter functions as an AND clause with other constraints, - /// such as `vehicle_state` or `on_trip_only`. - /// - /// Note that the only queries supported are on vehicle attributes (for - /// example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND - /// attributes.<key2> = <value2>`). The maximum number of restrictions allowed - /// in a filter query is 50. - /// - /// Also, all attributes are stored as strings, so the only supported - /// comparisons against attributes are string comparisons. In order to compare - /// against number or boolean values, the values must be explicitly quoted to - /// be treated as strings (for example, `attributes.<key> = "10"` or - /// `attributes.<key> = "true"`). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Filter { - get { return filter_; } - set { - filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "viewport" field. - public const int ViewportFieldNumber = 17; - private global::Google.Geo.Type.Viewport viewport_; - /// - /// Optional. A filter that limits the vehicles returned to those whose last - /// known location was in the rectangular area defined by the viewport. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Geo.Type.Viewport Viewport { - get { return viewport_; } - set { - viewport_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListVehiclesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListVehiclesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Header, other.Header)) return false; - if (Parent != other.Parent) return false; - if (PageSize != other.PageSize) return false; - if (PageToken != other.PageToken) return false; - if (MinimumCapacity != other.MinimumCapacity) return false; - if(!tripTypes_.Equals(other.tripTypes_)) return false; - if (!object.Equals(MaximumStaleness, other.MaximumStaleness)) return false; - if(!vehicleTypeCategories_.Equals(other.vehicleTypeCategories_)) return false; - if(!requiredAttributes_.Equals(other.requiredAttributes_)) return false; - if(!requiredOneOfAttributes_.Equals(other.requiredOneOfAttributes_)) return false; - if(!requiredOneOfAttributeSets_.Equals(other.requiredOneOfAttributeSets_)) return false; - if (VehicleState != other.VehicleState) return false; - if (OnTripOnly != other.OnTripOnly) return false; - if (Filter != other.Filter) return false; - if (!object.Equals(Viewport, other.Viewport)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (header_ != null) hash ^= Header.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (minimumCapacity_ != null) hash ^= MinimumCapacity.GetHashCode(); - hash ^= tripTypes_.GetHashCode(); - if (maximumStaleness_ != null) hash ^= MaximumStaleness.GetHashCode(); - hash ^= vehicleTypeCategories_.GetHashCode(); - hash ^= requiredAttributes_.GetHashCode(); - hash ^= requiredOneOfAttributes_.GetHashCode(); - hash ^= requiredOneOfAttributeSets_.GetHashCode(); - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) hash ^= VehicleState.GetHashCode(); - if (OnTripOnly != false) hash ^= OnTripOnly.GetHashCode(); - if (Filter.Length != 0) hash ^= Filter.GetHashCode(); - if (viewport_ != null) hash ^= Viewport.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Parent.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Parent); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (PageToken.Length != 0) { - output.WriteRawTag(34); - output.WriteString(PageToken); - } - if (minimumCapacity_ != null) { - _single_minimumCapacity_codec.WriteTagAndValue(output, MinimumCapacity); - } - tripTypes_.WriteTo(output, _repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - output.WriteRawTag(66); - output.WriteMessage(MaximumStaleness); - } - vehicleTypeCategories_.WriteTo(output, _repeated_vehicleTypeCategories_codec); - requiredAttributes_.WriteTo(output, _repeated_requiredAttributes_codec); - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - output.WriteRawTag(88); - output.WriteEnum((int) VehicleState); - } - if (header_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Header); - } - requiredOneOfAttributes_.WriteTo(output, _repeated_requiredOneOfAttributes_codec); - if (OnTripOnly != false) { - output.WriteRawTag(112); - output.WriteBool(OnTripOnly); - } - requiredOneOfAttributeSets_.WriteTo(output, _repeated_requiredOneOfAttributeSets_codec); - if (Filter.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(Filter); - } - if (viewport_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(Viewport); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Parent.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Parent); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (PageToken.Length != 0) { - output.WriteRawTag(34); - output.WriteString(PageToken); - } - if (minimumCapacity_ != null) { - _single_minimumCapacity_codec.WriteTagAndValue(ref output, MinimumCapacity); - } - tripTypes_.WriteTo(ref output, _repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - output.WriteRawTag(66); - output.WriteMessage(MaximumStaleness); - } - vehicleTypeCategories_.WriteTo(ref output, _repeated_vehicleTypeCategories_codec); - requiredAttributes_.WriteTo(ref output, _repeated_requiredAttributes_codec); - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - output.WriteRawTag(88); - output.WriteEnum((int) VehicleState); - } - if (header_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Header); - } - requiredOneOfAttributes_.WriteTo(ref output, _repeated_requiredOneOfAttributes_codec); - if (OnTripOnly != false) { - output.WriteRawTag(112); - output.WriteBool(OnTripOnly); - } - requiredOneOfAttributeSets_.WriteTo(ref output, _repeated_requiredOneOfAttributeSets_codec); - if (Filter.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(Filter); - } - if (viewport_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(Viewport); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (header_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (minimumCapacity_ != null) { - size += _single_minimumCapacity_codec.CalculateSizeWithTag(MinimumCapacity); - } - size += tripTypes_.CalculateSize(_repeated_tripTypes_codec); - if (maximumStaleness_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximumStaleness); - } - size += vehicleTypeCategories_.CalculateSize(_repeated_vehicleTypeCategories_codec); - size += requiredAttributes_.CalculateSize(_repeated_requiredAttributes_codec); - size += requiredOneOfAttributes_.CalculateSize(_repeated_requiredOneOfAttributes_codec); - size += requiredOneOfAttributeSets_.CalculateSize(_repeated_requiredOneOfAttributeSets_codec); - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VehicleState); - } - if (OnTripOnly != false) { - size += 1 + 1; - } - if (Filter.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Filter); - } - if (viewport_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Viewport); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListVehiclesRequest other) { - if (other == null) { - return; - } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - Header.MergeFrom(other.Header); - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.minimumCapacity_ != null) { - if (minimumCapacity_ == null || other.MinimumCapacity != 0) { - MinimumCapacity = other.MinimumCapacity; - } - } - tripTypes_.Add(other.tripTypes_); - if (other.maximumStaleness_ != null) { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - MaximumStaleness.MergeFrom(other.MaximumStaleness); - } - vehicleTypeCategories_.Add(other.vehicleTypeCategories_); - requiredAttributes_.Add(other.requiredAttributes_); - requiredOneOfAttributes_.Add(other.requiredOneOfAttributes_); - requiredOneOfAttributeSets_.Add(other.requiredOneOfAttributeSets_); - if (other.VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - VehicleState = other.VehicleState; - } - if (other.OnTripOnly != false) { - OnTripOnly = other.OnTripOnly; - } - if (other.Filter.Length != 0) { - Filter = other.Filter; - } - if (other.viewport_ != null) { - if (viewport_ == null) { - Viewport = new global::Google.Geo.Type.Viewport(); - } - Viewport.MergeFrom(other.Viewport); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Parent = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - case 34: { - PageToken = input.ReadString(); - break; - } - case 50: { - int? value = _single_minimumCapacity_codec.Read(input); - if (minimumCapacity_ == null || value != 0) { - MinimumCapacity = value; - } - break; - } - case 58: - case 56: { - tripTypes_.AddEntriesFrom(input, _repeated_tripTypes_codec); - break; - } - case 66: { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MaximumStaleness); - break; - } - case 74: - case 72: { - vehicleTypeCategories_.AddEntriesFrom(input, _repeated_vehicleTypeCategories_codec); - break; - } - case 82: { - requiredAttributes_.AddEntriesFrom(input, _repeated_requiredAttributes_codec); - break; - } - case 88: { - VehicleState = (global::Google.Maps.FleetEngine.V1.VehicleState) input.ReadEnum(); - break; - } - case 98: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 106: { - requiredOneOfAttributes_.AddEntriesFrom(input, _repeated_requiredOneOfAttributes_codec); - break; - } - case 112: { - OnTripOnly = input.ReadBool(); - break; - } - case 122: { - requiredOneOfAttributeSets_.AddEntriesFrom(input, _repeated_requiredOneOfAttributeSets_codec); - break; - } - case 130: { - Filter = input.ReadString(); - break; - } - case 138: { - if (viewport_ == null) { - Viewport = new global::Google.Geo.Type.Viewport(); - } - input.ReadMessage(Viewport); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Parent = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - case 34: { - PageToken = input.ReadString(); - break; - } - case 50: { - int? value = _single_minimumCapacity_codec.Read(ref input); - if (minimumCapacity_ == null || value != 0) { - MinimumCapacity = value; - } - break; - } - case 58: - case 56: { - tripTypes_.AddEntriesFrom(ref input, _repeated_tripTypes_codec); - break; - } - case 66: { - if (maximumStaleness_ == null) { - MaximumStaleness = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(MaximumStaleness); - break; - } - case 74: - case 72: { - vehicleTypeCategories_.AddEntriesFrom(ref input, _repeated_vehicleTypeCategories_codec); - break; - } - case 82: { - requiredAttributes_.AddEntriesFrom(ref input, _repeated_requiredAttributes_codec); - break; - } - case 88: { - VehicleState = (global::Google.Maps.FleetEngine.V1.VehicleState) input.ReadEnum(); - break; - } - case 98: { - if (header_ == null) { - Header = new global::Google.Maps.FleetEngine.V1.RequestHeader(); - } - input.ReadMessage(Header); - break; - } - case 106: { - requiredOneOfAttributes_.AddEntriesFrom(ref input, _repeated_requiredOneOfAttributes_codec); - break; - } - case 112: { - OnTripOnly = input.ReadBool(); - break; - } - case 122: { - requiredOneOfAttributeSets_.AddEntriesFrom(ref input, _repeated_requiredOneOfAttributeSets_codec); - break; - } - case 130: { - Filter = input.ReadString(); - break; - } - case 138: { - if (viewport_ == null) { - Viewport = new global::Google.Geo.Type.Viewport(); - } - input.ReadMessage(Viewport); - break; - } - } - } - } - #endif - - } - - /// - /// `ListVehicles` response message. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ListVehiclesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListVehiclesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesResponse(ListVehiclesResponse other) : this() { - vehicles_ = other.vehicles_.Clone(); - nextPageToken_ = other.nextPageToken_; - totalSize_ = other.totalSize_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListVehiclesResponse Clone() { - return new ListVehiclesResponse(this); - } - - /// Field number for the "vehicles" field. - public const int VehiclesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_vehicles_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.Vehicle.Parser); - private readonly pbc::RepeatedField vehicles_ = new pbc::RepeatedField(); - /// - /// Vehicles matching the criteria in the request. - /// The maximum number of vehicles returned is determined by the `page_size` - /// field in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Vehicles { - get { return vehicles_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Token to retrieve the next page of vehicles, or empty if there are no - /// more vehicles that meet the request criteria. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "total_size" field. - public const int TotalSizeFieldNumber = 3; - private long totalSize_; - /// - /// Required. Total number of vehicles matching the request criteria across all - /// pages. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalSize { - get { return totalSize_; } - set { - totalSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListVehiclesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListVehiclesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!vehicles_.Equals(other.vehicles_)) return false; - if (NextPageToken != other.NextPageToken) return false; - if (TotalSize != other.TotalSize) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= vehicles_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (TotalSize != 0L) hash ^= TotalSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - vehicles_.WriteTo(output, _repeated_vehicles_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalSize != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - vehicles_.WriteTo(ref output, _repeated_vehicles_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalSize != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += vehicles_.CalculateSize(_repeated_vehicles_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (TotalSize != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListVehiclesResponse other) { - if (other == null) { - return; - } - vehicles_.Add(other.vehicles_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - if (other.TotalSize != 0L) { - TotalSize = other.TotalSize; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - vehicles_.AddEntriesFrom(input, _repeated_vehicles_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalSize = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - vehicles_.AddEntriesFrom(ref input, _repeated_vehicles_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalSize = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Describes intermediate points along a route for a `VehicleMatch` in a - /// `SearchVehiclesResponse`. This concept is represented as a `TripWaypoint` in - /// all other endpoints. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Waypoint : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Waypoint()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Waypoint() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Waypoint(Waypoint other) : this() { - latLng_ = other.latLng_ != null ? other.latLng_.Clone() : null; - eta_ = other.eta_ != null ? other.eta_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Waypoint Clone() { - return new Waypoint(this); - } - - /// Field number for the "lat_lng" field. - public const int LatLngFieldNumber = 1; - private global::Google.Type.LatLng latLng_; - /// - /// The location of this waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.LatLng LatLng { - get { return latLng_; } - set { - latLng_ = value; - } - } - - /// Field number for the "eta" field. - public const int EtaFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp eta_; - /// - /// The estimated time that the vehicle will arrive at this waypoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Eta { - get { return eta_; } - set { - eta_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Waypoint); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Waypoint other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(LatLng, other.LatLng)) return false; - if (!object.Equals(Eta, other.Eta)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (latLng_ != null) hash ^= LatLng.GetHashCode(); - if (eta_ != null) hash ^= Eta.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (latLng_ != null) { - output.WriteRawTag(10); - output.WriteMessage(LatLng); - } - if (eta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Eta); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (latLng_ != null) { - output.WriteRawTag(10); - output.WriteMessage(LatLng); - } - if (eta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Eta); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (latLng_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LatLng); - } - if (eta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eta); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Waypoint other) { - if (other == null) { - return; - } - if (other.latLng_ != null) { - if (latLng_ == null) { - LatLng = new global::Google.Type.LatLng(); - } - LatLng.MergeFrom(other.LatLng); - } - if (other.eta_ != null) { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Eta.MergeFrom(other.Eta); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (latLng_ == null) { - LatLng = new global::Google.Type.LatLng(); - } - input.ReadMessage(LatLng); - break; - } - case 18: { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Eta); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (latLng_ == null) { - LatLng = new global::Google.Type.LatLng(); - } - input.ReadMessage(LatLng); - break; - } - case 18: { - if (eta_ == null) { - Eta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Eta); - break; - } - } - } - } - #endif - - } - - /// - /// Contains the vehicle and related estimates for a vehicle that match the - /// points of active trips for the vehicle `SearchVehiclesRequest`. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VehicleMatch : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VehicleMatch()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleMatch() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleMatch(VehicleMatch other) : this() { - vehicle_ = other.vehicle_ != null ? other.vehicle_.Clone() : null; - vehiclePickupEta_ = other.vehiclePickupEta_ != null ? other.vehiclePickupEta_.Clone() : null; - VehiclePickupDistanceMeters = other.VehiclePickupDistanceMeters; - VehiclePickupStraightLineDistanceMeters = other.VehiclePickupStraightLineDistanceMeters; - vehicleDropoffEta_ = other.vehicleDropoffEta_ != null ? other.vehicleDropoffEta_.Clone() : null; - VehiclePickupToDropoffDistanceMeters = other.VehiclePickupToDropoffDistanceMeters; - tripType_ = other.tripType_; - vehicleTripsWaypoints_ = other.vehicleTripsWaypoints_.Clone(); - vehicleMatchType_ = other.vehicleMatchType_; - requestedOrderedBy_ = other.requestedOrderedBy_; - orderedBy_ = other.orderedBy_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleMatch Clone() { - return new VehicleMatch(this); - } - - /// Field number for the "vehicle" field. - public const int VehicleFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.Vehicle vehicle_; - /// - /// Required. A vehicle that matches the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Vehicle Vehicle { - get { return vehicle_; } - set { - vehicle_ = value; - } - } - - /// Field number for the "vehicle_pickup_eta" field. - public const int VehiclePickupEtaFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp vehiclePickupEta_; - /// - /// The vehicle's driving ETA to the pickup point specified in the - /// request. An empty value indicates a failure in calculating ETA for the - /// vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - /// this vehicle has an active trip, `vehicle_pickup_eta` includes the time - /// required to complete the current active trip. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp VehiclePickupEta { - get { return vehiclePickupEta_; } - set { - vehiclePickupEta_ = value; - } - } - - /// Field number for the "vehicle_pickup_distance_meters" field. - public const int VehiclePickupDistanceMetersFieldNumber = 3; - private static readonly pb::FieldCodec _single_vehiclePickupDistanceMeters_codec = pb::FieldCodec.ForStructWrapper(26); - private int? vehiclePickupDistanceMeters_; - /// - /// The distance from the Vehicle's current location to the pickup point - /// specified in the request, including any intermediate pickup or dropoff - /// points for existing trips. This distance comprises the calculated driving - /// (route) distance, plus the straight line distance between the navigation - /// end point and the requested pickup point. (The distance between the - /// navigation end point and the requested pickup point is typically small.) An - /// empty value indicates an error in calculating the distance. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? VehiclePickupDistanceMeters { - get { return vehiclePickupDistanceMeters_; } - set { - vehiclePickupDistanceMeters_ = value; - } - } - - - /// Field number for the "vehicle_pickup_straight_line_distance_meters" field. - public const int VehiclePickupStraightLineDistanceMetersFieldNumber = 11; - private static readonly pb::FieldCodec _single_vehiclePickupStraightLineDistanceMeters_codec = pb::FieldCodec.ForStructWrapper(90); - private int? vehiclePickupStraightLineDistanceMeters_; - /// - /// Required. The straight-line distance between the vehicle and the pickup - /// point specified in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? VehiclePickupStraightLineDistanceMeters { - get { return vehiclePickupStraightLineDistanceMeters_; } - set { - vehiclePickupStraightLineDistanceMeters_ = value; - } - } - - - /// Field number for the "vehicle_dropoff_eta" field. - public const int VehicleDropoffEtaFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp vehicleDropoffEta_; - /// - /// The complete vehicle's driving ETA to the drop off point specified in the - /// request. The ETA includes stopping at any waypoints before the - /// `dropoff_point` specified in the request. The value will only be populated - /// when a drop off point is specified in the request. An empty value indicates - /// an error calculating the ETA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp VehicleDropoffEta { - get { return vehicleDropoffEta_; } - set { - vehicleDropoffEta_ = value; - } - } - - /// Field number for the "vehicle_pickup_to_dropoff_distance_meters" field. - public const int VehiclePickupToDropoffDistanceMetersFieldNumber = 5; - private static readonly pb::FieldCodec _single_vehiclePickupToDropoffDistanceMeters_codec = pb::FieldCodec.ForStructWrapper(42); - private int? vehiclePickupToDropoffDistanceMeters_; - /// - /// The vehicle's driving distance (in meters) from the pickup point - /// to the drop off point specified in the request. The distance is only - /// between the two points and does not include the vehicle location or any - /// other points that must be visited before the vehicle visits either the - /// pickup point or dropoff point. The value will only be populated when a - /// `dropoff_point` is specified in the request. An empty value indicates - /// a failure in calculating the distance from the pickup to - /// drop off point specified in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? VehiclePickupToDropoffDistanceMeters { - get { return vehiclePickupToDropoffDistanceMeters_; } - set { - vehiclePickupToDropoffDistanceMeters_ = value; - } - } - - - /// Field number for the "trip_type" field. - public const int TripTypeFieldNumber = 6; - private global::Google.Maps.FleetEngine.V1.TripType tripType_ = global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType; - /// - /// Required. The trip type of the request that was used to calculate the ETA - /// to the pickup point. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripType TripType { - get { return tripType_; } - set { - tripType_ = value; - } - } - - /// Field number for the "vehicle_trips_waypoints" field. - public const int VehicleTripsWaypointsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_vehicleTripsWaypoints_codec - = pb::FieldCodec.ForMessage(58, global::Google.Maps.FleetEngine.V1.Waypoint.Parser); - private readonly pbc::RepeatedField vehicleTripsWaypoints_ = new pbc::RepeatedField(); - /// - /// The ordered list of waypoints used to calculate the ETA. The list - /// includes vehicle location, the pickup points of active - /// trips for the vehicle, and the pickup points provided in the - /// request. An empty list indicates a failure in calculating ETA for the - /// vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField VehicleTripsWaypoints { - get { return vehicleTripsWaypoints_; } - } - - /// Field number for the "vehicle_match_type" field. - public const int VehicleMatchTypeFieldNumber = 8; - private global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType vehicleMatchType_ = global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown; - /// - /// Type of the vehicle match. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType VehicleMatchType { - get { return vehicleMatchType_; } - set { - vehicleMatchType_ = value; - } - } - - /// Field number for the "requested_ordered_by" field. - public const int RequestedOrderedByFieldNumber = 9; - private global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder requestedOrderedBy_ = global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder; - /// - /// The order requested for sorting vehicle matches. Equivalent to - /// `ordered_by`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder RequestedOrderedBy { - get { return requestedOrderedBy_; } - set { - requestedOrderedBy_ = value; - } - } - - /// Field number for the "ordered_by" field. - public const int OrderedByFieldNumber = 10; - private global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder orderedBy_ = global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder; - /// - /// The order requested for sorting vehicle matches. Equivalent to - /// `requested_ordered_by`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder OrderedBy { - get { return orderedBy_; } - set { - orderedBy_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VehicleMatch); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VehicleMatch other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Vehicle, other.Vehicle)) return false; - if (!object.Equals(VehiclePickupEta, other.VehiclePickupEta)) return false; - if (VehiclePickupDistanceMeters != other.VehiclePickupDistanceMeters) return false; - if (VehiclePickupStraightLineDistanceMeters != other.VehiclePickupStraightLineDistanceMeters) return false; - if (!object.Equals(VehicleDropoffEta, other.VehicleDropoffEta)) return false; - if (VehiclePickupToDropoffDistanceMeters != other.VehiclePickupToDropoffDistanceMeters) return false; - if (TripType != other.TripType) return false; - if(!vehicleTripsWaypoints_.Equals(other.vehicleTripsWaypoints_)) return false; - if (VehicleMatchType != other.VehicleMatchType) return false; - if (RequestedOrderedBy != other.RequestedOrderedBy) return false; - if (OrderedBy != other.OrderedBy) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (vehicle_ != null) hash ^= Vehicle.GetHashCode(); - if (vehiclePickupEta_ != null) hash ^= VehiclePickupEta.GetHashCode(); - if (vehiclePickupDistanceMeters_ != null) hash ^= VehiclePickupDistanceMeters.GetHashCode(); - if (vehiclePickupStraightLineDistanceMeters_ != null) hash ^= VehiclePickupStraightLineDistanceMeters.GetHashCode(); - if (vehicleDropoffEta_ != null) hash ^= VehicleDropoffEta.GetHashCode(); - if (vehiclePickupToDropoffDistanceMeters_ != null) hash ^= VehiclePickupToDropoffDistanceMeters.GetHashCode(); - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) hash ^= TripType.GetHashCode(); - hash ^= vehicleTripsWaypoints_.GetHashCode(); - if (VehicleMatchType != global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown) hash ^= VehicleMatchType.GetHashCode(); - if (RequestedOrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) hash ^= RequestedOrderedBy.GetHashCode(); - if (OrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) hash ^= OrderedBy.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (vehicle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Vehicle); - } - if (vehiclePickupEta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(VehiclePickupEta); - } - if (vehiclePickupDistanceMeters_ != null) { - _single_vehiclePickupDistanceMeters_codec.WriteTagAndValue(output, VehiclePickupDistanceMeters); - } - if (vehicleDropoffEta_ != null) { - output.WriteRawTag(34); - output.WriteMessage(VehicleDropoffEta); - } - if (vehiclePickupToDropoffDistanceMeters_ != null) { - _single_vehiclePickupToDropoffDistanceMeters_codec.WriteTagAndValue(output, VehiclePickupToDropoffDistanceMeters); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - output.WriteRawTag(48); - output.WriteEnum((int) TripType); - } - vehicleTripsWaypoints_.WriteTo(output, _repeated_vehicleTripsWaypoints_codec); - if (VehicleMatchType != global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown) { - output.WriteRawTag(64); - output.WriteEnum((int) VehicleMatchType); - } - if (RequestedOrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(72); - output.WriteEnum((int) RequestedOrderedBy); - } - if (OrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(80); - output.WriteEnum((int) OrderedBy); - } - if (vehiclePickupStraightLineDistanceMeters_ != null) { - _single_vehiclePickupStraightLineDistanceMeters_codec.WriteTagAndValue(output, VehiclePickupStraightLineDistanceMeters); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (vehicle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Vehicle); - } - if (vehiclePickupEta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(VehiclePickupEta); - } - if (vehiclePickupDistanceMeters_ != null) { - _single_vehiclePickupDistanceMeters_codec.WriteTagAndValue(ref output, VehiclePickupDistanceMeters); - } - if (vehicleDropoffEta_ != null) { - output.WriteRawTag(34); - output.WriteMessage(VehicleDropoffEta); - } - if (vehiclePickupToDropoffDistanceMeters_ != null) { - _single_vehiclePickupToDropoffDistanceMeters_codec.WriteTagAndValue(ref output, VehiclePickupToDropoffDistanceMeters); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - output.WriteRawTag(48); - output.WriteEnum((int) TripType); - } - vehicleTripsWaypoints_.WriteTo(ref output, _repeated_vehicleTripsWaypoints_codec); - if (VehicleMatchType != global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown) { - output.WriteRawTag(64); - output.WriteEnum((int) VehicleMatchType); - } - if (RequestedOrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(72); - output.WriteEnum((int) RequestedOrderedBy); - } - if (OrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - output.WriteRawTag(80); - output.WriteEnum((int) OrderedBy); - } - if (vehiclePickupStraightLineDistanceMeters_ != null) { - _single_vehiclePickupStraightLineDistanceMeters_codec.WriteTagAndValue(ref output, VehiclePickupStraightLineDistanceMeters); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (vehicle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Vehicle); - } - if (vehiclePickupEta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VehiclePickupEta); - } - if (vehiclePickupDistanceMeters_ != null) { - size += _single_vehiclePickupDistanceMeters_codec.CalculateSizeWithTag(VehiclePickupDistanceMeters); - } - if (vehiclePickupStraightLineDistanceMeters_ != null) { - size += _single_vehiclePickupStraightLineDistanceMeters_codec.CalculateSizeWithTag(VehiclePickupStraightLineDistanceMeters); - } - if (vehicleDropoffEta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VehicleDropoffEta); - } - if (vehiclePickupToDropoffDistanceMeters_ != null) { - size += _single_vehiclePickupToDropoffDistanceMeters_codec.CalculateSizeWithTag(VehiclePickupToDropoffDistanceMeters); - } - if (TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TripType); - } - size += vehicleTripsWaypoints_.CalculateSize(_repeated_vehicleTripsWaypoints_codec); - if (VehicleMatchType != global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VehicleMatchType); - } - if (RequestedOrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOrderedBy); - } - if (OrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderedBy); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VehicleMatch other) { - if (other == null) { - return; - } - if (other.vehicle_ != null) { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - Vehicle.MergeFrom(other.Vehicle); - } - if (other.vehiclePickupEta_ != null) { - if (vehiclePickupEta_ == null) { - VehiclePickupEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - VehiclePickupEta.MergeFrom(other.VehiclePickupEta); - } - if (other.vehiclePickupDistanceMeters_ != null) { - if (vehiclePickupDistanceMeters_ == null || other.VehiclePickupDistanceMeters != 0) { - VehiclePickupDistanceMeters = other.VehiclePickupDistanceMeters; - } - } - if (other.vehiclePickupStraightLineDistanceMeters_ != null) { - if (vehiclePickupStraightLineDistanceMeters_ == null || other.VehiclePickupStraightLineDistanceMeters != 0) { - VehiclePickupStraightLineDistanceMeters = other.VehiclePickupStraightLineDistanceMeters; - } - } - if (other.vehicleDropoffEta_ != null) { - if (vehicleDropoffEta_ == null) { - VehicleDropoffEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - VehicleDropoffEta.MergeFrom(other.VehicleDropoffEta); - } - if (other.vehiclePickupToDropoffDistanceMeters_ != null) { - if (vehiclePickupToDropoffDistanceMeters_ == null || other.VehiclePickupToDropoffDistanceMeters != 0) { - VehiclePickupToDropoffDistanceMeters = other.VehiclePickupToDropoffDistanceMeters; - } - } - if (other.TripType != global::Google.Maps.FleetEngine.V1.TripType.UnknownTripType) { - TripType = other.TripType; - } - vehicleTripsWaypoints_.Add(other.vehicleTripsWaypoints_); - if (other.VehicleMatchType != global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType.Unknown) { - VehicleMatchType = other.VehicleMatchType; - } - if (other.RequestedOrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - RequestedOrderedBy = other.RequestedOrderedBy; - } - if (other.OrderedBy != global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder.UnknownVehicleMatchOrder) { - OrderedBy = other.OrderedBy; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - case 18: { - if (vehiclePickupEta_ == null) { - VehiclePickupEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(VehiclePickupEta); - break; - } - case 26: { - int? value = _single_vehiclePickupDistanceMeters_codec.Read(input); - if (vehiclePickupDistanceMeters_ == null || value != 0) { - VehiclePickupDistanceMeters = value; - } - break; - } - case 34: { - if (vehicleDropoffEta_ == null) { - VehicleDropoffEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(VehicleDropoffEta); - break; - } - case 42: { - int? value = _single_vehiclePickupToDropoffDistanceMeters_codec.Read(input); - if (vehiclePickupToDropoffDistanceMeters_ == null || value != 0) { - VehiclePickupToDropoffDistanceMeters = value; - } - break; - } - case 48: { - TripType = (global::Google.Maps.FleetEngine.V1.TripType) input.ReadEnum(); - break; - } - case 58: { - vehicleTripsWaypoints_.AddEntriesFrom(input, _repeated_vehicleTripsWaypoints_codec); - break; - } - case 64: { - VehicleMatchType = (global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType) input.ReadEnum(); - break; - } - case 72: { - RequestedOrderedBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 80: { - OrderedBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 90: { - int? value = _single_vehiclePickupStraightLineDistanceMeters_codec.Read(input); - if (vehiclePickupStraightLineDistanceMeters_ == null || value != 0) { - VehiclePickupStraightLineDistanceMeters = value; - } - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (vehicle_ == null) { - Vehicle = new global::Google.Maps.FleetEngine.V1.Vehicle(); - } - input.ReadMessage(Vehicle); - break; - } - case 18: { - if (vehiclePickupEta_ == null) { - VehiclePickupEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(VehiclePickupEta); - break; - } - case 26: { - int? value = _single_vehiclePickupDistanceMeters_codec.Read(ref input); - if (vehiclePickupDistanceMeters_ == null || value != 0) { - VehiclePickupDistanceMeters = value; - } - break; - } - case 34: { - if (vehicleDropoffEta_ == null) { - VehicleDropoffEta = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(VehicleDropoffEta); - break; - } - case 42: { - int? value = _single_vehiclePickupToDropoffDistanceMeters_codec.Read(ref input); - if (vehiclePickupToDropoffDistanceMeters_ == null || value != 0) { - VehiclePickupToDropoffDistanceMeters = value; - } - break; - } - case 48: { - TripType = (global::Google.Maps.FleetEngine.V1.TripType) input.ReadEnum(); - break; - } - case 58: { - vehicleTripsWaypoints_.AddEntriesFrom(ref input, _repeated_vehicleTripsWaypoints_codec); - break; - } - case 64: { - VehicleMatchType = (global::Google.Maps.FleetEngine.V1.VehicleMatch.Types.VehicleMatchType) input.ReadEnum(); - break; - } - case 72: { - RequestedOrderedBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 80: { - OrderedBy = (global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Types.VehicleMatchOrder) input.ReadEnum(); - break; - } - case 90: { - int? value = _single_vehiclePickupStraightLineDistanceMeters_codec.Read(ref input); - if (vehiclePickupStraightLineDistanceMeters_ == null || value != 0) { - VehiclePickupStraightLineDistanceMeters = value; - } - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the VehicleMatch message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Type of vehicle match. - /// - public enum VehicleMatchType { - /// - /// Unknown vehicle match type - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - /// - /// The vehicle currently has no trip assigned to it and can proceed to the - /// pickup point. - /// - [pbr::OriginalName("EXCLUSIVE")] Exclusive = 1, - /// - /// The vehicle is currently assigned to a trip, but can proceed to the - /// pickup point after completing the in-progress trip. ETA and distance - /// calculations take the existing trip into account. - /// - [pbr::OriginalName("BACK_TO_BACK")] BackToBack = 2, - /// - /// The vehicle has sufficient capacity for a shared ride. - /// - [pbr::OriginalName("CARPOOL")] Carpool = 3, - /// - /// The vehicle will finish its current, active trip before proceeding to the - /// pickup point. ETA and distance calculations take the existing trip into - /// account. - /// - [pbr::OriginalName("CARPOOL_BACK_TO_BACK")] CarpoolBackToBack = 4, - } - - } - #endregion - - } - - /// - /// A list-of-lists datatype for vehicle attributes. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VehicleAttributeList : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VehicleAttributeList()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttributeList() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttributeList(VehicleAttributeList other) : this() { - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleAttributeList Clone() { - return new VehicleAttributeList(this); - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// A list of attributes in this collection. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VehicleAttributeList); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VehicleAttributeList other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VehicleAttributeList other) { - if (other == null) { - return; - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiGrpc.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiGrpc.g.cs deleted file mode 100755 index 5ef841db4cfe..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiGrpc.g.cs +++ /dev/null @@ -1,813 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/vehicle_api.proto -// -// Original file comments: -// Copyright 2024 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Maps.FleetEngine.V1 { - /// - /// Vehicle management service. - /// - public static partial class VehicleService - { - static readonly string __ServiceName = "maps.fleetengine.v1.VehicleService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_CreateVehicleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.CreateVehicleRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_Vehicle = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.Vehicle.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_GetVehicleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.GetVehicleRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_UpdateVehicleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_UpdateVehicleAttributesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_UpdateVehicleAttributesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_ListVehiclesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.ListVehiclesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_ListVehiclesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.ListVehiclesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_SearchVehiclesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_maps_fleetengine_v1_SearchVehiclesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.FleetEngine.V1.SearchVehiclesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateVehicle = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateVehicle", - __Marshaller_maps_fleetengine_v1_CreateVehicleRequest, - __Marshaller_maps_fleetengine_v1_Vehicle); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetVehicle = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetVehicle", - __Marshaller_maps_fleetengine_v1_GetVehicleRequest, - __Marshaller_maps_fleetengine_v1_Vehicle); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateVehicle = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateVehicle", - __Marshaller_maps_fleetengine_v1_UpdateVehicleRequest, - __Marshaller_maps_fleetengine_v1_Vehicle); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateVehicleAttributes = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateVehicleAttributes", - __Marshaller_maps_fleetengine_v1_UpdateVehicleAttributesRequest, - __Marshaller_maps_fleetengine_v1_UpdateVehicleAttributesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListVehicles = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListVehicles", - __Marshaller_maps_fleetengine_v1_ListVehiclesRequest, - __Marshaller_maps_fleetengine_v1_ListVehiclesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SearchVehicles = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SearchVehicles", - __Marshaller_maps_fleetengine_v1_SearchVehiclesRequest, - __Marshaller_maps_fleetengine_v1_SearchVehiclesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Maps.FleetEngine.V1.VehicleApiReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of VehicleService - [grpc::BindServiceMethod(typeof(VehicleService), "BindService")] - public abstract partial class VehicleServiceBase - { - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateVehicle(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetVehicle(global::Google.Maps.FleetEngine.V1.GetVehicleRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateVehicle(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateVehicleAttributes(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListVehicles(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SearchVehicles(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for VehicleService - public partial class VehicleServiceClient : grpc::ClientBase - { - /// Creates a new client for VehicleService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public VehicleServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for VehicleService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public VehicleServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected VehicleServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected VehicleServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle CreateVehicle(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateVehicle(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle CreateVehicle(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateVehicle, null, options, request); - } - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateVehicleAsync(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateVehicleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateVehicleAsync(global::Google.Maps.FleetEngine.V1.CreateVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateVehicle, null, options, request); - } - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle GetVehicle(global::Google.Maps.FleetEngine.V1.GetVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetVehicle(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle GetVehicle(global::Google.Maps.FleetEngine.V1.GetVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetVehicle, null, options, request); - } - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetVehicleAsync(global::Google.Maps.FleetEngine.V1.GetVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetVehicleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetVehicleAsync(global::Google.Maps.FleetEngine.V1.GetVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetVehicle, null, options, request); - } - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle UpdateVehicle(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateVehicle(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.Vehicle UpdateVehicle(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateVehicle, null, options, request); - } - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateVehicleAsync(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateVehicleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateVehicleAsync(global::Google.Maps.FleetEngine.V1.UpdateVehicleRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateVehicle, null, options, request); - } - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse UpdateVehicleAttributes(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateVehicleAttributes(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesResponse UpdateVehicleAttributes(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateVehicleAttributes, null, options, request); - } - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateVehicleAttributesAsync(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateVehicleAttributesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateVehicleAttributesAsync(global::Google.Maps.FleetEngine.V1.UpdateVehicleAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateVehicleAttributes, null, options, request); - } - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.ListVehiclesResponse ListVehicles(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListVehicles(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.ListVehiclesResponse ListVehicles(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListVehicles, null, options, request); - } - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListVehiclesAsync(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListVehiclesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListVehiclesAsync(global::Google.Maps.FleetEngine.V1.ListVehiclesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListVehicles, null, options, request); - } - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.SearchVehiclesResponse SearchVehicles(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchVehicles(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Maps.FleetEngine.V1.SearchVehiclesResponse SearchVehicles(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SearchVehicles, null, options, request); - } - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchVehiclesAsync(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchVehiclesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchVehiclesAsync(global::Google.Maps.FleetEngine.V1.SearchVehiclesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SearchVehicles, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override VehicleServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new VehicleServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(VehicleServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_CreateVehicle, serviceImpl.CreateVehicle) - .AddMethod(__Method_GetVehicle, serviceImpl.GetVehicle) - .AddMethod(__Method_UpdateVehicle, serviceImpl.UpdateVehicle) - .AddMethod(__Method_UpdateVehicleAttributes, serviceImpl.UpdateVehicleAttributes) - .AddMethod(__Method_ListVehicles, serviceImpl.ListVehicles) - .AddMethod(__Method_SearchVehicles, serviceImpl.SearchVehicles).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, VehicleServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_CreateVehicle, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateVehicle)); - serviceBinder.AddMethod(__Method_GetVehicle, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetVehicle)); - serviceBinder.AddMethod(__Method_UpdateVehicle, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateVehicle)); - serviceBinder.AddMethod(__Method_UpdateVehicleAttributes, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateVehicleAttributes)); - serviceBinder.AddMethod(__Method_ListVehicles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListVehicles)); - serviceBinder.AddMethod(__Method_SearchVehicles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchVehicles)); - } - - } -} -#endregion diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiResourceNames.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiResourceNames.g.cs deleted file mode 100755 index aca8af9c4a0b..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleApiResourceNames.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gmfv = Google.Maps.FleetEngine.V1; - -namespace Google.Maps.FleetEngine.V1 -{ - public partial class GetVehicleRequest - { - /// - /// -typed view over the resource name property. - /// - public gmfv::VehicleName VehicleName - { - get => string.IsNullOrEmpty(Name) ? null : gmfv::VehicleName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleServiceClient.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleServiceClient.g.cs deleted file mode 100755 index 1ff7babdff8f..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehicleServiceClient.g.cs +++ /dev/null @@ -1,937 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using proto = Google.Protobuf; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; -using sys = System; - -namespace Google.Maps.FleetEngine.V1 -{ - /// Settings for instances. - public sealed partial class VehicleServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static VehicleServiceSettings GetDefault() => new VehicleServiceSettings(); - - /// Constructs a new object with default settings. - public VehicleServiceSettings() - { - } - - private VehicleServiceSettings(VehicleServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - CreateVehicleSettings = existing.CreateVehicleSettings; - GetVehicleSettings = existing.GetVehicleSettings; - UpdateVehicleSettings = existing.UpdateVehicleSettings; - UpdateVehicleAttributesSettings = existing.UpdateVehicleAttributesSettings; - ListVehiclesSettings = existing.ListVehiclesSettings; - SearchVehiclesSettings = existing.SearchVehiclesSettings; - OnCopy(existing); - } - - partial void OnCopy(VehicleServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.CreateVehicle and VehicleServiceClient.CreateVehicleAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings CreateVehicleSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.GetVehicle and VehicleServiceClient.GetVehicleAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings GetVehicleSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.UpdateVehicle and VehicleServiceClient.UpdateVehicleAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings UpdateVehicleSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.UpdateVehicleAttributes and VehicleServiceClient.UpdateVehicleAttributesAsync - /// . - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings UpdateVehicleAttributesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.ListVehicles and VehicleServiceClient.ListVehiclesAsync. - /// - /// - /// - /// This call will not be retried. - /// No timeout is applied. - /// - /// - public gaxgrpc::CallSettings ListVehiclesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); - - /// - /// for synchronous and asynchronous calls to - /// VehicleServiceClient.SearchVehicles and VehicleServiceClient.SearchVehiclesAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 15 seconds. - /// - /// - public gaxgrpc::CallSettings SearchVehiclesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(15000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public VehicleServiceSettings Clone() => new VehicleServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - public sealed partial class VehicleServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public VehicleServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public VehicleServiceClientBuilder() : base(VehicleServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref VehicleServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override VehicleServiceClient Build() - { - VehicleServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private VehicleServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return VehicleServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return VehicleServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => VehicleServiceClient.ChannelPool; - } - - /// VehicleService client wrapper, for convenient use. - /// - /// Vehicle management service. - /// - public abstract partial class VehicleServiceClient - { - /// - /// The default endpoint for the VehicleService service, which is a host of "fleetengine.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "fleetengine.googleapis.com:443"; - - /// The default VehicleService scopes. - /// - /// The default VehicleService scopes are: - /// - /// https://www.googleapis.com/auth/cloud-platform - /// - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/cloud-platform", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(VehicleService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new VehicleServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static VehicleServiceClient Create() => new VehicleServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static VehicleServiceClient Create(grpccore::CallInvoker callInvoker, VehicleServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - VehicleService.VehicleServiceClient grpcClient = new VehicleService.VehicleServiceClient(callInvoker); - return new VehicleServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC VehicleService client - public virtual VehicleService.VehicleServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Vehicle CreateVehicle(CreateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateVehicleAsync(CreateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateVehicleAsync(CreateVehicleRequest request, st::CancellationToken cancellationToken) => - CreateVehicleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Vehicle GetVehicle(GetVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetVehicleAsync(GetVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetVehicleAsync(GetVehicleRequest request, st::CancellationToken cancellationToken) => - GetVehicleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Vehicle UpdateVehicle(UpdateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UpdateVehicleAsync(UpdateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UpdateVehicleAsync(UpdateVehicleRequest request, st::CancellationToken cancellationToken) => - UpdateVehicleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UpdateVehicleAttributesResponse UpdateVehicleAttributes(UpdateVehicleAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UpdateVehicleAttributesAsync(UpdateVehicleAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UpdateVehicleAttributesAsync(UpdateVehicleAttributesRequest request, st::CancellationToken cancellationToken) => - UpdateVehicleAttributesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListVehicles(ListVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListVehiclesAsync(ListVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual SearchVehiclesResponse SearchVehicles(SearchVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task SearchVehiclesAsync(SearchVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task SearchVehiclesAsync(SearchVehiclesRequest request, st::CancellationToken cancellationToken) => - SearchVehiclesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// VehicleService client wrapper implementation, for convenient use. - /// - /// Vehicle management service. - /// - public sealed partial class VehicleServiceClientImpl : VehicleServiceClient - { - private readonly gaxgrpc::ApiCall _callCreateVehicle; - - private readonly gaxgrpc::ApiCall _callGetVehicle; - - private readonly gaxgrpc::ApiCall _callUpdateVehicle; - - private readonly gaxgrpc::ApiCall _callUpdateVehicleAttributes; - - private readonly gaxgrpc::ApiCall _callListVehicles; - - private readonly gaxgrpc::ApiCall _callSearchVehicles; - - /// - /// Constructs a client wrapper for the VehicleService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public VehicleServiceClientImpl(VehicleService.VehicleServiceClient grpcClient, VehicleServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - VehicleServiceSettings effectiveSettings = settings ?? VehicleServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options - { - Settings = effectiveSettings, - Logger = logger, - }); - _callCreateVehicle = clientHelper.BuildApiCall("CreateVehicle", grpcClient.CreateVehicleAsync, grpcClient.CreateVehicle, effectiveSettings.CreateVehicleSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Parent)); - Modify_ApiCall(ref _callCreateVehicle); - Modify_CreateVehicleApiCall(ref _callCreateVehicle); - _callGetVehicle = clientHelper.BuildApiCall("GetVehicle", grpcClient.GetVehicleAsync, grpcClient.GetVehicle, effectiveSettings.GetVehicleSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callGetVehicle); - Modify_GetVehicleApiCall(ref _callGetVehicle); - _callUpdateVehicle = clientHelper.BuildApiCall("UpdateVehicle", grpcClient.UpdateVehicleAsync, grpcClient.UpdateVehicle, effectiveSettings.UpdateVehicleSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callUpdateVehicle); - Modify_UpdateVehicleApiCall(ref _callUpdateVehicle); - _callUpdateVehicleAttributes = clientHelper.BuildApiCall("UpdateVehicleAttributes", grpcClient.UpdateVehicleAttributesAsync, grpcClient.UpdateVehicleAttributes, effectiveSettings.UpdateVehicleAttributesSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Name)); - Modify_ApiCall(ref _callUpdateVehicleAttributes); - Modify_UpdateVehicleAttributesApiCall(ref _callUpdateVehicleAttributes); - _callListVehicles = clientHelper.BuildApiCall("ListVehicles", grpcClient.ListVehiclesAsync, grpcClient.ListVehicles, effectiveSettings.ListVehiclesSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Parent)); - Modify_ApiCall(ref _callListVehicles); - Modify_ListVehiclesApiCall(ref _callListVehicles); - _callSearchVehicles = clientHelper.BuildApiCall("SearchVehicles", grpcClient.SearchVehiclesAsync, grpcClient.SearchVehicles, effectiveSettings.SearchVehiclesSettings).WithExtractedGoogleRequestParam(new gaxgrpc::RoutingHeaderExtractor().WithExtractedParameter("provider_id", "^(providers/[^/]+)/?$", request => request.Parent)); - Modify_ApiCall(ref _callSearchVehicles); - Modify_SearchVehiclesApiCall(ref _callSearchVehicles); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_CreateVehicleApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GetVehicleApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_UpdateVehicleApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_UpdateVehicleAttributesApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListVehiclesApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_SearchVehiclesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(VehicleService.VehicleServiceClient grpcClient, VehicleServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC VehicleService client - public override VehicleService.VehicleServiceClient GrpcClient { get; } - - partial void Modify_CreateVehicleRequest(ref CreateVehicleRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GetVehicleRequest(ref GetVehicleRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_UpdateVehicleRequest(ref UpdateVehicleRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_UpdateVehicleAttributesRequest(ref UpdateVehicleAttributesRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListVehiclesRequest(ref ListVehiclesRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_SearchVehiclesRequest(ref SearchVehiclesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Vehicle CreateVehicle(CreateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateVehicleRequest(ref request, ref callSettings); - return _callCreateVehicle.Sync(request, callSettings); - } - - /// - /// Instantiates a new vehicle associated with an on-demand rideshare or - /// deliveries provider. Each `Vehicle` must have a unique vehicle ID. - /// - /// The following `Vehicle` fields are required when creating a `Vehicle`: - /// - /// * `vehicleState` - /// * `supportedTripTypes` - /// * `maximumCapacity` - /// * `vehicleType` - /// - /// The following `Vehicle` fields are ignored when creating a `Vehicle`: - /// - /// * `name` - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment` - /// * `current_route_segment_end_point` - /// * `current_route_segment_version` - /// * `current_route_segment_traffic` - /// * `route` - /// * `waypoints` - /// * `waypoints_version` - /// * `remaining_distance_meters` - /// * `remaining_time_seconds` - /// * `eta_to_next_waypoint` - /// * `navigation_status` - /// - /// All other fields are optional and used if provided. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task CreateVehicleAsync(CreateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateVehicleRequest(ref request, ref callSettings); - return _callCreateVehicle.Async(request, callSettings); - } - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Vehicle GetVehicle(GetVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetVehicleRequest(ref request, ref callSettings); - return _callGetVehicle.Sync(request, callSettings); - } - - /// - /// Returns a vehicle from the Fleet Engine. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GetVehicleAsync(GetVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetVehicleRequest(ref request, ref callSettings); - return _callGetVehicle.Async(request, callSettings); - } - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override Vehicle UpdateVehicle(UpdateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateVehicleRequest(ref request, ref callSettings); - return _callUpdateVehicle.Sync(request, callSettings); - } - - /// - /// Writes updated vehicle data to the Fleet Engine. - /// - /// When updating a `Vehicle`, the following fields cannot be updated since - /// they are managed by the server: - /// - /// * `currentTrips` - /// * `availableCapacity` - /// * `current_route_segment_version` - /// * `waypoints_version` - /// - /// The vehicle `name` also cannot be updated. - /// - /// If the `attributes` field is updated, **all** the vehicle's attributes are - /// replaced with the attributes provided in the request. If you want to update - /// only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - /// the `waypoints` field can be updated, but must contain all the waypoints - /// currently on the vehicle, and no other waypoints. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UpdateVehicleAsync(UpdateVehicleRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateVehicleRequest(ref request, ref callSettings); - return _callUpdateVehicle.Async(request, callSettings); - } - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override UpdateVehicleAttributesResponse UpdateVehicleAttributes(UpdateVehicleAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateVehicleAttributesRequest(ref request, ref callSettings); - return _callUpdateVehicleAttributes.Sync(request, callSettings); - } - - /// - /// Partially updates a vehicle's attributes. - /// Only the attributes mentioned in the request will be updated, other - /// attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - /// where the whole `attributes` field will be replaced by the one in - /// `UpdateVehicleRequest`, attributes not in the request would be removed. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UpdateVehicleAttributesAsync(UpdateVehicleAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateVehicleAttributesRequest(ref request, ref callSettings); - return _callUpdateVehicleAttributes.Async(request, callSettings); - } - - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable ListVehicles(ListVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListVehiclesRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callListVehicles, request, callSettings); - } - - /// - /// Returns a paginated list of vehicles associated with - /// a provider that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable ListVehiclesAsync(ListVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListVehiclesRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListVehicles, request, callSettings); - } - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override SearchVehiclesResponse SearchVehicles(SearchVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchVehiclesRequest(ref request, ref callSettings); - return _callSearchVehicles.Sync(request, callSettings); - } - - /// - /// Returns a list of vehicles that match the request options. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task SearchVehiclesAsync(SearchVehiclesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchVehiclesRequest(ref request, ref callSettings); - return _callSearchVehicles.Async(request, callSettings); - } - } - - public partial class ListVehiclesRequest : gaxgrpc::IPageRequest - { - } - - public partial class ListVehiclesResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Vehicles.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Vehicles.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Vehicles.g.cs deleted file mode 100755 index 697823380174..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/Vehicles.g.cs +++ /dev/null @@ -1,3161 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/fleetengine/v1/vehicles.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Maps.FleetEngine.V1 { - - /// Holder for reflection information generated from google/maps/fleetengine/v1/vehicles.proto - public static partial class VehiclesReflection { - - #region Descriptor - /// File descriptor for google/maps/fleetengine/v1/vehicles.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static VehiclesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cilnb29nbGUvbWFwcy9mbGVldGVuZ2luZS92MS92ZWhpY2xlcy5wcm90bxIT", - "bWFwcy5mbGVldGVuZ2luZS52MRofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", - "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxosZ29vZ2xlL21h", - "cHMvZmxlZXRlbmdpbmUvdjEvZmxlZXRlbmdpbmUucHJvdG8aH2dvb2dsZS9w", - "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFw", - "cGVycy5wcm90byLiCwoHVmVoaWNsZRIRCgRuYW1lGAEgASgJQgPgQQMSOAoN", - "dmVoaWNsZV9zdGF0ZRgCIAEoDjIhLm1hcHMuZmxlZXRlbmdpbmUudjEuVmVo", - "aWNsZVN0YXRlEjsKFHN1cHBvcnRlZF90cmlwX3R5cGVzGAMgAygOMh0ubWFw", - "cy5mbGVldGVuZ2luZS52MS5UcmlwVHlwZRIaCg1jdXJyZW50X3RyaXBzGAQg", - "AygJQgPgQQMSOwoNbGFzdF9sb2NhdGlvbhgFIAEoCzIkLm1hcHMuZmxlZXRl", - "bmdpbmUudjEuVmVoaWNsZUxvY2F0aW9uEhgKEG1heGltdW1fY2FwYWNpdHkY", - "BiABKAUSOQoKYXR0cmlidXRlcxgIIAMoCzIlLm1hcHMuZmxlZXRlbmdpbmUu", - "djEuVmVoaWNsZUF0dHJpYnV0ZRJDCgx2ZWhpY2xlX3R5cGUYCSABKAsyKC5t", - "YXBzLmZsZWV0ZW5naW5lLnYxLlZlaGljbGUuVmVoaWNsZVR5cGVCA+BBAhI4", - "Cg1saWNlbnNlX3BsYXRlGAogASgLMiEubWFwcy5mbGVldGVuZ2luZS52MS5M", - "aWNlbnNlUGxhdGUSOAoFcm91dGUYDCADKAsyJS5tYXBzLmZsZWV0ZW5naW5l", - "LnYxLlRlcm1pbmFsTG9jYXRpb25CAhgBEh0KFWN1cnJlbnRfcm91dGVfc2Vn", - "bWVudBgUIAEoCRJUCh1jdXJyZW50X3JvdXRlX3NlZ21lbnRfdHJhZmZpYxgc", - "IAEoCzIoLm1hcHMuZmxlZXRlbmdpbmUudjEuVHJhZmZpY1BvbHlsaW5lRGF0", - "YUID4EEEEkYKHWN1cnJlbnRfcm91dGVfc2VnbWVudF92ZXJzaW9uGA8gASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEkoKH2N1cnJlbnRf", - "cm91dGVfc2VnbWVudF9lbmRfcG9pbnQYGCABKAsyIS5tYXBzLmZsZWV0ZW5n", - "aW5lLnYxLlRyaXBXYXlwb2ludBI+ChlyZW1haW5pbmdfZGlzdGFuY2VfbWV0", - "ZXJzGBIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSOQoVZXRh", - "X3RvX2ZpcnN0X3dheXBvaW50GBMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", - "bWVzdGFtcBJAChZyZW1haW5pbmdfdGltZV9zZWNvbmRzGBkgASgLMhsuZ29v", - "Z2xlLnByb3RvYnVmLkludDMyVmFsdWVCA+BBBBI0Cgl3YXlwb2ludHMYFiAD", - "KAsyIS5tYXBzLmZsZWV0ZW5naW5lLnYxLlRyaXBXYXlwb2ludBI6ChF3YXlw", - "b2ludHNfdmVyc2lvbhgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", - "bXBCA+BBAxIcChRiYWNrX3RvX2JhY2tfZW5hYmxlZBgXIAEoCBJAChFuYXZp", - "Z2F0aW9uX3N0YXR1cxgaIAEoDjIlLm1hcHMuZmxlZXRlbmdpbmUudjEuTmF2", - "aWdhdGlvblN0YXR1cxJBCg9kZXZpY2Vfc2V0dGluZ3MYGyABKAsyIy5tYXBz", - "LmZsZWV0ZW5naW5lLnYxLkRldmljZVNldHRpbmdzQgPgQQQauAEKC1ZlaGlj", - "bGVUeXBlEkMKCGNhdGVnb3J5GAEgASgOMjEubWFwcy5mbGVldGVuZ2luZS52", - "MS5WZWhpY2xlLlZlaGljbGVUeXBlLkNhdGVnb3J5ImQKCENhdGVnb3J5EgsK", - "B1VOS05PV04QABIICgRBVVRPEAESCAoEVEFYSRACEgkKBVRSVUNLEAMSDwoL", - "VFdPX1dIRUVMRVIQBBILCgdCSUNZQ0xFEAUSDgoKUEVERVNUUklBThAGOlDq", - "QU0KImZsZWV0ZW5naW5lLmdvb2dsZWFwaXMuY29tL1ZlaGljbGUSJ3Byb3Zp", - "ZGVycy97cHJvdmlkZXJ9L3ZlaGljbGVzL3t2ZWhpY2xlfSKdAQoLQmF0dGVy", - "eUluZm8SOgoOYmF0dGVyeV9zdGF0dXMYASABKA4yIi5tYXBzLmZsZWV0ZW5n", - "aW5lLnYxLkJhdHRlcnlTdGF0dXMSNgoMcG93ZXJfc291cmNlGAIgASgOMiAu", - "bWFwcy5mbGVldGVuZ2luZS52MS5Qb3dlclNvdXJjZRIaChJiYXR0ZXJ5X3Bl", - "cmNlbnRhZ2UYAyABKAIiygEKDkRldmljZVNldHRpbmdzEkwKGGxvY2F0aW9u", - "X3Bvd2VyX3NhdmVfbW9kZRgBIAEoDjIqLm1hcHMuZmxlZXRlbmdpbmUudjEu", - "TG9jYXRpb25Qb3dlclNhdmVNb2RlEhoKEmlzX3Bvd2VyX3NhdmVfbW9kZRgC", - "IAEoCBIWCg5pc19pbnRlcmFjdGl2ZRgDIAEoCBI2CgxiYXR0ZXJ5X2luZm8Y", - "BCABKAsyIC5tYXBzLmZsZWV0ZW5naW5lLnYxLkJhdHRlcnlJbmZvIkEKDExp", - "Y2Vuc2VQbGF0ZRIZCgxjb3VudHJ5X2NvZGUYASABKAlCA+BBAhIWCg5sYXN0", - "X2NoYXJhY3RlchgCIAEoCSL2AgokVmlzdWFsVHJhZmZpY1JlcG9ydFBvbHls", - "aW5lUmVuZGVyaW5nEmAKDHJvYWRfc3RyZXRjaBgBIAMoCzJFLm1hcHMuZmxl", - "ZXRlbmdpbmUudjEuVmlzdWFsVHJhZmZpY1JlcG9ydFBvbHlsaW5lUmVuZGVy", - "aW5nLlJvYWRTdHJldGNoQgPgQQEa6wEKC1JvYWRTdHJldGNoEl8KBXN0eWxl", - "GAEgASgOMksubWFwcy5mbGVldGVuZ2luZS52MS5WaXN1YWxUcmFmZmljUmVw", - "b3J0UG9seWxpbmVSZW5kZXJpbmcuUm9hZFN0cmV0Y2guU3R5bGVCA+BBAhIa", - "Cg1vZmZzZXRfbWV0ZXJzGAIgASgFQgPgQQISGgoNbGVuZ3RoX21ldGVycxgD", - "IAEoBUID4EECIkMKBVN0eWxlEhUKEVNUWUxFX1VOU1BFQ0lGSUVEEAASEgoO", - "U0xPV0VSX1RSQUZGSUMQARIPCgtUUkFGRklDX0pBTRACImsKE1RyYWZmaWNQ", - "b2x5bGluZURhdGESVAoRdHJhZmZpY19yZW5kZXJpbmcYASABKAsyOS5tYXBz", - "LmZsZWV0ZW5naW5lLnYxLlZpc3VhbFRyYWZmaWNSZXBvcnRQb2x5bGluZVJl", - "bmRlcmluZypCCgxWZWhpY2xlU3RhdGUSGQoVVU5LTk9XTl9WRUhJQ0xFX1NU", - "QVRFEAASCwoHT0ZGTElORRABEgoKBk9OTElORRACKpICChVMb2NhdGlvblBv", - "d2VyU2F2ZU1vZGUSJAogVU5LTk9XTl9MT0NBVElPTl9QT1dFUl9TQVZFX01P", - "REUQABIbChdMT0NBVElPTl9NT0RFX05PX0NIQU5HRRABEi4KKkxPQ0FUSU9O", - "X01PREVfR1BTX0RJU0FCTEVEX1dIRU5fU0NSRUVOX09GRhACEi4KKkxPQ0FU", - "SU9OX01PREVfQUxMX0RJU0FCTEVEX1dIRU5fU0NSRUVOX09GRhADEiEKHUxP", - "Q0FUSU9OX01PREVfRk9SRUdST1VORF9PTkxZEAQSMwovTE9DQVRJT05fTU9E", - "RV9USFJPVFRMRV9SRVFVRVNUU19XSEVOX1NDUkVFTl9PRkYQBSrAAQoNQmF0", - "dGVyeVN0YXR1cxIaChZVTktOT1dOX0JBVFRFUllfU1RBVFVTEAASGwoXQkFU", - "VEVSWV9TVEFUVVNfQ0hBUkdJTkcQARIeChpCQVRURVJZX1NUQVRVU19ESVND", - "SEFSR0lORxACEhcKE0JBVFRFUllfU1RBVFVTX0ZVTEwQAxIfChtCQVRURVJZ", - "X1NUQVRVU19OT1RfQ0hBUkdJTkcQBBIcChhCQVRURVJZX1NUQVRVU19QT1dF", - "Ul9MT1cQBSqJAQoLUG93ZXJTb3VyY2USGAoUVU5LTk9XTl9QT1dFUl9TT1VS", - "Q0UQABITCg9QT1dFUl9TT1VSQ0VfQUMQARIUChBQT1dFUl9TT1VSQ0VfVVNC", - "EAISGQoVUE9XRVJfU09VUkNFX1dJUkVMRVNTEAMSGgoWUE9XRVJfU09VUkNF", - "X1VOUExVR0dFRBAEQtQBCh5jb20uZ29vZ2xlLm1hcHMuZmxlZXRlbmdpbmUu", - "djFCCFZlaGljbGVzUAFaRmNsb3VkLmdvb2dsZS5jb20vZ28vbWFwcy9mbGVl", - "dGVuZ2luZS9hcGl2MS9mbGVldGVuZ2luZXBiO2ZsZWV0ZW5naW5lcGKiAgND", - "RkWqAhpHb29nbGUuTWFwcy5GbGVldEVuZ2luZS5WMcoCGkdvb2dsZVxNYXBz", - "XEZsZWV0RW5naW5lXFYx6gIdR29vZ2xlOjpNYXBzOjpGbGVldEVuZ2luZTo6", - "VjFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Maps.FleetEngine.V1.FleetengineReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Maps.FleetEngine.V1.VehicleState), typeof(global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode), typeof(global::Google.Maps.FleetEngine.V1.BatteryStatus), typeof(global::Google.Maps.FleetEngine.V1.PowerSource), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.Vehicle), global::Google.Maps.FleetEngine.V1.Vehicle.Parser, new[]{ "Name", "VehicleState", "SupportedTripTypes", "CurrentTrips", "LastLocation", "MaximumCapacity", "Attributes", "VehicleType", "LicensePlate", "Route", "CurrentRouteSegment", "CurrentRouteSegmentTraffic", "CurrentRouteSegmentVersion", "CurrentRouteSegmentEndPoint", "RemainingDistanceMeters", "EtaToFirstWaypoint", "RemainingTimeSeconds", "Waypoints", "WaypointsVersion", "BackToBackEnabled", "NavigationStatus", "DeviceSettings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType), global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Parser, new[]{ "Category" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category) }, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.BatteryInfo), global::Google.Maps.FleetEngine.V1.BatteryInfo.Parser, new[]{ "BatteryStatus", "PowerSource", "BatteryPercentage" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.DeviceSettings), global::Google.Maps.FleetEngine.V1.DeviceSettings.Parser, new[]{ "LocationPowerSaveMode", "IsPowerSaveMode", "IsInteractive", "BatteryInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.LicensePlate), global::Google.Maps.FleetEngine.V1.LicensePlate.Parser, new[]{ "CountryCode", "LastCharacter" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering), global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Parser, new[]{ "RoadStretch" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch), global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Parser, new[]{ "Style", "OffsetMeters", "LengthMeters" }, null, new[]{ typeof(global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style) }, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.FleetEngine.V1.TrafficPolylineData), global::Google.Maps.FleetEngine.V1.TrafficPolylineData.Parser, new[]{ "TrafficRendering" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - /// The state of a `Vehicle`. - /// - public enum VehicleState { - /// - /// Default, used for unspecified or unrecognized vehicle states. - /// - [pbr::OriginalName("UNKNOWN_VEHICLE_STATE")] UnknownVehicleState = 0, - /// - /// The vehicle is not accepting new trips. Note: the vehicle may continue to - /// operate in this state while completing a trip assigned to it. - /// - [pbr::OriginalName("OFFLINE")] Offline = 1, - /// - /// The vehicle is accepting new trips. - /// - [pbr::OriginalName("ONLINE")] Online = 2, - } - - /// - /// How location features are configured to behave on the mobile device when the - /// devices "battery saver" feature is on. - /// (https://developer.android.com/reference/android/os/PowerManager#getLocationPowerSaveMode()) - /// - public enum LocationPowerSaveMode { - /// - /// Undefined LocationPowerSaveMode - /// - [pbr::OriginalName("UNKNOWN_LOCATION_POWER_SAVE_MODE")] UnknownLocationPowerSaveMode = 0, - /// - /// Either the location providers shouldn't be affected by battery saver, or - /// battery saver is off. - /// - [pbr::OriginalName("LOCATION_MODE_NO_CHANGE")] LocationModeNoChange = 1, - /// - /// The GPS based location provider should be disabled when battery saver is on - /// and the device is non-interactive. - /// - [pbr::OriginalName("LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF")] LocationModeGpsDisabledWhenScreenOff = 2, - /// - /// All location providers should be disabled when battery saver is on and the - /// device is non-interactive. - /// - [pbr::OriginalName("LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF")] LocationModeAllDisabledWhenScreenOff = 3, - /// - /// All the location providers will be kept available, but location fixes - /// should only be provided to foreground apps. - /// - [pbr::OriginalName("LOCATION_MODE_FOREGROUND_ONLY")] LocationModeForegroundOnly = 4, - /// - /// Location will not be turned off, but LocationManager will throttle all - /// requests to providers when the device is non-interactive. - /// - [pbr::OriginalName("LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF")] LocationModeThrottleRequestsWhenScreenOff = 5, - } - - /// - /// Status of the battery, whether full or charging etc. - /// - public enum BatteryStatus { - /// - /// Battery status unknown. - /// - [pbr::OriginalName("UNKNOWN_BATTERY_STATUS")] UnknownBatteryStatus = 0, - /// - /// Battery is being charged. - /// - [pbr::OriginalName("BATTERY_STATUS_CHARGING")] Charging = 1, - /// - /// Battery is discharging. - /// - [pbr::OriginalName("BATTERY_STATUS_DISCHARGING")] Discharging = 2, - /// - /// Battery is full. - /// - [pbr::OriginalName("BATTERY_STATUS_FULL")] Full = 3, - /// - /// Battery is not charging. - /// - [pbr::OriginalName("BATTERY_STATUS_NOT_CHARGING")] NotCharging = 4, - /// - /// Battery is low on power. - /// - [pbr::OriginalName("BATTERY_STATUS_POWER_LOW")] PowerLow = 5, - } - - /// - /// Type of the charger being used to charge the battery. - /// - public enum PowerSource { - /// - /// Power source unknown. - /// - [pbr::OriginalName("UNKNOWN_POWER_SOURCE")] UnknownPowerSource = 0, - /// - /// Power source is an AC charger. - /// - [pbr::OriginalName("POWER_SOURCE_AC")] Ac = 1, - /// - /// Power source is a USB port. - /// - [pbr::OriginalName("POWER_SOURCE_USB")] Usb = 2, - /// - /// Power source is wireless. - /// - [pbr::OriginalName("POWER_SOURCE_WIRELESS")] Wireless = 3, - /// - /// Battery is unplugged. - /// - [pbr::OriginalName("POWER_SOURCE_UNPLUGGED")] Unplugged = 4, - } - - #endregion - - #region Messages - /// - /// Vehicle metadata. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Vehicle : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vehicle()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vehicle() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vehicle(Vehicle other) : this() { - name_ = other.name_; - vehicleState_ = other.vehicleState_; - supportedTripTypes_ = other.supportedTripTypes_.Clone(); - currentTrips_ = other.currentTrips_.Clone(); - lastLocation_ = other.lastLocation_ != null ? other.lastLocation_.Clone() : null; - maximumCapacity_ = other.maximumCapacity_; - attributes_ = other.attributes_.Clone(); - vehicleType_ = other.vehicleType_ != null ? other.vehicleType_.Clone() : null; - licensePlate_ = other.licensePlate_ != null ? other.licensePlate_.Clone() : null; - route_ = other.route_.Clone(); - currentRouteSegment_ = other.currentRouteSegment_; - currentRouteSegmentTraffic_ = other.currentRouteSegmentTraffic_ != null ? other.currentRouteSegmentTraffic_.Clone() : null; - currentRouteSegmentVersion_ = other.currentRouteSegmentVersion_ != null ? other.currentRouteSegmentVersion_.Clone() : null; - currentRouteSegmentEndPoint_ = other.currentRouteSegmentEndPoint_ != null ? other.currentRouteSegmentEndPoint_.Clone() : null; - RemainingDistanceMeters = other.RemainingDistanceMeters; - etaToFirstWaypoint_ = other.etaToFirstWaypoint_ != null ? other.etaToFirstWaypoint_.Clone() : null; - RemainingTimeSeconds = other.RemainingTimeSeconds; - waypoints_ = other.waypoints_.Clone(); - waypointsVersion_ = other.waypointsVersion_ != null ? other.waypointsVersion_.Clone() : null; - backToBackEnabled_ = other.backToBackEnabled_; - navigationStatus_ = other.navigationStatus_; - deviceSettings_ = other.deviceSettings_ != null ? other.deviceSettings_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vehicle Clone() { - return new Vehicle(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Output only. The unique name for this vehicle. - /// The format is `providers/{provider}/vehicles/{vehicle}`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vehicle_state" field. - public const int VehicleStateFieldNumber = 2; - private global::Google.Maps.FleetEngine.V1.VehicleState vehicleState_ = global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState; - /// - /// The vehicle state. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VehicleState VehicleState { - get { return vehicleState_; } - set { - vehicleState_ = value; - } - } - - /// Field number for the "supported_trip_types" field. - public const int SupportedTripTypesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_supportedTripTypes_codec - = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Google.Maps.FleetEngine.V1.TripType) x); - private readonly pbc::RepeatedField supportedTripTypes_ = new pbc::RepeatedField(); - /// - /// Trip types supported by this vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SupportedTripTypes { - get { return supportedTripTypes_; } - } - - /// Field number for the "current_trips" field. - public const int CurrentTripsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_currentTrips_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField currentTrips_ = new pbc::RepeatedField(); - /// - /// Output only. List of `trip_id`'s for trips currently assigned to this - /// vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CurrentTrips { - get { return currentTrips_; } - } - - /// Field number for the "last_location" field. - public const int LastLocationFieldNumber = 5; - private global::Google.Maps.FleetEngine.V1.VehicleLocation lastLocation_; - /// - /// Last reported location of the vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VehicleLocation LastLocation { - get { return lastLocation_; } - set { - lastLocation_ = value; - } - } - - /// Field number for the "maximum_capacity" field. - public const int MaximumCapacityFieldNumber = 6; - private int maximumCapacity_; - /// - /// The total numbers of riders this vehicle can carry. The driver is not - /// considered in this value. This value must be greater than or equal to one. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MaximumCapacity { - get { return maximumCapacity_; } - set { - maximumCapacity_ = value; - } - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(66, global::Google.Maps.FleetEngine.V1.VehicleAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// List of vehicle attributes. A vehicle can have at most 100 - /// attributes, and each attribute must have a unique key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - /// Field number for the "vehicle_type" field. - public const int VehicleTypeFieldNumber = 9; - private global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType vehicleType_; - /// - /// Required. The type of this vehicle. Can be used to filter vehicles in - /// `SearchVehicles` results. Also influences ETA and route calculations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType VehicleType { - get { return vehicleType_; } - set { - vehicleType_ = value; - } - } - - /// Field number for the "license_plate" field. - public const int LicensePlateFieldNumber = 10; - private global::Google.Maps.FleetEngine.V1.LicensePlate licensePlate_; - /// - /// License plate information for the vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.LicensePlate LicensePlate { - get { return licensePlate_; } - set { - licensePlate_ = value; - } - } - - /// Field number for the "route" field. - public const int RouteFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_route_codec - = pb::FieldCodec.ForMessage(98, global::Google.Maps.FleetEngine.V1.TerminalLocation.Parser); - private readonly pbc::RepeatedField route_ = new pbc::RepeatedField(); - /// - /// Deprecated: Use `Vehicle.waypoints` instead. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Route { - get { return route_; } - } - - /// Field number for the "current_route_segment" field. - public const int CurrentRouteSegmentFieldNumber = 20; - private string currentRouteSegment_ = ""; - /// - /// The polyline specifying the route the driver app intends to take to - /// the next waypoint. This list is also returned in - /// `Trip.current_route_segment` for all active trips assigned to the vehicle. - /// - /// Note: This field is intended only for use by the Driver SDK. Decoding is - /// not yet supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrentRouteSegment { - get { return currentRouteSegment_; } - set { - currentRouteSegment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "current_route_segment_traffic" field. - public const int CurrentRouteSegmentTrafficFieldNumber = 28; - private global::Google.Maps.FleetEngine.V1.TrafficPolylineData currentRouteSegmentTraffic_; - /// - /// Input only. Fleet Engine uses this information to improve journey sharing. - /// Note: This field is intended only for use by the Driver SDK. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TrafficPolylineData CurrentRouteSegmentTraffic { - get { return currentRouteSegmentTraffic_; } - set { - currentRouteSegmentTraffic_ = value; - } - } - - /// Field number for the "current_route_segment_version" field. - public const int CurrentRouteSegmentVersionFieldNumber = 15; - private global::Google.Protobuf.WellKnownTypes.Timestamp currentRouteSegmentVersion_; - /// - /// Output only. Time when `current_route_segment` was set. It can be stored by - /// the client and passed in future `GetVehicle` requests to prevent returning - /// routes that haven't changed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CurrentRouteSegmentVersion { - get { return currentRouteSegmentVersion_; } - set { - currentRouteSegmentVersion_ = value; - } - } - - /// Field number for the "current_route_segment_end_point" field. - public const int CurrentRouteSegmentEndPointFieldNumber = 24; - private global::Google.Maps.FleetEngine.V1.TripWaypoint currentRouteSegmentEndPoint_; - /// - /// The waypoint where `current_route_segment` ends. This can be supplied by - /// drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - /// `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - /// Engine will then do its best to interpolate to an actual waypoint if it is - /// not fully specified. This field is ignored in `UpdateVehicle` calls unless - /// `current_route_segment` is also specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.TripWaypoint CurrentRouteSegmentEndPoint { - get { return currentRouteSegmentEndPoint_; } - set { - currentRouteSegmentEndPoint_ = value; - } - } - - /// Field number for the "remaining_distance_meters" field. - public const int RemainingDistanceMetersFieldNumber = 18; - private static readonly pb::FieldCodec _single_remainingDistanceMeters_codec = pb::FieldCodec.ForStructWrapper(146); - private int? remainingDistanceMeters_; - /// - /// The remaining driving distance for the `current_route_segment`. - /// This value is also returned in `Trip.remaining_distance_meters` for all - /// active trips assigned to the vehicle. The value is unspecified if the - /// `current_route_segment` field is empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? RemainingDistanceMeters { - get { return remainingDistanceMeters_; } - set { - remainingDistanceMeters_ = value; - } - } - - - /// Field number for the "eta_to_first_waypoint" field. - public const int EtaToFirstWaypointFieldNumber = 19; - private global::Google.Protobuf.WellKnownTypes.Timestamp etaToFirstWaypoint_; - /// - /// The ETA to the first entry in the `waypoints` field. The value is - /// unspecified if the `waypoints` field is empty or the - /// `Vehicle.current_route_segment` field is empty. - /// - /// When updating a vehicle, `remaining_time_seconds` takes precedence over - /// `eta_to_first_waypoint` in the same request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp EtaToFirstWaypoint { - get { return etaToFirstWaypoint_; } - set { - etaToFirstWaypoint_ = value; - } - } - - /// Field number for the "remaining_time_seconds" field. - public const int RemainingTimeSecondsFieldNumber = 25; - private static readonly pb::FieldCodec _single_remainingTimeSeconds_codec = pb::FieldCodec.ForStructWrapper(202); - private int? remainingTimeSeconds_; - /// - /// Input only. The remaining driving time for the `current_route_segment`. The - /// value is unspecified if the `waypoints` field is empty or the - /// `Vehicle.current_route_segment` field is empty. This value should match - /// `eta_to_first_waypoint` - `current_time` if all parties are using the same - /// clock. - /// - /// When updating a vehicle, `remaining_time_seconds` takes precedence over - /// `eta_to_first_waypoint` in the same request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? RemainingTimeSeconds { - get { return remainingTimeSeconds_; } - set { - remainingTimeSeconds_ = value; - } - } - - - /// Field number for the "waypoints" field. - public const int WaypointsFieldNumber = 22; - private static readonly pb::FieldCodec _repeated_waypoints_codec - = pb::FieldCodec.ForMessage(178, global::Google.Maps.FleetEngine.V1.TripWaypoint.Parser); - private readonly pbc::RepeatedField waypoints_ = new pbc::RepeatedField(); - /// - /// The remaining waypoints assigned to this Vehicle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Waypoints { - get { return waypoints_; } - } - - /// Field number for the "waypoints_version" field. - public const int WaypointsVersionFieldNumber = 16; - private global::Google.Protobuf.WellKnownTypes.Timestamp waypointsVersion_; - /// - /// Output only. Last time the `waypoints` field was updated. Clients should - /// cache this value and pass it in `GetVehicleRequest` to ensure the - /// `waypoints` field is only returned if it is updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp WaypointsVersion { - get { return waypointsVersion_; } - set { - waypointsVersion_ = value; - } - } - - /// Field number for the "back_to_back_enabled" field. - public const int BackToBackEnabledFieldNumber = 23; - private bool backToBackEnabled_; - /// - /// Indicates if the driver accepts back-to-back trips. If `true`, - /// `SearchVehicles` may include the vehicle even if it is currently assigned - /// to a trip. The default value is `false`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool BackToBackEnabled { - get { return backToBackEnabled_; } - set { - backToBackEnabled_ = value; - } - } - - /// Field number for the "navigation_status" field. - public const int NavigationStatusFieldNumber = 26; - private global::Google.Maps.FleetEngine.V1.NavigationStatus navigationStatus_ = global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus; - /// - /// The vehicle's navigation status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.NavigationStatus NavigationStatus { - get { return navigationStatus_; } - set { - navigationStatus_ = value; - } - } - - /// Field number for the "device_settings" field. - public const int DeviceSettingsFieldNumber = 27; - private global::Google.Maps.FleetEngine.V1.DeviceSettings deviceSettings_; - /// - /// Input only. Information about settings in the mobile device being used by - /// the driver. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.DeviceSettings DeviceSettings { - get { return deviceSettings_; } - set { - deviceSettings_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Vehicle); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Vehicle other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (VehicleState != other.VehicleState) return false; - if(!supportedTripTypes_.Equals(other.supportedTripTypes_)) return false; - if(!currentTrips_.Equals(other.currentTrips_)) return false; - if (!object.Equals(LastLocation, other.LastLocation)) return false; - if (MaximumCapacity != other.MaximumCapacity) return false; - if(!attributes_.Equals(other.attributes_)) return false; - if (!object.Equals(VehicleType, other.VehicleType)) return false; - if (!object.Equals(LicensePlate, other.LicensePlate)) return false; - if(!route_.Equals(other.route_)) return false; - if (CurrentRouteSegment != other.CurrentRouteSegment) return false; - if (!object.Equals(CurrentRouteSegmentTraffic, other.CurrentRouteSegmentTraffic)) return false; - if (!object.Equals(CurrentRouteSegmentVersion, other.CurrentRouteSegmentVersion)) return false; - if (!object.Equals(CurrentRouteSegmentEndPoint, other.CurrentRouteSegmentEndPoint)) return false; - if (RemainingDistanceMeters != other.RemainingDistanceMeters) return false; - if (!object.Equals(EtaToFirstWaypoint, other.EtaToFirstWaypoint)) return false; - if (RemainingTimeSeconds != other.RemainingTimeSeconds) return false; - if(!waypoints_.Equals(other.waypoints_)) return false; - if (!object.Equals(WaypointsVersion, other.WaypointsVersion)) return false; - if (BackToBackEnabled != other.BackToBackEnabled) return false; - if (NavigationStatus != other.NavigationStatus) return false; - if (!object.Equals(DeviceSettings, other.DeviceSettings)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) hash ^= VehicleState.GetHashCode(); - hash ^= supportedTripTypes_.GetHashCode(); - hash ^= currentTrips_.GetHashCode(); - if (lastLocation_ != null) hash ^= LastLocation.GetHashCode(); - if (MaximumCapacity != 0) hash ^= MaximumCapacity.GetHashCode(); - hash ^= attributes_.GetHashCode(); - if (vehicleType_ != null) hash ^= VehicleType.GetHashCode(); - if (licensePlate_ != null) hash ^= LicensePlate.GetHashCode(); - hash ^= route_.GetHashCode(); - if (CurrentRouteSegment.Length != 0) hash ^= CurrentRouteSegment.GetHashCode(); - if (currentRouteSegmentTraffic_ != null) hash ^= CurrentRouteSegmentTraffic.GetHashCode(); - if (currentRouteSegmentVersion_ != null) hash ^= CurrentRouteSegmentVersion.GetHashCode(); - if (currentRouteSegmentEndPoint_ != null) hash ^= CurrentRouteSegmentEndPoint.GetHashCode(); - if (remainingDistanceMeters_ != null) hash ^= RemainingDistanceMeters.GetHashCode(); - if (etaToFirstWaypoint_ != null) hash ^= EtaToFirstWaypoint.GetHashCode(); - if (remainingTimeSeconds_ != null) hash ^= RemainingTimeSeconds.GetHashCode(); - hash ^= waypoints_.GetHashCode(); - if (waypointsVersion_ != null) hash ^= WaypointsVersion.GetHashCode(); - if (BackToBackEnabled != false) hash ^= BackToBackEnabled.GetHashCode(); - if (NavigationStatus != global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus) hash ^= NavigationStatus.GetHashCode(); - if (deviceSettings_ != null) hash ^= DeviceSettings.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - output.WriteRawTag(16); - output.WriteEnum((int) VehicleState); - } - supportedTripTypes_.WriteTo(output, _repeated_supportedTripTypes_codec); - currentTrips_.WriteTo(output, _repeated_currentTrips_codec); - if (lastLocation_ != null) { - output.WriteRawTag(42); - output.WriteMessage(LastLocation); - } - if (MaximumCapacity != 0) { - output.WriteRawTag(48); - output.WriteInt32(MaximumCapacity); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (vehicleType_ != null) { - output.WriteRawTag(74); - output.WriteMessage(VehicleType); - } - if (licensePlate_ != null) { - output.WriteRawTag(82); - output.WriteMessage(LicensePlate); - } - route_.WriteTo(output, _repeated_route_codec); - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(122); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (waypointsVersion_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(WaypointsVersion); - } - if (remainingDistanceMeters_ != null) { - _single_remainingDistanceMeters_codec.WriteTagAndValue(output, RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(EtaToFirstWaypoint); - } - if (CurrentRouteSegment.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(CurrentRouteSegment); - } - waypoints_.WriteTo(output, _repeated_waypoints_codec); - if (BackToBackEnabled != false) { - output.WriteRawTag(184, 1); - output.WriteBool(BackToBackEnabled); - } - if (currentRouteSegmentEndPoint_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(CurrentRouteSegmentEndPoint); - } - if (remainingTimeSeconds_ != null) { - _single_remainingTimeSeconds_codec.WriteTagAndValue(output, RemainingTimeSeconds); - } - if (NavigationStatus != global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) NavigationStatus); - } - if (deviceSettings_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(DeviceSettings); - } - if (currentRouteSegmentTraffic_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(CurrentRouteSegmentTraffic); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - output.WriteRawTag(16); - output.WriteEnum((int) VehicleState); - } - supportedTripTypes_.WriteTo(ref output, _repeated_supportedTripTypes_codec); - currentTrips_.WriteTo(ref output, _repeated_currentTrips_codec); - if (lastLocation_ != null) { - output.WriteRawTag(42); - output.WriteMessage(LastLocation); - } - if (MaximumCapacity != 0) { - output.WriteRawTag(48); - output.WriteInt32(MaximumCapacity); - } - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (vehicleType_ != null) { - output.WriteRawTag(74); - output.WriteMessage(VehicleType); - } - if (licensePlate_ != null) { - output.WriteRawTag(82); - output.WriteMessage(LicensePlate); - } - route_.WriteTo(ref output, _repeated_route_codec); - if (currentRouteSegmentVersion_ != null) { - output.WriteRawTag(122); - output.WriteMessage(CurrentRouteSegmentVersion); - } - if (waypointsVersion_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(WaypointsVersion); - } - if (remainingDistanceMeters_ != null) { - _single_remainingDistanceMeters_codec.WriteTagAndValue(ref output, RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(EtaToFirstWaypoint); - } - if (CurrentRouteSegment.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(CurrentRouteSegment); - } - waypoints_.WriteTo(ref output, _repeated_waypoints_codec); - if (BackToBackEnabled != false) { - output.WriteRawTag(184, 1); - output.WriteBool(BackToBackEnabled); - } - if (currentRouteSegmentEndPoint_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(CurrentRouteSegmentEndPoint); - } - if (remainingTimeSeconds_ != null) { - _single_remainingTimeSeconds_codec.WriteTagAndValue(ref output, RemainingTimeSeconds); - } - if (NavigationStatus != global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) NavigationStatus); - } - if (deviceSettings_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(DeviceSettings); - } - if (currentRouteSegmentTraffic_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(CurrentRouteSegmentTraffic); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VehicleState); - } - size += supportedTripTypes_.CalculateSize(_repeated_supportedTripTypes_codec); - size += currentTrips_.CalculateSize(_repeated_currentTrips_codec); - if (lastLocation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastLocation); - } - if (MaximumCapacity != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumCapacity); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (vehicleType_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VehicleType); - } - if (licensePlate_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LicensePlate); - } - size += route_.CalculateSize(_repeated_route_codec); - if (CurrentRouteSegment.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrentRouteSegment); - } - if (currentRouteSegmentTraffic_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentTraffic); - } - if (currentRouteSegmentVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentVersion); - } - if (currentRouteSegmentEndPoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrentRouteSegmentEndPoint); - } - if (remainingDistanceMeters_ != null) { - size += _single_remainingDistanceMeters_codec.CalculateSizeWithTag(RemainingDistanceMeters); - } - if (etaToFirstWaypoint_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(EtaToFirstWaypoint); - } - if (remainingTimeSeconds_ != null) { - size += _single_remainingTimeSeconds_codec.CalculateSizeWithTag(RemainingTimeSeconds); - } - size += waypoints_.CalculateSize(_repeated_waypoints_codec); - if (waypointsVersion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(WaypointsVersion); - } - if (BackToBackEnabled != false) { - size += 2 + 1; - } - if (NavigationStatus != global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NavigationStatus); - } - if (deviceSettings_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DeviceSettings); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Vehicle other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.VehicleState != global::Google.Maps.FleetEngine.V1.VehicleState.UnknownVehicleState) { - VehicleState = other.VehicleState; - } - supportedTripTypes_.Add(other.supportedTripTypes_); - currentTrips_.Add(other.currentTrips_); - if (other.lastLocation_ != null) { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - LastLocation.MergeFrom(other.LastLocation); - } - if (other.MaximumCapacity != 0) { - MaximumCapacity = other.MaximumCapacity; - } - attributes_.Add(other.attributes_); - if (other.vehicleType_ != null) { - if (vehicleType_ == null) { - VehicleType = new global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType(); - } - VehicleType.MergeFrom(other.VehicleType); - } - if (other.licensePlate_ != null) { - if (licensePlate_ == null) { - LicensePlate = new global::Google.Maps.FleetEngine.V1.LicensePlate(); - } - LicensePlate.MergeFrom(other.LicensePlate); - } - route_.Add(other.route_); - if (other.CurrentRouteSegment.Length != 0) { - CurrentRouteSegment = other.CurrentRouteSegment; - } - if (other.currentRouteSegmentTraffic_ != null) { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.TrafficPolylineData(); - } - CurrentRouteSegmentTraffic.MergeFrom(other.CurrentRouteSegmentTraffic); - } - if (other.currentRouteSegmentVersion_ != null) { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CurrentRouteSegmentVersion.MergeFrom(other.CurrentRouteSegmentVersion); - } - if (other.currentRouteSegmentEndPoint_ != null) { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - CurrentRouteSegmentEndPoint.MergeFrom(other.CurrentRouteSegmentEndPoint); - } - if (other.remainingDistanceMeters_ != null) { - if (remainingDistanceMeters_ == null || other.RemainingDistanceMeters != 0) { - RemainingDistanceMeters = other.RemainingDistanceMeters; - } - } - if (other.etaToFirstWaypoint_ != null) { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - EtaToFirstWaypoint.MergeFrom(other.EtaToFirstWaypoint); - } - if (other.remainingTimeSeconds_ != null) { - if (remainingTimeSeconds_ == null || other.RemainingTimeSeconds != 0) { - RemainingTimeSeconds = other.RemainingTimeSeconds; - } - } - waypoints_.Add(other.waypoints_); - if (other.waypointsVersion_ != null) { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - WaypointsVersion.MergeFrom(other.WaypointsVersion); - } - if (other.BackToBackEnabled != false) { - BackToBackEnabled = other.BackToBackEnabled; - } - if (other.NavigationStatus != global::Google.Maps.FleetEngine.V1.NavigationStatus.UnknownNavigationStatus) { - NavigationStatus = other.NavigationStatus; - } - if (other.deviceSettings_ != null) { - if (deviceSettings_ == null) { - DeviceSettings = new global::Google.Maps.FleetEngine.V1.DeviceSettings(); - } - DeviceSettings.MergeFrom(other.DeviceSettings); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - VehicleState = (global::Google.Maps.FleetEngine.V1.VehicleState) input.ReadEnum(); - break; - } - case 26: - case 24: { - supportedTripTypes_.AddEntriesFrom(input, _repeated_supportedTripTypes_codec); - break; - } - case 34: { - currentTrips_.AddEntriesFrom(input, _repeated_currentTrips_codec); - break; - } - case 42: { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - input.ReadMessage(LastLocation); - break; - } - case 48: { - MaximumCapacity = input.ReadInt32(); - break; - } - case 66: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - case 74: { - if (vehicleType_ == null) { - VehicleType = new global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType(); - } - input.ReadMessage(VehicleType); - break; - } - case 82: { - if (licensePlate_ == null) { - LicensePlate = new global::Google.Maps.FleetEngine.V1.LicensePlate(); - } - input.ReadMessage(LicensePlate); - break; - } - case 98: { - route_.AddEntriesFrom(input, _repeated_route_codec); - break; - } - case 122: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 130: { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(WaypointsVersion); - break; - } - case 146: { - int? value = _single_remainingDistanceMeters_codec.Read(input); - if (remainingDistanceMeters_ == null || value != 0) { - RemainingDistanceMeters = value; - } - break; - } - case 154: { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(EtaToFirstWaypoint); - break; - } - case 162: { - CurrentRouteSegment = input.ReadString(); - break; - } - case 178: { - waypoints_.AddEntriesFrom(input, _repeated_waypoints_codec); - break; - } - case 184: { - BackToBackEnabled = input.ReadBool(); - break; - } - case 194: { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - input.ReadMessage(CurrentRouteSegmentEndPoint); - break; - } - case 202: { - int? value = _single_remainingTimeSeconds_codec.Read(input); - if (remainingTimeSeconds_ == null || value != 0) { - RemainingTimeSeconds = value; - } - break; - } - case 208: { - NavigationStatus = (global::Google.Maps.FleetEngine.V1.NavigationStatus) input.ReadEnum(); - break; - } - case 218: { - if (deviceSettings_ == null) { - DeviceSettings = new global::Google.Maps.FleetEngine.V1.DeviceSettings(); - } - input.ReadMessage(DeviceSettings); - break; - } - case 226: { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.TrafficPolylineData(); - } - input.ReadMessage(CurrentRouteSegmentTraffic); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - VehicleState = (global::Google.Maps.FleetEngine.V1.VehicleState) input.ReadEnum(); - break; - } - case 26: - case 24: { - supportedTripTypes_.AddEntriesFrom(ref input, _repeated_supportedTripTypes_codec); - break; - } - case 34: { - currentTrips_.AddEntriesFrom(ref input, _repeated_currentTrips_codec); - break; - } - case 42: { - if (lastLocation_ == null) { - LastLocation = new global::Google.Maps.FleetEngine.V1.VehicleLocation(); - } - input.ReadMessage(LastLocation); - break; - } - case 48: { - MaximumCapacity = input.ReadInt32(); - break; - } - case 66: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - case 74: { - if (vehicleType_ == null) { - VehicleType = new global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType(); - } - input.ReadMessage(VehicleType); - break; - } - case 82: { - if (licensePlate_ == null) { - LicensePlate = new global::Google.Maps.FleetEngine.V1.LicensePlate(); - } - input.ReadMessage(LicensePlate); - break; - } - case 98: { - route_.AddEntriesFrom(ref input, _repeated_route_codec); - break; - } - case 122: { - if (currentRouteSegmentVersion_ == null) { - CurrentRouteSegmentVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CurrentRouteSegmentVersion); - break; - } - case 130: { - if (waypointsVersion_ == null) { - WaypointsVersion = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(WaypointsVersion); - break; - } - case 146: { - int? value = _single_remainingDistanceMeters_codec.Read(ref input); - if (remainingDistanceMeters_ == null || value != 0) { - RemainingDistanceMeters = value; - } - break; - } - case 154: { - if (etaToFirstWaypoint_ == null) { - EtaToFirstWaypoint = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(EtaToFirstWaypoint); - break; - } - case 162: { - CurrentRouteSegment = input.ReadString(); - break; - } - case 178: { - waypoints_.AddEntriesFrom(ref input, _repeated_waypoints_codec); - break; - } - case 184: { - BackToBackEnabled = input.ReadBool(); - break; - } - case 194: { - if (currentRouteSegmentEndPoint_ == null) { - CurrentRouteSegmentEndPoint = new global::Google.Maps.FleetEngine.V1.TripWaypoint(); - } - input.ReadMessage(CurrentRouteSegmentEndPoint); - break; - } - case 202: { - int? value = _single_remainingTimeSeconds_codec.Read(ref input); - if (remainingTimeSeconds_ == null || value != 0) { - RemainingTimeSeconds = value; - } - break; - } - case 208: { - NavigationStatus = (global::Google.Maps.FleetEngine.V1.NavigationStatus) input.ReadEnum(); - break; - } - case 218: { - if (deviceSettings_ == null) { - DeviceSettings = new global::Google.Maps.FleetEngine.V1.DeviceSettings(); - } - input.ReadMessage(DeviceSettings); - break; - } - case 226: { - if (currentRouteSegmentTraffic_ == null) { - CurrentRouteSegmentTraffic = new global::Google.Maps.FleetEngine.V1.TrafficPolylineData(); - } - input.ReadMessage(CurrentRouteSegmentTraffic); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Vehicle message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of vehicle. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VehicleType : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VehicleType()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.Vehicle.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleType() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleType(VehicleType other) : this() { - category_ = other.category_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VehicleType Clone() { - return new VehicleType(this); - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category category_ = global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown; - /// - /// Vehicle type category - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category Category { - get { return category_; } - set { - category_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VehicleType); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VehicleType other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Category != other.Category) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Category != global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown) hash ^= Category.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Category != global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown) { - output.WriteRawTag(8); - output.WriteEnum((int) Category); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Category != global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown) { - output.WriteRawTag(8); - output.WriteEnum((int) Category); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Category != global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VehicleType other) { - if (other == null) { - return; - } - if (other.Category != global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category.Unknown) { - Category = other.Category; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Category = (global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Category = (global::Google.Maps.FleetEngine.V1.Vehicle.Types.VehicleType.Types.Category) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the VehicleType message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Vehicle type categories - /// - public enum Category { - /// - /// Default, used for unspecified or unrecognized vehicle categories. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - /// - /// An automobile. - /// - [pbr::OriginalName("AUTO")] Auto = 1, - /// - /// Any vehicle that acts as a taxi (typically licensed or regulated). - /// - [pbr::OriginalName("TAXI")] Taxi = 2, - /// - /// Generally, a vehicle with a large storage capacity. - /// - [pbr::OriginalName("TRUCK")] Truck = 3, - /// - /// A motorcycle, moped, or other two-wheeled vehicle - /// - [pbr::OriginalName("TWO_WHEELER")] TwoWheeler = 4, - /// - /// Human-powered transport. - /// - [pbr::OriginalName("BICYCLE")] Bicycle = 5, - /// - /// A human transporter, typically walking or running, traveling along - /// pedestrian pathways. - /// - [pbr::OriginalName("PEDESTRIAN")] Pedestrian = 6, - } - - } - #endregion - - } - - } - #endregion - - } - - /// - /// Information about the device's battery. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class BatteryInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatteryInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatteryInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatteryInfo(BatteryInfo other) : this() { - batteryStatus_ = other.batteryStatus_; - powerSource_ = other.powerSource_; - batteryPercentage_ = other.batteryPercentage_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatteryInfo Clone() { - return new BatteryInfo(this); - } - - /// Field number for the "battery_status" field. - public const int BatteryStatusFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.BatteryStatus batteryStatus_ = global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus; - /// - /// Status of the battery, whether full or charging etc. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.BatteryStatus BatteryStatus { - get { return batteryStatus_; } - set { - batteryStatus_ = value; - } - } - - /// Field number for the "power_source" field. - public const int PowerSourceFieldNumber = 2; - private global::Google.Maps.FleetEngine.V1.PowerSource powerSource_ = global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource; - /// - /// Status of battery power source. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.PowerSource PowerSource { - get { return powerSource_; } - set { - powerSource_ = value; - } - } - - /// Field number for the "battery_percentage" field. - public const int BatteryPercentageFieldNumber = 3; - private float batteryPercentage_; - /// - /// Current battery percentage [0-100]. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float BatteryPercentage { - get { return batteryPercentage_; } - set { - batteryPercentage_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatteryInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatteryInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BatteryStatus != other.BatteryStatus) return false; - if (PowerSource != other.PowerSource) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BatteryPercentage, other.BatteryPercentage)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BatteryStatus != global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus) hash ^= BatteryStatus.GetHashCode(); - if (PowerSource != global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource) hash ^= PowerSource.GetHashCode(); - if (BatteryPercentage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BatteryPercentage); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BatteryStatus != global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus) { - output.WriteRawTag(8); - output.WriteEnum((int) BatteryStatus); - } - if (PowerSource != global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource) { - output.WriteRawTag(16); - output.WriteEnum((int) PowerSource); - } - if (BatteryPercentage != 0F) { - output.WriteRawTag(29); - output.WriteFloat(BatteryPercentage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BatteryStatus != global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus) { - output.WriteRawTag(8); - output.WriteEnum((int) BatteryStatus); - } - if (PowerSource != global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource) { - output.WriteRawTag(16); - output.WriteEnum((int) PowerSource); - } - if (BatteryPercentage != 0F) { - output.WriteRawTag(29); - output.WriteFloat(BatteryPercentage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BatteryStatus != global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BatteryStatus); - } - if (PowerSource != global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PowerSource); - } - if (BatteryPercentage != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatteryInfo other) { - if (other == null) { - return; - } - if (other.BatteryStatus != global::Google.Maps.FleetEngine.V1.BatteryStatus.UnknownBatteryStatus) { - BatteryStatus = other.BatteryStatus; - } - if (other.PowerSource != global::Google.Maps.FleetEngine.V1.PowerSource.UnknownPowerSource) { - PowerSource = other.PowerSource; - } - if (other.BatteryPercentage != 0F) { - BatteryPercentage = other.BatteryPercentage; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - BatteryStatus = (global::Google.Maps.FleetEngine.V1.BatteryStatus) input.ReadEnum(); - break; - } - case 16: { - PowerSource = (global::Google.Maps.FleetEngine.V1.PowerSource) input.ReadEnum(); - break; - } - case 29: { - BatteryPercentage = input.ReadFloat(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - BatteryStatus = (global::Google.Maps.FleetEngine.V1.BatteryStatus) input.ReadEnum(); - break; - } - case 16: { - PowerSource = (global::Google.Maps.FleetEngine.V1.PowerSource) input.ReadEnum(); - break; - } - case 29: { - BatteryPercentage = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - /// - /// Information about various settings on the mobile device. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class DeviceSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceSettings()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceSettings(DeviceSettings other) : this() { - locationPowerSaveMode_ = other.locationPowerSaveMode_; - isPowerSaveMode_ = other.isPowerSaveMode_; - isInteractive_ = other.isInteractive_; - batteryInfo_ = other.batteryInfo_ != null ? other.batteryInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceSettings Clone() { - return new DeviceSettings(this); - } - - /// Field number for the "location_power_save_mode" field. - public const int LocationPowerSaveModeFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode locationPowerSaveMode_ = global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode; - /// - /// How location features are set to behave on the device when battery saver is - /// on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode LocationPowerSaveMode { - get { return locationPowerSaveMode_; } - set { - locationPowerSaveMode_ = value; - } - } - - /// Field number for the "is_power_save_mode" field. - public const int IsPowerSaveModeFieldNumber = 2; - private bool isPowerSaveMode_; - /// - /// Whether the device is currently in power save mode. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsPowerSaveMode { - get { return isPowerSaveMode_; } - set { - isPowerSaveMode_ = value; - } - } - - /// Field number for the "is_interactive" field. - public const int IsInteractiveFieldNumber = 3; - private bool isInteractive_; - /// - /// Whether the device is in an interactive state. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsInteractive { - get { return isInteractive_; } - set { - isInteractive_ = value; - } - } - - /// Field number for the "battery_info" field. - public const int BatteryInfoFieldNumber = 4; - private global::Google.Maps.FleetEngine.V1.BatteryInfo batteryInfo_; - /// - /// Information about the battery state. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.BatteryInfo BatteryInfo { - get { return batteryInfo_; } - set { - batteryInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LocationPowerSaveMode != other.LocationPowerSaveMode) return false; - if (IsPowerSaveMode != other.IsPowerSaveMode) return false; - if (IsInteractive != other.IsInteractive) return false; - if (!object.Equals(BatteryInfo, other.BatteryInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (LocationPowerSaveMode != global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode) hash ^= LocationPowerSaveMode.GetHashCode(); - if (IsPowerSaveMode != false) hash ^= IsPowerSaveMode.GetHashCode(); - if (IsInteractive != false) hash ^= IsInteractive.GetHashCode(); - if (batteryInfo_ != null) hash ^= BatteryInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (LocationPowerSaveMode != global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode) { - output.WriteRawTag(8); - output.WriteEnum((int) LocationPowerSaveMode); - } - if (IsPowerSaveMode != false) { - output.WriteRawTag(16); - output.WriteBool(IsPowerSaveMode); - } - if (IsInteractive != false) { - output.WriteRawTag(24); - output.WriteBool(IsInteractive); - } - if (batteryInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(BatteryInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LocationPowerSaveMode != global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode) { - output.WriteRawTag(8); - output.WriteEnum((int) LocationPowerSaveMode); - } - if (IsPowerSaveMode != false) { - output.WriteRawTag(16); - output.WriteBool(IsPowerSaveMode); - } - if (IsInteractive != false) { - output.WriteRawTag(24); - output.WriteBool(IsInteractive); - } - if (batteryInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(BatteryInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (LocationPowerSaveMode != global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationPowerSaveMode); - } - if (IsPowerSaveMode != false) { - size += 1 + 1; - } - if (IsInteractive != false) { - size += 1 + 1; - } - if (batteryInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BatteryInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceSettings other) { - if (other == null) { - return; - } - if (other.LocationPowerSaveMode != global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode.UnknownLocationPowerSaveMode) { - LocationPowerSaveMode = other.LocationPowerSaveMode; - } - if (other.IsPowerSaveMode != false) { - IsPowerSaveMode = other.IsPowerSaveMode; - } - if (other.IsInteractive != false) { - IsInteractive = other.IsInteractive; - } - if (other.batteryInfo_ != null) { - if (batteryInfo_ == null) { - BatteryInfo = new global::Google.Maps.FleetEngine.V1.BatteryInfo(); - } - BatteryInfo.MergeFrom(other.BatteryInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - LocationPowerSaveMode = (global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode) input.ReadEnum(); - break; - } - case 16: { - IsPowerSaveMode = input.ReadBool(); - break; - } - case 24: { - IsInteractive = input.ReadBool(); - break; - } - case 34: { - if (batteryInfo_ == null) { - BatteryInfo = new global::Google.Maps.FleetEngine.V1.BatteryInfo(); - } - input.ReadMessage(BatteryInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - LocationPowerSaveMode = (global::Google.Maps.FleetEngine.V1.LocationPowerSaveMode) input.ReadEnum(); - break; - } - case 16: { - IsPowerSaveMode = input.ReadBool(); - break; - } - case 24: { - IsInteractive = input.ReadBool(); - break; - } - case 34: { - if (batteryInfo_ == null) { - BatteryInfo = new global::Google.Maps.FleetEngine.V1.BatteryInfo(); - } - input.ReadMessage(BatteryInfo); - break; - } - } - } - } - #endif - - } - - /// - /// The license plate information of the Vehicle. To avoid storing - /// personally-identifiable information, only the minimum information - /// about the license plate is stored as part of the entity. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LicensePlate : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LicensePlate()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LicensePlate() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LicensePlate(LicensePlate other) : this() { - countryCode_ = other.countryCode_; - lastCharacter_ = other.lastCharacter_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LicensePlate Clone() { - return new LicensePlate(this); - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 1; - private string countryCode_ = ""; - /// - /// Required. CLDR Country/Region Code. For example, `US` for United States, - /// or `IN` for India. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "last_character" field. - public const int LastCharacterFieldNumber = 2; - private string lastCharacter_ = ""; - /// - /// The last digit of the license plate or "-1" to denote no numeric value - /// is present in the license plate. - /// - /// * "ABC 1234" -> "4" - /// * "AB 123 CD" -> "3" - /// * "ABCDEF" -> "-1" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LastCharacter { - get { return lastCharacter_; } - set { - lastCharacter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LicensePlate); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LicensePlate other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CountryCode != other.CountryCode) return false; - if (LastCharacter != other.LastCharacter) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); - if (LastCharacter.Length != 0) hash ^= LastCharacter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (LastCharacter.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LastCharacter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (LastCharacter.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LastCharacter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (LastCharacter.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LastCharacter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LicensePlate other) { - if (other == null) { - return; - } - if (other.CountryCode.Length != 0) { - CountryCode = other.CountryCode; - } - if (other.LastCharacter.Length != 0) { - LastCharacter = other.LastCharacter; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - LastCharacter = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - LastCharacter = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Describes how clients should color one portion of the polyline along the - /// route. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VisualTrafficReportPolylineRendering : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VisualTrafficReportPolylineRendering()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VisualTrafficReportPolylineRendering() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VisualTrafficReportPolylineRendering(VisualTrafficReportPolylineRendering other) : this() { - roadStretch_ = other.roadStretch_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VisualTrafficReportPolylineRendering Clone() { - return new VisualTrafficReportPolylineRendering(this); - } - - /// Field number for the "road_stretch" field. - public const int RoadStretchFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_roadStretch_codec - = pb::FieldCodec.ForMessage(10, global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Parser); - private readonly pbc::RepeatedField roadStretch_ = new pbc::RepeatedField(); - /// - /// Optional. Road stretches that should be rendered along the polyline. - /// Stretches are guaranteed to not overlap, and do not necessarily span the - /// full route. - /// - /// In the absence of a road stretch to style, the client should apply the - /// default for the route. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RoadStretch { - get { return roadStretch_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VisualTrafficReportPolylineRendering); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VisualTrafficReportPolylineRendering other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!roadStretch_.Equals(other.roadStretch_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= roadStretch_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - roadStretch_.WriteTo(output, _repeated_roadStretch_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - roadStretch_.WriteTo(ref output, _repeated_roadStretch_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += roadStretch_.CalculateSize(_repeated_roadStretch_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VisualTrafficReportPolylineRendering other) { - if (other == null) { - return; - } - roadStretch_.Add(other.roadStretch_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - roadStretch_.AddEntriesFrom(input, _repeated_roadStretch_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - roadStretch_.AddEntriesFrom(ref input, _repeated_roadStretch_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the VisualTrafficReportPolylineRendering message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// One road stretch that should be rendered. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoadStretch : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoadStretch()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoadStretch() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoadStretch(RoadStretch other) : this() { - style_ = other.style_; - offsetMeters_ = other.offsetMeters_; - lengthMeters_ = other.lengthMeters_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoadStretch Clone() { - return new RoadStretch(this); - } - - /// Field number for the "style" field. - public const int StyleFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style style_ = global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified; - /// - /// Required. The style to apply. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style Style { - get { return style_; } - set { - style_ = value; - } - } - - /// Field number for the "offset_meters" field. - public const int OffsetMetersFieldNumber = 2; - private int offsetMeters_; - /// - /// Required. The style should be applied between `[offset_meters, - /// offset_meters + length_meters)`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int OffsetMeters { - get { return offsetMeters_; } - set { - offsetMeters_ = value; - } - } - - /// Field number for the "length_meters" field. - public const int LengthMetersFieldNumber = 3; - private int lengthMeters_; - /// - /// Required. The length of the path where to apply the style. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LengthMeters { - get { return lengthMeters_; } - set { - lengthMeters_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RoadStretch); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoadStretch other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Style != other.Style) return false; - if (OffsetMeters != other.OffsetMeters) return false; - if (LengthMeters != other.LengthMeters) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Style != global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified) hash ^= Style.GetHashCode(); - if (OffsetMeters != 0) hash ^= OffsetMeters.GetHashCode(); - if (LengthMeters != 0) hash ^= LengthMeters.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Style != global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Style); - } - if (OffsetMeters != 0) { - output.WriteRawTag(16); - output.WriteInt32(OffsetMeters); - } - if (LengthMeters != 0) { - output.WriteRawTag(24); - output.WriteInt32(LengthMeters); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Style != global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Style); - } - if (OffsetMeters != 0) { - output.WriteRawTag(16); - output.WriteInt32(OffsetMeters); - } - if (LengthMeters != 0) { - output.WriteRawTag(24); - output.WriteInt32(LengthMeters); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Style != global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Style); - } - if (OffsetMeters != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(OffsetMeters); - } - if (LengthMeters != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LengthMeters); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoadStretch other) { - if (other == null) { - return; - } - if (other.Style != global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style.Unspecified) { - Style = other.Style; - } - if (other.OffsetMeters != 0) { - OffsetMeters = other.OffsetMeters; - } - if (other.LengthMeters != 0) { - LengthMeters = other.LengthMeters; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Style = (global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style) input.ReadEnum(); - break; - } - case 16: { - OffsetMeters = input.ReadInt32(); - break; - } - case 24: { - LengthMeters = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Style = (global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering.Types.RoadStretch.Types.Style) input.ReadEnum(); - break; - } - case 16: { - OffsetMeters = input.ReadInt32(); - break; - } - case 24: { - LengthMeters = input.ReadInt32(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the RoadStretch message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The traffic style, indicating traffic speed. - /// - public enum Style { - /// - /// No style selected. - /// - [pbr::OriginalName("STYLE_UNSPECIFIED")] Unspecified = 0, - /// - /// Traffic is slowing down. - /// - [pbr::OriginalName("SLOWER_TRAFFIC")] SlowerTraffic = 1, - /// - /// There is a traffic jam. - /// - [pbr::OriginalName("TRAFFIC_JAM")] TrafficJam = 2, - } - - } - #endregion - - } - - } - #endregion - - } - - /// - /// Traffic conditions along the expected vehicle route. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrafficPolylineData : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrafficPolylineData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Maps.FleetEngine.V1.VehiclesReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrafficPolylineData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrafficPolylineData(TrafficPolylineData other) : this() { - trafficRendering_ = other.trafficRendering_ != null ? other.trafficRendering_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrafficPolylineData Clone() { - return new TrafficPolylineData(this); - } - - /// Field number for the "traffic_rendering" field. - public const int TrafficRenderingFieldNumber = 1; - private global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering trafficRendering_; - /// - /// A polyline rendering of how fast traffic is for all regions along - /// one stretch of a customer ride. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering TrafficRendering { - get { return trafficRendering_; } - set { - trafficRendering_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TrafficPolylineData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrafficPolylineData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TrafficRendering, other.TrafficRendering)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (trafficRendering_ != null) hash ^= TrafficRendering.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (trafficRendering_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TrafficRendering); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (trafficRendering_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TrafficRendering); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (trafficRendering_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrafficRendering); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrafficPolylineData other) { - if (other == null) { - return; - } - if (other.trafficRendering_ != null) { - if (trafficRendering_ == null) { - TrafficRendering = new global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering(); - } - TrafficRendering.MergeFrom(other.TrafficRendering); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (trafficRendering_ == null) { - TrafficRendering = new global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering(); - } - input.ReadMessage(TrafficRendering); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (trafficRendering_ == null) { - TrafficRendering = new global::Google.Maps.FleetEngine.V1.VisualTrafficReportPolylineRendering(); - } - input.ReadMessage(TrafficRendering); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehiclesResourceNames.g.cs b/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehiclesResourceNames.g.cs deleted file mode 100755 index acd430798f13..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/VehiclesResourceNames.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated code. DO NOT EDIT! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gmfv = Google.Maps.FleetEngine.V1; -using sys = System; - -namespace Google.Maps.FleetEngine.V1 -{ - /// Resource name for the Vehicle resource. - public sealed partial class VehicleName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern providers/{provider}/vehicles/{vehicle}. - ProviderVehicle = 1, - } - - private static gax::PathTemplate s_providerVehicle = new gax::PathTemplate("providers/{provider}/vehicles/{vehicle}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static VehicleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new VehicleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern providers/{provider}/vehicles/{vehicle}. - /// - /// The Provider ID. Must not be null or empty. - /// The Vehicle ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static VehicleName FromProviderVehicle(string providerId, string vehicleId) => - new VehicleName(ResourceNameType.ProviderVehicle, providerId: gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), vehicleId: gax::GaxPreconditions.CheckNotNullOrEmpty(vehicleId, nameof(vehicleId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// providers/{provider}/vehicles/{vehicle}. - /// - /// The Provider ID. Must not be null or empty. - /// The Vehicle ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// providers/{provider}/vehicles/{vehicle}. - /// - public static string Format(string providerId, string vehicleId) => FormatProviderVehicle(providerId, vehicleId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// providers/{provider}/vehicles/{vehicle}. - /// - /// The Provider ID. Must not be null or empty. - /// The Vehicle ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// providers/{provider}/vehicles/{vehicle}. - /// - public static string FormatProviderVehicle(string providerId, string vehicleId) => - s_providerVehicle.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(vehicleId, nameof(vehicleId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// providers/{provider}/vehicles/{vehicle} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static VehicleName Parse(string vehicleName) => Parse(vehicleName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// providers/{provider}/vehicles/{vehicle} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static VehicleName Parse(string vehicleName, bool allowUnparsed) => - TryParse(vehicleName, allowUnparsed, out VehicleName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// providers/{provider}/vehicles/{vehicle} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string vehicleName, out VehicleName result) => TryParse(vehicleName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// providers/{provider}/vehicles/{vehicle} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string vehicleName, bool allowUnparsed, out VehicleName result) - { - gax::GaxPreconditions.CheckNotNull(vehicleName, nameof(vehicleName)); - gax::TemplatedResourceName resourceName; - if (s_providerVehicle.TryParseName(vehicleName, out resourceName)) - { - result = FromProviderVehicle(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(vehicleName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private VehicleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string providerId = null, string vehicleId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ProviderId = providerId; - VehicleId = vehicleId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// providers/{provider}/vehicles/{vehicle} - /// - /// The Provider ID. Must not be null or empty. - /// The Vehicle ID. Must not be null or empty. - public VehicleName(string providerId, string vehicleId) : this(ResourceNameType.ProviderVehicle, providerId: gax::GaxPreconditions.CheckNotNullOrEmpty(providerId, nameof(providerId)), vehicleId: gax::GaxPreconditions.CheckNotNullOrEmpty(vehicleId, nameof(vehicleId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Provider ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string ProviderId { get; } - - /// - /// The Vehicle ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string VehicleId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.ProviderVehicle: return s_providerVehicle.Expand(ProviderId, VehicleId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as VehicleName); - - /// - public bool Equals(VehicleName other) => ToString() == other?.ToString(); - - /// Determines whether two specified resource names have the same value. - /// The first resource name to compare, or null. - /// The second resource name to compare, or null. - /// - /// true if the value of is the same as the value of ; otherwise, - /// false. - /// - public static bool operator ==(VehicleName a, VehicleName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// Determines whether two specified resource names have different values. - /// The first resource name to compare, or null. - /// The second resource name to compare, or null. - /// - /// true if the value of is different from the value of ; otherwise, - /// false. - /// - public static bool operator !=(VehicleName a, VehicleName b) => !(a == b); - } - - public partial class Vehicle - { - /// - /// -typed view over the resource name property. - /// - public gmfv::VehicleName VehicleName - { - get => string.IsNullOrEmpty(Name) ? null : gmfv::VehicleName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/owl-bot-staging/Google.Maps.FleetEngine.V1/gapic_metadata.json b/owl-bot-staging/Google.Maps.FleetEngine.V1/gapic_metadata.json deleted file mode 100755 index f07bacd25100..000000000000 --- a/owl-bot-staging/Google.Maps.FleetEngine.V1/gapic_metadata.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "csharp", - "protoPackage": "maps.fleetengine.v1", - "libraryPackage": "Google.Maps.FleetEngine.V1", - "services": { - "TripService": { - "clients": { - "grpc": { - "libraryClient": "TripServiceClient", - "rpcs": { - "CreateTrip": { - "methods": [ - "CreateTrip", - "CreateTripAsync" - ] - }, - "GetTrip": { - "methods": [ - "GetTrip", - "GetTripAsync" - ] - }, - "ReportBillableTrip": { - "methods": [ - "ReportBillableTrip", - "ReportBillableTripAsync" - ] - }, - "SearchTrips": { - "methods": [ - "SearchTrips", - "SearchTripsAsync" - ] - }, - "UpdateTrip": { - "methods": [ - "UpdateTrip", - "UpdateTripAsync" - ] - } - } - } - } - }, - "VehicleService": { - "clients": { - "grpc": { - "libraryClient": "VehicleServiceClient", - "rpcs": { - "CreateVehicle": { - "methods": [ - "CreateVehicle", - "CreateVehicleAsync" - ] - }, - "GetVehicle": { - "methods": [ - "GetVehicle", - "GetVehicleAsync" - ] - }, - "ListVehicles": { - "methods": [ - "ListVehicles", - "ListVehiclesAsync" - ] - }, - "SearchVehicles": { - "methods": [ - "SearchVehicles", - "SearchVehiclesAsync" - ] - }, - "UpdateVehicle": { - "methods": [ - "UpdateVehicle", - "UpdateVehicleAsync" - ] - }, - "UpdateVehicleAttributes": { - "methods": [ - "UpdateVehicleAttributes", - "UpdateVehicleAttributesAsync" - ] - } - } - } - } - } - } -}