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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentInput

Returns a new instance of GoogleCloudDialogflowV2beta1IntentInput.



15474
15475
15476
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15474

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

Instance Attribute Details

#intentString

Corresponds to the JSON property intent

Returns:

  • (String)


15467
15468
15469
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15467

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


15472
15473
15474
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15472

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15479
15480
15481
15482
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15479

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