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
-
#assist_query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters
Represents the parameters of human assist query.
-
#audio_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput
Represents the natural language speech audio to be processed.
-
#cx_current_page ⇒ String
The unique identifier of the CX page to override the
current_page
in the session. -
#cx_parameters ⇒ Hash<String,Object>
Additional parameters to be put into Dialogflow CX session parameters.
-
#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.
-
#suggestion_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput
Represents the selection of a suggestion.
-
#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.
9491 9492 9493 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9491 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assist_query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters
Represents the parameters of human assist query.
Corresponds to the JSON property assistQueryParams
9415 9416 9417 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9415 def assist_query_params @assist_query_params end |
#audio_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput
Represents the natural language speech audio to be processed.
Corresponds to the JSON property audioInput
9420 9421 9422 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9420 def audio_input @audio_input end |
#cx_current_page ⇒ String
The unique identifier of the CX page to override the current_page
in the
session. Format: projects//locations//agents//flows//pages/
. If `
cx_current_page is specified, the previous state of the session will be
ignored by Dialogflow CX, including the previous page and the previous session
parameters. In most cases,
cx_current_page and
cx_parameters should be
configured together to direct a session to a specific state. Note: this field
should only be used if you are connecting to a Dialogflow CX agent.
Corresponds to the JSON property
cxCurrentPage`
9431 9432 9433 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9431 def cx_current_page @cx_current_page end |
#cx_parameters ⇒ Hash<String,Object>
Additional parameters to be put into Dialogflow CX session parameters. To
remove a parameter from the session, clients should explicitly set the
parameter value to null. Note: this field should only be used if you are
connecting to a Dialogflow CX agent.
Corresponds to the JSON property cxParameters
9439 9440 9441 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9439 def cx_parameters @cx_parameters 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 parameter name
may be used by the agent in the response: "
Hello #welcome_event.name! What can I do for you today?"
.
Corresponds to the JSON property eventInput
9447 9448 9449 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9447 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
9460 9461 9462 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9460 def @message_send_time end |
#query_params ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters
Represents the parameters of the conversational query.
Corresponds to the JSON property queryParams
9465 9466 9467 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9465 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
9472 9473 9474 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9472 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
9479 9480 9481 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9479 def request_id @request_id end |
#suggestion_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput
Represents the selection of a suggestion.
Corresponds to the JSON property suggestionInput
9484 9485 9486 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9484 def suggestion_input @suggestion_input end |
#text_input ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property textInput
9489 9490 9491 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9489 def text_input @text_input end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9496 def update!(**args) @assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params) @audio_input = args[:audio_input] if args.key?(:audio_input) @cx_current_page = args[:cx_current_page] if args.key?(:cx_current_page) @cx_parameters = args[:cx_parameters] if args.key?(:cx_parameters) @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) @suggestion_input = args[:suggestion_input] if args.key?(:suggestion_input) @text_input = args[:text_input] if args.key?(:text_input) end |