请在关键端点停用之前更新您的 Google Business Profile API 集成。请查看
弃用时间表和相关说明,以免在 2022 年 4 月之后出现中断。
WriteRequest
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"resourceName": string,
"writeOffset": string,
"finishWrite": boolean,
"data": string
} |
字段 |
resourceName |
string
要写入的资源的名称。每个 Write() 操作的第一个 WriteRequest 都必须设置此属性。如果在后续调用中设置此属性,则必须与第一个请求的值匹配。
|
writeOffset |
string (int64 format)
应写入数据时的资源开头偏移量。所有 WriteRequest 都必须提供该字段。 在 Write() 操作的第一个 WriteRequest 中,表示 Write() 调用的初始偏移量。该值必须等于对 QueryWriteStatus() 的调用返回的 committedSize 。 在后续调用中,此值必须设置并且必须等于第一个 writeOffset 以及之前在此数据流中发送的所有 data 软件包的大小总和。 错误的值将导致错误。
|
finishWrite |
boolean
如果为 true ,则表示写入已完成。在 finishWrite 为 true 之后发送任何 WriteRequest 都会导致错误。
|
data |
string (bytes format)
资源的数据的一部分。对于任何给定的 WriteRequest ,客户端可以将 data 留空。这使客户端能够在该服务执行操作以生成更多数据时通知服务仍存在该请求。 使用 base64 编码的字符串。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-10-12。
[{
"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":"其他"
}]