BatchCreateContactsErrorDetails
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 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.batchCreateContacts\u003c/code\u003e action fails, mapping the index of the failed contact in the request to a Status object describing the error.\u003c/p\u003e\n"],["\u003cp\u003eIf a contact's index is not present in \u003ccode\u003econtactErrors\u003c/code\u003e, it means the creation of that contact was successful.\u003c/p\u003e\n"],["\u003cp\u003eDetailed error information for each failed contact can be found within the \u003ccode\u003egoogle.rpc.Status.details\u003c/code\u003e field of the corresponding Status object.\u003c/p\u003e\n"]]],["The core content details the structure for recording errors in the `people.batchCreateContacts` action. It uses a `contactErrors` map to report failures. The `contactErrors` map uses an integer key representing the index of the contact in the batch request. The value associated with each key is a `Status` object, providing error details for that specific contact. If a contact's index is not in the map, its creation was successful. The details about error for that specific contact are in the `google.rpc.Status.details`.\n"],null,["# BatchCreateContactsErrorDetails\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nMessage to record error details when the request fails in the people.batchCreateContacts action.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"contactErrors\": { integer: { object (/people/api/rest/v1/Status) }, ... } } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `contactErrors` | `map (key: integer, value: object (`[Status](/people/api/rest/v1/Status)`))` Provides details for the client to identify the contact(s) that caused the batch creation to fail. If an index does not appear, then the creation of that contact would have been successful. In the map below: - The key is the index of the contact in the [BatchCreateContactsRequest.contacts](/people/api/rest/v1/people/batchCreateContacts#body.request_body.FIELDS.contacts). Indexes start from 0. - 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\" }`. |"]]