# Cloud Translation V3 Client - Class TransferResourceResponse (2.3.0)

2.3.0 (latest) 2.2.0 2.1.2 2.0.3 1.21.0 1.20.2 1.19.0 1.18.1 1.17.7 1.16.0 1.15.4 1.14.3 1.13.3 1.12.12 Reference documentation and code samples for the Cloud Translation V3 Client class TransferResourceResponse.

Transfer response for a single resource.

Generated from protobuf message `google.cloud.translation.v3.BatchTransferResourcesResponse.TransferResourceResponse`

## Namespace

Google \\ Cloud \\ Translate \\ V3 \\ BatchTransferResourcesResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `string` Full name of the resource to transfer as specified in the request. |
| `↳ target` | `string` Full name of the new resource successfully transferred from the source hosted by Translation API. Target will be empty if the transfer failed. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` The error result in case of failure. |

### getSource

Full name of the resource to transfer as specified in the request.

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

### setSource

Full name of the resource to transfer as specified in the request.

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

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

### getTarget

Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.

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

### setTarget

Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.

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

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

### getError

The error result in case of failure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

The error result in case of failure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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