发送反馈
Operation
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此资源表示作为网络 API 调用结果的长时间运行的操作。
JSON 表示 {
"name": string ,
"metadata": {
"@type": string ,
field1: ... ,
...
} ,
"done": boolean ,
// Union field result
can be only one of the following:
"error": {
object(Status
)
} ,
"response": {
"@type": string ,
field1: ... ,
...
}
// End of list of possible types for union field result
.
}
字段 name
string
服务器分配的名称,仅在最初返回它的服务中是唯一的。如果使用默认的HTTP映射, name
应具有格式operations/some/unique/name
。
metadata
object
与操作关联的特定于服务的元数据。它通常包含进度信息和通用元数据,例如创建时间。某些服务可能不提供此类元数据。任何返回长时间运行操作的方法都应记录元数据类型(如果有)。
包含任意类型字段的对象。一个附加的字段"@type"
包含URI识别的类型。例如: { "id": 1234, "@type": "types.example.com/standard/id" }
。
done
boolean
如果该值是false
,这意味着操作仍在进行中。如果true
,则操作完成,并且或者error
或response
是可用的。
联盟场result
。的操作结果,其可以是一个error
或有效的response
。如果done
== false
,既不error
也不response
设置。如果done
== true
,正好一个error
或response
设置。 result
只能是以下情况之一: error
object( Status
)
操作失败或取消时的错误结果。
response
object
操作成功时的正常反应。如果原始方法返回成功没有数据,诸如Delete
,响应是google.protobuf.Empty
。如果原来的方法是标准Get
/ Create
/ Update
,响应应该是资源。对于其他方法,响应应具有类型XxxResponse
,其中Xxx
是原来的方法的名称。例如,如果原来的方法名是TakeSnapshot()
所推断的响应类型是TakeSnapshotResponse
。
包含任意类型字段的对象。一个附加的字段"@type"
包含URI识别的类型。例如: { "id": 1234, "@type": "types.example.com/standard/id" }
。
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2019-12-03。
[{
"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":"其他"
}]
需要向我们提供更多信息?