Cloud Translation V3 Client - Class AdaptiveMtSentence (1.17.5)

Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtSentence.

An AdaptiveMt sentence entry.

Generated from protobuf message google.cloud.translation.v3.AdaptiveMtSentence

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}

↳ source_sentence string

Required. The source sentence.

↳ target_sentence string

Required. The target sentence.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp when this sentence was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp when this sentence was last updated.

getName

Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}

Returns
TypeDescription
string

setName

Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceSentence

Required. The source sentence.

Returns
TypeDescription
string

setSourceSentence

Required. The source sentence.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetSentence

Required. The target sentence.

Returns
TypeDescription
string

setTargetSentence

Required. The target sentence.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Timestamp when this sentence was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when this sentence was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Timestamp when this sentence was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when this sentence was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this