header.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package maps.fleetengine.v1;
  16. import "google/api/field_behavior.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "Headers";
  20. option java_package = "google.maps.fleetengine.v1";
  21. option objc_class_prefix = "CFE";
  22. // A RequestHeader contains fields common to all Fleet Engine RPC requests.
  23. message RequestHeader {
  24. // Possible types of SDK.
  25. enum SdkType {
  26. // The default value. This value is used if the `sdk_type` is omitted.
  27. SDK_TYPE_UNSPECIFIED = 0;
  28. // The calling SDK is Consumer.
  29. CONSUMER = 1;
  30. // The calling SDK is Driver.
  31. DRIVER = 2;
  32. // The calling SDK is JavaScript.
  33. JAVASCRIPT = 3;
  34. }
  35. // The platform of the calling SDK.
  36. enum Platform {
  37. // The default value. This value is used if the platform is omitted.
  38. PLATFORM_UNSPECIFIED = 0;
  39. // The request is coming from Android.
  40. ANDROID = 1;
  41. // The request is coming from iOS.
  42. IOS = 2;
  43. // The request is coming from the web.
  44. WEB = 3;
  45. }
  46. // The BCP-47 language code, such as en-US or sr-Latn. For more information,
  47. // see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none
  48. // is specified, the response may be in any language, with a preference for
  49. // English if such a name exists. Field value example: `en-US`.
  50. string language_code = 1;
  51. // Required. CLDR region code of the region where the request originates.
  52. // Field value example: `US`.
  53. string region_code = 2 [(google.api.field_behavior) = REQUIRED];
  54. // Version of the calling SDK, if applicable.
  55. // The version format is "major.minor.patch", example: `1.1.2`.
  56. string sdk_version = 3;
  57. // Version of the operating system on which the calling SDK is running.
  58. // Field value examples: `4.4.1`, `12.1`.
  59. string os_version = 4;
  60. // Model of the device on which the calling SDK is running.
  61. // Field value examples: `iPhone12,1`, `SM-G920F`.
  62. string device_model = 5;
  63. // The type of SDK sending the request.
  64. SdkType sdk_type = 6;
  65. // Version of the MapSDK which the calling SDK depends on, if applicable.
  66. // The version format is "major.minor.patch", example: `5.2.1`.
  67. string maps_sdk_version = 7;
  68. // Version of the NavSDK which the calling SDK depends on, if applicable.
  69. // The version format is "major.minor.patch", example: `2.1.0`.
  70. string nav_sdk_version = 8;
  71. // Platform of the calling SDK.
  72. Platform platform = 9;
  73. // Manufacturer of the Android device from the calling SDK, only applicable
  74. // for the Android SDKs.
  75. // Field value example: `Samsung`.
  76. string manufacturer = 10;
  77. // Android API level of the calling SDK, only applicable for the Android SDKs.
  78. // Field value example: `23`.
  79. int32 android_api_level = 11;
  80. }