1{ 2 "auth": { 3 "oauth2": { 4 "scopes": { 5 "https://www.googleapis.com/auth/contacts": { 6 "description": "See, edit, download, and permanently delete your contacts" 7 }, 8 "https://www.googleapis.com/auth/contacts.other.readonly": { 9 "description": "See and download contact info automatically saved in your \"Other contacts\"" 10 }, 11 "https://www.googleapis.com/auth/contacts.readonly": { 12 "description": "See and download your contacts" 13 }, 14 "https://www.googleapis.com/auth/directory.readonly": { 15 "description": "See and download your organization's GSuite directory" 16 }, 17 "https://www.googleapis.com/auth/user.addresses.read": { 18 "description": "View your street addresses" 19 }, 20 "https://www.googleapis.com/auth/user.birthday.read": { 21 "description": "View your complete date of birth" 22 }, 23 "https://www.googleapis.com/auth/user.emails.read": { 24 "description": "View your email addresses" 25 }, 26 "https://www.googleapis.com/auth/user.gender.read": { 27 "description": "See your gender" 28 }, 29 "https://www.googleapis.com/auth/user.organization.read": { 30 "description": "See your education, work history and org info" 31 }, 32 "https://www.googleapis.com/auth/user.phonenumbers.read": { 33 "description": "View your phone numbers" 34 }, 35 "https://www.googleapis.com/auth/userinfo.email": { 36 "description": "View your email address" 37 }, 38 "https://www.googleapis.com/auth/userinfo.profile": { 39 "description": "See your personal info, including any personal info you've made publicly available" 40 } 41 } 42 } 43 }, 44 "basePath": "", 45 "baseUrl": "https://people.googleapis.com/", 46 "batchPath": "batch", 47 "canonicalName": "People Service", 48 "description": "Provides access to information about profiles and contacts.", 49 "discoveryVersion": "v1", 50 "documentationLink": "https://developers.google.com/people/", 51 "icons": { 52 "x16": "http://www.google.com/images/icons/product/search-16.gif", 53 "x32": "http://www.google.com/images/icons/product/search-32.gif" 54 }, 55 "id": "people:v1", 56 "kind": "discovery#restDescription", 57 "mtlsRootUrl": "https://people.mtls.googleapis.com/", 58 "name": "people", 59 "ownerDomain": "google.com", 60 "ownerName": "Google", 61 "parameters": { 62 "$.xgafv": { 63 "description": "V1 error format.", 64 "enum": [ 65 "1", 66 "2" 67 ], 68 "enumDescriptions": [ 69 "v1 error format", 70 "v2 error format" 71 ], 72 "location": "query", 73 "type": "string" 74 }, 75 "access_token": { 76 "description": "OAuth access token.", 77 "location": "query", 78 "type": "string" 79 }, 80 "alt": { 81 "default": "json", 82 "description": "Data format for response.", 83 "enum": [ 84 "json", 85 "media", 86 "proto" 87 ], 88 "enumDescriptions": [ 89 "Responses with Content-Type of application/json", 90 "Media download with context-dependent Content-Type", 91 "Responses with Content-Type of application/x-protobuf" 92 ], 93 "location": "query", 94 "type": "string" 95 }, 96 "callback": { 97 "description": "JSONP", 98 "location": "query", 99 "type": "string" 100 }, 101 "fields": { 102 "description": "Selector specifying which fields to include in a partial response.", 103 "location": "query", 104 "type": "string" 105 }, 106 "key": { 107 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", 108 "location": "query", 109 "type": "string" 110 }, 111 "oauth_token": { 112 "description": "OAuth 2.0 token for the current user.", 113 "location": "query", 114 "type": "string" 115 }, 116 "prettyPrint": { 117 "default": "true", 118 "description": "Returns response with indentations and line breaks.", 119 "location": "query", 120 "type": "boolean" 121 }, 122 "quotaUser": { 123 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", 124 "location": "query", 125 "type": "string" 126 }, 127 "uploadType": { 128 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", 129 "location": "query", 130 "type": "string" 131 }, 132 "upload_protocol": { 133 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", 134 "location": "query", 135 "type": "string" 136 } 137 }, 138 "protocol": "rest", 139 "resources": { 140 "contactGroups": { 141 "methods": { 142 "batchGet": { 143 "description": "Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.", 144 "flatPath": "v1/contactGroups:batchGet", 145 "httpMethod": "GET", 146 "id": "people.contactGroups.batchGet", 147 "parameterOrder": [], 148 "parameters": { 149 "maxMembers": { 150 "description": "Optional. Specifies the maximum number of members to return for each group. Defaults to 0 if not set, which will return zero members.", 151 "format": "int32", 152 "location": "query", 153 "type": "integer" 154 }, 155 "resourceNames": { 156 "description": "Required. The resource names of the contact groups to get.", 157 "location": "query", 158 "repeated": true, 159 "type": "string" 160 } 161 }, 162 "path": "v1/contactGroups:batchGet", 163 "response": { 164 "$ref": "BatchGetContactGroupsResponse" 165 }, 166 "scopes": [ 167 "https://www.googleapis.com/auth/contacts", 168 "https://www.googleapis.com/auth/contacts.readonly" 169 ] 170 }, 171 "create": { 172 "description": "Create a new contact group owned by the authenticated user.", 173 "flatPath": "v1/contactGroups", 174 "httpMethod": "POST", 175 "id": "people.contactGroups.create", 176 "parameterOrder": [], 177 "parameters": {}, 178 "path": "v1/contactGroups", 179 "request": { 180 "$ref": "CreateContactGroupRequest" 181 }, 182 "response": { 183 "$ref": "ContactGroup" 184 }, 185 "scopes": [ 186 "https://www.googleapis.com/auth/contacts" 187 ] 188 }, 189 "delete": { 190 "description": "Delete an existing contact group owned by the authenticated user by specifying a contact group resource name.", 191 "flatPath": "v1/contactGroups/{contactGroupsId}", 192 "httpMethod": "DELETE", 193 "id": "people.contactGroups.delete", 194 "parameterOrder": [ 195 "resourceName" 196 ], 197 "parameters": { 198 "deleteContacts": { 199 "description": "Optional. Set to true to also delete the contacts in the specified group.", 200 "location": "query", 201 "type": "boolean" 202 }, 203 "resourceName": { 204 "description": "Required. The resource name of the contact group to delete.", 205 "location": "path", 206 "pattern": "^contactGroups/[^/]+$", 207 "required": true, 208 "type": "string" 209 } 210 }, 211 "path": "v1/{+resourceName}", 212 "response": { 213 "$ref": "Empty" 214 }, 215 "scopes": [ 216 "https://www.googleapis.com/auth/contacts" 217 ] 218 }, 219 "get": { 220 "description": "Get a specific contact group owned by the authenticated user by specifying a contact group resource name.", 221 "flatPath": "v1/contactGroups/{contactGroupsId}", 222 "httpMethod": "GET", 223 "id": "people.contactGroups.get", 224 "parameterOrder": [ 225 "resourceName" 226 ], 227 "parameters": { 228 "maxMembers": { 229 "description": "Optional. Specifies the maximum number of members to return. Defaults to 0 if not set, which will return zero members.", 230 "format": "int32", 231 "location": "query", 232 "type": "integer" 233 }, 234 "resourceName": { 235 "description": "Required. The resource name of the contact group to get.", 236 "location": "path", 237 "pattern": "^contactGroups/[^/]+$", 238 "required": true, 239 "type": "string" 240 } 241 }, 242 "path": "v1/{+resourceName}", 243 "response": { 244 "$ref": "ContactGroup" 245 }, 246 "scopes": [ 247 "https://www.googleapis.com/auth/contacts", 248 "https://www.googleapis.com/auth/contacts.readonly" 249 ] 250 }, 251 "list": { 252 "description": "List all contact groups owned by the authenticated user. Members of the contact groups are not populated.", 253 "flatPath": "v1/contactGroups", 254 "httpMethod": "GET", 255 "id": "people.contactGroups.list", 256 "parameterOrder": [], 257 "parameters": { 258 "pageSize": { 259 "description": "Optional. The maximum number of resources to return. Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or set to 0.", 260 "format": "int32", 261 "location": "query", 262 "type": "integer" 263 }, 264 "pageToken": { 265 "description": "Optional. The next_page_token value returned from a previous call to [ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the next page of resources.", 266 "location": "query", 267 "type": "string" 268 }, 269 "syncToken": { 270 "description": "Optional. A sync token, returned by a previous call to `contactgroups.list`. Only resources changed since the sync token was created will be returned.", 271 "location": "query", 272 "type": "string" 273 } 274 }, 275 "path": "v1/contactGroups", 276 "response": { 277 "$ref": "ListContactGroupsResponse" 278 }, 279 "scopes": [ 280 "https://www.googleapis.com/auth/contacts", 281 "https://www.googleapis.com/auth/contacts.readonly" 282 ] 283 }, 284 "update": { 285 "description": "Update the name of an existing contact group owned by the authenticated user.", 286 "flatPath": "v1/contactGroups/{contactGroupsId}", 287 "httpMethod": "PUT", 288 "id": "people.contactGroups.update", 289 "parameterOrder": [ 290 "resourceName" 291 ], 292 "parameters": { 293 "resourceName": { 294 "description": "The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`.", 295 "location": "path", 296 "pattern": "^contactGroups/[^/]+$", 297 "required": true, 298 "type": "string" 299 } 300 }, 301 "path": "v1/{+resourceName}", 302 "request": { 303 "$ref": "UpdateContactGroupRequest" 304 }, 305 "response": { 306 "$ref": "ContactGroup" 307 }, 308 "scopes": [ 309 "https://www.googleapis.com/auth/contacts" 310 ] 311 } 312 }, 313 "resources": { 314 "members": { 315 "methods": { 316 "modify": { 317 "description": "Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are `contactGroups/myContacts` and `contactGroups/starred`. Other system contact groups are deprecated and can only have contacts removed.", 318 "flatPath": "v1/contactGroups/{contactGroupsId}/members:modify", 319 "httpMethod": "POST", 320 "id": "people.contactGroups.members.modify", 321 "parameterOrder": [ 322 "resourceName" 323 ], 324 "parameters": { 325 "resourceName": { 326 "description": "Required. The resource name of the contact group to modify.", 327 "location": "path", 328 "pattern": "^contactGroups/[^/]+$", 329 "required": true, 330 "type": "string" 331 } 332 }, 333 "path": "v1/{+resourceName}/members:modify", 334 "request": { 335 "$ref": "ModifyContactGroupMembersRequest" 336 }, 337 "response": { 338 "$ref": "ModifyContactGroupMembersResponse" 339 }, 340 "scopes": [ 341 "https://www.googleapis.com/auth/contacts" 342 ] 343 } 344 } 345 } 346 } 347 }, 348 "otherContacts": { 349 "methods": { 350 "copyOtherContactToMyContactsGroup": { 351 "description": "Copies an \"Other contact\" to a new contact in the user's \"myContacts\" group", 352 "flatPath": "v1/otherContacts/{otherContactsId}:copyOtherContactToMyContactsGroup", 353 "httpMethod": "POST", 354 "id": "people.otherContacts.copyOtherContactToMyContactsGroup", 355 "parameterOrder": [ 356 "resourceName" 357 ], 358 "parameters": { 359 "resourceName": { 360 "description": "Required. The resource name of the \"Other contact\" to copy.", 361 "location": "path", 362 "pattern": "^otherContacts/[^/]+$", 363 "required": true, 364 "type": "string" 365 } 366 }, 367 "path": "v1/{+resourceName}:copyOtherContactToMyContactsGroup", 368 "request": { 369 "$ref": "CopyOtherContactToMyContactsGroupRequest" 370 }, 371 "response": { 372 "$ref": "Person" 373 }, 374 "scopes": [ 375 "https://www.googleapis.com/auth/contacts", 376 "https://www.googleapis.com/auth/contacts.other.readonly" 377 ] 378 }, 379 "list": { 380 "description": "List all \"Other contacts\", that is contacts that are not in a contact group. \"Other contacts\" are typically auto created contacts from interactions.", 381 "flatPath": "v1/otherContacts", 382 "httpMethod": "GET", 383 "id": "people.otherContacts.list", 384 "parameterOrder": [], 385 "parameters": { 386 "pageSize": { 387 "description": "Optional. The number of \"Other contacts\" to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.", 388 "format": "int32", 389 "location": "query", 390 "type": "integer" 391 }, 392 "pageToken": { 393 "description": "Optional. A page token, received from a previous `ListOtherContacts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOtherContacts` must match the call that provided the page token.", 394 "location": "query", 395 "type": "string" 396 }, 397 "readMask": { 398 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * emailAddresses * names * phoneNumbers", 399 "format": "google-fieldmask", 400 "location": "query", 401 "type": "string" 402 }, 403 "requestSyncToken": { 404 "description": "Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit.", 405 "location": "query", 406 "type": "boolean" 407 }, 408 "syncToken": { 409 "description": "Optional. A sync token, received from a previous `ListOtherContacts` call. Provide this to retrieve only the resources changed since the last request. Sync requests that specify `sync_token` have an additional rate limit. When syncing, all other parameters provided to `ListOtherContacts` must match the call that provided the sync token.", 410 "location": "query", 411 "type": "string" 412 } 413 }, 414 "path": "v1/otherContacts", 415 "response": { 416 "$ref": "ListOtherContactsResponse" 417 }, 418 "scopes": [ 419 "https://www.googleapis.com/auth/contacts.other.readonly" 420 ] 421 } 422 } 423 }, 424 "people": { 425 "methods": { 426 "createContact": { 427 "description": "Create a new contact and return the person resource for that contact. The request throws a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", 428 "flatPath": "v1/people:createContact", 429 "httpMethod": "POST", 430 "id": "people.people.createContact", 431 "parameterOrder": [], 432 "parameters": { 433 "personFields": { 434 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 435 "format": "google-fieldmask", 436 "location": "query", 437 "type": "string" 438 }, 439 "sources": { 440 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 441 "enum": [ 442 "READ_SOURCE_TYPE_UNSPECIFIED", 443 "READ_SOURCE_TYPE_PROFILE", 444 "READ_SOURCE_TYPE_CONTACT", 445 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 446 ], 447 "enumDescriptions": [ 448 "Unspecified.", 449 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 450 "Returns SourceType.CONTACT.", 451 "Returns SourceType.DOMAIN_CONTACT." 452 ], 453 "location": "query", 454 "repeated": true, 455 "type": "string" 456 } 457 }, 458 "path": "v1/people:createContact", 459 "request": { 460 "$ref": "Person" 461 }, 462 "response": { 463 "$ref": "Person" 464 }, 465 "scopes": [ 466 "https://www.googleapis.com/auth/contacts" 467 ] 468 }, 469 "deleteContact": { 470 "description": "Delete a contact person. Any non-contact data will not be deleted.", 471 "flatPath": "v1/people/{peopleId}:deleteContact", 472 "httpMethod": "DELETE", 473 "id": "people.people.deleteContact", 474 "parameterOrder": [ 475 "resourceName" 476 ], 477 "parameters": { 478 "resourceName": { 479 "description": "Required. The resource name of the contact to delete.", 480 "location": "path", 481 "pattern": "^people/[^/]+$", 482 "required": true, 483 "type": "string" 484 } 485 }, 486 "path": "v1/{+resourceName}:deleteContact", 487 "response": { 488 "$ref": "Empty" 489 }, 490 "scopes": [ 491 "https://www.googleapis.com/auth/contacts" 492 ] 493 }, 494 "deleteContactPhoto": { 495 "description": "Delete a contact's photo.", 496 "flatPath": "v1/people/{peopleId}:deleteContactPhoto", 497 "httpMethod": "DELETE", 498 "id": "people.people.deleteContactPhoto", 499 "parameterOrder": [ 500 "resourceName" 501 ], 502 "parameters": { 503 "personFields": { 504 "description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 505 "format": "google-fieldmask", 506 "location": "query", 507 "type": "string" 508 }, 509 "resourceName": { 510 "description": "Required. The resource name of the contact whose photo will be deleted.", 511 "location": "path", 512 "pattern": "^people/[^/]+$", 513 "required": true, 514 "type": "string" 515 }, 516 "sources": { 517 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 518 "enum": [ 519 "READ_SOURCE_TYPE_UNSPECIFIED", 520 "READ_SOURCE_TYPE_PROFILE", 521 "READ_SOURCE_TYPE_CONTACT", 522 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 523 ], 524 "enumDescriptions": [ 525 "Unspecified.", 526 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 527 "Returns SourceType.CONTACT.", 528 "Returns SourceType.DOMAIN_CONTACT." 529 ], 530 "location": "query", 531 "repeated": true, 532 "type": "string" 533 } 534 }, 535 "path": "v1/{+resourceName}:deleteContactPhoto", 536 "response": { 537 "$ref": "DeleteContactPhotoResponse" 538 }, 539 "scopes": [ 540 "https://www.googleapis.com/auth/contacts" 541 ] 542 }, 543 "get": { 544 "description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", 545 "flatPath": "v1/people/{peopleId}", 546 "httpMethod": "GET", 547 "id": "people.people.get", 548 "parameterOrder": [ 549 "resourceName" 550 ], 551 "parameters": { 552 "personFields": { 553 "description": "Required. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 554 "format": "google-fieldmask", 555 "location": "query", 556 "type": "string" 557 }, 558 "requestMask.includeField": { 559 "description": "Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`.", 560 "format": "google-fieldmask", 561 "location": "query", 562 "type": "string" 563 }, 564 "resourceName": { 565 "description": "Required. The resource name of the person to provide information about. - To get information about the authenticated user, specify `people/me`. - To get information about a google account, specify `people/{account_id}`. - To get information about a contact, specify the resource name that identifies the contact as returned by [`people.connections.list`](/people/api/rest/v1/people.connections/list).", 566 "location": "path", 567 "pattern": "^people/[^/]+$", 568 "required": true, 569 "type": "string" 570 }, 571 "sources": { 572 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.PROFILE and ReadSourceType.CONTACT if not set.", 573 "enum": [ 574 "READ_SOURCE_TYPE_UNSPECIFIED", 575 "READ_SOURCE_TYPE_PROFILE", 576 "READ_SOURCE_TYPE_CONTACT", 577 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 578 ], 579 "enumDescriptions": [ 580 "Unspecified.", 581 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 582 "Returns SourceType.CONTACT.", 583 "Returns SourceType.DOMAIN_CONTACT." 584 ], 585 "location": "query", 586 "repeated": true, 587 "type": "string" 588 } 589 }, 590 "path": "v1/{+resourceName}", 591 "response": { 592 "$ref": "Person" 593 }, 594 "scopes": [ 595 "https://www.googleapis.com/auth/contacts", 596 "https://www.googleapis.com/auth/contacts.readonly", 597 "https://www.googleapis.com/auth/directory.readonly", 598 "https://www.googleapis.com/auth/user.addresses.read", 599 "https://www.googleapis.com/auth/user.birthday.read", 600 "https://www.googleapis.com/auth/user.emails.read", 601 "https://www.googleapis.com/auth/user.gender.read", 602 "https://www.googleapis.com/auth/user.organization.read", 603 "https://www.googleapis.com/auth/user.phonenumbers.read", 604 "https://www.googleapis.com/auth/userinfo.email", 605 "https://www.googleapis.com/auth/userinfo.profile" 606 ] 607 }, 608 "getBatchGet": { 609 "description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.", 610 "flatPath": "v1/people:batchGet", 611 "httpMethod": "GET", 612 "id": "people.people.getBatchGet", 613 "parameterOrder": [], 614 "parameters": { 615 "personFields": { 616 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 617 "format": "google-fieldmask", 618 "location": "query", 619 "type": "string" 620 }, 621 "requestMask.includeField": { 622 "description": "Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`.", 623 "format": "google-fieldmask", 624 "location": "query", 625 "type": "string" 626 }, 627 "resourceNames": { 628 "description": "Required. The resource names of the people to provide information about. It's repeatable. The URL query parameter should be resourceNames=\u003cname1\u003e\u0026resourceNames=\u003cname2\u003e\u0026... - To get information about the authenticated user, specify `people/me`. - To get information about a google account, specify `people/{account_id}`. - To get information about a contact, specify the resource name that identifies the contact as returned by [`people.connections.list`](/people/api/rest/v1/people.connections/list). You can include up to 50 resource names in one request.", 629 "location": "query", 630 "repeated": true, 631 "type": "string" 632 }, 633 "sources": { 634 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 635 "enum": [ 636 "READ_SOURCE_TYPE_UNSPECIFIED", 637 "READ_SOURCE_TYPE_PROFILE", 638 "READ_SOURCE_TYPE_CONTACT", 639 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 640 ], 641 "enumDescriptions": [ 642 "Unspecified.", 643 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 644 "Returns SourceType.CONTACT.", 645 "Returns SourceType.DOMAIN_CONTACT." 646 ], 647 "location": "query", 648 "repeated": true, 649 "type": "string" 650 } 651 }, 652 "path": "v1/people:batchGet", 653 "response": { 654 "$ref": "GetPeopleResponse" 655 }, 656 "scopes": [ 657 "https://www.googleapis.com/auth/contacts", 658 "https://www.googleapis.com/auth/contacts.readonly", 659 "https://www.googleapis.com/auth/directory.readonly", 660 "https://www.googleapis.com/auth/user.addresses.read", 661 "https://www.googleapis.com/auth/user.birthday.read", 662 "https://www.googleapis.com/auth/user.emails.read", 663 "https://www.googleapis.com/auth/user.gender.read", 664 "https://www.googleapis.com/auth/user.organization.read", 665 "https://www.googleapis.com/auth/user.phonenumbers.read", 666 "https://www.googleapis.com/auth/userinfo.email", 667 "https://www.googleapis.com/auth/userinfo.profile" 668 ] 669 }, 670 "listDirectoryPeople": { 671 "description": "Provides a list of domain profiles and domain contacts in the authenticated user's domain directory.", 672 "flatPath": "v1/people:listDirectoryPeople", 673 "httpMethod": "GET", 674 "id": "people.people.listDirectoryPeople", 675 "parameterOrder": [], 676 "parameters": { 677 "mergeSources": { 678 "description": "Optional. Additional data to merge into the directory sources if they are connected through verified join keys such as email addresses or phone numbers.", 679 "enum": [ 680 "DIRECTORY_MERGE_SOURCE_TYPE_UNSPECIFIED", 681 "DIRECTORY_MERGE_SOURCE_TYPE_CONTACT" 682 ], 683 "enumDescriptions": [ 684 "Unspecified.", 685 "User owned contact." 686 ], 687 "location": "query", 688 "repeated": true, 689 "type": "string" 690 }, 691 "pageSize": { 692 "description": "Optional. The number of people to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.", 693 "format": "int32", 694 "location": "query", 695 "type": "integer" 696 }, 697 "pageToken": { 698 "description": "Optional. A page token, received from a previous `ListDirectoryPeople` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDirectoryPeople` must match the call that provided the page token.", 699 "location": "query", 700 "type": "string" 701 }, 702 "readMask": { 703 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 704 "format": "google-fieldmask", 705 "location": "query", 706 "type": "string" 707 }, 708 "requestSyncToken": { 709 "description": "Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead.", 710 "location": "query", 711 "type": "boolean" 712 }, 713 "sources": { 714 "description": "Required. Directory sources to return.", 715 "enum": [ 716 "DIRECTORY_SOURCE_TYPE_UNSPECIFIED", 717 "DIRECTORY_SOURCE_TYPE_DOMAIN_CONTACT", 718 "DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE" 719 ], 720 "enumDescriptions": [ 721 "Unspecified.", 722 "G Suite domain shared contact.", 723 "G Suite domain profile." 724 ], 725 "location": "query", 726 "repeated": true, 727 "type": "string" 728 }, 729 "syncToken": { 730 "description": "Optional. A sync token, received from a previous `ListDirectoryPeople` call. Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to `ListDirectoryPeople` must match the call that provided the sync token.", 731 "location": "query", 732 "type": "string" 733 } 734 }, 735 "path": "v1/people:listDirectoryPeople", 736 "response": { 737 "$ref": "ListDirectoryPeopleResponse" 738 }, 739 "scopes": [ 740 "https://www.googleapis.com/auth/directory.readonly" 741 ] 742 }, 743 "searchDirectoryPeople": { 744 "description": "Provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query.", 745 "flatPath": "v1/people:searchDirectoryPeople", 746 "httpMethod": "GET", 747 "id": "people.people.searchDirectoryPeople", 748 "parameterOrder": [], 749 "parameters": { 750 "mergeSources": { 751 "description": "Optional. Additional data to merge into the directory sources if they are connected through verified join keys such as email addresses or phone numbers.", 752 "enum": [ 753 "DIRECTORY_MERGE_SOURCE_TYPE_UNSPECIFIED", 754 "DIRECTORY_MERGE_SOURCE_TYPE_CONTACT" 755 ], 756 "enumDescriptions": [ 757 "Unspecified.", 758 "User owned contact." 759 ], 760 "location": "query", 761 "repeated": true, 762 "type": "string" 763 }, 764 "pageSize": { 765 "description": "Optional. The number of people to include in the response. Valid values are between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.", 766 "format": "int32", 767 "location": "query", 768 "type": "integer" 769 }, 770 "pageToken": { 771 "description": "Optional. A page token, received from a previous `SearchDirectoryPeople` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchDirectoryPeople` must match the call that provided the page token.", 772 "location": "query", 773 "type": "string" 774 }, 775 "query": { 776 "description": "Required. Prefix query that matches fields in the person. Does NOT use the read_mask for determining what fields to match.", 777 "location": "query", 778 "type": "string" 779 }, 780 "readMask": { 781 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 782 "format": "google-fieldmask", 783 "location": "query", 784 "type": "string" 785 }, 786 "sources": { 787 "description": "Required. Directory sources to return.", 788 "enum": [ 789 "DIRECTORY_SOURCE_TYPE_UNSPECIFIED", 790 "DIRECTORY_SOURCE_TYPE_DOMAIN_CONTACT", 791 "DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE" 792 ], 793 "enumDescriptions": [ 794 "Unspecified.", 795 "G Suite domain shared contact.", 796 "G Suite domain profile." 797 ], 798 "location": "query", 799 "repeated": true, 800 "type": "string" 801 } 802 }, 803 "path": "v1/people:searchDirectoryPeople", 804 "response": { 805 "$ref": "SearchDirectoryPeopleResponse" 806 }, 807 "scopes": [ 808 "https://www.googleapis.com/auth/directory.readonly" 809 ] 810 }, 811 "updateContact": { 812 "description": "Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the `update_mask` will be replaced. The server returns a 400 error if `person.metadata.sources` is not specified for the contact to be updated or if there is no contact source. The server returns a 400 error with reason `\"failedPrecondition\"` if `person.metadata.sources.etag` is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and merge their updates into the latest person. The server returns a 400 error if `memberships` are being updated and there are no contact group memberships specified on the person. The server returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names", 813 "flatPath": "v1/people/{peopleId}:updateContact", 814 "httpMethod": "PATCH", 815 "id": "people.people.updateContact", 816 "parameterOrder": [ 817 "resourceName" 818 ], 819 "parameters": { 820 "personFields": { 821 "description": "Optional. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 822 "format": "google-fieldmask", 823 "location": "query", 824 "type": "string" 825 }, 826 "resourceName": { 827 "description": "The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/{person_id}`.", 828 "location": "path", 829 "pattern": "^people/[^/]+$", 830 "required": true, 831 "type": "string" 832 }, 833 "sources": { 834 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 835 "enum": [ 836 "READ_SOURCE_TYPE_UNSPECIFIED", 837 "READ_SOURCE_TYPE_PROFILE", 838 "READ_SOURCE_TYPE_CONTACT", 839 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 840 ], 841 "enumDescriptions": [ 842 "Unspecified.", 843 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 844 "Returns SourceType.CONTACT.", 845 "Returns SourceType.DOMAIN_CONTACT." 846 ], 847 "location": "query", 848 "repeated": true, 849 "type": "string" 850 }, 851 "updatePersonFields": { 852 "description": "Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * calendarUrls * clientData * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * relations * sipAddresses * urls * userDefined", 853 "format": "google-fieldmask", 854 "location": "query", 855 "type": "string" 856 } 857 }, 858 "path": "v1/{+resourceName}:updateContact", 859 "request": { 860 "$ref": "Person" 861 }, 862 "response": { 863 "$ref": "Person" 864 }, 865 "scopes": [ 866 "https://www.googleapis.com/auth/contacts" 867 ] 868 }, 869 "updateContactPhoto": { 870 "description": "Update a contact's photo.", 871 "flatPath": "v1/people/{peopleId}:updateContactPhoto", 872 "httpMethod": "PATCH", 873 "id": "people.people.updateContactPhoto", 874 "parameterOrder": [ 875 "resourceName" 876 ], 877 "parameters": { 878 "resourceName": { 879 "description": "Required. Person resource name", 880 "location": "path", 881 "pattern": "^people/[^/]+$", 882 "required": true, 883 "type": "string" 884 } 885 }, 886 "path": "v1/{+resourceName}:updateContactPhoto", 887 "request": { 888 "$ref": "UpdateContactPhotoRequest" 889 }, 890 "response": { 891 "$ref": "UpdateContactPhotoResponse" 892 }, 893 "scopes": [ 894 "https://www.googleapis.com/auth/contacts" 895 ] 896 } 897 }, 898 "resources": { 899 "connections": { 900 "methods": { 901 "list": { 902 "description": "Provides a list of the authenticated user's contacts. The request throws a 400 error if 'personFields' is not specified.", 903 "flatPath": "v1/people/{peopleId}/connections", 904 "httpMethod": "GET", 905 "id": "people.people.connections.list", 906 "parameterOrder": [ 907 "resourceName" 908 ], 909 "parameters": { 910 "pageSize": { 911 "description": "Optional. The number of connections to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.", 912 "format": "int32", 913 "location": "query", 914 "type": "integer" 915 }, 916 "pageToken": { 917 "description": "Optional. A page token, received from a previous `ListConnections` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnections` must match the call that provided the page token.", 918 "location": "query", 919 "type": "string" 920 }, 921 "personFields": { 922 "description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 923 "format": "google-fieldmask", 924 "location": "query", 925 "type": "string" 926 }, 927 "requestMask.includeField": { 928 "description": "Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`.", 929 "format": "google-fieldmask", 930 "location": "query", 931 "type": "string" 932 }, 933 "requestSyncToken": { 934 "description": "Optional. Whether the response should include `next_sync_token` on the last page, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit.", 935 "location": "query", 936 "type": "boolean" 937 }, 938 "resourceName": { 939 "description": "Required. The resource name to return connections for. Only `people/me` is valid.", 940 "location": "path", 941 "pattern": "^people/[^/]+$", 942 "required": true, 943 "type": "string" 944 }, 945 "sortOrder": { 946 "description": "Optional. The order in which the connections should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`.", 947 "enum": [ 948 "LAST_MODIFIED_ASCENDING", 949 "LAST_MODIFIED_DESCENDING", 950 "FIRST_NAME_ASCENDING", 951 "LAST_NAME_ASCENDING" 952 ], 953 "enumDescriptions": [ 954 "Sort people by when they were changed; older entries first.", 955 "Sort people by when they were changed; newer entries first.", 956 "Sort people by first name.", 957 "Sort people by last name." 958 ], 959 "location": "query", 960 "type": "string" 961 }, 962 "sources": { 963 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 964 "enum": [ 965 "READ_SOURCE_TYPE_UNSPECIFIED", 966 "READ_SOURCE_TYPE_PROFILE", 967 "READ_SOURCE_TYPE_CONTACT", 968 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 969 ], 970 "enumDescriptions": [ 971 "Unspecified.", 972 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 973 "Returns SourceType.CONTACT.", 974 "Returns SourceType.DOMAIN_CONTACT." 975 ], 976 "location": "query", 977 "repeated": true, 978 "type": "string" 979 }, 980 "syncToken": { 981 "description": "Optional. A sync token, received from a previous `ListConnections` call. Provide this to retrieve only the resources changed since the last request. Sync requests that specify `sync_token` have an additional rate limit. When syncing, all other parameters provided to `ListConnections` must match the call that provided the sync token.", 982 "location": "query", 983 "type": "string" 984 } 985 }, 986 "path": "v1/{+resourceName}/connections", 987 "response": { 988 "$ref": "ListConnectionsResponse" 989 }, 990 "scopes": [ 991 "https://www.googleapis.com/auth/contacts", 992 "https://www.googleapis.com/auth/contacts.readonly" 993 ] 994 } 995 } 996 } 997 } 998 } 999 }, 1000 "revision": "20201006", 1001 "rootUrl": "https://people.googleapis.com/", 1002 "schemas": { 1003 "Address": { 1004 "description": "A person's physical address. May be a P.O. box or street address. All fields are optional.", 1005 "id": "Address", 1006 "properties": { 1007 "city": { 1008 "description": "The city of the address.", 1009 "type": "string" 1010 }, 1011 "country": { 1012 "description": "The country of the address.", 1013 "type": "string" 1014 }, 1015 "countryCode": { 1016 "description": "The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.", 1017 "type": "string" 1018 }, 1019 "extendedAddress": { 1020 "description": "The extended address of the address; for example, the apartment number.", 1021 "type": "string" 1022 }, 1023 "formattedType": { 1024 "description": "Output only. The type of the address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1025 "readOnly": true, 1026 "type": "string" 1027 }, 1028 "formattedValue": { 1029 "description": "The unstructured value of the address. If this is not set by the user it will be automatically constructed from structured values.", 1030 "type": "string" 1031 }, 1032 "metadata": { 1033 "$ref": "FieldMetadata", 1034 "description": "Metadata about the address." 1035 }, 1036 "poBox": { 1037 "description": "The P.O. box of the address.", 1038 "type": "string" 1039 }, 1040 "postalCode": { 1041 "description": "The postal code of the address.", 1042 "type": "string" 1043 }, 1044 "region": { 1045 "description": "The region of the address; for example, the state or province.", 1046 "type": "string" 1047 }, 1048 "streetAddress": { 1049 "description": "The street address.", 1050 "type": "string" 1051 }, 1052 "type": { 1053 "description": "The type of the address. The type can be custom or one of these predefined values: * `home` * `work` * `other`", 1054 "type": "string" 1055 } 1056 }, 1057 "type": "object" 1058 }, 1059 "AgeRangeType": { 1060 "description": "A person's age range.", 1061 "id": "AgeRangeType", 1062 "properties": { 1063 "ageRange": { 1064 "description": "The age range.", 1065 "enum": [ 1066 "AGE_RANGE_UNSPECIFIED", 1067 "LESS_THAN_EIGHTEEN", 1068 "EIGHTEEN_TO_TWENTY", 1069 "TWENTY_ONE_OR_OLDER" 1070 ], 1071 "enumDescriptions": [ 1072 "Unspecified.", 1073 "Younger than eighteen.", 1074 "Between eighteen and twenty.", 1075 "Twenty-one and older." 1076 ], 1077 "type": "string" 1078 }, 1079 "metadata": { 1080 "$ref": "FieldMetadata", 1081 "description": "Metadata about the age range." 1082 } 1083 }, 1084 "type": "object" 1085 }, 1086 "BatchGetContactGroupsResponse": { 1087 "description": "The response to a batch get contact groups request.", 1088 "id": "BatchGetContactGroupsResponse", 1089 "properties": { 1090 "responses": { 1091 "description": "The list of responses for each requested contact group resource.", 1092 "items": { 1093 "$ref": "ContactGroupResponse" 1094 }, 1095 "type": "array" 1096 } 1097 }, 1098 "type": "object" 1099 }, 1100 "Biography": { 1101 "description": "A person's short biography.", 1102 "id": "Biography", 1103 "properties": { 1104 "contentType": { 1105 "description": "The content type of the biography.", 1106 "enum": [ 1107 "CONTENT_TYPE_UNSPECIFIED", 1108 "TEXT_PLAIN", 1109 "TEXT_HTML" 1110 ], 1111 "enumDescriptions": [ 1112 "Unspecified.", 1113 "Plain text.", 1114 "HTML text." 1115 ], 1116 "type": "string" 1117 }, 1118 "metadata": { 1119 "$ref": "FieldMetadata", 1120 "description": "Metadata about the biography." 1121 }, 1122 "value": { 1123 "description": "The short biography.", 1124 "type": "string" 1125 } 1126 }, 1127 "type": "object" 1128 }, 1129 "Birthday": { 1130 "description": "A person's birthday. At least one of the `date` and `text` fields are specified. The `date` and `text` fields typically represent the same date, but are not guaranteed to.", 1131 "id": "Birthday", 1132 "properties": { 1133 "date": { 1134 "$ref": "Date", 1135 "description": "The date of the birthday." 1136 }, 1137 "metadata": { 1138 "$ref": "FieldMetadata", 1139 "description": "Metadata about the birthday." 1140 }, 1141 "text": { 1142 "description": "A free-form string representing the user's birthday.", 1143 "type": "string" 1144 } 1145 }, 1146 "type": "object" 1147 }, 1148 "BraggingRights": { 1149 "description": "**DEPRECATED**: No data will be returned A person's bragging rights.", 1150 "id": "BraggingRights", 1151 "properties": { 1152 "metadata": { 1153 "$ref": "FieldMetadata", 1154 "description": "Metadata about the bragging rights." 1155 }, 1156 "value": { 1157 "description": "The bragging rights; for example, `climbed mount everest`.", 1158 "type": "string" 1159 } 1160 }, 1161 "type": "object" 1162 }, 1163 "CalendarUrl": { 1164 "description": "A person's calendar URL.", 1165 "id": "CalendarUrl", 1166 "properties": { 1167 "formattedType": { 1168 "description": "Output only. The type of the calendar URL translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1169 "readOnly": true, 1170 "type": "string" 1171 }, 1172 "metadata": { 1173 "$ref": "FieldMetadata", 1174 "description": "Metadata about the calendar URL." 1175 }, 1176 "type": { 1177 "description": "The type of the calendar URL. The type can be custom or one of these predefined values: * `home` * `freeBusy` * `work`", 1178 "type": "string" 1179 }, 1180 "url": { 1181 "description": "The calendar URL.", 1182 "type": "string" 1183 } 1184 }, 1185 "type": "object" 1186 }, 1187 "ClientData": { 1188 "description": "Arbitrary client data that is populated by clients. Duplicate keys and values are allowed.", 1189 "id": "ClientData", 1190 "properties": { 1191 "key": { 1192 "description": "The client specified key of the client data.", 1193 "type": "string" 1194 }, 1195 "metadata": { 1196 "$ref": "FieldMetadata", 1197 "description": "Metadata about the client data." 1198 }, 1199 "value": { 1200 "description": "The client specified value of the client data.", 1201 "type": "string" 1202 } 1203 }, 1204 "type": "object" 1205 }, 1206 "ContactGroup": { 1207 "description": "A contact group.", 1208 "id": "ContactGroup", 1209 "properties": { 1210 "etag": { 1211 "description": "The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation.", 1212 "type": "string" 1213 }, 1214 "formattedName": { 1215 "description": "Output only. The name translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale for system groups names. Group names set by the owner are the same as name.", 1216 "readOnly": true, 1217 "type": "string" 1218 }, 1219 "groupType": { 1220 "description": "Output only. The contact group type.", 1221 "enum": [ 1222 "GROUP_TYPE_UNSPECIFIED", 1223 "USER_CONTACT_GROUP", 1224 "SYSTEM_CONTACT_GROUP" 1225 ], 1226 "enumDescriptions": [ 1227 "Unspecified.", 1228 "User defined contact group.", 1229 "System defined contact group." 1230 ], 1231 "readOnly": true, 1232 "type": "string" 1233 }, 1234 "memberCount": { 1235 "description": "Output only. The total number of contacts in the group irrespective of max members in specified in the request.", 1236 "format": "int32", 1237 "readOnly": true, 1238 "type": "integer" 1239 }, 1240 "memberResourceNames": { 1241 "description": "Output only. The list of contact person resource names that are members of the contact group. The field is not populated for LIST requests and can only be updated through the [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).", 1242 "items": { 1243 "type": "string" 1244 }, 1245 "readOnly": true, 1246 "type": "array" 1247 }, 1248 "metadata": { 1249 "$ref": "ContactGroupMetadata", 1250 "description": "Output only. Metadata about the contact group.", 1251 "readOnly": true 1252 }, 1253 "name": { 1254 "description": "The contact group name set by the group owner or a system provided name for system groups.", 1255 "type": "string" 1256 }, 1257 "resourceName": { 1258 "description": "The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`.", 1259 "type": "string" 1260 } 1261 }, 1262 "type": "object" 1263 }, 1264 "ContactGroupMembership": { 1265 "description": "A Google contact group membership.", 1266 "id": "ContactGroupMembership", 1267 "properties": { 1268 "contactGroupId": { 1269 "description": "Output only. The contact group ID for the contact group membership.", 1270 "readOnly": true, 1271 "type": "string" 1272 }, 1273 "contactGroupResourceName": { 1274 "description": "The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`. Only contact_group_resource_name can be used for modifying memberships. Any contact group membership can be removed, but only user group or \"myContacts\" or \"starred\" system groups memberships can be added. A contact must always have at least one contact group membership.", 1275 "type": "string" 1276 } 1277 }, 1278 "type": "object" 1279 }, 1280 "ContactGroupMetadata": { 1281 "description": "The metadata about a contact group.", 1282 "id": "ContactGroupMetadata", 1283 "properties": { 1284 "deleted": { 1285 "description": "Output only. True if the contact group resource has been deleted. Populated only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests that include a sync token.", 1286 "readOnly": true, 1287 "type": "boolean" 1288 }, 1289 "updateTime": { 1290 "description": "Output only. The time the group was last updated.", 1291 "format": "google-datetime", 1292 "readOnly": true, 1293 "type": "string" 1294 } 1295 }, 1296 "type": "object" 1297 }, 1298 "ContactGroupResponse": { 1299 "description": "The response for a specific contact group.", 1300 "id": "ContactGroupResponse", 1301 "properties": { 1302 "contactGroup": { 1303 "$ref": "ContactGroup", 1304 "description": "The contact group." 1305 }, 1306 "requestedResourceName": { 1307 "description": "The original requested resource name.", 1308 "type": "string" 1309 }, 1310 "status": { 1311 "$ref": "Status", 1312 "description": "The status of the response." 1313 } 1314 }, 1315 "type": "object" 1316 }, 1317 "CopyOtherContactToMyContactsGroupRequest": { 1318 "description": "A request to copy an \"Other contact\" to my contacts group.", 1319 "id": "CopyOtherContactToMyContactsGroupRequest", 1320 "properties": { 1321 "copyMask": { 1322 "description": "Required. A field mask to restrict which fields are copied into the new contact. Valid values are: * emailAddresses * names * phoneNumbers", 1323 "format": "google-fieldmask", 1324 "type": "string" 1325 }, 1326 "readMask": { 1327 "description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 1328 "format": "google-fieldmask", 1329 "type": "string" 1330 }, 1331 "sources": { 1332 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 1333 "items": { 1334 "enum": [ 1335 "READ_SOURCE_TYPE_UNSPECIFIED", 1336 "READ_SOURCE_TYPE_PROFILE", 1337 "READ_SOURCE_TYPE_CONTACT", 1338 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 1339 ], 1340 "enumDescriptions": [ 1341 "Unspecified.", 1342 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 1343 "Returns SourceType.CONTACT.", 1344 "Returns SourceType.DOMAIN_CONTACT." 1345 ], 1346 "type": "string" 1347 }, 1348 "type": "array" 1349 } 1350 }, 1351 "type": "object" 1352 }, 1353 "CoverPhoto": { 1354 "description": "A person's cover photo. A large image shown on the person's profile page that represents who they are or what they care about.", 1355 "id": "CoverPhoto", 1356 "properties": { 1357 "default": { 1358 "description": "True if the cover photo is the default cover photo; false if the cover photo is a user-provided cover photo.", 1359 "type": "boolean" 1360 }, 1361 "metadata": { 1362 "$ref": "FieldMetadata", 1363 "description": "Metadata about the cover photo." 1364 }, 1365 "url": { 1366 "description": "The URL of the cover photo.", 1367 "type": "string" 1368 } 1369 }, 1370 "type": "object" 1371 }, 1372 "CreateContactGroupRequest": { 1373 "description": "A request to create a new contact group.", 1374 "id": "CreateContactGroupRequest", 1375 "properties": { 1376 "contactGroup": { 1377 "$ref": "ContactGroup", 1378 "description": "Required. The contact group to create." 1379 } 1380 }, 1381 "type": "object" 1382 }, 1383 "Date": { 1384 "description": "Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.", 1385 "id": "Date", 1386 "properties": { 1387 "day": { 1388 "description": "Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.", 1389 "format": "int32", 1390 "type": "integer" 1391 }, 1392 "month": { 1393 "description": "Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.", 1394 "format": "int32", 1395 "type": "integer" 1396 }, 1397 "year": { 1398 "description": "Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.", 1399 "format": "int32", 1400 "type": "integer" 1401 } 1402 }, 1403 "type": "object" 1404 }, 1405 "DeleteContactPhotoResponse": { 1406 "description": "The response for deleteing a contact's photo.", 1407 "id": "DeleteContactPhotoResponse", 1408 "properties": { 1409 "person": { 1410 "$ref": "Person", 1411 "description": "The updated person, if person_fields is set in the DeleteContactPhotoRequest; otherwise this will be unset." 1412 } 1413 }, 1414 "type": "object" 1415 }, 1416 "DomainMembership": { 1417 "description": "A G Suite Domain membership.", 1418 "id": "DomainMembership", 1419 "properties": { 1420 "inViewerDomain": { 1421 "description": "True if the person is in the viewer's G Suite domain.", 1422 "type": "boolean" 1423 } 1424 }, 1425 "type": "object" 1426 }, 1427 "EmailAddress": { 1428 "description": "A person's email address.", 1429 "id": "EmailAddress", 1430 "properties": { 1431 "displayName": { 1432 "description": "The display name of the email.", 1433 "type": "string" 1434 }, 1435 "formattedType": { 1436 "description": "Output only. The type of the email address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1437 "readOnly": true, 1438 "type": "string" 1439 }, 1440 "metadata": { 1441 "$ref": "FieldMetadata", 1442 "description": "Metadata about the email address." 1443 }, 1444 "type": { 1445 "description": "The type of the email address. The type can be custom or one of these predefined values: * `home` * `work` * `other`", 1446 "type": "string" 1447 }, 1448 "value": { 1449 "description": "The email address.", 1450 "type": "string" 1451 } 1452 }, 1453 "type": "object" 1454 }, 1455 "Empty": { 1456 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", 1457 "id": "Empty", 1458 "properties": {}, 1459 "type": "object" 1460 }, 1461 "Event": { 1462 "description": "An event related to the person.", 1463 "id": "Event", 1464 "properties": { 1465 "date": { 1466 "$ref": "Date", 1467 "description": "The date of the event." 1468 }, 1469 "formattedType": { 1470 "description": "Output only. The type of the event translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1471 "readOnly": true, 1472 "type": "string" 1473 }, 1474 "metadata": { 1475 "$ref": "FieldMetadata", 1476 "description": "Metadata about the event." 1477 }, 1478 "type": { 1479 "description": "The type of the event. The type can be custom or one of these predefined values: * `anniversary` * `other`", 1480 "type": "string" 1481 } 1482 }, 1483 "type": "object" 1484 }, 1485 "ExternalId": { 1486 "description": "An identifier from an external entity related to the person.", 1487 "id": "ExternalId", 1488 "properties": { 1489 "formattedType": { 1490 "description": "Output only. The type of the event translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1491 "readOnly": true, 1492 "type": "string" 1493 }, 1494 "metadata": { 1495 "$ref": "FieldMetadata", 1496 "description": "Metadata about the external ID." 1497 }, 1498 "type": { 1499 "description": "The type of the external ID. The type can be custom or one of these predefined values: * `account` * `customer` * `loginId` * `network` * `organization`", 1500 "type": "string" 1501 }, 1502 "value": { 1503 "description": "The value of the external ID.", 1504 "type": "string" 1505 } 1506 }, 1507 "type": "object" 1508 }, 1509 "FieldMetadata": { 1510 "description": "Metadata about a field.", 1511 "id": "FieldMetadata", 1512 "properties": { 1513 "primary": { 1514 "description": "True if the field is the primary field; false if the field is a secondary field.", 1515 "type": "boolean" 1516 }, 1517 "source": { 1518 "$ref": "Source", 1519 "description": "The source of the field." 1520 }, 1521 "verified": { 1522 "description": "Output only. True if the field is verified; false if the field is unverified. A verified field is typically a name, email address, phone number, or website that has been confirmed to be owned by the person.", 1523 "readOnly": true, 1524 "type": "boolean" 1525 } 1526 }, 1527 "type": "object" 1528 }, 1529 "FileAs": { 1530 "description": "The name that should be used to sort the person in a list.", 1531 "id": "FileAs", 1532 "properties": { 1533 "metadata": { 1534 "$ref": "FieldMetadata", 1535 "description": "Metadata about the file-as." 1536 }, 1537 "value": { 1538 "description": "The file-as value", 1539 "type": "string" 1540 } 1541 }, 1542 "type": "object" 1543 }, 1544 "Gender": { 1545 "description": "A person's gender.", 1546 "id": "Gender", 1547 "properties": { 1548 "addressMeAs": { 1549 "description": "The type of pronouns that should be used to address the person. The value can be custom or one of these predefined values: * `male` * `female` * `other`", 1550 "type": "string" 1551 }, 1552 "formattedValue": { 1553 "description": "Output only. The value of the gender translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Unspecified or custom value are not localized.", 1554 "readOnly": true, 1555 "type": "string" 1556 }, 1557 "metadata": { 1558 "$ref": "FieldMetadata", 1559 "description": "Metadata about the gender." 1560 }, 1561 "value": { 1562 "description": "The gender for the person. The gender can be custom or one of these predefined values: * `male` * `female` * `unspecified`", 1563 "type": "string" 1564 } 1565 }, 1566 "type": "object" 1567 }, 1568 "GetPeopleResponse": { 1569 "description": "The response to a get request for a list of people by resource name.", 1570 "id": "GetPeopleResponse", 1571 "properties": { 1572 "responses": { 1573 "description": "The response for each requested resource name.", 1574 "items": { 1575 "$ref": "PersonResponse" 1576 }, 1577 "type": "array" 1578 } 1579 }, 1580 "type": "object" 1581 }, 1582 "ImClient": { 1583 "description": "A person's instant messaging client.", 1584 "id": "ImClient", 1585 "properties": { 1586 "formattedProtocol": { 1587 "description": "Output only. The protocol of the IM client formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1588 "readOnly": true, 1589 "type": "string" 1590 }, 1591 "formattedType": { 1592 "description": "Output only. The type of the IM client translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1593 "readOnly": true, 1594 "type": "string" 1595 }, 1596 "metadata": { 1597 "$ref": "FieldMetadata", 1598 "description": "Metadata about the IM client." 1599 }, 1600 "protocol": { 1601 "description": "The protocol of the IM client. The protocol can be custom or one of these predefined values: * `aim` * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * `netMeeting`", 1602 "type": "string" 1603 }, 1604 "type": { 1605 "description": "The type of the IM client. The type can be custom or one of these predefined values: * `home` * `work` * `other`", 1606 "type": "string" 1607 }, 1608 "username": { 1609 "description": "The user name used in the IM client.", 1610 "type": "string" 1611 } 1612 }, 1613 "type": "object" 1614 }, 1615 "Interest": { 1616 "description": "One of the person's interests.", 1617 "id": "Interest", 1618 "properties": { 1619 "metadata": { 1620 "$ref": "FieldMetadata", 1621 "description": "Metadata about the interest." 1622 }, 1623 "value": { 1624 "description": "The interest; for example, `stargazing`.", 1625 "type": "string" 1626 } 1627 }, 1628 "type": "object" 1629 }, 1630 "ListConnectionsResponse": { 1631 "description": "The response to a request for the authenticated user's connections.", 1632 "id": "ListConnectionsResponse", 1633 "properties": { 1634 "connections": { 1635 "description": "The list of people that the requestor is connected to.", 1636 "items": { 1637 "$ref": "Person" 1638 }, 1639 "type": "array" 1640 }, 1641 "nextPageToken": { 1642 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", 1643 "type": "string" 1644 }, 1645 "nextSyncToken": { 1646 "description": "A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token. When the response is paginated, only the last page will contain `nextSyncToken`.", 1647 "type": "string" 1648 }, 1649 "totalItems": { 1650 "description": "The total number of items in the list without pagination.", 1651 "format": "int32", 1652 "type": "integer" 1653 }, 1654 "totalPeople": { 1655 "description": "**DEPRECATED** (Please use totalItems) The total number of people in the list without pagination.", 1656 "format": "int32", 1657 "type": "integer" 1658 } 1659 }, 1660 "type": "object" 1661 }, 1662 "ListContactGroupsResponse": { 1663 "description": "The response to a list contact groups request.", 1664 "id": "ListContactGroupsResponse", 1665 "properties": { 1666 "contactGroups": { 1667 "description": "The list of contact groups. Members of the contact groups are not populated.", 1668 "items": { 1669 "$ref": "ContactGroup" 1670 }, 1671 "type": "array" 1672 }, 1673 "nextPageToken": { 1674 "description": "The token that can be used to retrieve the next page of results.", 1675 "type": "string" 1676 }, 1677 "nextSyncToken": { 1678 "description": "The token that can be used to retrieve changes since the last request.", 1679 "type": "string" 1680 }, 1681 "totalItems": { 1682 "description": "The total number of items in the list without pagination.", 1683 "format": "int32", 1684 "type": "integer" 1685 } 1686 }, 1687 "type": "object" 1688 }, 1689 "ListDirectoryPeopleResponse": { 1690 "description": "The response to a request for the authenticated user's domain directory.", 1691 "id": "ListDirectoryPeopleResponse", 1692 "properties": { 1693 "nextPageToken": { 1694 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", 1695 "type": "string" 1696 }, 1697 "nextSyncToken": { 1698 "description": "A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token.", 1699 "type": "string" 1700 }, 1701 "people": { 1702 "description": "The list of people in the domain directory.", 1703 "items": { 1704 "$ref": "Person" 1705 }, 1706 "type": "array" 1707 } 1708 }, 1709 "type": "object" 1710 }, 1711 "ListOtherContactsResponse": { 1712 "description": "The response to a request for the authenticated user's \"Other contacts\".", 1713 "id": "ListOtherContactsResponse", 1714 "properties": { 1715 "nextPageToken": { 1716 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", 1717 "type": "string" 1718 }, 1719 "nextSyncToken": { 1720 "description": "A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token.", 1721 "type": "string" 1722 }, 1723 "otherContacts": { 1724 "description": "The list of \"Other contacts\" returned as Person resources. \"Other contacts\" support a limited subset of fields. See ListOtherContactsRequest.request_mask for more detailed information.", 1725 "items": { 1726 "$ref": "Person" 1727 }, 1728 "type": "array" 1729 } 1730 }, 1731 "type": "object" 1732 }, 1733 "Locale": { 1734 "description": "A person's locale preference.", 1735 "id": "Locale", 1736 "properties": { 1737 "metadata": { 1738 "$ref": "FieldMetadata", 1739 "description": "Metadata about the locale." 1740 }, 1741 "value": { 1742 "description": "The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tag representing the locale.", 1743 "type": "string" 1744 } 1745 }, 1746 "type": "object" 1747 }, 1748 "Location": { 1749 "description": "A person's location.", 1750 "id": "Location", 1751 "properties": { 1752 "buildingId": { 1753 "description": "The building identifier.", 1754 "type": "string" 1755 }, 1756 "current": { 1757 "description": "Whether the location is the current location.", 1758 "type": "boolean" 1759 }, 1760 "deskCode": { 1761 "description": "The individual desk location.", 1762 "type": "string" 1763 }, 1764 "floor": { 1765 "description": "The floor name or number.", 1766 "type": "string" 1767 }, 1768 "floorSection": { 1769 "description": "The floor section in `floor_name`.", 1770 "type": "string" 1771 }, 1772 "metadata": { 1773 "$ref": "FieldMetadata", 1774 "description": "Metadata about the location." 1775 }, 1776 "type": { 1777 "description": "The type of the location. The type can be custom or one of these predefined values: * `desk` * `grewUp`", 1778 "type": "string" 1779 }, 1780 "value": { 1781 "description": "The free-form value of the location.", 1782 "type": "string" 1783 } 1784 }, 1785 "type": "object" 1786 }, 1787 "Membership": { 1788 "description": "A person's membership in a group. Only contact group memberships can be modified.", 1789 "id": "Membership", 1790 "properties": { 1791 "contactGroupMembership": { 1792 "$ref": "ContactGroupMembership", 1793 "description": "The contact group membership." 1794 }, 1795 "domainMembership": { 1796 "$ref": "DomainMembership", 1797 "description": "Output only. The domain membership.", 1798 "readOnly": true 1799 }, 1800 "metadata": { 1801 "$ref": "FieldMetadata", 1802 "description": "Metadata about the membership." 1803 } 1804 }, 1805 "type": "object" 1806 }, 1807 "MiscKeyword": { 1808 "description": "A person's miscellaneous keyword.", 1809 "id": "MiscKeyword", 1810 "properties": { 1811 "formattedType": { 1812 "description": "Output only. The type of the miscellaneous keyword translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 1813 "readOnly": true, 1814 "type": "string" 1815 }, 1816 "metadata": { 1817 "$ref": "FieldMetadata", 1818 "description": "Metadata about the miscellaneous keyword." 1819 }, 1820 "type": { 1821 "description": "The miscellaneous keyword type.", 1822 "enum": [ 1823 "TYPE_UNSPECIFIED", 1824 "OUTLOOK_BILLING_INFORMATION", 1825 "OUTLOOK_DIRECTORY_SERVER", 1826 "OUTLOOK_KEYWORD", 1827 "OUTLOOK_MILEAGE", 1828 "OUTLOOK_PRIORITY", 1829 "OUTLOOK_SENSITIVITY", 1830 "OUTLOOK_SUBJECT", 1831 "OUTLOOK_USER", 1832 "HOME", 1833 "WORK", 1834 "OTHER" 1835 ], 1836 "enumDescriptions": [ 1837 "Unspecified.", 1838 "Outlook field for billing information.", 1839 "Outlook field for directory server.", 1840 "Outlook field for keyword.", 1841 "Outlook field for mileage.", 1842 "Outlook field for priority.", 1843 "Outlook field for sensitivity.", 1844 "Outlook field for subject.", 1845 "Outlook field for user.", 1846 "Home.", 1847 "Work.", 1848 "Other." 1849 ], 1850 "type": "string" 1851 }, 1852 "value": { 1853 "description": "The value of the miscellaneous keyword.", 1854 "type": "string" 1855 } 1856 }, 1857 "type": "object" 1858 }, 1859 "ModifyContactGroupMembersRequest": { 1860 "description": "A request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or \"myContacts\" or \"starred\" system groups.", 1861 "id": "ModifyContactGroupMembersRequest", 1862 "properties": { 1863 "resourceNamesToAdd": { 1864 "description": "Optional. The resource names of the contact people to add in the form of `people/{person_id}`.", 1865 "items": { 1866 "type": "string" 1867 }, 1868 "type": "array" 1869 }, 1870 "resourceNamesToRemove": { 1871 "description": "Optional. The resource names of the contact people to remove in the form of `people/{person_id}`.", 1872 "items": { 1873 "type": "string" 1874 }, 1875 "type": "array" 1876 } 1877 }, 1878 "type": "object" 1879 }, 1880 "ModifyContactGroupMembersResponse": { 1881 "description": "The response to a modify contact group members request.", 1882 "id": "ModifyContactGroupMembersResponse", 1883 "properties": { 1884 "canNotRemoveLastContactGroupResourceNames": { 1885 "description": "The contact people resource names that cannot be removed from their last contact group.", 1886 "items": { 1887 "type": "string" 1888 }, 1889 "type": "array" 1890 }, 1891 "notFoundResourceNames": { 1892 "description": "The contact people resource names that were not found.", 1893 "items": { 1894 "type": "string" 1895 }, 1896 "type": "array" 1897 } 1898 }, 1899 "type": "object" 1900 }, 1901 "Name": { 1902 "description": "A person's name. If the name is a mononym, the family name is empty.", 1903 "id": "Name", 1904 "properties": { 1905 "displayName": { 1906 "description": "Output only. The display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.", 1907 "readOnly": true, 1908 "type": "string" 1909 }, 1910 "displayNameLastFirst": { 1911 "description": "Output only. The display name with the last name first formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.", 1912 "readOnly": true, 1913 "type": "string" 1914 }, 1915 "familyName": { 1916 "description": "The family name.", 1917 "type": "string" 1918 }, 1919 "givenName": { 1920 "description": "The given name.", 1921 "type": "string" 1922 }, 1923 "honorificPrefix": { 1924 "description": "The honorific prefixes, such as `Mrs.` or `Dr.`", 1925 "type": "string" 1926 }, 1927 "honorificSuffix": { 1928 "description": "The honorific suffixes, such as `Jr.`", 1929 "type": "string" 1930 }, 1931 "metadata": { 1932 "$ref": "FieldMetadata", 1933 "description": "Metadata about the name." 1934 }, 1935 "middleName": { 1936 "description": "The middle name(s).", 1937 "type": "string" 1938 }, 1939 "phoneticFamilyName": { 1940 "description": "The family name spelled as it sounds.", 1941 "type": "string" 1942 }, 1943 "phoneticFullName": { 1944 "description": "The full name spelled as it sounds.", 1945 "type": "string" 1946 }, 1947 "phoneticGivenName": { 1948 "description": "The given name spelled as it sounds.", 1949 "type": "string" 1950 }, 1951 "phoneticHonorificPrefix": { 1952 "description": "The honorific prefixes spelled as they sound.", 1953 "type": "string" 1954 }, 1955 "phoneticHonorificSuffix": { 1956 "description": "The honorific suffixes spelled as they sound.", 1957 "type": "string" 1958 }, 1959 "phoneticMiddleName": { 1960 "description": "The middle name(s) spelled as they sound.", 1961 "type": "string" 1962 }, 1963 "unstructuredName": { 1964 "description": "The free form name value.", 1965 "type": "string" 1966 } 1967 }, 1968 "type": "object" 1969 }, 1970 "Nickname": { 1971 "description": "A person's nickname.", 1972 "id": "Nickname", 1973 "properties": { 1974 "metadata": { 1975 "$ref": "FieldMetadata", 1976 "description": "Metadata about the nickname." 1977 }, 1978 "type": { 1979 "description": "The type of the nickname.", 1980 "enum": [ 1981 "DEFAULT", 1982 "MAIDEN_NAME", 1983 "INITIALS", 1984 "GPLUS", 1985 "OTHER_NAME", 1986 "ALTERNATE_NAME", 1987 "SHORT_NAME" 1988 ], 1989 "enumDescriptions": [ 1990 "Generic nickname.", 1991 "Maiden name or birth family name. Used when the person's family name has changed as a result of marriage.", 1992 "Initials.", 1993 "Google+ profile nickname.", 1994 "A professional affiliation or other name; for example, `Dr. Smith.`", 1995 "Alternate name person is known by.", 1996 "A shorter version of the person's name." 1997 ], 1998 "type": "string" 1999 }, 2000 "value": { 2001 "description": "The nickname.", 2002 "type": "string" 2003 } 2004 }, 2005 "type": "object" 2006 }, 2007 "Occupation": { 2008 "description": "A person's occupation.", 2009 "id": "Occupation", 2010 "properties": { 2011 "metadata": { 2012 "$ref": "FieldMetadata", 2013 "description": "Metadata about the occupation." 2014 }, 2015 "value": { 2016 "description": "The occupation; for example, `carpenter`.", 2017 "type": "string" 2018 } 2019 }, 2020 "type": "object" 2021 }, 2022 "Organization": { 2023 "description": "A person's past or current organization. Overlapping date ranges are permitted.", 2024 "id": "Organization", 2025 "properties": { 2026 "current": { 2027 "description": "True if the organization is the person's current organization; false if the organization is a past organization.", 2028 "type": "boolean" 2029 }, 2030 "department": { 2031 "description": "The person's department at the organization.", 2032 "type": "string" 2033 }, 2034 "domain": { 2035 "description": "The domain name associated with the organization; for example, `google.com`.", 2036 "type": "string" 2037 }, 2038 "endDate": { 2039 "$ref": "Date", 2040 "description": "The end date when the person left the organization." 2041 }, 2042 "formattedType": { 2043 "description": "Output only. The type of the organization translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 2044 "readOnly": true, 2045 "type": "string" 2046 }, 2047 "jobDescription": { 2048 "description": "The person's job description at the organization.", 2049 "type": "string" 2050 }, 2051 "location": { 2052 "description": "The location of the organization office the person works at.", 2053 "type": "string" 2054 }, 2055 "metadata": { 2056 "$ref": "FieldMetadata", 2057 "description": "Metadata about the organization." 2058 }, 2059 "name": { 2060 "description": "The name of the organization.", 2061 "type": "string" 2062 }, 2063 "phoneticName": { 2064 "description": "The phonetic name of the organization.", 2065 "type": "string" 2066 }, 2067 "startDate": { 2068 "$ref": "Date", 2069 "description": "The start date when the person joined the organization." 2070 }, 2071 "symbol": { 2072 "description": "The symbol associated with the organization; for example, a stock ticker symbol, abbreviation, or acronym.", 2073 "type": "string" 2074 }, 2075 "title": { 2076 "description": "The person's job title at the organization.", 2077 "type": "string" 2078 }, 2079 "type": { 2080 "description": "The type of the organization. The type can be custom or one of these predefined values: * `work` * `school`", 2081 "type": "string" 2082 } 2083 }, 2084 "type": "object" 2085 }, 2086 "Person": { 2087 "description": "Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Most fields can have multiple items. The items in a field have no guaranteed order, but each non-empty field is guaranteed to have exactly one field with `metadata.primary` set to true.", 2088 "id": "Person", 2089 "properties": { 2090 "addresses": { 2091 "description": "The person's street addresses.", 2092 "items": { 2093 "$ref": "Address" 2094 }, 2095 "type": "array" 2096 }, 2097 "ageRange": { 2098 "description": "Output only. **DEPRECATED** (Please use `person.ageRanges` instead) The person's age range.", 2099 "enum": [ 2100 "AGE_RANGE_UNSPECIFIED", 2101 "LESS_THAN_EIGHTEEN", 2102 "EIGHTEEN_TO_TWENTY", 2103 "TWENTY_ONE_OR_OLDER" 2104 ], 2105 "enumDescriptions": [ 2106 "Unspecified.", 2107 "Younger than eighteen.", 2108 "Between eighteen and twenty.", 2109 "Twenty-one and older." 2110 ], 2111 "readOnly": true, 2112 "type": "string" 2113 }, 2114 "ageRanges": { 2115 "description": "Output only. The person's age ranges.", 2116 "items": { 2117 "$ref": "AgeRangeType" 2118 }, 2119 "readOnly": true, 2120 "type": "array" 2121 }, 2122 "biographies": { 2123 "description": "The person's biographies. This field is a singleton for contact sources.", 2124 "items": { 2125 "$ref": "Biography" 2126 }, 2127 "type": "array" 2128 }, 2129 "birthdays": { 2130 "description": "The person's birthdays. This field is a singleton for contact sources.", 2131 "items": { 2132 "$ref": "Birthday" 2133 }, 2134 "type": "array" 2135 }, 2136 "braggingRights": { 2137 "description": "**DEPRECATED**: No data will be returned The person's bragging rights.", 2138 "items": { 2139 "$ref": "BraggingRights" 2140 }, 2141 "type": "array" 2142 }, 2143 "calendarUrls": { 2144 "description": "The person's calendar URLs.", 2145 "items": { 2146 "$ref": "CalendarUrl" 2147 }, 2148 "type": "array" 2149 }, 2150 "clientData": { 2151 "description": "The person's client data.", 2152 "items": { 2153 "$ref": "ClientData" 2154 }, 2155 "type": "array" 2156 }, 2157 "coverPhotos": { 2158 "description": "Output only. The person's cover photos.", 2159 "items": { 2160 "$ref": "CoverPhoto" 2161 }, 2162 "readOnly": true, 2163 "type": "array" 2164 }, 2165 "emailAddresses": { 2166 "description": "The person's email addresses.", 2167 "items": { 2168 "$ref": "EmailAddress" 2169 }, 2170 "type": "array" 2171 }, 2172 "etag": { 2173 "description": "The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation.", 2174 "type": "string" 2175 }, 2176 "events": { 2177 "description": "The person's events.", 2178 "items": { 2179 "$ref": "Event" 2180 }, 2181 "type": "array" 2182 }, 2183 "externalIds": { 2184 "description": "The person's external IDs.", 2185 "items": { 2186 "$ref": "ExternalId" 2187 }, 2188 "type": "array" 2189 }, 2190 "fileAses": { 2191 "description": "The person's file-ases.", 2192 "items": { 2193 "$ref": "FileAs" 2194 }, 2195 "type": "array" 2196 }, 2197 "genders": { 2198 "description": "The person's genders. This field is a singleton for contact sources.", 2199 "items": { 2200 "$ref": "Gender" 2201 }, 2202 "type": "array" 2203 }, 2204 "imClients": { 2205 "description": "The person's instant messaging clients.", 2206 "items": { 2207 "$ref": "ImClient" 2208 }, 2209 "type": "array" 2210 }, 2211 "interests": { 2212 "description": "The person's interests.", 2213 "items": { 2214 "$ref": "Interest" 2215 }, 2216 "type": "array" 2217 }, 2218 "locales": { 2219 "description": "The person's locale preferences.", 2220 "items": { 2221 "$ref": "Locale" 2222 }, 2223 "type": "array" 2224 }, 2225 "locations": { 2226 "description": "The person's locations.", 2227 "items": { 2228 "$ref": "Location" 2229 }, 2230 "type": "array" 2231 }, 2232 "memberships": { 2233 "description": "The person's group memberships.", 2234 "items": { 2235 "$ref": "Membership" 2236 }, 2237 "type": "array" 2238 }, 2239 "metadata": { 2240 "$ref": "PersonMetadata", 2241 "description": "Output only. Metadata about the person.", 2242 "readOnly": true 2243 }, 2244 "miscKeywords": { 2245 "description": "The person's miscellaneous keywords.", 2246 "items": { 2247 "$ref": "MiscKeyword" 2248 }, 2249 "type": "array" 2250 }, 2251 "names": { 2252 "description": "The person's names. This field is a singleton for contact sources.", 2253 "items": { 2254 "$ref": "Name" 2255 }, 2256 "type": "array" 2257 }, 2258 "nicknames": { 2259 "description": "The person's nicknames.", 2260 "items": { 2261 "$ref": "Nickname" 2262 }, 2263 "type": "array" 2264 }, 2265 "occupations": { 2266 "description": "The person's occupations.", 2267 "items": { 2268 "$ref": "Occupation" 2269 }, 2270 "type": "array" 2271 }, 2272 "organizations": { 2273 "description": "The person's past or current organizations.", 2274 "items": { 2275 "$ref": "Organization" 2276 }, 2277 "type": "array" 2278 }, 2279 "phoneNumbers": { 2280 "description": "The person's phone numbers.", 2281 "items": { 2282 "$ref": "PhoneNumber" 2283 }, 2284 "type": "array" 2285 }, 2286 "photos": { 2287 "description": "Output only. The person's photos.", 2288 "items": { 2289 "$ref": "Photo" 2290 }, 2291 "readOnly": true, 2292 "type": "array" 2293 }, 2294 "relations": { 2295 "description": "The person's relations.", 2296 "items": { 2297 "$ref": "Relation" 2298 }, 2299 "type": "array" 2300 }, 2301 "relationshipInterests": { 2302 "description": "Output only. **DEPRECATED**: No data will be returned The person's relationship interests.", 2303 "items": { 2304 "$ref": "RelationshipInterest" 2305 }, 2306 "readOnly": true, 2307 "type": "array" 2308 }, 2309 "relationshipStatuses": { 2310 "description": "Output only. **DEPRECATED**: No data will be returned The person's relationship statuses.", 2311 "items": { 2312 "$ref": "RelationshipStatus" 2313 }, 2314 "readOnly": true, 2315 "type": "array" 2316 }, 2317 "residences": { 2318 "description": "**DEPRECATED**: (Please use `person.locations` instead) The person's residences.", 2319 "items": { 2320 "$ref": "Residence" 2321 }, 2322 "type": "array" 2323 }, 2324 "resourceName": { 2325 "description": "The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/{person_id}`.", 2326 "type": "string" 2327 }, 2328 "sipAddresses": { 2329 "description": "The person's SIP addresses.", 2330 "items": { 2331 "$ref": "SipAddress" 2332 }, 2333 "type": "array" 2334 }, 2335 "skills": { 2336 "description": "The person's skills.", 2337 "items": { 2338 "$ref": "Skill" 2339 }, 2340 "type": "array" 2341 }, 2342 "taglines": { 2343 "description": "Output only. **DEPRECATED**: No data will be returned The person's taglines.", 2344 "items": { 2345 "$ref": "Tagline" 2346 }, 2347 "readOnly": true, 2348 "type": "array" 2349 }, 2350 "urls": { 2351 "description": "The person's associated URLs.", 2352 "items": { 2353 "$ref": "Url" 2354 }, 2355 "type": "array" 2356 }, 2357 "userDefined": { 2358 "description": "The person's user defined data.", 2359 "items": { 2360 "$ref": "UserDefined" 2361 }, 2362 "type": "array" 2363 } 2364 }, 2365 "type": "object" 2366 }, 2367 "PersonMetadata": { 2368 "description": "The metadata about a person.", 2369 "id": "PersonMetadata", 2370 "properties": { 2371 "deleted": { 2372 "description": "Output only. True if the person resource has been deleted. Populated only for [`connections.list`](/people/api/rest/v1/people.connections/list) requests that include a sync token.", 2373 "readOnly": true, 2374 "type": "boolean" 2375 }, 2376 "linkedPeopleResourceNames": { 2377 "description": "Output only. Resource names of people linked to this resource.", 2378 "items": { 2379 "type": "string" 2380 }, 2381 "readOnly": true, 2382 "type": "array" 2383 }, 2384 "objectType": { 2385 "description": "Output only. **DEPRECATED** (Please use `person.metadata.sources.profileMetadata.objectType` instead) The type of the person object.", 2386 "enum": [ 2387 "OBJECT_TYPE_UNSPECIFIED", 2388 "PERSON", 2389 "PAGE" 2390 ], 2391 "enumDescriptions": [ 2392 "Unspecified.", 2393 "Person.", 2394 "[Currents Page.](https://gsuite.google.com/products/currents/)" 2395 ], 2396 "readOnly": true, 2397 "type": "string" 2398 }, 2399 "previousResourceNames": { 2400 "description": "Output only. Any former resource names this person has had. Populated only for [`connections.list`](/people/api/rest/v1/people.connections/list) requests that include a sync token. The resource name may change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or profile URL.", 2401 "items": { 2402 "type": "string" 2403 }, 2404 "readOnly": true, 2405 "type": "array" 2406 }, 2407 "sources": { 2408 "description": "The sources of data for the person.", 2409 "items": { 2410 "$ref": "Source" 2411 }, 2412 "type": "array" 2413 } 2414 }, 2415 "type": "object" 2416 }, 2417 "PersonResponse": { 2418 "description": "The response for a single person", 2419 "id": "PersonResponse", 2420 "properties": { 2421 "httpStatusCode": { 2422 "description": "**DEPRECATED** (Please use status instead) [HTTP 1.1 status code] (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).", 2423 "format": "int32", 2424 "type": "integer" 2425 }, 2426 "person": { 2427 "$ref": "Person", 2428 "description": "The person." 2429 }, 2430 "requestedResourceName": { 2431 "description": "The original requested resource name. May be different than the resource name on the returned person. The resource name can change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or a profile URL.", 2432 "type": "string" 2433 }, 2434 "status": { 2435 "$ref": "Status", 2436 "description": "The status of the response." 2437 } 2438 }, 2439 "type": "object" 2440 }, 2441 "PhoneNumber": { 2442 "description": "A person's phone number.", 2443 "id": "PhoneNumber", 2444 "properties": { 2445 "canonicalForm": { 2446 "description": "Output only. The canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number.", 2447 "readOnly": true, 2448 "type": "string" 2449 }, 2450 "formattedType": { 2451 "description": "Output only. The type of the phone number translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 2452 "readOnly": true, 2453 "type": "string" 2454 }, 2455 "metadata": { 2456 "$ref": "FieldMetadata", 2457 "description": "Metadata about the phone number." 2458 }, 2459 "type": { 2460 "description": "The type of the phone number. The type can be custom or one of these predefined values: * `home` * `work` * `mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * `workMobile` * `workPager` * `main` * `googleVoice` * `other`", 2461 "type": "string" 2462 }, 2463 "value": { 2464 "description": "The phone number.", 2465 "type": "string" 2466 } 2467 }, 2468 "type": "object" 2469 }, 2470 "Photo": { 2471 "description": "A person's photo. A picture shown next to the person's name to help others recognize the person.", 2472 "id": "Photo", 2473 "properties": { 2474 "default": { 2475 "description": "True if the photo is a default photo; false if the photo is a user-provided photo.", 2476 "type": "boolean" 2477 }, 2478 "metadata": { 2479 "$ref": "FieldMetadata", 2480 "description": "Metadata about the photo." 2481 }, 2482 "url": { 2483 "description": "The URL of the photo. You can change the desired size by appending a query parameter `sz={size}` at the end of the url, where {size} is the size in pixels. Example: https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50", 2484 "type": "string" 2485 } 2486 }, 2487 "type": "object" 2488 }, 2489 "ProfileMetadata": { 2490 "description": "The metadata about a profile.", 2491 "id": "ProfileMetadata", 2492 "properties": { 2493 "objectType": { 2494 "description": "Output only. The profile object type.", 2495 "enum": [ 2496 "OBJECT_TYPE_UNSPECIFIED", 2497 "PERSON", 2498 "PAGE" 2499 ], 2500 "enumDescriptions": [ 2501 "Unspecified.", 2502 "Person.", 2503 "[Currents Page.](https://gsuite.google.com/products/currents/)" 2504 ], 2505 "readOnly": true, 2506 "type": "string" 2507 }, 2508 "userTypes": { 2509 "description": "Output only. The user types.", 2510 "items": { 2511 "enum": [ 2512 "USER_TYPE_UNKNOWN", 2513 "GOOGLE_USER", 2514 "GPLUS_USER", 2515 "GOOGLE_APPS_USER" 2516 ], 2517 "enumDescriptions": [ 2518 "The user type is not known.", 2519 "The user is a Google user.", 2520 "The user is a Currents user.", 2521 "The user is a G Suite user." 2522 ], 2523 "type": "string" 2524 }, 2525 "readOnly": true, 2526 "type": "array" 2527 } 2528 }, 2529 "type": "object" 2530 }, 2531 "Relation": { 2532 "description": "A person's relation to another person.", 2533 "id": "Relation", 2534 "properties": { 2535 "formattedType": { 2536 "description": "Output only. The type of the relation translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header.", 2537 "readOnly": true, 2538 "type": "string" 2539 }, 2540 "metadata": { 2541 "$ref": "FieldMetadata", 2542 "description": "Metadata about the relation." 2543 }, 2544 "person": { 2545 "description": "The name of the other person this relation refers to.", 2546 "type": "string" 2547 }, 2548 "type": { 2549 "description": "The person's relation to the other person. The type can be custom or one of these predefined values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` * `referredBy` * `partner`", 2550 "type": "string" 2551 } 2552 }, 2553 "type": "object" 2554 }, 2555 "RelationshipInterest": { 2556 "description": "**DEPRECATED**: No data will be returned A person's relationship interest .", 2557 "id": "RelationshipInterest", 2558 "properties": { 2559 "formattedValue": { 2560 "description": "Output only. The value of the relationship interest translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header.", 2561 "readOnly": true, 2562 "type": "string" 2563 }, 2564 "metadata": { 2565 "$ref": "FieldMetadata", 2566 "description": "Metadata about the relationship interest." 2567 }, 2568 "value": { 2569 "description": "The kind of relationship the person is looking for. The value can be custom or one of these predefined values: * `friend` * `date` * `relationship` * `networking`", 2570 "type": "string" 2571 } 2572 }, 2573 "type": "object" 2574 }, 2575 "RelationshipStatus": { 2576 "description": "**DEPRECATED**: No data will be returned A person's relationship status.", 2577 "id": "RelationshipStatus", 2578 "properties": { 2579 "formattedValue": { 2580 "description": "Output only. The value of the relationship status translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 2581 "readOnly": true, 2582 "type": "string" 2583 }, 2584 "metadata": { 2585 "$ref": "FieldMetadata", 2586 "description": "Metadata about the relationship status." 2587 }, 2588 "value": { 2589 "description": "The relationship status. The value can be custom or one of these predefined values: * `single` * `inARelationship` * `engaged` * `married` * `itsComplicated` * `openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion`", 2590 "type": "string" 2591 } 2592 }, 2593 "type": "object" 2594 }, 2595 "Residence": { 2596 "description": "**DEPRECATED**: Please use `person.locations` instead. A person's past or current residence.", 2597 "id": "Residence", 2598 "properties": { 2599 "current": { 2600 "description": "True if the residence is the person's current residence; false if the residence is a past residence.", 2601 "type": "boolean" 2602 }, 2603 "metadata": { 2604 "$ref": "FieldMetadata", 2605 "description": "Metadata about the residence." 2606 }, 2607 "value": { 2608 "description": "The address of the residence.", 2609 "type": "string" 2610 } 2611 }, 2612 "type": "object" 2613 }, 2614 "SearchDirectoryPeopleResponse": { 2615 "description": "The response to a request for people in the authenticated user's domain directory that match the specified query.", 2616 "id": "SearchDirectoryPeopleResponse", 2617 "properties": { 2618 "nextPageToken": { 2619 "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", 2620 "type": "string" 2621 }, 2622 "people": { 2623 "description": "The list of people in the domain directory that match the query.", 2624 "items": { 2625 "$ref": "Person" 2626 }, 2627 "type": "array" 2628 }, 2629 "totalSize": { 2630 "description": "The total number of items in the list without pagination.", 2631 "format": "int32", 2632 "type": "integer" 2633 } 2634 }, 2635 "type": "object" 2636 }, 2637 "SipAddress": { 2638 "description": "A person's SIP address. Session Initial Protocol addresses are used for VoIP communications to make voice or video calls over the internet.", 2639 "id": "SipAddress", 2640 "properties": { 2641 "formattedType": { 2642 "description": "Output only. The type of the SIP address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 2643 "readOnly": true, 2644 "type": "string" 2645 }, 2646 "metadata": { 2647 "$ref": "FieldMetadata", 2648 "description": "Metadata about the SIP address." 2649 }, 2650 "type": { 2651 "description": "The type of the SIP address. The type can be custom or or one of these predefined values: * `home` * `work` * `mobile` * `other`", 2652 "type": "string" 2653 }, 2654 "value": { 2655 "description": "The SIP address in the [RFC 3261 19.1](https://tools.ietf.org/html/rfc3261#section-19.1) SIP URI format.", 2656 "type": "string" 2657 } 2658 }, 2659 "type": "object" 2660 }, 2661 "Skill": { 2662 "description": "A skill that the person has.", 2663 "id": "Skill", 2664 "properties": { 2665 "metadata": { 2666 "$ref": "FieldMetadata", 2667 "description": "Metadata about the skill." 2668 }, 2669 "value": { 2670 "description": "The skill; for example, `underwater basket weaving`.", 2671 "type": "string" 2672 } 2673 }, 2674 "type": "object" 2675 }, 2676 "Source": { 2677 "description": "The source of a field.", 2678 "id": "Source", 2679 "properties": { 2680 "etag": { 2681 "description": "**Only populated in `person.metadata.sources`.** The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the source. Used for web cache validation.", 2682 "type": "string" 2683 }, 2684 "id": { 2685 "description": "The unique identifier within the source type generated by the server.", 2686 "type": "string" 2687 }, 2688 "profileMetadata": { 2689 "$ref": "ProfileMetadata", 2690 "description": "Output only. **Only populated in `person.metadata.sources`.** Metadata about a source of type PROFILE.", 2691 "readOnly": true 2692 }, 2693 "type": { 2694 "description": "The source type.", 2695 "enum": [ 2696 "SOURCE_TYPE_UNSPECIFIED", 2697 "ACCOUNT", 2698 "PROFILE", 2699 "DOMAIN_PROFILE", 2700 "CONTACT", 2701 "OTHER_CONTACT", 2702 "DOMAIN_CONTACT" 2703 ], 2704 "enumDescriptions": [ 2705 "Unspecified.", 2706 "[Google Account](https://accounts.google.com).", 2707 "[Google profile](https://profiles.google.com). You can view the profile at [https://profiles.google.com/](https://profiles.google.com/){id}, where {id} is the source id.", 2708 "[G Suite domain profile](https://support.google.com/a/answer/1628008).", 2709 "[Google contact](https://contacts.google.com). You can view the contact at [https://contact.google.com/](https://contact.google.com/){id}, where {id} is the source id.", 2710 "[Google \"Other contact\"](https://contacts.google.com/other).", 2711 "[G Suite domain shared contact](https://support.google.com/a/answer/9281635)." 2712 ], 2713 "type": "string" 2714 }, 2715 "updateTime": { 2716 "description": "Output only. **Only populated in `person.metadata.sources`.** Last update timestamp of this source.", 2717 "format": "google-datetime", 2718 "readOnly": true, 2719 "type": "string" 2720 } 2721 }, 2722 "type": "object" 2723 }, 2724 "Status": { 2725 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", 2726 "id": "Status", 2727 "properties": { 2728 "code": { 2729 "description": "The status code, which should be an enum value of google.rpc.Code.", 2730 "format": "int32", 2731 "type": "integer" 2732 }, 2733 "details": { 2734 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", 2735 "items": { 2736 "additionalProperties": { 2737 "description": "Properties of the object. Contains field @type with type URL.", 2738 "type": "any" 2739 }, 2740 "type": "object" 2741 }, 2742 "type": "array" 2743 }, 2744 "message": { 2745 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", 2746 "type": "string" 2747 } 2748 }, 2749 "type": "object" 2750 }, 2751 "Tagline": { 2752 "description": "**DEPRECATED**: No data will be returned A brief one-line description of the person.", 2753 "id": "Tagline", 2754 "properties": { 2755 "metadata": { 2756 "$ref": "FieldMetadata", 2757 "description": "Metadata about the tagline." 2758 }, 2759 "value": { 2760 "description": "The tagline.", 2761 "type": "string" 2762 } 2763 }, 2764 "type": "object" 2765 }, 2766 "UpdateContactGroupRequest": { 2767 "description": "A request to update an existing user contact group. All updated fields will be replaced.", 2768 "id": "UpdateContactGroupRequest", 2769 "properties": { 2770 "contactGroup": { 2771 "$ref": "ContactGroup", 2772 "description": "Required. The contact group to update." 2773 } 2774 }, 2775 "type": "object" 2776 }, 2777 "UpdateContactPhotoRequest": { 2778 "description": "A request to update an existing contact's photo. All requests must have a valid photo format: JPEG or PNG.", 2779 "id": "UpdateContactPhotoRequest", 2780 "properties": { 2781 "personFields": { 2782 "description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined", 2783 "format": "google-fieldmask", 2784 "type": "string" 2785 }, 2786 "photoBytes": { 2787 "description": "Required. Raw photo bytes", 2788 "format": "byte", 2789 "type": "string" 2790 }, 2791 "sources": { 2792 "description": "Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set.", 2793 "items": { 2794 "enum": [ 2795 "READ_SOURCE_TYPE_UNSPECIFIED", 2796 "READ_SOURCE_TYPE_PROFILE", 2797 "READ_SOURCE_TYPE_CONTACT", 2798 "READ_SOURCE_TYPE_DOMAIN_CONTACT" 2799 ], 2800 "enumDescriptions": [ 2801 "Unspecified.", 2802 "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", 2803 "Returns SourceType.CONTACT.", 2804 "Returns SourceType.DOMAIN_CONTACT." 2805 ], 2806 "type": "string" 2807 }, 2808 "type": "array" 2809 } 2810 }, 2811 "type": "object" 2812 }, 2813 "UpdateContactPhotoResponse": { 2814 "description": "The response for updating a contact's photo.", 2815 "id": "UpdateContactPhotoResponse", 2816 "properties": { 2817 "person": { 2818 "$ref": "Person", 2819 "description": "The updated person, if person_fields is set in the UpdateContactPhotoRequest; otherwise this will be unset." 2820 } 2821 }, 2822 "type": "object" 2823 }, 2824 "Url": { 2825 "description": "A person's associated URLs.", 2826 "id": "Url", 2827 "properties": { 2828 "formattedType": { 2829 "description": "Output only. The type of the URL translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.", 2830 "readOnly": true, 2831 "type": "string" 2832 }, 2833 "metadata": { 2834 "$ref": "FieldMetadata", 2835 "description": "Metadata about the URL." 2836 }, 2837 "type": { 2838 "description": "The type of the URL. The type can be custom or one of these predefined values: * `home` * `work` * `blog` * `profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: website for a Currents application. * `other`", 2839 "type": "string" 2840 }, 2841 "value": { 2842 "description": "The URL.", 2843 "type": "string" 2844 } 2845 }, 2846 "type": "object" 2847 }, 2848 "UserDefined": { 2849 "description": "Arbitrary user data that is populated by the end users.", 2850 "id": "UserDefined", 2851 "properties": { 2852 "key": { 2853 "description": "The end user specified key of the user defined data.", 2854 "type": "string" 2855 }, 2856 "metadata": { 2857 "$ref": "FieldMetadata", 2858 "description": "Metadata about the user defined data." 2859 }, 2860 "value": { 2861 "description": "The end user specified value of the user defined data.", 2862 "type": "string" 2863 } 2864 }, 2865 "type": "object" 2866 } 2867 }, 2868 "servicePath": "", 2869 "title": "People API", 2870 "version": "v1", 2871 "version_module": true 2872}