Show / Hide Table of Contents

Class QueryResource

The "query" collection of methods.

Inheritance
object
QueryResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class QueryResource

Constructors

QueryResource(IClientService)

Constructs a new resource.

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

Properties

Sources

Gets the Sources resource.

Declaration
public virtual QueryResource.SourcesResource Sources { get; }
Property Value
Type Description
QueryResource.SourcesResource

Methods

DebugSearch(SearchRequest)

Returns Debug information for Cloud Search Query API provides the search method. 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 Google Workspace domain-wide delegation of authority.

Declaration
public virtual QueryResource.DebugSearchRequest DebugSearch(SearchRequest body)
Parameters
Type Name Description
SearchRequest body

The body of the request.

Returns
Type Description
QueryResource.DebugSearchRequest

RemoveActivity(RemoveActivityRequest)

Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients Note: This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up Google Workspace domain-wide delegation of authority.

Declaration
public virtual QueryResource.RemoveActivityRequest RemoveActivity(RemoveActivityRequest body)
Parameters
Type Name Description
RemoveActivityRequest body

The body of the request.

Returns
Type Description
QueryResource.RemoveActivityRequest

Search(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 Google Workspace 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 Google Workspace domain-wide delegation of authority.

Declaration
public virtual QueryResource.SearchRequest Search(SearchRequest body)
Parameters
Type Name Description
SearchRequest body

The body of the request.

Returns
Type Description
QueryResource.SearchRequest

Suggest(SuggestRequest)

Provides suggestions for autocompleting the query. 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 Google Workspace domain-wide delegation of authority.

Declaration
public virtual QueryResource.SuggestRequest Suggest(SuggestRequest body)
Parameters
Type Name Description
SuggestRequest body

The body of the request.

Returns
Type Description
QueryResource.SuggestRequest
In this article
Back to top Generated by DocFX