# Google Cloud Dialogflow V2 Client - Class InternalServiceLatency (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 InternalServiceLatency.

Message to represent the latency of an internal service.

Generated from protobuf message `google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2 \\ ServiceLatency

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step` | `string` The name of the internal service. |
| `↳ latency_ms` | `float` The latency of the internal service in milliseconds. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The start time of the internal service. |
| `↳ complete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The completion time of the internal service. |

### getStep

The name of the internal service.

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

### setStep

The name of the internal service.

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

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

### getLatencyMs

The latency of the internal service in milliseconds.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setLatencyMs

The latency of the internal service in milliseconds.

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

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

### getStartTime

The start time of the internal service.

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

### hasStartTime

### clearStartTime

### setStartTime

The start time of the internal service.

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

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

### getCompleteTime

The completion time of the internal service.

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

### hasCompleteTime

### clearCompleteTime

### setCompleteTime

The completion time of the internal service.

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

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