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.



15672
15673
15674
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15672

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

Instance Attribute Details

#intentString

Corresponds to the JSON property intent

Returns:

  • (String)


15665
15666
15667
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15665

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


15670
15671
15672
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15670

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15677
15678
15679
15680
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15677

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