# Google Cloud Dialogflow Cx V3 Client - Class Deployment (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 Deployment.

Represents a deployment in an environment. A deployment happens when a flow
version configured to be active in the environment. You can configure running
pre-deployment steps, e.g. running validation test cases, experiment
auto-rollout, etc.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the deployment. Format: projects/ |
| `↳ flow_version` | `string` The name of the flow version for this deployment. Format: projects/ |
| `↳ state` | `int` The current state of the deployment. |
| `↳ result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Deployment.Result` Result of the deployment. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Start time of this deployment. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` End time of this deployment. |

### getName

The name of the deployment.

Format:
projects/


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

### setName

The name of the deployment.

Format:
projects/


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

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

### getFlowVersion

The name of the flow version for this deployment.

Format:
projects/


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

### setFlowVersion

The name of the flow version for this deployment.

Format:
projects/


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

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

### getState

The current state of the deployment.

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

### setState

The current state of the deployment.

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

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

### getResult

Result of the deployment.

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

### hasResult

### clearResult

### setResult

Result of the deployment.

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

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

### getStartTime

Start time of this deployment.

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

### hasStartTime

### clearStartTime

### setStartTime

Start time of this deployment.

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

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

### getEndTime

End time of this deployment.

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

### hasEndTime

### clearEndTime

### setEndTime

End time of this deployment.

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

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