Cloud Translation V3 Client - Class InputFile (1.18.0)

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

An input file.

Generated from protobuf message google.cloud.translation.v3.DatasetInputConfig.InputFile

Namespace

Google \ Cloud \ Translate \ V3 \ DatasetInputConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ usage string

Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or UNASSIGNED (by default) for auto split.

↳ gcs_source Google\Cloud\Translate\V3\GcsInputSource

Google Cloud Storage file source.

getUsage

Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or UNASSIGNED (by default) for auto split.

Returns
Type Description
string

setUsage

Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or UNASSIGNED (by default) for auto split.

Parameter
Name Description
var string
Returns
Type Description
$this

getGcsSource

Google Cloud Storage file source.

Returns
Type Description
Google\Cloud\Translate\V3\GcsInputSource|null

hasGcsSource

setGcsSource

Google Cloud Storage file source.

Parameter
Name Description
var Google\Cloud\Translate\V3\GcsInputSource
Returns
Type Description
$this

getSource

Returns
Type Description
string