Person
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"name": string,
"obfuscatedId": string,
"personNames": [
{
object (Name )
}
],
"emailAddresses": [
{
object (EmailAddress )
}
],
"phoneNumbers": [
{
object (PhoneNumber )
}
],
"photos": [
{
object (Photo )
}
]
} |
字段 |
name |
string
要提供信息的人员的资源名称。请参阅 Google People API 中的 People.get 。
|
obfuscatedId |
string
某个人的经过混淆处理的 ID。
|
personNames[] |
object (Name )
人员的姓名
|
emailAddresses[] |
object (EmailAddress )
对方的电子邮件地址
|
phoneNumbers[] |
object (PhoneNumber )
相应人员的电话号码
|
photos[] |
object (Photo )
某人的只读照片。显示在联系人姓名旁边的照片,可帮助他人在搜索结果中识别联系人。
|
名称
JSON 表示法 |
{
"displayName": string
} |
字段 |
displayName |
string
只读显示名称,其格式根据观看者的账号或 Accept-Language HTTP 标头指定的语言区域而定。
|
电子邮件地址
JSON 表示法 |
{
"emailAddress": string,
"primary": boolean,
"type": string,
"customType": string,
"emailUrl": string
} |
字段 |
emailAddress |
string
电子邮件地址。
|
primary |
boolean
指示这是用户的主电子邮件地址。只能将一个条目标记为主要条目。
|
type |
string
电子邮件账号的类型。可接受的值包括:“自定义”“住宅”“其他”“工作”。
|
customType |
string
如果 type 的值为“custom”,则此属性包含自定义类型字符串。
|
emailUrl |
string
用于发送电子邮件的网址。
|
PhoneNumber.PhoneNumberType
照片
JSON 表示法 |
{
"url": string
} |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Person\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Name](#Name)\n - [JSON representation](#Name.SCHEMA_REPRESENTATION)\n- [EmailAddress](#EmailAddress)\n - [JSON representation](#EmailAddress.SCHEMA_REPRESENTATION)\n- [PhoneNumber](#PhoneNumber)\n - [JSON representation](#PhoneNumber.SCHEMA_REPRESENTATION)\n- [PhoneNumber.PhoneNumberType](#PhoneNumber.PhoneNumberType)\n- [Photo](#Photo)\n - [JSON representation](#Photo.SCHEMA_REPRESENTATION)\n\nObject to represent a person.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"obfuscatedId\": string, \"personNames\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/Person#Name) } ], \"emailAddresses\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/Person#EmailAddress) } ], \"phoneNumbers\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/Person#PhoneNumber) } ], \"photos\": [ { object (/workspace/cloud-search/docs/reference/rest/v1/Person#Photo) } ] } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name of the person to provide information about. See [`People.get`](https://developers.google.com/people/api/rest/v1/people/get) from the Google People API. |\n| `obfuscatedId` | `string` Obfuscated id of a person. |\n| `personNames[]` | `object (`[Name](/workspace/cloud-search/docs/reference/rest/v1/Person#Name)`)` The person's name |\n| `emailAddresses[]` | `object (`[EmailAddress](/workspace/cloud-search/docs/reference/rest/v1/Person#EmailAddress)`)` The person's email addresses |\n| `phoneNumbers[]` | `object (`[PhoneNumber](/workspace/cloud-search/docs/reference/rest/v1/Person#PhoneNumber)`)` The person's phone numbers |\n| `photos[]` | `object (`[Photo](/workspace/cloud-search/docs/reference/rest/v1/Person#Photo)`)` A person's read-only photo. A picture shown next to the person's name to help others recognize the person in search results. |\n\nName\n----\n\nA person's name.\n\n| JSON representation |\n|-----------------------------------|\n| ``` { \"displayName\": string } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` The read-only display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header. |\n\nEmailAddress\n------------\n\nA person's email address.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------|\n| ``` { \"emailAddress\": string, \"primary\": boolean, \"type\": string, \"customType\": string, \"emailUrl\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------|\n| `emailAddress` | `string` The email address. |\n| `primary` | `boolean` Indicates if this is the user's primary email. Only one entry can be marked as primary. |\n| `type` | `string` The type of the email account. Acceptable values are: \"custom\", \"home\", \"other\", \"work\". |\n| `customType` | `string` If the value of type is custom, this property contains the custom type string. |\n| `emailUrl` | `string` The URL to send email. |\n\nPhoneNumber\n-----------\n\nA person's Phone Number\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"phoneNumber\": string, \"type\": enum (/workspace/cloud-search/docs/reference/rest/v1/Person#PhoneNumber.PhoneNumberType) } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `phoneNumber` | `string` The phone number of the person. |\n| `type` | `enum (`[PhoneNumber.PhoneNumberType](/workspace/cloud-search/docs/reference/rest/v1/Person#PhoneNumber.PhoneNumberType)`)` |\n\nPhoneNumber.PhoneNumberType\n---------------------------\n\nPhone number type enum.\n\n| Enums ||\n|----------|---|\n| `OTHER` | |\n| `MOBILE` | |\n| `OFFICE` | |\n\nPhoto\n-----\n\nA person's photo.\n\n| JSON representation |\n|---------------------------|\n| ``` { \"url\": string } ``` |\n\n| Fields ||\n|-------|--------------------------------|\n| `url` | `string` The URL of the photo. |"]]