发送反馈
ArrayValue
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法
{
"values" : [
{
object (Value
)
}
]
}
字段
values[]
object (Value
)
数组中的值。
值
JSON 表示法
{
// Union field value_type
can be only one of the following:
"nullValue" : null ,
"booleanValue" : boolean ,
"integerValue" : string ,
"doubleValue" : number ,
"timestampValue" : string ,
"stringValue" : string ,
"bytesValue" : string ,
"referenceValue" : string ,
"geoPointValue" : {
object (LatLng
)
} ,
"arrayValue" : {
object (ArrayValue
)
} ,
"mapValue" : {
object (MapValue
)
}
// End of list of possible types for union field value_type
.
}
字段
联合字段 value_type
。必须设置值。value_type
只能是下列其中一项:
nullValue
null
null 值。
booleanValue
boolean
布尔值。
integerValue
string (int64 format)
一个整数值。
doubleValue
number
双精度值。
timestampValue
string (Timestamp
format)
时间戳值。
仅精确到微秒。存储后,任何额外的精度都会向下舍入。
采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式的时间戳,采用纳秒级精度,最多包含九个小数位。示例:"2014-10-02T15:01:23Z"
和 "2014-10-02T15:01:23.045123456Z"
。
stringValue
string
字符串值。
该字符串以 UTF-8 表示,不得超过 1 MiB - 89 个字节。查询只会考虑 UTF-8 表示法的前 1500 个字节。
bytesValue
string (bytes format)
字节值。
不得超过 1 MiB - 89 字节。查询只会考虑前 1500 个字节。
使用 base64 编码的字符串。
referenceValue
string
对文档的引用。例如:projects/{projectId}/databases/{databaseId}/documents/{document_path}
。
geoPointValue
object (LatLng
)
表示地球表面上某个点的地理位置点值。
arrayValue
object (ArrayValue
)
数组值。
不能直接包含另一个数组值,但可以包含另一个数组的映射。
mapValue
object (MapValue
)
映射值。
MapValue
JSON 表示法
{
"fields" : {
string : {
object (Value
)
} ,
...
}
}
字段
fields
map (key: string, value: object (Value
))
地图的字段。
映射键表示字段名称。与正则表达式 __.*__
匹配的字段名称已预留。禁止使用保留字段名称,某些规定的上下文除外。映射键(以 UTF-8 格式表示)不得超过 1,500 个字节,并且不能为空。
包含一系列 "key": value
对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }
。
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-08。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
需要向我们提供更多信息?