0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class SessionInput.

Input for the session.

Generated from protobuf message `google.cloud.ces.v1.SessionInput`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `string` Optional. Text data from the end user. |
| `↳ dtmf` | `string` Optional. DTMF digits from the end user. |
| `↳ audio` | `string` Optional. Audio data from the end user. |
| `↳ tool_responses` | `ToolResponses` Optional. Execution results for the tool calls from the client. |
| `↳ image` | `Image` Optional. Image data from the end user. |
| `↳ blob` | `Blob` Optional. Blob data from the end user. |
| `↳ variables` | `Google\Protobuf\Struct` Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters. |
| `↳ event` | `Event` Optional. Event input. |
| `↳ will_continue` | `bool` Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When set to `true`, the agent defers processing until it receives a subsequent message where `will_continue` is `false`, or until the system detects an endpoint in the audio input. NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal. |

### getText

Optional. Text data from the end user.

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

### hasText

### setText

Optional. Text data from the end user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getDtmf

Optional. DTMF digits from the end user.

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

### hasDtmf

### setDtmf

Optional. DTMF digits from the end user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getAudio

Optional. Audio data from the end user.

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

### hasAudio

### setAudio

Optional. Audio data from the end user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getToolResponses

Optional. Execution results for the tool calls from the client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ToolResponses|null` |   |

### hasToolResponses

### setToolResponses

Optional. Execution results for the tool calls from the client.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ToolResponses` |

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

### getImage

Optional. Image data from the end user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Image|null` |   |

### hasImage

### setImage

Optional. Image data from the end user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Image` |

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

### getBlob

Optional. Blob data from the end user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Blob|null` |   |

### hasBlob

### setBlob

Optional. Blob data from the end user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Blob` |

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

### getVariables

Optional. Contextual variables for the session, keyed by name. Only
variables declared in the app will be used by the CES agent.

Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasVariables

### setVariables

Optional. Contextual variables for the session, keyed by name. Only
variables declared in the app will be used by the CES agent.

Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

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

### getEvent

Optional. Event input.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Event|null` |   |

### hasEvent

### setEvent

Optional. Event input.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Event` |

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

### getWillContinue

Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session.

When set to `true`, the agent defers processing until it receives a
subsequent message where `will_continue` is `false`, or until the system
detects an endpoint in the audio input.
NOTE: This field does not apply to audio and DTMF inputs, as they are
always processed automatically based on the endpointing signal.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setWillContinue

Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session.

When set to `true`, the agent defers processing until it receives a
subsequent message where `will_continue` is `false`, or until the system
detects an endpoint in the audio input.
NOTE: This field does not apply to audio and DTMF inputs, as they are
always processed automatically based on the endpointing signal.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getInputType

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