3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 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

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

Reference documentation and code samples for the Dialogflow v3 API class QueryResult.

Represents the result of a conversational query.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> QueryResult

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[QueryResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.QueryResult.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.QueryResult.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[QueryResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.QueryResult.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### QueryResult()

    public QueryResult()

### QueryResult(QueryResult)

    public QueryResult(QueryResult other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `QueryResult` |

## Properties

### AdvancedSettings

    public AdvancedSettings AdvancedSettings { get; set; }

Returns the current advanced settings including IVR settings. Even though
the operations configured by these settings are performed by Dialogflow,
the client may need to perform special logic at the moment. For example, if
Dialogflow exports audio to Google Cloud Storage, then the client may need
to wait for the resulting object to appear in the bucket before proceeding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AdvancedSettings` |   |

### AllowAnswerFeedback

    public bool AllowAnswerFeedback { get; set; }

Indicates whether the Thumbs up/Thumbs down rating controls are need to be
shown for the response in the Dialogflow Messenger widget.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### CurrentFlow

    public Flow CurrentFlow { get; set; }

The current \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\]. Some, not all
fields are filled in this message, including but not limited to `name` and
`display_name`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Flow` |   |

### CurrentPage

    public Page CurrentPage { get; set; }

The current \[Page\]\[google.cloud.dialogflow.cx.v3.Page\]. Some, not all
fields are filled in this message, including but not limited to `name` and
`display_name`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Page` |   |

### DataStoreConnectionSignals

    public DataStoreConnectionSignals DataStoreConnectionSignals { get; set; }

Optional. Data store connection feature output signals.
Filled only when data stores are involved in serving the query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataStoreConnectionSignals` |   |

### DiagnosticInfo

    public Struct DiagnosticInfo { get; set; }

The free-form diagnostic info. For example, this field could contain
webhook call latency. The fields of this data can change without notice,
so you should not write code that depends on its structure.

One of the fields is called "Alternative Matched Intents", which may
aid with debugging. The following describes these intent results:

- The list is empty if no intent was matched to end-user input.
- Only intents that are referenced in the currently active flow are included.
- The matched intent is included.
- Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included.
- Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### Dtmf

    public DtmfInput Dtmf { get; set; }

If a \[DTMF\]\[google.cloud.dialogflow.cx.v3.DtmfInput\] was provided as
input, this field will contain a copy of the
\[DtmfInput\]\[google.cloud.dialogflow.cx.v3.DtmfInput\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DtmfInput` |   |

### HasText

    public bool HasText { get; }

Gets whether the "text" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTranscript

    public bool HasTranscript { get; }

Gets whether the "transcript" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTriggerEvent

    public bool HasTriggerEvent { get; }

Gets whether the "trigger_event" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasTriggerIntent

    public bool HasTriggerIntent { get; }

Gets whether the "trigger_intent" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Intent

    [Obsolete]
    public Intent Intent { get; set; }

The \[Intent\]\[google.cloud.dialogflow.cx.v3.Intent\] that matched the
conversational query. Some, not all fields are filled in this message,
including but not limited to: `name` and `display_name`. This field is
deprecated, please use
\[QueryResult.match\]\[google.cloud.dialogflow.cx.v3.QueryResult.match\]
instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Intent` |   |

### IntentDetectionConfidence

    [Obsolete]
    public float IntentDetectionConfidence { get; set; }

The intent detection confidence. Values range from 0.0 (completely
uncertain) to 1.0 (completely certain).
This value is for informational purpose only and is only used to
help match the best intent within the classification threshold.
This value may change for the same end-user expression at any time due to a
model retraining or change in implementation.
This field is deprecated, please use
\[QueryResult.match\]\[google.cloud.dialogflow.cx.v3.QueryResult.match\]
instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### LanguageCode

    public string LanguageCode { get; set; }

The language that was triggered during intent detection.
See [Language
Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
for a list of the currently supported language codes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Match

    public Match Match { get; set; }

Intent match result, could be an intent or an event.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Match` |   |

### Parameters

    public Struct Parameters { get; set; }

The collected \[session
parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:

- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### QueryCase

    public QueryResult.QueryOneofCase QueryCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `QueryResultQueryOneofCase` |   |

### ResponseMessages

    public RepeatedField<ResponseMessage> ResponseMessages { get; }

The list of rich messages returned to the client. Responses vary from
simple text messages to more sophisticated, structured payloads used
to drive complex logic.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldResponseMessage` |   |

### SentimentAnalysisResult

    public SentimentAnalysisResult SentimentAnalysisResult { get; set; }

The sentiment analyss result, which depends on
\[`analyze_query_text_sentiment`\]
\[google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment\],
specified in the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SentimentAnalysisResult` |   |

### Text

    public string Text { get; set; }

If \[natural language text\]\[google.cloud.dialogflow.cx.v3.TextInput\] was
provided as input, this field will contain a copy of the text.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TraceBlocks

    public RepeatedField<TraceBlock> TraceBlocks { get; }

Optional. Contains the sequence of trace blocks from the current
conversation turn. Trace blocks are ordered chronologically and contain
detailed traces of runtime behavior such as tool calls, LLM calls, flow and
playbook invocations, agent utterances and user utterances.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldTraceBlock` |   |

### Transcript

    public string Transcript { get; set; }

If \[natural language speech
audio\]\[google.cloud.dialogflow.cx.v3.AudioInput\] was provided as input,
this field will contain the transcript for the audio.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TriggerEvent

    public string TriggerEvent { get; set; }

If an \[event\]\[google.cloud.dialogflow.cx.v3.EventInput\] was provided as
input, this field will contain the name of the event.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TriggerIntent

    public string TriggerIntent { get; set; }

If an \[intent\]\[google.cloud.dialogflow.cx.v3.IntentInput\] was provided as
input, this field will contain a copy of the intent identifier. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TriggerIntentAsIntentName

    public IntentName TriggerIntentAsIntentName { get; set; }

[IntentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.IntentName.md.txt)-typed view over the [TriggerIntent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.QueryResult.md.txt#Google_Cloud_Dialogflow_Cx_V3_QueryResult_TriggerIntent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IntentName` |   |

### WebhookPayloads

    public RepeatedField<Struct> WebhookPayloads { get; }

The list of webhook payload in
\[WebhookResponse.payload\]\[google.cloud.dialogflow.cx.v3.WebhookResponse.payload\],
in the order of call sequence. If some webhook call fails or doesn't return
any payload, an empty `Struct` would be used instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldStruct` |   |

### WebhookStatuses

    public RepeatedField<Status> WebhookStatuses { get; }

The list of webhook call status in the order of call sequence.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldStatus` |   |