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

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

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

## 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 restore into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. |
| `↳ agent_uri` | `string` The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to restore agent from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). |
| `↳ agent_content` | `string` Uncompressed raw byte content for agent. |
| `↳ git_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.RestoreAgentRequest.GitSource` Setting for restoring from a git branch |
| `↳ restore_option` | `int` Agent restore mode. If not specified, `KEEP` is assumed. |

### getName

Required. The name of the agent to restore into.

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

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

### setName

Required. The name of the agent to restore into.

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

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

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

### getAgentUri

The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
to restore agent from. The format of this URI must be
`gs://<bucket-name>/<object-name>`.

Dialogflow performs a read operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have read 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` |   |

### hasAgentUri

### setAgentUri

The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
to restore agent from. The format of this URI must be
`gs://<bucket-name>/<object-name>`.

Dialogflow performs a read operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have read 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` |   |

### getAgentContent

Uncompressed raw byte content for agent.

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

### hasAgentContent

### setAgentContent

Uncompressed raw byte content for agent.

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

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

### getGitSource

Setting for restoring from a git branch

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

### hasGitSource

### setGitSource

Setting for restoring from a git branch

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

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

### getRestoreOption

Agent restore mode. If not specified, `KEEP` is assumed.

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

### setRestoreOption

Agent restore mode. If not specified, `KEEP` is assumed.

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

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

### getAgent

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