This stateless API provides automatic suggestions for natural language
queries for the data sources in the provided project and location.
The service provides a resourceless operation suggestQueries that can be
called to get a list of suggestions for a given incomplete query and scope
(or list of scopes) under which the query is to be interpreted.
There are two types of suggestions, ENTITY for single entity suggestions
and TEMPLATE for full sentences. By default, both types are returned.
The service will retrieve information based on the given scope(s) and give
suggestions based on that (e.g. "top item" for "top it" if "item" is a known
dimension for the provided scope).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eAutoSuggestionServiceClientImpl\u003c/code\u003e is a client wrapper implementation for the Data QnA v1alpha API's \u003ccode\u003eAutoSuggestionService\u003c/code\u003e, providing a convenient way to interact with its functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eAutoSuggestionServiceClient\u003c/code\u003e and ultimately from \u003ccode\u003eobject\u003c/code\u003e, meaning it can be used to get suggestions for incomplete natural language queries based on specified scopes.\u003c/p\u003e\n"],["\u003cp\u003eThe service supports two suggestion types: \u003ccode\u003eENTITY\u003c/code\u003e for single entity suggestions and \u003ccode\u003eTEMPLATE\u003c/code\u003e for complete sentence suggestions, both of which are returned by default.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAutoSuggestionServiceClientImpl\u003c/code\u003e offers methods such as \u003ccode\u003eSuggestQueries\u003c/code\u003e and \u003ccode\u003eSuggestQueriesAsync\u003c/code\u003e for retrieving suggestions, with a target response time of less than 1 second.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor of \u003ccode\u003eAutoSuggestionServiceClientImpl\u003c/code\u003e requires a gRPC client, \u003ccode\u003eAutoSuggestionServiceSettings\u003c/code\u003e, and an optional \u003ccode\u003eILogger\u003c/code\u003e, while also offering a property \u003ccode\u003eGrpcClient\u003c/code\u003e to access the underlying gRPC client.\u003c/p\u003e\n"]]],[],null,["# Data QnA v1alpha API - Class AutoSuggestionServiceClientImpl (2.0.0-alpha02)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-alpha02 (latest)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClientImpl)\n- [2.0.0-alpha01](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClientImpl)\n- [1.0.0-alpha03](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClientImpl) \n\n public sealed class AutoSuggestionServiceClientImpl : AutoSuggestionServiceClient\n\nReference documentation and code samples for the Data QnA v1alpha API class AutoSuggestionServiceClientImpl.\n\nAutoSuggestionService client wrapper implementation, for convenient use. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [AutoSuggestionServiceClient](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient) \\\u003e AutoSuggestionServiceClientImpl \n\nInherited Members\n-----------------\n\n[AutoSuggestionServiceClient.DefaultEndpoint](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_DefaultEndpoint) \n[AutoSuggestionServiceClient.DefaultScopes](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_DefaultScopes) \n[AutoSuggestionServiceClient.ServiceMetadata](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_ServiceMetadata) \n[AutoSuggestionServiceClient.CreateAsync(CancellationToken)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_CreateAsync_System_Threading_CancellationToken_) \n[AutoSuggestionServiceClient.Create()](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_Create) \n[AutoSuggestionServiceClient.ShutdownDefaultChannelsAsync()](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_ShutdownDefaultChannelsAsync) \n[AutoSuggestionServiceClient.SuggestQueriesAsync(SuggestQueriesRequest, CancellationToken)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_SuggestQueriesAsync_Google_Cloud_DataQnA_V1Alpha_SuggestQueriesRequest_System_Threading_CancellationToken_) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DataQnA.V1Alpha](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.DataQnA.V1Alpha.dll\n\nRemarks\n-------\n\nThis stateless API provides automatic suggestions for natural language\nqueries for the data sources in the provided project and location.\n\nThe service provides a resourceless operation `suggestQueries` that can be\ncalled to get a list of suggestions for a given incomplete query and scope\n(or list of scopes) under which the query is to be interpreted.\n\nThere are two types of suggestions, ENTITY for single entity suggestions\nand TEMPLATE for full sentences. By default, both types are returned.\n\nExample Request: \n\n GetSuggestions({\n parent: \"locations/us/projects/my-project\"\n scopes:\n \"//bigquery.googleapis.com/projects/my-project/datasets/my-dataset/tables/my-table\"\n query: \"top it\"\n })\n\nThe service will retrieve information based on the given scope(s) and give\nsuggestions based on that (e.g. \"top item\" for \"top it\" if \"item\" is a known\ndimension for the provided scope). \n\n suggestions {\n suggestion_info {\n annotated_suggestion {\n text_formatted: \"top item by sum of usd_revenue_net\"\n markups {\n type: DIMENSION\n start_char_index: 4\n length: 4\n }\n markups {\n type: METRIC\n start_char_index: 19\n length: 15\n }\n }\n query_matches {\n start_char_index: 0\n length: 6\n }\n }\n suggestion_type: TEMPLATE\n ranking_score: 0.9\n }\n suggestions {\n suggestion_info {\n annotated_suggestion {\n text_formatted: \"item\"\n markups {\n type: DIMENSION\n start_char_index: 4\n length: 2\n }\n }\n query_matches {\n start_char_index: 0\n length: 6\n }\n }\n suggestion_type: ENTITY\n ranking_score: 0.8\n }\n\nConstructors\n------------\n\n### AutoSuggestionServiceClientImpl(AutoSuggestionServiceClient, AutoSuggestionServiceSettings, ILogger)\n\n public AutoSuggestionServiceClientImpl(AutoSuggestionService.AutoSuggestionServiceClient grpcClient, AutoSuggestionServiceSettings settings, ILogger logger)\n\nConstructs a client wrapper for the AutoSuggestionService service, with the specified gRPC client and\nsettings.\n\nProperties\n----------\n\n### GrpcClient\n\n public override AutoSuggestionService.AutoSuggestionServiceClient GrpcClient { get; }\n\nThe underlying gRPC AutoSuggestionService client\n\n**Overrides** \n[AutoSuggestionServiceClient.GrpcClient](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_GrpcClient)\n\nMethods\n-------\n\n### SuggestQueries(SuggestQueriesRequest, CallSettings)\n\n public override SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, CallSettings callSettings = null)\n\nGets a list of suggestions based on a prefix string.\nAutoSuggestion tolerance should be less than 1 second.\n\n**Overrides** \n[AutoSuggestionServiceClient.SuggestQueries(SuggestQueriesRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_SuggestQueries_Google_Cloud_DataQnA_V1Alpha_SuggestQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)\n\n### SuggestQueriesAsync(SuggestQueriesRequest, CallSettings)\n\n public override Task\u003cSuggestQueriesResponse\u003e SuggestQueriesAsync(SuggestQueriesRequest request, CallSettings callSettings = null)\n\nGets a list of suggestions based on a prefix string.\nAutoSuggestion tolerance should be less than 1 second.\n\n**Overrides** \n[AutoSuggestionServiceClient.SuggestQueriesAsync(SuggestQueriesRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient#Google_Cloud_DataQnA_V1Alpha_AutoSuggestionServiceClient_SuggestQueriesAsync_Google_Cloud_DataQnA_V1Alpha_SuggestQueriesRequest_Google_Api_Gax_Grpc_CallSettings_)"]]