Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3QueryInput

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) ⇒ GoogleCloudDialogflowCxV3QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3QueryInput.



1992
1993
1994
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1992

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AudioInput

Corresponds to the JSON property audio



1960
1961
1962
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1960

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3DtmfInput

Corresponds to the JSON property dtmf



1965
1966
1967
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1965

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3EventInput

Corresponds to the JSON property event



1970
1971
1972
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1970

def event
  @event
end

#intentGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3IntentInput

Corresponds to the JSON property intent



1975
1976
1977
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1975

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


1980
1981
1982
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1980

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput

Corresponds to the JSON property text



1985
1986
1987
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1985

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResult

Corresponds to the JSON property toolCallResult



1990
1991
1992
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1990

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1997
1998
1999
2000
2001
2002
2003
2004
2005
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 1997

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @dtmf = args[:dtmf] if args.key?(:dtmf)
  @event = args[:event] if args.key?(:event)
  @intent = args[:intent] if args.key?(:intent)
  @language_code = args[:language_code] if args.key?(:language_code)
  @text = args[:text] if args.key?(:text)
  @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
end