Dialogflow v3 API - Class Match (2.3.0)

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

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

Represents one match result of [MatchIntent][].

Inheritance

Object > Match

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

Match()

public Match()

Match(Match)

public Match(Match other)
Parameter
NameDescription
otherMatch

Properties

Confidence

public float Confidence { get; set; }

The confidence of this match. 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.

Property Value
TypeDescription
Single

Event

public string Event { get; set; }

The event that matched the query. Filled for [EVENT][google.cloud.dialogflow.cx.v3.Match.MatchType], [NO_MATCH][google.cloud.dialogflow.cx.v3.Match.MatchType] and [NO_INPUT][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.

Property Value
TypeDescription
String

Intent

public Intent Intent { get; set; }

The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in this message, including but not limited to: name and display_name. Only filled for [INTENT][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.

Property Value
TypeDescription
Intent

MatchType

public Match.Types.MatchType MatchType { get; set; }

Type of this [Match][google.cloud.dialogflow.cx.v3.Match].

Property Value
TypeDescription
Match.Types.MatchType

Parameters

public Struct Parameters { get; set; }

The collection of parameters extracted from the query.

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
TypeDescription
Struct

ResolvedInput

public string ResolvedInput { get; set; }

Final text input which was matched during MatchIntent. This value can be different from original input sent in request because of spelling correction or other processing.

Property Value
TypeDescription
String