Data QnA v1alpha API - Class SuggestQueriesRequest (2.0.0-alpha02)

public sealed class SuggestQueriesRequest : IMessage<SuggestQueriesRequest>, IEquatable<SuggestQueriesRequest>, IDeepCloneable<SuggestQueriesRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Data QnA v1alpha API class SuggestQueriesRequest.

Request for query suggestions.

Inheritance

object > SuggestQueriesRequest

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

SuggestQueriesRequest()

public SuggestQueriesRequest()

SuggestQueriesRequest(SuggestQueriesRequest)

public SuggestQueriesRequest(SuggestQueriesRequest other)
Parameter
NameDescription
otherSuggestQueriesRequest

Properties

Parent

public string Parent { get; set; }

Required. The parent of the suggestion query is the resource denoting the project and location.

Property Value
TypeDescription
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
TypeDescription
LocationName

Query

public string Query { get; set; }

User query for which to generate suggestions. If the query is empty, zero state suggestions are returned. This allows UIs to display suggestions right away, helping the user to get a sense of what a query might look like.

Property Value
TypeDescription
string

Scopes

public RepeatedField<string> Scopes { get; }

The scopes to which this search is restricted. The only supported scope pattern is //bigquery.googleapis.com/projects/{GCP-PROJECT-ID}/datasets/{DATASET-ID}/tables/{TABLE-ID}.

Property Value
TypeDescription
RepeatedFieldstring

SuggestionTypes

public RepeatedField<SuggestionType> SuggestionTypes { get; }

The requested suggestion type. Multiple suggestion types can be requested, but there is no guarantee that the service will return suggestions for each type. Suggestions for a requested type might rank lower than suggestions for other types and the service may decide to cut these suggestions off.

Property Value
TypeDescription
RepeatedFieldSuggestionType