Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2TextInput

Returns a new instance of GoogleCloudDialogflowV2TextInput.



17144
17145
17146
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17144

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

Instance Attribute Details

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


17137
17138
17139
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17137

def language_code
  @language_code
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


17142
17143
17144
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17142

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17149
17150
17151
17152
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17149

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