Condition
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Condition\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ConditionType](#ConditionType)\n\nRepresents a predicate.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"type\": enum (/tag-platform/tag-manager/api/reference/rest/v2/Condition#ConditionType), \"parameter\": [ { object (/tag-platform/tag-manager/api/reference/rest/v2/Parameter) } ] } ``` |\n\n| Fields ||\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | `enum (`[ConditionType](/tag-platform/tag-manager/api/reference/rest/v2/Condition#ConditionType)`)` The type of operator for this condition. |\n| `parameter[]` | `object (`[Parameter](/tag-platform/tag-manager/api/reference/rest/v2/Parameter)`)` A list of named parameters (key/value), depending on the condition's type. Notes: - For binary operators, include parameters named \u003cbr /\u003e `arg0` and `arg1` for specifying the left and right operands, respectively. - At this time, the left operand (\u003cbr /\u003e `arg0` ) must be a reference to a variable. - For case-insensitive Regex matching, include a boolean parameter named\u003cbr /\u003e `ignore_case` that is set to `true` . If not specified or set to any other value, the matching will be case sensitive. - To negate an operator, include a boolean parameter named\u003cbr /\u003e `negate` boolean parameter that is set to `true` . \u003cbr /\u003e |\n\nConditionType\n-------------\n\n| Enums ||\n|----------------------------|---|\n| `conditionTypeUnspecified` | |\n| `equals` | |\n| `contains` | |\n| `startsWith` | |\n| `endsWith` | |\n| `matchRegex` | |\n| `greater` | |\n| `greaterOrEquals` | |\n| `less` | |\n| `lessOrEquals` | |\n| `cssSelector` | |\n| `urlMatches` | |"]]