public sealed class CompleteQueryResponse : IMessage<CompleteQueryResponse>, IEquatable<CompleteQueryResponse>, IDeepCloneable<CompleteQueryResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class CompleteQueryResponse.
A unique complete token. This should be included in the
[UserEvent.completion_detail][google.cloud.retail.v2.UserEvent.completion_detail]
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
Deprecated. Matched recent searches of this user. The maximum number of
recent searches is 10. This field is a restricted feature. If you want to
enable it, contact Retail Search support.
This feature is only available when
[CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
field is set and [UserEvent][google.cloud.retail.v2.UserEvent] is imported.
The recent searches satisfy the follow rules:
They are ordered from latest to oldest.
They are matched with
[CompleteQueryRequest.query][google.cloud.retail.v2.CompleteQueryRequest.query]
case insensitively.
They are transformed to lower case.
They are UTF-8 safe.
Recent searches are deduplicated. More recent searches will be reserved
when duplication happens.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eCompleteQueryResponse\u003c/code\u003e class within the Google Cloud Retail v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCompleteQueryResponse\u003c/code\u003e class represents the response to an autocomplete query, containing matched suggestions and attribute information.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eCompleteQueryResponse\u003c/code\u003e is 2.12.0, but the page also lists documentation for previous versions dating back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCompleteQueryResponse\u003c/code\u003e include \u003ccode\u003eCompletionResults\u003c/code\u003e for matching suggestions, \u003ccode\u003eAttributeResults\u003c/code\u003e for matched attribute suggestions like brands and categories, and \u003ccode\u003eAttributionToken\u003c/code\u003e for model performance tracking.\u003c/p\u003e\n"],["\u003cp\u003eAn obsolete \u003ccode\u003eRecentSearchResults\u003c/code\u003e property was used to show recent user searches and is no longer active.\u003c/p\u003e\n"]]],[],null,["# Retail v2 API - Class CompleteQueryResponse (2.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.14.0 (latest)](/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.13.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.12.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.11.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.10.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.9.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.8.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.7.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.6.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.5.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.4.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.3.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.2.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.1.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/2.0.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.6.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.5.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.4.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.3.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.2.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.1.0/Google.Cloud.Retail.V2.CompleteQueryResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Retail.V2/1.0.0/Google.Cloud.Retail.V2.CompleteQueryResponse) \n\n public sealed class CompleteQueryResponse : IMessage\u003cCompleteQueryResponse\u003e, IEquatable\u003cCompleteQueryResponse\u003e, IDeepCloneable\u003cCompleteQueryResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Retail v2 API class CompleteQueryResponse.\n\nResponse of the autocomplete query. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CompleteQueryResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CompleteQueryResponse](/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CompleteQueryResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CompleteQueryResponse](/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CompleteQueryResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CompleteQueryResponse](/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CompleteQueryResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\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.Retail.V2](/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Retail.V2.dll\n\nConstructors\n------------\n\n### CompleteQueryResponse()\n\n public CompleteQueryResponse()\n\n### CompleteQueryResponse(CompleteQueryResponse)\n\n public CompleteQueryResponse(CompleteQueryResponse other)\n\nProperties\n----------\n\n### AttributeResults\n\n public MapField\u003cstring, CompleteQueryResponse.Types.AttributeResult\u003e AttributeResults { get; }\n\nA map of matched attribute suggestions. This field is only available for\n`cloud-retail` dataset.\n\nCurrent supported keys:\n\n- `brands`\n\n- `categories`\n\n### AttributionToken\n\n public string AttributionToken { get; set; }\n\nA unique complete token. This should be included in the\n\\[UserEvent.completion_detail\\]\\[google.cloud.retail.v2.UserEvent.completion_detail\\]\nfor search events resulting from this completion, which enables accurate\nattribution of complete model performance.\n\n### CompletionResults\n\n public RepeatedField\u003cCompleteQueryResponse.Types.CompletionResult\u003e CompletionResults { get; }\n\nResults of the matching suggestions. The result list is ordered and the\nfirst result is top suggestion.\n\n### RecentSearchResults\n\n [Obsolete]\n public RepeatedField\u003cCompleteQueryResponse.Types.RecentSearchResult\u003e RecentSearchResults { get; }\n\nDeprecated. Matched recent searches of this user. The maximum number of\nrecent searches is 10. This field is a restricted feature. If you want to\nenable it, contact Retail Search support.\n\nThis feature is only available when\n\\[CompleteQueryRequest.visitor_id\\]\\[google.cloud.retail.v2.CompleteQueryRequest.visitor_id\\]\nfield is set and \\[UserEvent\\]\\[google.cloud.retail.v2.UserEvent\\] is imported.\nThe recent searches satisfy the follow rules:\n\n- They are ordered from latest to oldest.\n\n- They are matched with\n \\[CompleteQueryRequest.query\\]\\[google.cloud.retail.v2.CompleteQueryRequest.query\\]\n case insensitively.\n\n- They are transformed to lower case.\n\n- They are UTF-8 safe.\n\nRecent searches are deduplicated. More recent searches will be reserved\nwhen duplication happens."]]