OpenUrlAction
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
字段 |
url |
string
网址字段,可以是以下任一项:- 用于打开与应用关联的应用或网页的 http/https 网址
|
androidApp |
object (AndroidApp )
有关 Android 应用的信息(如果网址应由 Android 应用实现)。
|
urlTypeHint |
enum (UrlTypeHint )
表示网址类型的提示。
|
AndroidApp
JSON 表示法 |
{
"packageName": string,
"versions": [
{
object (VersionFilter )
}
]
} |
字段 |
packageName |
string
指定 Android 执行方式时,必须指定软件包名称。
|
versions[] |
object (VersionFilter )
如果指定了多个过滤条件,任何过滤条件匹配都将触发应用。
|
VersionFilter
如果需要应用的特定版本,则应添加 VersionFilter。
JSON 表示法 |
{
"minVersion": integer,
"maxVersion": integer
} |
字段 |
minVersion |
integer
最低版本代码或 0(含)。
|
maxVersion |
integer
最高版本代码(含边界值)。考虑的范围是 [minVersion:maxVersion]。null 范围表示任何版本。示例:要指定单个版本,请使用:[target_version:target_version]。要指定任何版本,请勿指定 minVersion 和 maxVersion。如需指定 maxVersion 之前的所有版本,请勿指定 minVersion。如需指定 minVersion 中的所有版本,请勿指定 maxVersion。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e allows opening a webpage or a mobile app specified by a URL.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e supports specifying Android apps via package name for fulfillment.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e allows filtering app fulfillment by version using \u003ccode\u003eVersionFilter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVersionFilter\u003c/code\u003e supports minimum and maximum version codes to control the app version range.\u003c/p\u003e\n"]]],[],null,["# OpenUrlAction\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AndroidApp](#AndroidApp)\n - [JSON representation](#AndroidApp.SCHEMA_REPRESENTATION)\n- [VersionFilter](#VersionFilter)\n - [JSON representation](#VersionFilter.SCHEMA_REPRESENTATION)\n\nOpens the given url.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"url\": string, \"androidApp\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#AndroidApp) }, \"urlTypeHint\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/UrlTypeHint) } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `url` | `string` The url field which could be any of: - http/https urls for opening an App-linked App or a webpage |\n| `androidApp` | `object (`[AndroidApp](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#AndroidApp)`)` Information about the Android App if the URL is expected to be fulfilled by an Android App. |\n| `urlTypeHint` | `enum (`[UrlTypeHint](/assistant/df-asdk/reference/webhook/rest/Shared.Types/UrlTypeHint)`)` Indicates a hint for the url type. |\n\nAndroidApp\n----------\n\nSpecification of the Android App for fulfillment restrictions\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"packageName\": string, \"versions\": [ { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#VersionFilter) } ] } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Package name Package name must be specified when specifing Android Fulfillment. |\n| `versions[]` | `object (`[VersionFilter](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#VersionFilter)`)` When multiple filters are specified, any filter match will trigger the app. |\n\nVersionFilter\n-------------\n\nVersionFilter should be included if specific version/s of the App are required.\n\n| JSON representation ||\n|----------------------------------------------------------|---|\n| ``` { \"minVersion\": integer, \"maxVersion\": integer } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `minVersion` | `integer` Min version code or 0, inclusive. |\n| `maxVersion` | `integer` Max version code, inclusive. The range considered is \\[minVersion:maxVersion\\]. A null range implies any version. Examples: To specify a single version use: \\[target_version:target_version\\]. To specify any version leave minVersion and maxVersion unspecified. To specify all versions until maxVersion, leave minVersion unspecified. To specify all versions from minVersion, leave maxVersion unspecified. |"]]