Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentRequest

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

Overview

The request message for Participants.AnalyzeContent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnalyzeContentRequest

Returns a new instance of GoogleCloudDialogflowV2beta1AnalyzeContentRequest.



12723
12724
12725
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12723

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

Instance Attribute Details

#assist_query_paramsGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters

Represents the parameters of human assist query. Corresponds to the JSON property assistQueryParams



12640
12641
12642
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12640

def assist_query_params
  @assist_query_params
end

#audio_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput

Represents the natural language speech audio to be processed. Corresponds to the JSON property audioInput



12645
12646
12647
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12645

def audio_input
  @audio_input
end

#cx_current_pageString

The unique identifier of the Dialogflow 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

Returns:

  • (String)


12656
12657
12658
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12656

def cx_current_page
  @cx_current_page
end

#cx_parametersHash<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

Returns:

  • (Hash<String,Object>)


12664
12665
12666
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12664

def cx_parameters
  @cx_parameters
end

#event_inputGoogle::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`



12672
12673
12674
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12672

def event_input
  @event_input
end

#intent_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput

Represents the intent to trigger programmatically rather than as a result of natural language processing. The intent input is only used for V3 agent. Corresponds to the JSON property intentInput



12678
12679
12680
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12678

def intent_input
  @intent_input
end

#message_send_timeString

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. For BatchCreateMessages API only: 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

Returns:

  • (String)


12692
12693
12694
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12692

def message_send_time
  @message_send_time
end

#query_paramsGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters

Represents the parameters of the conversational query. Corresponds to the JSON property queryParams



12697
12698
12699
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12697

def query_params
  @query_params
end

#reply_audio_configGoogle::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



12704
12705
12706
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12704

def reply_audio_config
  @reply_audio_config
end

#request_idString

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

Returns:

  • (String)


12711
12712
12713
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12711

def request_id
  @request_id
end

#suggestion_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput

Represents the action to take for a tool call that requires confirmation. Corresponds to the JSON property suggestionInput



12716
12717
12718
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12716

def suggestion_input
  @suggestion_input
end

#text_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput

Represents the natural language text to be processed. Corresponds to the JSON property textInput



12721
12722
12723
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12721

def text_input
  @text_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12728

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)
  @intent_input = args[:intent_input] if args.key?(:intent_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