Discovery Engine v1 API - Class Query (1.2.0)

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.

Inheritance

object > Query

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

Query()

public Query()

Query(Query)

public Query(Query other)
Parameter
Name Description
other Query

Properties

ContentCase

public Query.ContentOneofCase ContentCase { get; }
Property Value
Type Description
QueryContentOneofCase

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
Type Description
bool

QueryId

public string QueryId { get; set; }

Unique Id for the query.

Property Value
Type Description
string

Text

public string Text { get; set; }

Plain text.

Property Value
Type Description
string