Send feedback
Discovery Engine v1 API - Class Query (1.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
1.14.0 (latest)
1.13.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0-beta06
public sealed class Query : IMessage<Query>, IEquatable<Query>, IDeepCloneable<Query>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Query.
Defines a user inputed query.
Namespace
Google.Cloud.DiscoveryEngine.V1
Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
Query()
Query(Query)
public Query(Query other)
Parameter
Name
Description
other
Query
Properties
ContentCase
public Query.ContentOneofCase ContentCase { get; }
HasText
public bool HasText { get; }
Gets whether the "text" field is set
Property Value
Type
Description
bool
QueryId
public string QueryId { get; set; }
Output only. Unique Id for the query.
Property Value
Type
Description
string
Text
public string Text { get; set; }
Property Value
Type
Description
string
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-14 UTC.
Need to tell us more?
[[["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 2026-07-14 UTC."],[],[]]