Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue

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 a value for an intent parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue

Returns a new instance of GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue.



2917
2918
2919
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2917

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

Instance Attribute Details

#original_valueString

Always present. Original text value extracted from user utterance. Corresponds to the JSON property originalValue

Returns:

  • (String)


2909
2910
2911
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2909

def original_value
  @original_value
end

#resolved_valueObject

Always present. Structured value for the parameter extracted from user utterance. Corresponds to the JSON property resolvedValue

Returns:

  • (Object)


2915
2916
2917
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2915

def resolved_value
  @resolved_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2922
2923
2924
2925
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2922

def update!(**args)
  @original_value = args[:original_value] if args.key?(:original_value)
  @resolved_value = args[:resolved_value] if args.key?(:resolved_value)
end