1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage maps.fleetengine.v1; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto"; 20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto"; 21*d5c09012SAndroid Build Coastguard Workerimport "google/maps/fleetengine/v1/fleetengine.proto"; 22*d5c09012SAndroid Build Coastguard Workerimport "google/maps/fleetengine/v1/traffic.proto"; 23*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/duration.proto"; 24*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto"; 25*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/wrappers.proto"; 26*d5c09012SAndroid Build Coastguard Workerimport "google/type/latlng.proto"; 27*d5c09012SAndroid Build Coastguard Worker 28*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Maps.FleetEngine.V1"; 29*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb"; 30*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 31*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "Trips"; 32*d5c09012SAndroid Build Coastguard Workeroption java_package = "google.maps.fleetengine.v1"; 33*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "CFE"; 34*d5c09012SAndroid Build Coastguard Worker 35*d5c09012SAndroid Build Coastguard Worker// Trip metadata. 36*d5c09012SAndroid Build Coastguard Workermessage Trip { 37*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 38*d5c09012SAndroid Build Coastguard Worker type: "fleetengine.googleapis.com/Trip" 39*d5c09012SAndroid Build Coastguard Worker pattern: "providers/{provider}/trips/{trip}" 40*d5c09012SAndroid Build Coastguard Worker }; 41*d5c09012SAndroid Build Coastguard Worker 42*d5c09012SAndroid Build Coastguard Worker // Output only. In the format "providers/{provider}/trips/{trip}" 43*d5c09012SAndroid Build Coastguard Worker string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 44*d5c09012SAndroid Build Coastguard Worker 45*d5c09012SAndroid Build Coastguard Worker // ID of the vehicle making this trip. 46*d5c09012SAndroid Build Coastguard Worker string vehicle_id = 2; 47*d5c09012SAndroid Build Coastguard Worker 48*d5c09012SAndroid Build Coastguard Worker // Current status of the trip. 49*d5c09012SAndroid Build Coastguard Worker TripStatus trip_status = 3; 50*d5c09012SAndroid Build Coastguard Worker 51*d5c09012SAndroid Build Coastguard Worker // The type of the trip. 52*d5c09012SAndroid Build Coastguard Worker TripType trip_type = 4; 53*d5c09012SAndroid Build Coastguard Worker 54*d5c09012SAndroid Build Coastguard Worker // Location where customer indicates they will be picked up. 55*d5c09012SAndroid Build Coastguard Worker TerminalLocation pickup_point = 5; 56*d5c09012SAndroid Build Coastguard Worker 57*d5c09012SAndroid Build Coastguard Worker // Input only. The actual location when and where customer was picked up. 58*d5c09012SAndroid Build Coastguard Worker // This field is for provider to provide feedback on actual pickup 59*d5c09012SAndroid Build Coastguard Worker // information. 60*d5c09012SAndroid Build Coastguard Worker StopLocation actual_pickup_point = 22 61*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = INPUT_ONLY]; 62*d5c09012SAndroid Build Coastguard Worker 63*d5c09012SAndroid Build Coastguard Worker // Input only. The actual time and location of the driver arrival at 64*d5c09012SAndroid Build Coastguard Worker // the pickup point. 65*d5c09012SAndroid Build Coastguard Worker // This field is for provider to provide feedback on actual arrival 66*d5c09012SAndroid Build Coastguard Worker // information at the pickup point. 67*d5c09012SAndroid Build Coastguard Worker StopLocation actual_pickup_arrival_point = 32 68*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = INPUT_ONLY]; 69*d5c09012SAndroid Build Coastguard Worker 70*d5c09012SAndroid Build Coastguard Worker // Output only. Either the estimated future time when the rider(s) will be 71*d5c09012SAndroid Build Coastguard Worker // picked up, or the actual time when they were picked up. 72*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp pickup_time = 6 73*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 74*d5c09012SAndroid Build Coastguard Worker 75*d5c09012SAndroid Build Coastguard Worker // Intermediate stops in order that the trip requests (in addition 76*d5c09012SAndroid Build Coastguard Worker // to pickup and dropoff). Initially this will not be supported for shared 77*d5c09012SAndroid Build Coastguard Worker // trips. 78*d5c09012SAndroid Build Coastguard Worker repeated TerminalLocation intermediate_destinations = 14; 79*d5c09012SAndroid Build Coastguard Worker 80*d5c09012SAndroid Build Coastguard Worker // Indicates the last time the `intermediate_destinations` was modified. 81*d5c09012SAndroid Build Coastguard Worker // Your server should cache this value and pass it in `UpdateTripRequest` 82*d5c09012SAndroid Build Coastguard Worker // when update `intermediate_destination_index` to ensure the 83*d5c09012SAndroid Build Coastguard Worker // `intermediate_destinations` is not changed. 84*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp intermediate_destinations_version = 25; 85*d5c09012SAndroid Build Coastguard Worker 86*d5c09012SAndroid Build Coastguard Worker // When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number 87*d5c09012SAndroid Build Coastguard Worker // between [0..N-1] indicating which intermediate destination the vehicle will 88*d5c09012SAndroid Build Coastguard Worker // cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a 89*d5c09012SAndroid Build Coastguard Worker // number between [0..N-1] indicating which intermediate destination the 90*d5c09012SAndroid Build Coastguard Worker // vehicle is at. The provider sets this value. If there are no 91*d5c09012SAndroid Build Coastguard Worker // `intermediate_destinations`, this field is ignored. 92*d5c09012SAndroid Build Coastguard Worker int32 intermediate_destination_index = 15; 93*d5c09012SAndroid Build Coastguard Worker 94*d5c09012SAndroid Build Coastguard Worker // Input only. The actual time and location of the driver's arrival at 95*d5c09012SAndroid Build Coastguard Worker // an intermediate destination. 96*d5c09012SAndroid Build Coastguard Worker // This field is for provider to provide feedback on actual arrival 97*d5c09012SAndroid Build Coastguard Worker // information at intermediate destinations. 98*d5c09012SAndroid Build Coastguard Worker repeated StopLocation actual_intermediate_destination_arrival_points = 33 99*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = INPUT_ONLY]; 100*d5c09012SAndroid Build Coastguard Worker 101*d5c09012SAndroid Build Coastguard Worker // Input only. The actual time and location when and where the customer was 102*d5c09012SAndroid Build Coastguard Worker // picked up from an intermediate destination. This field is for provider to 103*d5c09012SAndroid Build Coastguard Worker // provide feedback on actual pickup information at intermediate destinations. 104*d5c09012SAndroid Build Coastguard Worker repeated StopLocation actual_intermediate_destinations = 34 105*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = INPUT_ONLY]; 106*d5c09012SAndroid Build Coastguard Worker 107*d5c09012SAndroid Build Coastguard Worker // Location where customer indicates they will be dropped off. 108*d5c09012SAndroid Build Coastguard Worker TerminalLocation dropoff_point = 7; 109*d5c09012SAndroid Build Coastguard Worker 110*d5c09012SAndroid Build Coastguard Worker // Input only. The actual time and location when and where customer was 111*d5c09012SAndroid Build Coastguard Worker // dropped off. This field is for provider to provide feedback on actual 112*d5c09012SAndroid Build Coastguard Worker // dropoff information. 113*d5c09012SAndroid Build Coastguard Worker StopLocation actual_dropoff_point = 23 114*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = INPUT_ONLY]; 115*d5c09012SAndroid Build Coastguard Worker 116*d5c09012SAndroid Build Coastguard Worker // Output only. Either the estimated future time when the rider(s) will be 117*d5c09012SAndroid Build Coastguard Worker // dropped off at the final destination, or the actual time when they were 118*d5c09012SAndroid Build Coastguard Worker // dropped off. 119*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp dropoff_time = 8 120*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 121*d5c09012SAndroid Build Coastguard Worker 122*d5c09012SAndroid Build Coastguard Worker // Output only. The full path from the current location to the dropoff point, 123*d5c09012SAndroid Build Coastguard Worker // inclusive. This path could include waypoints from other trips. 124*d5c09012SAndroid Build Coastguard Worker repeated TripWaypoint remaining_waypoints = 16 125*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 126*d5c09012SAndroid Build Coastguard Worker 127*d5c09012SAndroid Build Coastguard Worker // This field supports manual ordering of the waypoints for the trip. It 128*d5c09012SAndroid Build Coastguard Worker // contains all of the remaining waypoints for the assigned vehicle, as well 129*d5c09012SAndroid Build Coastguard Worker // as the pickup and drop-off waypoints for this trip. If the trip hasn't been 130*d5c09012SAndroid Build Coastguard Worker // assigned to a vehicle, then Fleet Engine ignores this field. For privacy 131*d5c09012SAndroid Build Coastguard Worker // reasons, this field is only populated by the server on `UpdateTrip` and 132*d5c09012SAndroid Build Coastguard Worker // `CreateTrip` calls, NOT on `GetTrip` calls. 133*d5c09012SAndroid Build Coastguard Worker repeated TripWaypoint vehicle_waypoints = 20; 134*d5c09012SAndroid Build Coastguard Worker 135*d5c09012SAndroid Build Coastguard Worker // Output only. Anticipated route for this trip to the first entry in 136*d5c09012SAndroid Build Coastguard Worker // remaining_waypoints. Note that the first waypoint may belong to a different 137*d5c09012SAndroid Build Coastguard Worker // trip. 138*d5c09012SAndroid Build Coastguard Worker repeated google.type.LatLng route = 9 139*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 140*d5c09012SAndroid Build Coastguard Worker 141*d5c09012SAndroid Build Coastguard Worker // Output only. An encoded path to the next waypoint. 142*d5c09012SAndroid Build Coastguard Worker // 143*d5c09012SAndroid Build Coastguard Worker // Note: This field is intended only for use by the Driver SDK and Consumer 144*d5c09012SAndroid Build Coastguard Worker // SDK. Decoding is not yet supported. 145*d5c09012SAndroid Build Coastguard Worker string current_route_segment = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; 146*d5c09012SAndroid Build Coastguard Worker 147*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the last time the route was modified. 148*d5c09012SAndroid Build Coastguard Worker // 149*d5c09012SAndroid Build Coastguard Worker // Note: This field is intended only for use by the Driver SDK and Consumer 150*d5c09012SAndroid Build Coastguard Worker // SDK. 151*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp current_route_segment_version = 17 152*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 153*d5c09012SAndroid Build Coastguard Worker 154*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the traffic conditions along the 155*d5c09012SAndroid Build Coastguard Worker // `current_route_segment` when they're available. 156*d5c09012SAndroid Build Coastguard Worker // 157*d5c09012SAndroid Build Coastguard Worker // Note: This field is intended only for use by the Driver SDK and Consumer 158*d5c09012SAndroid Build Coastguard Worker // SDK. 159*d5c09012SAndroid Build Coastguard Worker ConsumableTrafficPolyline current_route_segment_traffic = 28 160*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 161*d5c09012SAndroid Build Coastguard Worker 162*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the last time the `current_route_segment_traffic` 163*d5c09012SAndroid Build Coastguard Worker // was modified. 164*d5c09012SAndroid Build Coastguard Worker // 165*d5c09012SAndroid Build Coastguard Worker // Note: This field is intended only for use by the Driver SDK and Consumer 166*d5c09012SAndroid Build Coastguard Worker // SDK. 167*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp current_route_segment_traffic_version = 30 168*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 169*d5c09012SAndroid Build Coastguard Worker 170*d5c09012SAndroid Build Coastguard Worker // Output only. The waypoint where `current_route_segment` ends. 171*d5c09012SAndroid Build Coastguard Worker TripWaypoint current_route_segment_end_point = 24 172*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 173*d5c09012SAndroid Build Coastguard Worker 174*d5c09012SAndroid Build Coastguard Worker // Output only. The remaining driving distance in the `current_route_segment` 175*d5c09012SAndroid Build Coastguard Worker // field. The value is unspecified if the trip is not assigned to a vehicle, 176*d5c09012SAndroid Build Coastguard Worker // or the trip is completed or cancelled. 177*d5c09012SAndroid Build Coastguard Worker google.protobuf.Int32Value remaining_distance_meters = 12 178*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 179*d5c09012SAndroid Build Coastguard Worker 180*d5c09012SAndroid Build Coastguard Worker // Output only. The ETA to the next waypoint (the first entry in the 181*d5c09012SAndroid Build Coastguard Worker // `remaining_waypoints` field). The value is unspecified if the trip is not 182*d5c09012SAndroid Build Coastguard Worker // assigned to a vehicle, or the trip is inactive (completed or cancelled). 183*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp eta_to_first_waypoint = 13 184*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 185*d5c09012SAndroid Build Coastguard Worker 186*d5c09012SAndroid Build Coastguard Worker // Output only. The duration from when the Trip data is returned to the time 187*d5c09012SAndroid Build Coastguard Worker // in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is 188*d5c09012SAndroid Build Coastguard Worker // not assigned to a vehicle, or the trip is inactive (completed or 189*d5c09012SAndroid Build Coastguard Worker // cancelled). 190*d5c09012SAndroid Build Coastguard Worker google.protobuf.Duration remaining_time_to_first_waypoint = 27 191*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 192*d5c09012SAndroid Build Coastguard Worker 193*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the last time that `remaining_waypoints` was changed 194*d5c09012SAndroid Build Coastguard Worker // (a waypoint was added, removed, or changed). 195*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp remaining_waypoints_version = 19 196*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 197*d5c09012SAndroid Build Coastguard Worker 198*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the last time the 199*d5c09012SAndroid Build Coastguard Worker // `remaining_waypoints.path_to_waypoint` and 200*d5c09012SAndroid Build Coastguard Worker // `remaining_waypoints.traffic_to_waypoint` were modified. Your client app 201*d5c09012SAndroid Build Coastguard Worker // should cache this value and pass it in `GetTripRequest` to ensure the 202*d5c09012SAndroid Build Coastguard Worker // paths and traffic for `remaining_waypoints` are only returned if updated. 203*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp remaining_waypoints_route_version = 29 204*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 205*d5c09012SAndroid Build Coastguard Worker 206*d5c09012SAndroid Build Coastguard Worker // Immutable. Indicates the number of passengers on this trip and does not 207*d5c09012SAndroid Build Coastguard Worker // include the driver. A vehicle must have available capacity to be returned 208*d5c09012SAndroid Build Coastguard Worker // in a `SearchVehicles` response. 209*d5c09012SAndroid Build Coastguard Worker int32 number_of_passengers = 10 [(google.api.field_behavior) = IMMUTABLE]; 210*d5c09012SAndroid Build Coastguard Worker 211*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates the last reported location of the vehicle along the 212*d5c09012SAndroid Build Coastguard Worker // route. 213*d5c09012SAndroid Build Coastguard Worker VehicleLocation last_location = 11 214*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 215*d5c09012SAndroid Build Coastguard Worker 216*d5c09012SAndroid Build Coastguard Worker // Output only. Indicates whether the vehicle's `last_location` can be snapped 217*d5c09012SAndroid Build Coastguard Worker // to the current_route_segment. False if `last_location` or 218*d5c09012SAndroid Build Coastguard Worker // `current_route_segment` doesn't exist. 219*d5c09012SAndroid Build Coastguard Worker // It is computed by Fleet Engine. Any update from clients will be ignored. 220*d5c09012SAndroid Build Coastguard Worker bool last_location_snappable = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; 221*d5c09012SAndroid Build Coastguard Worker 222*d5c09012SAndroid Build Coastguard Worker // The subset of Trip fields that are populated and how they should be 223*d5c09012SAndroid Build Coastguard Worker // interpreted. 224*d5c09012SAndroid Build Coastguard Worker TripView view = 31; 225*d5c09012SAndroid Build Coastguard Worker} 226*d5c09012SAndroid Build Coastguard Worker 227*d5c09012SAndroid Build Coastguard Worker// The actual location where a stop (pickup/dropoff) happened. 228*d5c09012SAndroid Build Coastguard Workermessage StopLocation { 229*d5c09012SAndroid Build Coastguard Worker // Required. Denotes the actual location. 230*d5c09012SAndroid Build Coastguard Worker google.type.LatLng point = 1 [(google.api.field_behavior) = REQUIRED]; 231*d5c09012SAndroid Build Coastguard Worker 232*d5c09012SAndroid Build Coastguard Worker // Indicates when the stop happened. 233*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp timestamp = 2; 234*d5c09012SAndroid Build Coastguard Worker 235*d5c09012SAndroid Build Coastguard Worker // Input only. Deprecated. Use the timestamp field. 236*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp stop_time = 3 237*d5c09012SAndroid Build Coastguard Worker [deprecated = true, (google.api.field_behavior) = INPUT_ONLY]; 238*d5c09012SAndroid Build Coastguard Worker} 239*d5c09012SAndroid Build Coastguard Worker 240*d5c09012SAndroid Build Coastguard Worker// The status of a trip indicating its progression. 241*d5c09012SAndroid Build Coastguard Workerenum TripStatus { 242*d5c09012SAndroid Build Coastguard Worker // Default, used for unspecified or unrecognized trip status. 243*d5c09012SAndroid Build Coastguard Worker UNKNOWN_TRIP_STATUS = 0; 244*d5c09012SAndroid Build Coastguard Worker 245*d5c09012SAndroid Build Coastguard Worker // Newly created trip. 246*d5c09012SAndroid Build Coastguard Worker NEW = 1; 247*d5c09012SAndroid Build Coastguard Worker 248*d5c09012SAndroid Build Coastguard Worker // The driver is on their way to the pickup point. 249*d5c09012SAndroid Build Coastguard Worker ENROUTE_TO_PICKUP = 2; 250*d5c09012SAndroid Build Coastguard Worker 251*d5c09012SAndroid Build Coastguard Worker // The driver has arrived at the pickup point. 252*d5c09012SAndroid Build Coastguard Worker ARRIVED_AT_PICKUP = 3; 253*d5c09012SAndroid Build Coastguard Worker 254*d5c09012SAndroid Build Coastguard Worker // The driver has arrived at an intermediate destination and is waiting for 255*d5c09012SAndroid Build Coastguard Worker // the rider. 256*d5c09012SAndroid Build Coastguard Worker ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; 257*d5c09012SAndroid Build Coastguard Worker 258*d5c09012SAndroid Build Coastguard Worker // The driver is on their way to an intermediate destination 259*d5c09012SAndroid Build Coastguard Worker // (not the dropoff point). 260*d5c09012SAndroid Build Coastguard Worker ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; 261*d5c09012SAndroid Build Coastguard Worker 262*d5c09012SAndroid Build Coastguard Worker // The driver has picked up the rider and is on their way to the 263*d5c09012SAndroid Build Coastguard Worker // next destination. 264*d5c09012SAndroid Build Coastguard Worker ENROUTE_TO_DROPOFF = 4; 265*d5c09012SAndroid Build Coastguard Worker 266*d5c09012SAndroid Build Coastguard Worker // The rider has been dropped off and the trip is complete. 267*d5c09012SAndroid Build Coastguard Worker COMPLETE = 5; 268*d5c09012SAndroid Build Coastguard Worker 269*d5c09012SAndroid Build Coastguard Worker // The trip was canceled prior to pickup by the driver, rider, or 270*d5c09012SAndroid Build Coastguard Worker // rideshare provider. 271*d5c09012SAndroid Build Coastguard Worker CANCELED = 6; 272*d5c09012SAndroid Build Coastguard Worker} 273*d5c09012SAndroid Build Coastguard Worker 274*d5c09012SAndroid Build Coastguard Worker// A set of values that indicate upon which platform the request was issued. 275*d5c09012SAndroid Build Coastguard Workerenum BillingPlatformIdentifier { 276*d5c09012SAndroid Build Coastguard Worker // Default. Used for unspecified platforms. 277*d5c09012SAndroid Build Coastguard Worker BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; 278*d5c09012SAndroid Build Coastguard Worker 279*d5c09012SAndroid Build Coastguard Worker // The platform is a client server. 280*d5c09012SAndroid Build Coastguard Worker SERVER = 1; 281*d5c09012SAndroid Build Coastguard Worker 282*d5c09012SAndroid Build Coastguard Worker // The platform is a web browser. 283*d5c09012SAndroid Build Coastguard Worker WEB = 2; 284*d5c09012SAndroid Build Coastguard Worker 285*d5c09012SAndroid Build Coastguard Worker // The platform is an Android mobile device. 286*d5c09012SAndroid Build Coastguard Worker ANDROID = 3; 287*d5c09012SAndroid Build Coastguard Worker 288*d5c09012SAndroid Build Coastguard Worker // The platform is an IOS mobile device. 289*d5c09012SAndroid Build Coastguard Worker IOS = 4; 290*d5c09012SAndroid Build Coastguard Worker 291*d5c09012SAndroid Build Coastguard Worker // Other platforms that are not listed in this enumeration. 292*d5c09012SAndroid Build Coastguard Worker OTHERS = 5; 293*d5c09012SAndroid Build Coastguard Worker} 294*d5c09012SAndroid Build Coastguard Worker 295*d5c09012SAndroid Build Coastguard Worker// Selector for different sets of Trip fields in a `GetTrip` response. See 296*d5c09012SAndroid Build Coastguard Worker// [AIP-157](https://google.aip.dev/157) for context. Additional views are 297*d5c09012SAndroid Build Coastguard Worker// likely to be added. 298*d5c09012SAndroid Build Coastguard Workerenum TripView { 299*d5c09012SAndroid Build Coastguard Worker // The default value. For backwards-compatibility, the API will default to an 300*d5c09012SAndroid Build Coastguard Worker // SDK view. To ensure stability and support, customers are 301*d5c09012SAndroid Build Coastguard Worker // advised to select a `TripView` other than `SDK`. 302*d5c09012SAndroid Build Coastguard Worker TRIP_VIEW_UNSPECIFIED = 0; 303*d5c09012SAndroid Build Coastguard Worker 304*d5c09012SAndroid Build Coastguard Worker // Includes fields that may not be interpretable or supportable using 305*d5c09012SAndroid Build Coastguard Worker // publicly available libraries. 306*d5c09012SAndroid Build Coastguard Worker SDK = 1; 307*d5c09012SAndroid Build Coastguard Worker 308*d5c09012SAndroid Build Coastguard Worker // Trip fields are populated for the Journey Sharing use case. This view is 309*d5c09012SAndroid Build Coastguard Worker // intended for server-to-server communications. 310*d5c09012SAndroid Build Coastguard Worker JOURNEY_SHARING_V1S = 2; 311*d5c09012SAndroid Build Coastguard Worker} 312