# Google Cloud Dialogflow Cx V3 Client - Class TraceBlock (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TraceBlock.

The trace block tracks a sequence of actions taken by the agent in a flow or
a playbook.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.TraceBlock`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ playbook_trace_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PlaybookTraceMetadata` Metadata of the playbook trace. |
| `↳ flow_trace_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.FlowTraceMetadata` Metadata of the flow trace. |
| `↳ speech_processing_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SpeechProcessingMetadata` Metadata of the speech-to-text and speech-to-text processing. |
| `↳ actions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Action>` The actions performed by the agent and the user during this session. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of the start of the trace block. |
| `↳ complete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of the end of the trace block. |
| `↳ input_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. A list of input parameters of the trace block. |
| `↳ output_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. A list of output parameters of the trace block. |
| `↳ end_state` | `int` Optional. Output only. The end state of the trace block. |

### getPlaybookTraceMetadata

Metadata of the playbook trace.

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

### hasPlaybookTraceMetadata

### setPlaybookTraceMetadata

Metadata of the playbook trace.

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

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

### getFlowTraceMetadata

Metadata of the flow trace.

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

### hasFlowTraceMetadata

### setFlowTraceMetadata

Metadata of the flow trace.

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

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

### getSpeechProcessingMetadata

Metadata of the speech-to-text and speech-to-text processing.

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

### hasSpeechProcessingMetadata

### setSpeechProcessingMetadata

Metadata of the speech-to-text and speech-to-text processing.

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

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

### getActions

The actions performed by the agent and the user during this session.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Action>` |   |

### setActions

The actions performed by the agent and the user during this session.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Action>` |

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

### getStartTime

Output only. Timestamp of the start of the trace block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Output only. Timestamp of the start of the trace block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getCompleteTime

Output only. Timestamp of the end of the trace block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCompleteTime

### clearCompleteTime

### setCompleteTime

Output only. Timestamp of the end of the trace block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getInputParameters

Optional. A list of input parameters of the trace block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasInputParameters

### clearInputParameters

### setInputParameters

Optional. A list of input parameters of the trace block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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

### getOutputParameters

Optional. A list of output parameters of the trace block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasOutputParameters

### clearOutputParameters

### setOutputParameters

Optional. A list of output parameters of the trace block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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

### getEndState

Optional. Output only. The end state of the trace block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [OutputState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.OutputState). |

### setEndState

Optional. Output only. The end state of the trace block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [OutputState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.OutputState). |

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

### getTraceMetadata

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