RequestHeader
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
サーバーに送信されるすべてのリクエストで定義されるヘッダー オブジェクト。
JSON 表現 |
{
"requestId": string,
"requestTimestamp": string,
"userLocale": string,
"protocolVersion": {
object (Version )
}
} |
フィールド |
requestId |
string
必須: このリクエストの一意の識別子。 これは、最大 100 文字の文字列で、文字「a ~ z」、「A ~ Z」、「0 ~ 9」、「:」、「-」、「_」のみが含まれます。
|
requestTimestamp |
string (int64 format)
必須: エポックからのミリ秒で表されるこのリクエストのタイムスタンプ。受信側は、このタイムスタンプが「現在」の ±60 秒であることを確認する必要があります。このリクエストのタイムスタンプは、再試行時にべき等ではありません。
|
userLocale (deprecated) |
string
非推奨: 2 文字または 3 文字の ISO 639-2 Alpha 3 言語コード。必要に応じてハイフンと ISO 3166-1 Alpha-2 国コード(「pt」、「pt-BR」、「fil」、「fil-PH」など)。これは、レスポンスの userMessage フィールドを制御するために使用します。
|
protocolVersion |
object (Version )
必須: このリクエストのバージョン。
|
バージョン
従来の a.b.c
バージョン構造の構造化されたバージョン オブジェクト。同じ番号のメジャー バージョン間の互換性は保証されます。マイナーおよびリビジョンは、予告なく頻繁に変更される場合があります。インテグレータは、同じメジャー バージョンのすべてのリクエストをサポートする必要があります。
JSON 表現 |
{
"major": integer,
"minor": integer,
"revision": integer
} |
フィールド |
major |
integer
必須: メジャー バージョン。これは、異なるバージョンを持つ互換性リクエストでの互換性が保証されないためです。
|
minor |
integer
必須: マイナー バージョン。これは、重大なバグが修正されたことを示します。
|
revision |
integer
必須: マイナー バージョン。軽微なバグ修正を示します。
|
All rights reserved. Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[[["The RequestHeader object, present in all server requests, includes crucial details like request ID, timestamp, and protocol version."],["`requestId` is a unique alphanumeric identifier, limited to 100 characters, using \"a-z\", \"A-Z\", \"0-9\", \":\", \"-\", and \"_\"."],["`requestTimestamp`, in milliseconds since epoch, must be within ± 60 seconds of the current time for server acceptance."],["The `protocolVersion` object uses a structured format (`major.minor.revision`) to ensure compatibility across major versions while acknowledging potential changes in minor and revision numbers."],["While `userLocale` was initially intended for language preferences, it's deprecated and no longer functional."]]],["Requests to the server require a header object, including a `requestId` (unique string identifier), `requestTimestamp` (milliseconds since epoch, within 60s of current time), and `protocolVersion`. The `userLocale` field is deprecated and ignored. The `protocolVersion` is a structured `major.minor.revision` version number. Major versions guarantee compatibility, while minor and revision changes can happen without notice. All requests must support the same major version.\n"]]