Cloud Translation V3 Client - Class AdaptiveMtDataset (1.17.5)

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

An Adaptive MT Dataset.

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

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 dataset, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}

↳ display_name string

The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

↳ source_language_code string

The BCP-47 language code of the source language.

↳ target_language_code string

The BCP-47 language code of the target language.

↳ example_count int

The number of examples in the dataset.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp when this dataset was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp when this dataset was last updated.

getName

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

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

Returns
TypeDescription
string

setDisplayName

The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceLanguageCode

The BCP-47 language code of the source language.

Returns
TypeDescription
string

setSourceLanguageCode

The BCP-47 language code of the source language.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetLanguageCode

The BCP-47 language code of the target language.

Returns
TypeDescription
string

setTargetLanguageCode

The BCP-47 language code of the target language.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExampleCount

The number of examples in the dataset.

Returns
TypeDescription
int

setExampleCount

The number of examples in the dataset.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Output only. Timestamp when this dataset was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when this dataset was created.

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

getUpdateTime

Output only. Timestamp when this dataset was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when this dataset was last updated.

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