Google Cloud Dialogflow V2 Client - Class AnalyzeContentRequest (1.3.2)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnalyzeContentRequest.

The request message for Participants.AnalyzeContent.

Generated from protobuf message google.cloud.dialogflow.v2.AnalyzeContentRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ participant string

Required. The name of the participant this text comes from. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

↳ text_input Google\Cloud\Dialogflow\V2\TextInput

The natural language text to be processed.

↳ event_input Google\Cloud\Dialogflow\V2\EventInput

An input event to send to Dialogflow.

↳ reply_audio_config Google\Cloud\Dialogflow\V2\OutputAudioConfig

Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling AnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.

↳ query_params Google\Cloud\Dialogflow\V2\QueryParameters

Parameters for a Dialogflow virtual-agent query.

↳ assist_query_params Google\Cloud\Dialogflow\V2\AssistQueryParameters

Parameters for a human assist query.

↳ cx_parameters Google\Protobuf\Struct

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.

↳ 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.

getParticipant

Required. The name of the participant this text comes from.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

Returns
TypeDescription
string

setParticipant

Required. The name of the participant this text comes from.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTextInput

The natural language text to be processed.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\TextInput|null

hasTextInput

setTextInput

The natural language text to be processed.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\TextInput
Returns
TypeDescription
$this

getEventInput

An input event to send to Dialogflow.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\EventInput|null

hasEventInput

setEventInput

An input event to send to Dialogflow.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\EventInput
Returns
TypeDescription
$this

getReplyAudioConfig

Speech synthesis configuration.

The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling AnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\OutputAudioConfig|null

hasReplyAudioConfig

clearReplyAudioConfig

setReplyAudioConfig

Speech synthesis configuration.

The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling AnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\OutputAudioConfig
Returns
TypeDescription
$this

getQueryParams

Parameters for a Dialogflow virtual-agent query.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\QueryParameters|null

hasQueryParams

clearQueryParams

setQueryParams

Parameters for a Dialogflow virtual-agent query.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\QueryParameters
Returns
TypeDescription
$this

getAssistQueryParams

Parameters for a human assist query.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\AssistQueryParameters|null

hasAssistQueryParams

clearAssistQueryParams

setAssistQueryParams

Parameters for a human assist query.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\AssistQueryParameters
Returns
TypeDescription
$this

getCxParameters

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.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasCxParameters

clearCxParameters

setCxParameters

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.

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getRequestId

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.

Returns
TypeDescription
string

setRequestId

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInput

Returns
TypeDescription
string