Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Represents intent information communicated to the webhook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequestIntentInfo

Returns a new instance of GoogleCloudDialogflowCxV3WebhookRequestIntentInfo.



3373
3374
3375
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3373

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidenceFloat

The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). Corresponds to the JSON property confidence

Returns:

  • (Float)


3352
3353
3354
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3352

def confidence
  @confidence
end

#display_nameString

Always present. The display name of the last matched intent. Corresponds to the JSON property displayName

Returns:

  • (String)


3357
3358
3359
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3357

def display_name
  @display_name
end

#last_matched_intentString

Always present. The unique identifier of the last matched intent. Format: projects//locations//agents//intents/. Corresponds to the JSON property lastMatchedIntent

Returns:

  • (String)


3363
3364
3365
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3363

def last_matched_intent
  @last_matched_intent
end

#parametersHash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue>

Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here. Corresponds to the JSON property parameters



3371
3372
3373
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3371

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3378
3379
3380
3381
3382
3383
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3378

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @display_name = args[:display_name] if args.key?(:display_name)
  @last_matched_intent = args[:last_matched_intent] if args.key?(:last_matched_intent)
  @parameters = args[:parameters] if args.key?(:parameters)
end