ValidationResults
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eValidationResults\u003c/code\u003e is a wrapper for repeated validation results, containing an array of \u003ccode\u003eValidationResult\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValidationResult\u003c/code\u003e objects represent individual validation outcomes, providing a validation message and context.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValidationContext\u003c/code\u003e offers details about the resource related to the validation message, such as its language code.\u003c/p\u003e\n"]]],[],null,["# ValidationResults\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ValidationResult](#ValidationResult)\n - [JSON representation](#ValidationResult.SCHEMA_REPRESENTATION)\n- [ValidationContext](#ValidationContext)\n - [JSON representation](#ValidationContext.SCHEMA_REPRESENTATION)\n\nWrapper for repeated validation result.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"results\": [ { object (/assistant/actions/api/reference/rest/v2/ValidationResults#ValidationResult) } ] } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `results[]` | `object (`[ValidationResult](/assistant/actions/api/reference/rest/v2/ValidationResults#ValidationResult)`)` Multiple validation results. |\n\nValidationResult\n----------------\n\nRepresents a validation result associated with the app content.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"validationMessage\": string, \"validationContext\": { object (/assistant/actions/api/reference/rest/v2/ValidationResults#ValidationContext) } } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `validationMessage` | `string` Holds the validation message. |\n| `validationContext` | `object (`[ValidationContext](/assistant/actions/api/reference/rest/v2/ValidationResults#ValidationContext)`)` Context to identify the resource the validation message relates to. |\n\nValidationContext\n-----------------\n\nContext to identify the resource the validation message relates to.\n\n| JSON representation ||\n|------------------------------------|---|\n| ``` { \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `languageCode` | `string` Language code of the lozalized resource. Empty if the error is for non-localized resource. See the list of supported languages in \u003chttps://developers.google.com/assistant/console/languages-locales\u003e |"]]