RequestHeader
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-31 UTC."],[[["\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. |"]]