# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::Match (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::Match.

Represents one match result of \[MatchIntent\]\[\].

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- 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.

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- 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.
**Returns**

- (::Float) --- 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.

### #event

    def event() -> ::String

**Returns**

- (::String) --- The event that matched the query. Filled for [`EVENT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)"), [`NO_MATCH`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") and [`NO_INPUT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match types.

### #event=

    def event=(value) -> ::String

**Parameter**

- **value** (::String) --- The event that matched the query. Filled for [`EVENT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)"), [`NO_MATCH`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") and [`NO_INPUT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match types.
**Returns**

- (::String) --- The event that matched the query. Filled for [`EVENT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)"), [`NO_MATCH`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") and [`NO_INPUT`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match types.

### #intent

    def intent() -> ::Google::Cloud::Dialogflow::CX::V3::Intent

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") 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`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match type.

### #intent=

    def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Intent

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") 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`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match type.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent)) --- The [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)") 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`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType "Google::Cloud::Dialogflow::CX::V3::Match::MatchType (module)") match type.

### #match_type

    def match_type() -> ::Google::Cloud::Dialogflow::CX::V3::Match::MatchType

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Match::MatchType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType)) --- Type of this [Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match "Google::Cloud::Dialogflow::CX::V3::Match (class)").

### #match_type=

    def match_type=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Match::MatchType

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Match::MatchType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType)) --- Type of this [Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match "Google::Cloud::Dialogflow::CX::V3::Match (class)").
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Match::MatchType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match-MatchType)) --- Type of this [Match](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Match "Google::Cloud::Dialogflow::CX::V3::Match (class)").

### #parameters

    def parameters() -> ::Google::Protobuf::Struct

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  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.

### #parameters=

    def parameters=(value) -> ::Google::Protobuf::Struct

**Parameter**

- **value** ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  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.
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Struct)) ---

  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.

### #resolved_input

    def resolved_input() -> ::String

**Returns**

- (::String) --- 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.

### #resolved_input=

    def resolved_input=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.