Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent

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

Overview

Stores the matched intent, which is the result of the intent match action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent

Returns a new instance of GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent.



4251
4252
4253
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4251

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


4234
4235
4236
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4234

def display_name
  @display_name
end

#generative_fallbackHash<String,Object>

The generative fallback response of the matched intent. Corresponds to the JSON property generativeFallback

Returns:

  • (Hash<String,Object>)


4239
4240
4241
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4239

def generative_fallback
  @generative_fallback
end

#intent_idString

The ID of the matched intent. Corresponds to the JSON property intentId

Returns:

  • (String)


4244
4245
4246
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4244

def intent_id
  @intent_id
end

#scoreFloat

The score of the matched intent. Corresponds to the JSON property score

Returns:

  • (Float)


4249
4250
4251
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4249

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4256
4257
4258
4259
4260
4261
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4256

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @generative_fallback = args[:generative_fallback] if args.key?(:generative_fallback)
  @intent_id = args[:intent_id] if args.key?(:intent_id)
  @score = args[:score] if args.key?(:score)
end