Cloud Translation V3 Client - Class TransferResourceResponse (1.20.0)

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 Google\Rpc\Status

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
Google\Rpc\Status|null

hasError

clearError

setError

The error result in case of failure.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this