Show / Hide Table of Contents

Class OtherContactsResource.ListRequest

List all "Other contacts", that is contacts that are not in a contact group. "Other contacts" are typically auto created contacts from interactions. Sync tokens expire 7 days after the full sync. A request with an expired sync token will get an error with an google.rpc.ErrorInfo with reason "EXPIRED_SYNC_TOKEN". In the case of such an error clients should make a full sync request without a sync_token. The first page of a full sync request has an additional quota. If the quota is exceeded, a 429 error will be returned. This quota is fixed and can not be increased. When the sync_token is specified, resources deleted since the last sync will be returned as a person with PersonMetadata.deleted set to true. When the page_token or sync_token is specified, all other request parameters must match the first call. Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases. See example usage at List the user's other contacts that have changed.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListOtherContactsResponse>
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>
OtherContactsResource.ListRequest
Implements
IClientServiceRequest<ListOtherContactsResponse>
IClientServiceRequest
Inherited Members
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.Xgafv
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.AccessToken
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.Alt
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.Callback
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.Fields
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.Key
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.OauthToken
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.PrettyPrint
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.QuotaUser
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.UploadType
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.UploadProtocol
ClientServiceRequest<ListOtherContactsResponse>.Execute()
ClientServiceRequest<ListOtherContactsResponse>.ExecuteAsStream()
ClientServiceRequest<ListOtherContactsResponse>.ExecuteAsync()
ClientServiceRequest<ListOtherContactsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListOtherContactsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListOtherContactsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListOtherContactsResponse>.CreateRequest(bool?)
ClientServiceRequest<ListOtherContactsResponse>.GenerateRequestUri()
ClientServiceRequest<ListOtherContactsResponse>.GetBody()
ClientServiceRequest<ListOtherContactsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListOtherContactsResponse>.ETagAction
ClientServiceRequest<ListOtherContactsResponse>.ModifyRequest
ClientServiceRequest<ListOtherContactsResponse>.ValidateParameters
ClientServiceRequest<ListOtherContactsResponse>.ApiVersion
ClientServiceRequest<ListOtherContactsResponse>.RequestParameters
ClientServiceRequest<ListOtherContactsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.PeopleService.v1
Assembly: Google.Apis.PeopleService.v1.dll
Syntax
public class OtherContactsResource.ListRequest : PeopleServiceBaseServiceRequest<ListOtherContactsResponse>, IClientServiceRequest<ListOtherContactsResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService)

Constructs a new List request.

Declaration
public ListRequest(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListOtherContactsResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListOtherContactsResponse>.MethodName

PageSize

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.

Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type Description
int?

PageToken

Optional. A page token, received from a previous response next_page_token. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to otherContacts.list must match the first call that provided the page token.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

ReadMask

Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. What values are valid depend on what ReadSourceType is used. If READ_SOURCE_TYPE_CONTACT is used, valid values are: * emailAddresses * metadata * names * phoneNumbers * photos If READ_SOURCE_TYPE_PROFILE is used, 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

Declaration
[RequestParameter("readMask", RequestParameterType.Query)]
public virtual object ReadMask { get; set; }
Property Value
Type Description
object

RequestSyncToken

Optional. Whether the response should return next_sync_token on the last page of results. It can be used to get incremental changes since the last request by setting it on the request sync_token. More details about sync behavior at otherContacts.list.

Declaration
[RequestParameter("requestSyncToken", RequestParameterType.Query)]
public virtual bool? RequestSyncToken { get; set; }
Property Value
Type Description
bool?

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListOtherContactsResponse>.RestPath

Sources

Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set. Possible values for this field are: * READ_SOURCE_TYPE_CONTACT * READ_SOURCE_TYPE_CONTACT,READ_SOURCE_TYPE_PROFILE Specifying READ_SOURCE_TYPE_PROFILE without specifying READ_SOURCE_TYPE_CONTACT is not permitted.

Declaration
[RequestParameter("sources", RequestParameterType.Query)]
public virtual OtherContactsResource.ListRequest.SourcesEnum? Sources { get; set; }
Property Value
Type Description
OtherContactsResource.ListRequest.SourcesEnum?
Remarks

Use this property to set a single value for the parameter, or SourcesList to set multiple values. Do not set both properties.

SourcesList

Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set. Possible values for this field are: * READ_SOURCE_TYPE_CONTACT * READ_SOURCE_TYPE_CONTACT,READ_SOURCE_TYPE_PROFILE Specifying READ_SOURCE_TYPE_PROFILE without specifying READ_SOURCE_TYPE_CONTACT is not permitted.

Declaration
[RequestParameter("sources", RequestParameterType.Query)]
public virtual Repeatable<OtherContactsResource.ListRequest.SourcesEnum> SourcesList { get; set; }
Property Value
Type Description
Repeatable<OtherContactsResource.ListRequest.SourcesEnum>
Remarks

Use this property to set one or more values for the parameter. Do not set both this property and Sources.

SyncToken

Optional. A sync token, received from a previous response next_sync_token Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to otherContacts.list must match the first call that provided the sync token. More details about sync behavior at otherContacts.list.

Declaration
[RequestParameter("syncToken", RequestParameterType.Query)]
public virtual string SyncToken { get; set; }
Property Value
Type Description
string

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
PeopleServiceBaseServiceRequest<ListOtherContactsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX