Class DocumentsResource.SearchDocumentChunksRequest
Searches for developer knowledge across Google's developer documentation. This method returns document chunks based on the user's query. There can be many chunks of the same Document. To retrieve full documents, use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments with the DocumentChunk.parent returned in the SearchDocumentChunksResponse.results.
Inheritance
Inherited Members
Namespace: Google.Apis.DeveloperKnowledge.v1alpha
Assembly: Google.Apis.DeveloperKnowledge.v1alpha.dll
Syntax
public class DocumentsResource.SearchDocumentChunksRequest : DeveloperKnowledgeBaseServiceRequest<SearchDocumentChunksResponse>, IClientServiceRequest<SearchDocumentChunksResponse>, IClientServiceRequest
Constructors
SearchDocumentChunksRequest(IClientService)
Constructs a new SearchDocumentChunks request.
Declaration
public SearchDocumentChunksRequest(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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
PageSize
Optional. The maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error.
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 SearchDocumentChunks call. Provide this to retrieve
the subsequent page.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Query
Required. The raw query string provided by the user, such as "How to create a Cloud Storage bucket?".
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes SearchDocumentChunks parameter list.
Declaration
protected override void InitParameters()