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

The request message for
[Agents.ExportAgent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Client.AgentsClient#_Google_Cloud_Dialogflow_Cx_V3_Client_AgentsClient__exportAgent__).

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the agent to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. |
| `↳ agent_uri` | `string` Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If left unspecified, the serialized agent is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). |
| `↳ data_format` | `int` Optional. The data format of the exported agent. If not specified, `BLOB` is assumed. |
| `↳ environment` | `string` Optional. Environment name. If not set, draft environment is assumed. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. |
| `↳ git_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ExportAgentRequest.GitDestination` Optional. The Git branch to export the agent to. |
| `↳ include_bigquery_export_settings` | `bool` Optional. Whether to include BigQuery Export setting. |

### getName

Required. The name of the agent to export.

Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

### setName

Required. The name of the agent to export.

Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

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

### getAgentUri

Optional. The [Google Cloud
Storage](https://cloud.google.com/storage/docs/) URI to export the agent
to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
left unspecified, the serialized agent is returned inline.

Dialogflow performs a write operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have write permissions for the object. For more information, see
[Dialogflow access
control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).

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

### setAgentUri

Optional. The [Google Cloud
Storage](https://cloud.google.com/storage/docs/) URI to export the agent
to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
left unspecified, the serialized agent is returned inline.

Dialogflow performs a write operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have write permissions for the object. For more information, see
[Dialogflow access
control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).

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

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

### getDataFormat

Optional. The data format of the exported agent. If not specified, `BLOB`
is assumed.

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

### setDataFormat

Optional. The data format of the exported agent. If not specified, `BLOB`
is assumed.

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

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

### getEnvironment

Optional. Environment name. If not set, draft environment is assumed.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.

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

### setEnvironment

Optional. Environment name. If not set, draft environment is assumed.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.

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

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

### getGitDestination

Optional. The Git branch to export the agent to.

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

### hasGitDestination

### clearGitDestination

### setGitDestination

Optional. The Git branch to export the agent to.

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

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

### getIncludeBigqueryExportSettings

Optional. Whether to include BigQuery Export setting.

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

### setIncludeBigqueryExportSettings

Optional. Whether to include BigQuery Export setting.

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

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