RequestHeader
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eA \u003ccode\u003eRequestHeader\u003c/code\u003e contains common fields for all Fleet Engine RPC requests, such as language and region codes, SDK and OS versions, device model, and platform details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRequestHeader\u003c/code\u003e includes information about the calling SDK, such as its type (Consumer, Driver, JavaScript), dependent MapSDK and NavSDK versions, and the platform it's running on (Android, iOS, Web).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can optionally provide a \u003ccode\u003etraceId\u003c/code\u003e in the \u003ccode\u003eRequestHeader\u003c/code\u003e for logging and request identification purposes.\u003c/p\u003e\n"]]],[],null,["# RequestHeader\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SdkType](#SdkType)\n- [Platform](#Platform)\n\nA RequestHeader contains fields common to all Fleet Engine RPC requests.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"languageCode\": string, \"regionCode\": string, \"sdkVersion\": string, \"osVersion\": string, \"deviceModel\": string, \"sdkType\": enum (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader#SdkType), \"mapsSdkVersion\": string, \"navSdkVersion\": string, \"platform\": enum (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader#Platform), \"manufacturer\": string, \"androidApiLevel\": integer, \"traceId\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `languageCode` | `string` The BCP-47 language code, such as en-US or sr-Latn. For more information, see \u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. 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`. |\n| `regionCode` | `string` Required. CLDR region code of the region where the request originates. Field value example: `US`. |\n| `sdkVersion` | `string` Version of the calling SDK, if applicable. The version format is \"major.minor.patch\", example: `1.1.2`. |\n| `osVersion` | `string` Version of the operating system on which the calling SDK is running. Field value examples: `4.4.1`, `12.1`. |\n| `deviceModel` | `string` Model of the device on which the calling SDK is running. Field value examples: `iPhone12,1`, `SM-G920F`. |\n| `sdkType` | `enum (`[SdkType](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader#SdkType)`)` The type of SDK sending the request. |\n| `mapsSdkVersion` | `string` Version of the MapSDK which the calling SDK depends on, if applicable. The version format is \"major.minor.patch\", example: `5.2.1`. |\n| `navSdkVersion` | `string` Version of the NavSDK which the calling SDK depends on, if applicable. The version format is \"major.minor.patch\", example: `2.1.0`. |\n| `platform` | `enum (`[Platform](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader#Platform)`)` Platform of the calling SDK. |\n| `manufacturer` | `string` Manufacturer of the Android device from the calling SDK, only applicable for the Android SDKs. Field value example: `Samsung`. |\n| `androidApiLevel` | `integer` Android API level of the calling SDK, only applicable for the Android SDKs. Field value example: `23`. |\n| `traceId` | `string` Optional ID that can be provided for logging purposes in order to identify the request. |\n\nSdkType\n-------\n\nPossible types of SDK.\n\n| Enums ||\n|------------------------|--------------------------------------------------------------------|\n| `SDK_TYPE_UNSPECIFIED` | The default value. This value is used if the `sdkType` is omitted. |\n| `CONSUMER` | The calling SDK is Consumer. |\n| `DRIVER` | The calling SDK is Driver. |\n| `JAVASCRIPT` | The calling SDK is JavaScript. |\n\nPlatform\n--------\n\nThe platform of the calling SDK.\n\n| Enums ||\n|------------------------|-------------------------------------------------------------------|\n| `PLATFORM_UNSPECIFIED` | The default value. This value is used if the platform is omitted. |\n| `ANDROID` | The request is coming from Android. |\n| `IOS` | The request is coming from iOS. |\n| `WEB` | The request is coming from the web. |"]]