public class PeopleService.People extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PeopleService.People.BatchCreateContacts |
class |
PeopleService.People.BatchDeleteContacts |
class |
PeopleService.People.BatchUpdateContacts |
class |
PeopleService.People.Connections
The "connections" collection of methods.
|
class |
PeopleService.People.CreateContact |
class |
PeopleService.People.DeleteContact |
class |
PeopleService.People.DeleteContactPhoto |
class |
PeopleService.People.Get |
class |
PeopleService.People.GetBatchGet |
class |
PeopleService.People.ListDirectoryPeople |
class |
PeopleService.People.SearchContacts |
class |
PeopleService.People.SearchDirectoryPeople |
class |
PeopleService.People.UpdateContact |
class |
PeopleService.People.UpdateContactPhoto |
| Constructor and Description |
|---|
People() |
| Modifier and Type | Method and Description |
|---|---|
PeopleService.People.BatchCreateContacts |
batchCreateContacts(BatchCreateContactsRequest content)
Create a batch of new contacts and return the PersonResponses for the newly Mutate requests for
the same user should be sent sequentially to avoid increased latency and failures.
|
PeopleService.People.BatchDeleteContacts |
batchDeleteContacts(BatchDeleteContactsRequest content)
Delete a batch of contacts.
|
PeopleService.People.BatchUpdateContacts |
batchUpdateContacts(BatchUpdateContactsRequest content)
Update a batch of contacts and return a map of resource names to PersonResponses for the updated
contacts.
|
PeopleService.People.Connections |
connections()
An accessor for creating requests from the Connections collection.
|
PeopleService.People.CreateContact |
createContact(Person content)
Create a new contact and return the person resource for that contact.
|
PeopleService.People.DeleteContact |
deleteContact(String resourceName)
Delete a contact person.
|
PeopleService.People.DeleteContactPhoto |
deleteContactPhoto(String resourceName)
Delete a contact's photo.
|
PeopleService.People.Get |
get(String resourceName)
Provides information about a person by specifying a resource name.
|
PeopleService.People.GetBatchGet |
getBatchGet()
Provides information about a list of specific people by specifying a list of requested resource
names.
|
PeopleService.People.ListDirectoryPeople |
listDirectoryPeople()
Provides a list of domain profiles and domain contacts in the authenticated user's domain
directory.
|
PeopleService.People.SearchContacts |
searchContacts()
Provides a list of contacts in the authenticated user's grouped contacts that matches the search
query.
|
PeopleService.People.SearchDirectoryPeople |
searchDirectoryPeople()
Provides a list of domain profiles and domain contacts in the authenticated user's domain
directory that match the search query.
|
PeopleService.People.UpdateContact |
updateContact(String resourceName,
Person content)
Update contact data for an existing contact person.
|
PeopleService.People.UpdateContactPhoto |
updateContactPhoto(String resourceName,
UpdateContactPhotoRequest content)
Update a contact's photo.
|
public PeopleService.People.BatchCreateContacts batchCreateContacts(BatchCreateContactsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the BatchCreateContactsRequestIOExceptionpublic PeopleService.People.BatchDeleteContacts batchDeleteContacts(BatchDeleteContactsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the BatchDeleteContactsRequestIOExceptionpublic PeopleService.People.BatchUpdateContacts batchUpdateContacts(BatchUpdateContactsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the BatchUpdateContactsRequestIOExceptionpublic PeopleService.People.CreateContact createContact(Person content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PersonIOExceptionpublic PeopleService.People.DeleteContact deleteContact(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. The resource name of the contact to delete.IOExceptionpublic PeopleService.People.DeleteContactPhoto deleteContactPhoto(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. The resource name of the contact whose photo will be deleted.IOExceptionpublic PeopleService.People.Get get(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - 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`.IOExceptionpublic PeopleService.People.GetBatchGet getBatchGet() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic PeopleService.People.ListDirectoryPeople listDirectoryPeople() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic PeopleService.People.SearchContacts searchContacts() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic PeopleService.People.SearchDirectoryPeople searchDirectoryPeople() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.IOExceptionpublic PeopleService.People.UpdateContact updateContact(String resourceName, Person content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - The resource name for the person, assigned by the server. An ASCII string in the form of
`people/{person_id}`.content - the PersonIOExceptionpublic PeopleService.People.UpdateContactPhoto updateContactPhoto(String resourceName, UpdateContactPhotoRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. Person resource namecontent - the UpdateContactPhotoRequestIOExceptionpublic PeopleService.People.Connections connections()
The typical use is:
PeopleService people = new PeopleService(...);PeopleService.Connections.List request = people.connections().list(parameters ...)
Copyright © 2011–2025 Google. All rights reserved.