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.



15721
15722
15723
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15721

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

Instance Attribute Details

#intentString

Corresponds to the JSON property intent

Returns:

  • (String)


15714
15715
15716
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15714

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


15719
15720
15721
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15719

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15726
15727
15728
15729
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15726

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