# Google Cloud Dialogflow V2 Client - Class AnalyzeContentRequest (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnalyzeContentRequest.

The request message for
[Participants.AnalyzeContent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.ParticipantsClient#_Google_Cloud_Dialogflow_V2_Client_ParticipantsClient__analyzeContent__).

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

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.TextInput` The natural language text to be processed. |
| `↳ audio_input` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AudioInput` The natural language speech audio to be processed. |
| `↳ event_input` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.EventInput` An input event to send to Dialogflow. |
| `↳ suggestion_input` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionInput` An input representing the selection of a suggestion. |
| `↳ reply_audio_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.QueryParameters` Parameters for a Dialogflow virtual-agent query. |
| `↳ assist_query_params` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AssistQueryParameters` Parameters for a human assist query. |
| `↳ cx_parameters` | `https://protobuf.dev/reference/php/api-docs/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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTextInput

The natural language text to be processed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.TextInput|null` |   |

### hasTextInput

### setTextInput

The natural language text to be processed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.TextInput` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAudioInput

The natural language speech audio to be processed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AudioInput|null` |   |

### hasAudioInput

### setAudioInput

The natural language speech audio to be processed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AudioInput` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEventInput

An input event to send to Dialogflow.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.EventInput|null` |   |

### hasEventInput

### setEventInput

An input event to send to Dialogflow.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.EventInput` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSuggestionInput

An input representing the selection of a suggestion.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionInput|null` |   |

### hasSuggestionInput

### setSuggestionInput

An input representing the selection of a suggestion.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionInput` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/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** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.OutputAudioConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQueryParams

Parameters for a Dialogflow virtual-agent query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.QueryParameters|null` |   |

### hasQueryParams

### clearQueryParams

### setQueryParams

Parameters for a Dialogflow virtual-agent query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.QueryParameters` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAssistQueryParams

Parameters for a human assist query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AssistQueryParameters|null` |   |

### hasAssistQueryParams

### clearAssistQueryParams

### setAssistQueryParams

Parameters for a human assist query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AssistQueryParameters` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/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** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInput

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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>`. Please see ParticipantsClient::participantName() for help formatting this field. |
| `textInput` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.TextInput` The natural language text to be processed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentRequest` |   |

### static::buildFromParticipantEventInput

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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>`. Please see ParticipantsClient::participantName() for help formatting this field. |
| `eventInput` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.EventInput` An input event to send to Dialogflow. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentRequest` |   |

### static::buildFromParticipantAudioInput

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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>`. Please see ParticipantsClient::participantName() for help formatting this field. |
| `audioInput` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AudioInput` The natural language speech audio to be processed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentRequest` |   |