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 |
선호하는 라우팅 모드로 계산을 제때 완료할 수 없었습니다. 하지만 대체 모드로 계산된 결과를 반환할 수 있었습니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-27(UTC)
[null,null,["최종 업데이트: 2024-11-27(UTC)"],[[["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"]]