Cloud Translation V3 Client - Class FileInputSource (1.18.0)

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

An inlined file.

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

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mime_type string

Required. The file's mime type.

↳ content string

Required. The file's byte contents.

↳ display_name string

Required. The file's display name.

getMimeType

Required. The file's mime type.

Returns
Type Description
string

setMimeType

Required. The file's mime type.

Parameter
Name Description
var string
Returns
Type Description
$this

getContent

Required. The file's byte contents.

Returns
Type Description
string

setContent

Required. The file's byte contents.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. The file's display name.

Returns
Type Description
string

setDisplayName

Required. The file's display name.

Parameter
Name Description
var string
Returns
Type Description
$this