parent
88075aead0
commit
948c8fd1f3
14 changed files with 707 additions and 438 deletions
@ -0,0 +1,175 @@ |
||||
// Copyright 2022 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. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package maps.fleetengine.delivery.v1; |
||||
|
||||
import "google/api/field_behavior.proto"; |
||||
import "google/protobuf/timestamp.proto"; |
||||
import "google/protobuf/wrappers.proto"; |
||||
import "google/type/latlng.proto"; |
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; |
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "Common"; |
||||
option java_package = "google.maps.fleetengine.delivery.v1"; |
||||
option objc_class_prefix = "CFED"; |
||||
|
||||
// Describes a vehicle attribute as a key-value pair. The "key:value" string |
||||
// length cannot exceed 256 characters. |
||||
message DeliveryVehicleAttribute { |
||||
// The attribute's key. Keys may not contain the colon character (:). |
||||
string key = 1; |
||||
|
||||
// The attribute's value. |
||||
string value = 2; |
||||
} |
||||
|
||||
// The location, speed, and heading of a vehicle at a point in time. |
||||
message DeliveryVehicleLocation { |
||||
// 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`. |
||||
google.type.LatLng location = 1; |
||||
|
||||
// Deprecated: Use `latlng_accuracy` instead. |
||||
google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; |
||||
|
||||
// Accuracy of `location` in meters as a radius. |
||||
google.protobuf.DoubleValue latlng_accuracy = 22; |
||||
|
||||
// Direction the vehicle is moving in degrees. 0 represents North. |
||||
// The valid range is [0,360). |
||||
google.protobuf.Int32Value heading = 2; |
||||
|
||||
// Deprecated: Use `heading_accuracy` instead. |
||||
google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; |
||||
|
||||
// Accuracy of `heading` in degrees. |
||||
google.protobuf.DoubleValue heading_accuracy = 23; |
||||
|
||||
// Altitude in meters above WGS84. |
||||
google.protobuf.DoubleValue altitude = 5; |
||||
|
||||
// Deprecated: Use `altitude_accuracy` instead. |
||||
google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; |
||||
|
||||
// Accuracy of `altitude` in meters. |
||||
google.protobuf.DoubleValue altitude_accuracy = 24; |
||||
|
||||
// Speed of the vehicle in kilometers per hour. |
||||
// Deprecated: Use `speed` instead. |
||||
google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; |
||||
|
||||
// Speed of the vehicle in meters/second |
||||
google.protobuf.DoubleValue speed = 6; |
||||
|
||||
// Accuracy of `speed` in meters/second. |
||||
google.protobuf.DoubleValue speed_accuracy = 7; |
||||
|
||||
// The time when `location` was reported by the sensor. |
||||
google.protobuf.Timestamp update_time = 4; |
||||
|
||||
// Output only. The time when the server received the location information. |
||||
google.protobuf.Timestamp server_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
|
||||
// Provider of location data (for example, `GPS`). |
||||
DeliveryVehicleLocationSensor location_sensor = 11; |
||||
|
||||
// Whether `location` is snapped to a road. |
||||
google.protobuf.BoolValue is_road_snapped = 27; |
||||
|
||||
// Input only. Indicates whether the GPS sensor is enabled on the mobile device. |
||||
google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// 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. |
||||
google.protobuf.Int32Value time_since_update = 14 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Number of additional attempts to send this location to the server. |
||||
// If this value is zero, then it is not stale. |
||||
google.protobuf.Int32Value num_stale_updates = 15 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Raw vehicle location (unprocessed by road-snapper). |
||||
google.type.LatLng raw_location = 16; |
||||
|
||||
// Input only. Timestamp associated with the raw location. |
||||
google.protobuf.Timestamp raw_location_time = 17 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Source of the raw location. |
||||
DeliveryVehicleLocationSensor raw_location_sensor = 28 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Accuracy of `raw_location` as a radius, in meters. |
||||
google.protobuf.DoubleValue raw_location_accuracy = 25 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Supplemental location provided by the integrating app, such as the location |
||||
// provided by Fused Location Provider. |
||||
google.type.LatLng supplemental_location = 18 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Timestamp associated with the supplemental location. |
||||
google.protobuf.Timestamp supplemental_location_time = 19 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Source of the supplemental location. |
||||
DeliveryVehicleLocationSensor supplemental_location_sensor = 20 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Input only. Accuracy of `supplemental_location` as a radius, in meters. |
||||
google.protobuf.DoubleValue supplemental_location_accuracy = 21 [(google.api.field_behavior) = INPUT_ONLY]; |
||||
|
||||
// Deprecated: Use `is_road_snapped` instead. |
||||
bool road_snapped = 26 [deprecated = true]; |
||||
} |
||||
|
||||
// The sensor or methodology used to determine the location. |
||||
enum DeliveryVehicleLocationSensor { |
||||
// The sensor is unspecified or unknown. |
||||
UNKNOWN_SENSOR = 0; |
||||
|
||||
// GPS or Assisted GPS. |
||||
GPS = 1; |
||||
|
||||
// Assisted GPS, cell tower ID, or WiFi access point. |
||||
NETWORK = 2; |
||||
|
||||
// Cell tower ID or WiFi access point. |
||||
PASSIVE = 3; |
||||
|
||||
// A location signal snapped to the best road position. |
||||
ROAD_SNAPPED_LOCATION_PROVIDER = 4; |
||||
|
||||
// The fused location provider in Google Play services. |
||||
FUSED_LOCATION_PROVIDER = 100; |
||||
} |
||||
|
||||
// The vehicle's navigation status. |
||||
enum DeliveryVehicleNavigationStatus { |
||||
// Unspecified navigation status. |
||||
UNKNOWN_NAVIGATION_STATUS = 0; |
||||
|
||||
// The Driver app's navigation is in `FREE_NAV` mode. |
||||
NO_GUIDANCE = 1; |
||||
|
||||
// Turn-by-turn navigation is available and the Driver app navigation has |
||||
// entered `GUIDED_NAV` mode. |
||||
ENROUTE_TO_DESTINATION = 2; |
||||
|
||||
// The vehicle has gone off the suggested route. |
||||
OFF_ROUTE = 3; |
||||
|
||||
// The vehicle is within approximately 50m of the destination. |
||||
ARRIVED_AT_DESTINATION = 4; |
||||
} |
@ -0,0 +1,103 @@ |
||||
// Copyright 2022 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. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package maps.fleetengine.delivery.v1; |
||||
|
||||
import "google/api/field_behavior.proto"; |
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; |
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "Headers"; |
||||
option java_package = "google.maps.fleetengine.delivery.v1"; |
||||
option objc_class_prefix = "CFED"; |
||||
|
||||
// A RequestHeader contains fields common to all Delivery RPC requests. |
||||
message DeliveryRequestHeader { |
||||
// Possible types of SDK. |
||||
enum SdkType { |
||||
// The default value. This value is used if the `sdk_type` is omitted. |
||||
SDK_TYPE_UNSPECIFIED = 0; |
||||
|
||||
// The calling SDK is Consumer. |
||||
CONSUMER = 1; |
||||
|
||||
// The calling SDK is Driver. |
||||
DRIVER = 2; |
||||
|
||||
// The calling SDK is JavaScript. |
||||
JAVASCRIPT = 3; |
||||
} |
||||
|
||||
// The platform of the calling SDK. |
||||
enum Platform { |
||||
// The default value. This value is used if the platform is omitted. |
||||
PLATFORM_UNSPECIFIED = 0; |
||||
|
||||
// The request is coming from Android. |
||||
ANDROID = 1; |
||||
|
||||
// The request is coming from iOS. |
||||
IOS = 2; |
||||
|
||||
// The request is coming from the web. |
||||
WEB = 3; |
||||
} |
||||
|
||||
// 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`. |
||||
string language_code = 1; |
||||
|
||||
// Required. CLDR region code of the region where the request originates. |
||||
// Field value example: `US`. |
||||
string region_code = 2 [(google.api.field_behavior) = REQUIRED]; |
||||
|
||||
// Version of the calling SDK, if applicable. |
||||
// The version format is "major.minor.patch", example: `1.1.2`. |
||||
string sdk_version = 3; |
||||
|
||||
// Version of the operating system on which the calling SDK is running. |
||||
// Field value examples: `4.4.1`, `12.1`. |
||||
string os_version = 4; |
||||
|
||||
// Model of the device on which the calling SDK is running. |
||||
// Field value examples: `iPhone12,1`, `SM-G920F`. |
||||
string device_model = 5; |
||||
|
||||
// The type of SDK sending the request. |
||||
SdkType sdk_type = 6; |
||||
|
||||
// Version of the MapSDK which the calling SDK depends on, if applicable. |
||||
// The version format is "major.minor.patch", example: `5.2.1`. |
||||
string maps_sdk_version = 7; |
||||
|
||||
// Version of the NavSDK which the calling SDK depends on, if applicable. |
||||
// The version format is "major.minor.patch", example: `2.1.0`. |
||||
string nav_sdk_version = 8; |
||||
|
||||
// Platform of the calling SDK. |
||||
Platform platform = 9; |
||||
|
||||
// Manufacturer of the Android device from the calling SDK, only applicable |
||||
// for the Android SDKs. |
||||
// Field value example: `Samsung`. |
||||
string manufacturer = 10; |
||||
|
||||
// Android API level of the calling SDK, only applicable for the Android SDKs. |
||||
// Field value example: `23`. |
||||
int32 android_api_level = 11; |
||||
} |
Loading…
Reference in new issue