试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
DimensionValue
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
// Union field one_value can be only one of the following:
"value": string
// End of list of possible types for union field one_value .
} |
字段 |
联合字段 one_value 。一种维度值 one_value 只能是下列其中一项: |
value |
string
如果维度类型为字符串,则值为字符串。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation describes the JSON representation of a dimension's value within a data structure.\u003c/p\u003e\n"],["\u003cp\u003eA dimension value can be represented as a string, indicated by the "value" field in the JSON object.\u003c/p\u003e\n"],["\u003cp\u003eThe "one_value" field acts as a union, accepting only one type of value, which in this case is the string representation of the dimension.\u003c/p\u003e\n"]]],["The document describes a dimension value represented in JSON. A dimension value uses a union field called `one_value`. This field can only contain a single value, which is a string. The string value is stored in the field named `value`, and this field is used when the dimension type is explicitly a string.\n"],null,["# DimensionValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe value of a dimension.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `one_value` can be only one of the following: \"value\": string // End of list of possible types for union field `one_value`. } ``` |\n\n| Fields ||\n|---------|---------------------------------------------------------------|\n| Union field `one_value`. One kind of dimension value `one_value` can be only one of the following: ||\n| `value` | `string` Value as a string if the dimension type is a string. |"]]