Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput

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

Overview

Represents the intent to trigger programmatically rather than as a result of natural language processing. The intent input is only used for V3 agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentInput

Returns a new instance of GoogleCloudDialogflowV2beta1IntentInput.



14197
14198
14199
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14197

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

Instance Attribute Details

#intentString

Required. The unique identifier of the intent in V3 agent. Format: projects// locations//locations//agents//intents/. Corresponds to the JSON property intent

Returns:

  • (String)


14188
14189
14190
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14188

def intent
  @intent
end

#language_codeString

Required. The language of this conversational query. See Language Support for a list of the currently supported language codes. Corresponds to the JSON property languageCode

Returns:

  • (String)


14195
14196
14197
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14195

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14202
14203
14204
14205
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14202

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