Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentRequest
- 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
Overview
The request message for Participants.AnalyzeContent.
Instance Attribute Summary collapse
-
#audio ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio
Represents the natural language speech audio to be processed.
-
#audio_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput
Represents the natural language speech audio to be processed.
-
#event_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput
Events allow for matching intents by event name instead of the natural language input.
-
#message_send_time ⇒ String
Optional.
-
#query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters
Represents the parameters of the conversational query.
-
#reply_audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig
Instructs the speech synthesizer how to generate the output audio content.
-
#request_id ⇒ String
A unique identifier for this request.
-
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText
Represents the natural language text to be processed.
-
#text_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnalyzeContentRequest
constructor
A new instance of GoogleCloudDialogflowV2beta1AnalyzeContentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnalyzeContentRequest
Returns a new instance of GoogleCloudDialogflowV2beta1AnalyzeContentRequest.
7379 7380 7381 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio
Represents the natural language speech audio to be processed.
Corresponds to the JSON property audio
7322 7323 7324 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7322 def audio @audio end |
#audio_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput
Represents the natural language speech audio to be processed.
Corresponds to the JSON property audioInput
7327 7328 7329 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7327 def audio_input @audio_input end |
#event_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput
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`
7335 7336 7337 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7335 def event_input @event_input end |
#message_send_time ⇒ String
Optional. The send time of the message from end user or human agent's perspective. It is used for identifying the same message under one participant. Given two messages under the same participant: - If send time are different regardless of whether the content of the messages are exactly the same, the conversation will regard them as two distinct messages sent by the participant.
- If send time is the same regardless of whether the content of the messages
are exactly the same, the conversation will regard them as same message, and
ignore the message received later. If the value is not provided, a new request
will always be regarded as a new message without any de-duplication.
Corresponds to the JSON property
messageSendTime
7348 7349 7350 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7348 def @message_send_time end |
#query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters
Represents the parameters of the conversational query.
Corresponds to the JSON property queryParams
7353 7354 7355 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7353 def query_params @query_params end |
#reply_audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig
Instructs the speech synthesizer 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
7360 7361 7362 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7360 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
7367 7368 7369 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7367 def request_id @request_id end |
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText
Represents the natural language text to be processed.
Corresponds to the JSON property text
7372 7373 7374 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7372 def text @text end |
#text_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property textInput
7377 7378 7379 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7377 def text_input @text_input end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7384 def update!(**args) @audio = args[:audio] if args.key?(:audio) @audio_input = args[:audio_input] if args.key?(:audio_input) @event_input = args[:event_input] if args.key?(:event_input) @message_send_time = args[:message_send_time] if args.key?(:message_send_time) @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 = args[:text] if args.key?(:text) @text_input = args[:text_input] if args.key?(:text_input) end |