Cloud Translation V3 Client - Class AdaptiveMtFile (1.17.5)

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

An AdaptiveMtFile.

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
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}

↳ display_name string

The file's display name.

↳ entry_count int

The number of entries that the file contains.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp when this file was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp when this file 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}

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

The file's display name.

Returns
Type Description
string

setDisplayName

The file's display name.

Parameter
Name Description
var string
Returns
Type Description
$this

getEntryCount

The number of entries that the file contains.

Returns
Type Description
int

setEntryCount

The number of entries that the file contains.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreateTime

Output only. Timestamp when this file was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when this file was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Timestamp when this file was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when this file was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this