Person
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đối tượng đại diện cho một người.
Biểu diễn dưới dạng JSON |
{
"name": string,
"obfuscatedId": string,
"personNames": [
{
object (Name )
}
],
"emailAddresses": [
{
object (EmailAddress )
}
],
"phoneNumbers": [
{
object (PhoneNumber )
}
],
"photos": [
{
object (Photo )
}
]
} |
Trường |
name |
string
Tên tài nguyên của người mà bạn muốn cung cấp thông tin. Xem People.get từ API Google People.
|
obfuscatedId |
string
Mã nhận dạng bị làm rối mã nguồn của một người.
|
personNames[] |
object (Name )
Tên của người đó
|
emailAddresses[] |
object (EmailAddress )
Địa chỉ email của người đó
|
phoneNumbers[] |
object (PhoneNumber )
Số điện thoại của người đó
|
photos[] |
object (Photo )
Ảnh chỉ có thể đọc của một người. Hình ảnh xuất hiện bên cạnh tên của người đó để giúp người khác nhận ra người đó trong kết quả tìm kiếm.
|
Tên
Biểu diễn dưới dạng JSON |
{
"displayName": string
} |
Trường |
displayName |
string
Tên hiển thị chỉ có thể đọc được, được định dạng theo ngôn ngữ do tài khoản của người xem chỉ định hoặc tiêu đề HTTP Accept-Language .
|
EmailAddress
Địa chỉ email của một người.
Biểu diễn dưới dạng JSON |
{
"emailAddress": string,
"primary": boolean,
"type": string,
"customType": string,
"emailUrl": string
} |
Trường |
emailAddress |
string
Địa chỉ email.
|
primary |
boolean
Cho biết liệu đây có phải là email chính của người dùng hay không. Bạn chỉ có thể đánh dấu một mục nhập là chính.
|
type |
string
Loại tài khoản email. Các giá trị được chấp nhận là: "tuỳ chỉnh", "nhà", "khác", "công việc".
|
customType |
string
Nếu giá trị của type là tuỳ chỉnh, thì thuộc tính này sẽ chứa chuỗi loại tuỳ chỉnh.
|
emailUrl |
string
URL để gửi email.
|
PhoneNumber
Số điện thoại của một người
PhoneNumber.PhoneNumberType
Ảnh
Ảnh chân dung của một người.
Biểu diễn dưới dạng JSON |
{
"url": string
} |
Trường |
url |
string
URL của ảnh.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],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. |"]]