Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnalyzeContentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnalyzeContentRequest
- 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
Overview
The request message for Participants.AnalyzeContent.
Instance Attribute Summary collapse
-
#audio_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AudioInput
Represents the natural language speech audio to be processed.
-
#event_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput
Events allow for matching intents by event name instead of the natural language input.
-
#query_params ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters
Represents the parameters of the conversational query.
-
#reply_audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig
Instructs the speech synthesizer on how to generate the output audio content.
-
#request_id ⇒ String
A unique identifier for this request.
-
#text_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
Represents the natural language text to be processed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2AnalyzeContentRequest
constructor
A new instance of GoogleCloudDialogflowV2AnalyzeContentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2AnalyzeContentRequest
Returns a new instance of GoogleCloudDialogflowV2AnalyzeContentRequest.
4956 4957 4958 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4956 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AudioInput
Represents the natural language speech audio to be processed.
Corresponds to the JSON property audioInput
4922 4923 4924 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4922 def audio_input @audio_input end |
#event_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput
Events allow for matching intents by event name instead of the natural
language input. For instance, input `can trigger a personalized welcome
response. The parameternamemay be used by the agent in the response:"
Hello #welcome_event.name! What can I do for you today?".
Corresponds to the JSON propertyeventInput`
4930 4931 4932 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4930 def event_input @event_input end |
#query_params ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters
Represents the parameters of the conversational query.
Corresponds to the JSON property queryParams
4935 4936 4937 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4935 def query_params @query_params end |
#reply_audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig
Instructs the speech synthesizer on how to generate the output audio content.
If this audio config is supplied in a request, it overrides all existing text-
to-speech settings applied to the agent.
Corresponds to the JSON property replyAudioConfig
4942 4943 4944 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4942 def reply_audio_config @reply_audio_config end |
#request_id ⇒ String
A unique identifier for this request. Restricted to 36 ASCII characters. A
random UUID is recommended. This request is only idempotent if a request_id
is provided.
Corresponds to the JSON property requestId
4949 4950 4951 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4949 def request_id @request_id end |
#text_input ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property textInput
4954 4955 4956 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4954 def text_input @text_input end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4961 4962 4963 4964 4965 4966 4967 4968 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4961 def update!(**args) @audio_input = args[:audio_input] if args.key?(:audio_input) @event_input = args[:event_input] if args.key?(:event_input) @query_params = args[:query_params] if args.key?(:query_params) @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config) @request_id = args[:request_id] if args.key?(:request_id) @text_input = args[:text_input] if args.key?(:text_input) end |