Show / Hide Table of Contents

Class QueryResource.SearchRequest

The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party. Note: This API requires a standard end user account to execute. A service account can't perform Query API requests directly; to use a service account to perform queries, set up [G Suite domain-wide delegation of authority](https://developers.google.com/cloud- search/docs/guides/delegation/).

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<SearchResponse>
CloudSearchBaseServiceRequest<SearchResponse>
QueryResource.SearchRequest
Implements
IClientServiceRequest<SearchResponse>
IClientServiceRequest
Inherited Members
CloudSearchBaseServiceRequest<SearchResponse>.Xgafv
CloudSearchBaseServiceRequest<SearchResponse>.AccessToken
CloudSearchBaseServiceRequest<SearchResponse>.Alt
CloudSearchBaseServiceRequest<SearchResponse>.Callback
CloudSearchBaseServiceRequest<SearchResponse>.Fields
CloudSearchBaseServiceRequest<SearchResponse>.Key
CloudSearchBaseServiceRequest<SearchResponse>.OauthToken
CloudSearchBaseServiceRequest<SearchResponse>.PrettyPrint
CloudSearchBaseServiceRequest<SearchResponse>.QuotaUser
CloudSearchBaseServiceRequest<SearchResponse>.UploadType
CloudSearchBaseServiceRequest<SearchResponse>.UploadProtocol
ClientServiceRequest<SearchResponse>.Execute()
ClientServiceRequest<SearchResponse>.ExecuteAsStream()
ClientServiceRequest<SearchResponse>.ExecuteAsync()
ClientServiceRequest<SearchResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<SearchResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<SearchResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<SearchResponse>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<SearchResponse>.GenerateRequestUri()
ClientServiceRequest<SearchResponse>.GetDefaultETagAction(String)
ClientServiceRequest<SearchResponse>.ETagAction
ClientServiceRequest<SearchResponse>.ModifyRequest
ClientServiceRequest<SearchResponse>.RequestParameters
ClientServiceRequest<SearchResponse>.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 SearchRequest : CloudSearchBaseServiceRequest<SearchResponse>, IClientServiceRequest<SearchResponse>, IClientServiceRequest

Constructors

SearchRequest(IClientService, SearchRequest)

Constructs a new Search request.

Declaration
public SearchRequest(IClientService service, SearchRequest body)
Parameters
Type Name Description
IClientService service
SearchRequest body

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.SearchResponse>.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.SearchResponse>.MethodName

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.SearchResponse>.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.SearchResponse>.GetBody()

InitParameters()

Initializes Search parameter list.

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

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top