Show / Hide Table of Contents

Class IndexingResource.DatasourcesResource.ItemsResource.PollRequest

Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads cannot create overlapping sets. After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE. Items automatically become available (unreserved) after 4 hours even if no update or push method is called. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<PollItemsResponse>
CloudSearchBaseServiceRequest<PollItemsResponse>
IndexingResource.DatasourcesResource.ItemsResource.PollRequest
Implements
IClientServiceRequest<PollItemsResponse>
IClientServiceRequest
Inherited Members
CloudSearchBaseServiceRequest<PollItemsResponse>.Xgafv
CloudSearchBaseServiceRequest<PollItemsResponse>.AccessToken
CloudSearchBaseServiceRequest<PollItemsResponse>.Alt
CloudSearchBaseServiceRequest<PollItemsResponse>.Callback
CloudSearchBaseServiceRequest<PollItemsResponse>.Fields
CloudSearchBaseServiceRequest<PollItemsResponse>.Key
CloudSearchBaseServiceRequest<PollItemsResponse>.OauthToken
CloudSearchBaseServiceRequest<PollItemsResponse>.PrettyPrint
CloudSearchBaseServiceRequest<PollItemsResponse>.QuotaUser
CloudSearchBaseServiceRequest<PollItemsResponse>.UploadType
CloudSearchBaseServiceRequest<PollItemsResponse>.UploadProtocol
ClientServiceRequest<PollItemsResponse>.Execute()
ClientServiceRequest<PollItemsResponse>.ExecuteAsStream()
ClientServiceRequest<PollItemsResponse>.ExecuteAsync()
ClientServiceRequest<PollItemsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<PollItemsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<PollItemsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<PollItemsResponse>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<PollItemsResponse>.GenerateRequestUri()
ClientServiceRequest<PollItemsResponse>.GetDefaultETagAction(String)
ClientServiceRequest<PollItemsResponse>.ETagAction
ClientServiceRequest<PollItemsResponse>.ModifyRequest
ClientServiceRequest<PollItemsResponse>.RequestParameters
ClientServiceRequest<PollItemsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class PollRequest : CloudSearchBaseServiceRequest<PollItemsResponse>, IClientServiceRequest<PollItemsResponse>, IClientServiceRequest

Constructors

PollRequest(IClientService, PollItemsRequest, String)

Constructs a new Poll request.

Declaration
public PollRequest(IClientService service, PollItemsRequest body, string name)
Parameters
Type Name Description
IClientService service
PollItemsRequest body
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.PollItemsResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.PollItemsResponse>.MethodName

Name

Name of the Data Source to poll items. Format: datasources/{source_id}

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.PollItemsResponse>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.PollItemsResponse>.GetBody()

InitParameters()

Initializes Poll parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudSearch.v1.CloudSearchBaseServiceRequest<Google.Apis.CloudSearch.v1.Data.PollItemsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top