Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3QueryInput

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

Returns a new instance of GoogleCloudDialogflowCxV3QueryInput.



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

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3AudioInput

Corresponds to the JSON property audio



1948
1949
1950
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1948

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3DtmfInput

Corresponds to the JSON property dtmf



1953
1954
1955
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1953

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3EventInput

Corresponds to the JSON property event



1958
1959
1960
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1958

def event
  @event
end

#intentGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3IntentInput

Corresponds to the JSON property intent



1963
1964
1965
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1963

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


1968
1969
1970
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1968

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3TextInput

Corresponds to the JSON property text



1973
1974
1975
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1973

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ToolCallResult

Corresponds to the JSON property toolCallResult



1978
1979
1980
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1978

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1985
1986
1987
1988
1989
1990
1991
1992
1993
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1985

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