FallbackInfo
有關使用備用結果的方式和原因的相關資訊。如果設定了這個欄位,伺服器就會使用偏好模式以外的路線做為備用模式。
欄位 |
routingMode |
enum (FallbackRoutingMode )
回應使用的轉送模式。如果觸發備用廣告,模式可能會與原始用戶端要求中設定的轉送偏好設定不同。
|
reason |
enum (FallbackReason )
為何系統只使用備用回應,而非原始回應。只有在觸發備用模式並傳回備用回應的情況下,系統才會填入這個欄位。
|
FallbackRoutingMode
列舉 |
FALLBACK_ROUTING_MODE_UNSPECIFIED |
未使用。 |
FALLBACK_TRAFFIC_UNAWARE |
指出 TRAFFIC_UNAWARE RoutingPreference 是用來計算回應。 |
FALLBACK_TRAFFIC_AWARE |
指出 TRAFFIC_AWARE RoutingPreference 是用來計算回應。 |
FallbackReason
列舉 |
FALLBACK_REASON_UNSPECIFIED |
未指定備用原因。 |
SERVER_ERROR |
以您偏好的轉送模式計算路線時發生伺服器錯誤,但我們能夠傳回其他模式計算的結果。 |
LATENCY_EXCEEDED |
我們無法按照你偏好的路線模式準時完成計算,但我們可以傳回透過其他模式計算的結果。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-04-29 (世界標準時間)。
[null,null,["上次更新時間:2025-04-29 (世界標準時間)。"],[[["FallbackInfo provides details on why and how a fallback routing result was used if the server deviated from the preferred routing mode."],["This information includes the actual routing mode used (FallbackRoutingMode) and the reason for the fallback (FallbackReason)."],["FallbackRoutingMode specifies whether traffic conditions were considered in the fallback route (TRAFFIC_AWARE or TRAFFIC_UNAWARE)."],["FallbackReason clarifies if the fallback was due to a server error or exceeding the allowed calculation time."]]],["The server may use a fallback routing mode if the preferred mode fails. This fallback information is provided in JSON format, including the `routingMode` used and the `reason` for the fallback. The `routingMode` can be `FALLBACK_TRAFFIC_UNAWARE` or `FALLBACK_TRAFFIC_AWARE`. The `reason` can be `SERVER_ERROR` (due to an internal error) or `LATENCY_EXCEEDED` (calculation exceeded the allowed time). Specific enumerations define the exact fallback mode and reason used.\n"]]