BatchUpdateContactsErrorDetails
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003econtactErrors\u003c/code\u003e field provides error details when the \u003ccode\u003epeople.batchUpdateContacts\u003c/code\u003e action fails, helping identify problematic contacts.\u003c/p\u003e\n"],["\u003cp\u003eIt's structured as a map with contact resource names/IDs as keys and Status objects (containing error details) as values.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful contact updates are not included in this field; only failed updates have entries.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egoogle.rpc.Status.details\u003c/code\u003e within the Status object lists specific errors encountered for each contact.\u003c/p\u003e\n"]]],["The `contactErrors` field, a map, details why batch contact updates fail. The map's key is the contact's resource name/ID from the update request. The value, a `Status` object, explains the error for that contact. If a contact ID is absent from `contactErrors`, its update was successful. `google.rpc.Status.details` provides a list of errors per contact. Each value is formated as `\"key\": value`.\n"],null,["# BatchUpdateContactsErrorDetails\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nMessage to record error details when the request fails in the people.batchUpdateContacts action.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------|\n| ``` { \"contactErrors\": { string: { object (/people/api/rest/v1/Status) }, ... } } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `contactErrors` | `map (key: string, value: object (`[Status](/people/api/rest/v1/Status)`))` Provides details for the client to identify the contact(s) that caused the batch update to fail. If a contact id does not appear, then the update of that contact would have been successful. In the map below: - The key is the resource name / contact id in [BatchUpdateContactsRequest.contacts](/people/api/rest/v1/people/batchUpdateContacts#body.request_body.FIELDS.contacts). - The value is a Status. [google.rpc.Status.details](/people/api/rest/v1/Status#FIELDS.details) will contain the list of errors for the contact. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |"]]