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.



15621
15622
15623
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15621

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

Instance Attribute Details

#intentString

Corresponds to the JSON property intent

Returns:

  • (String)


15614
15615
15616
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15614

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


15619
15620
15621
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15619

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15626
15627
15628
15629
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15626

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