Disclosure
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
DisclosureText
JSON 表示法 |
{
"template": string,
"textLinks": [
{
object (TextLink )
}
]
} |
字段 |
template |
string
要显示的文本,包含占位符,如“{0}”和“{1}”插入每个文本链接。示例:“警告:本产品可能会接触加州已知的可致癌的化学物质。有关详情,请访问 {0}。”披露声明文字不得包含任何促销内容或类似广告的内容。
|
textLinks[] |
object (TextLink )
应替换到模板中的文本链接。第一张将替换为“{0}”第二个是“{1}”,以此类推。
|
TextLink
JSON 表示法 |
{
"displayText": string,
"url": string
} |
字段 |
displayText |
string
应向用户显示的文本。
|
url |
string
链接激活后,用户应被定向到的网址。
|
DisclosurePresentationOptions
字段 |
presentationRequirement |
enum (PresentationRequirement )
披露声明的呈现要求。
|
initiallyExpanded |
boolean
披露信息的内容一开始是否应展开。默认情况下,该窗格最初处于收起状态。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDisclosures provide important product, service, or policy information to users, including titles, detailed text, and presentation options.\u003c/p\u003e\n"],["\u003cp\u003eDisclosure text supports web links using a template with placeholders like "{0}" and "{1}" for dynamic link insertion.\u003c/p\u003e\n"],["\u003cp\u003eText links within disclosures consist of display text and a corresponding URL for user interaction.\u003c/p\u003e\n"],["\u003cp\u003ePresentation options control how disclosures are shown, including whether they are initially expanded or collapsed and the requirement for presentation.\u003c/p\u003e\n"]]],[],null,["# Disclosure\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DisclosureText](#DisclosureText)\n - [JSON representation](#DisclosureText.SCHEMA_REPRESENTATION)\n- [TextLink](#TextLink)\n - [JSON representation](#TextLink.SCHEMA_REPRESENTATION)\n- [DisclosurePresentationOptions](#DisclosurePresentationOptions)\n - [JSON representation](#DisclosurePresentationOptions.SCHEMA_REPRESENTATION)\n\nA product, service or policy disclosure that may be presented to the user.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"title\": string, \"disclosureText\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#DisclosureText) }, \"presentationOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#DisclosurePresentationOptions) } } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `title` | `string` title of the disclosure. Example: \"Safety information\". |\n| `disclosureText` | `object (`[DisclosureText](/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#DisclosureText)`)` Content of the disclosure. Weblinks are allowed. |\n| `presentationOptions` | `object (`[DisclosurePresentationOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#DisclosurePresentationOptions)`)` Presentation options for the disclosure. |\n\nDisclosureText\n--------------\n\nRepresents a plain text with web links.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"template\": string, \"textLinks\": [ { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#TextLink) } ] } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `template` | `string` Text to display, containing placeholders like \"{0}\" and \"{1}\" for each textlink that should be inserted. Example: \"WARNING: This product can expose you to chemicals which are known to the state of California to cause cancer. For more information go to {0}.\" This disclosure text must not contain any promotional or ad-like content. |\n| `textLinks[]` | `object (`[TextLink](/assistant/df-asdk/reference/webhook/rest/Shared.Types/Disclosure#TextLink)`)` Text links that should be substituted into the template. The first one will be substituted for \"{0}\" in the template string, and the second one for \"{1}\", etc. |\n\nTextLink\n--------\n\nA text link that should be substituted into the template.\n\n| JSON representation ||\n|--------------------------------------------------|---|\n| ``` { \"displayText\": string, \"url\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------|\n| `displayText` | `string` Text that should be displayed to users. |\n| `url` | `string` URL to which users should be directed when the link is activated. |\n\nDisclosurePresentationOptions\n-----------------------------\n\nOptions for the presentation of a disclosure.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"presentationRequirement\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/PresentationRequirement), \"initiallyExpanded\": boolean } ``` |\n\n| Fields ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `presentationRequirement` | `enum (`[PresentationRequirement](/assistant/df-asdk/reference/webhook/rest/Shared.Types/PresentationRequirement)`)` Presentation requirement of the disclosure. |\n| `initiallyExpanded` | `boolean` Whether the content of the disclosure should be initially expanded. By default, it is initially collapsed. |"]]