class TranslateTextRequest extends Collection (View source)

Properties

protected $collection_key
string[] $contents
protected $glossaryConfigType
protected $glossaryConfigDataType
string[] $labels
string $mimeType
string $model
string $sourceLanguageCode
string $targetLanguageCode
protected $transliterationConfigType
protected $transliterationConfigDataType

Methods

setContents($contents)

No description

string[]
getContents()

No description

setGlossaryConfig(TranslateTextGlossaryConfig $glossaryConfig)

No description

setLabels($labels)

No description

string[]
getLabels()

No description

setMimeType($mimeType)

No description

string
getMimeType()

No description

setModel($model)

No description

string
getModel()

No description

setSourceLanguageCode($sourceLanguageCode)

No description

string
getSourceLanguageCode()

No description

setTargetLanguageCode($targetLanguageCode)

No description

string
getTargetLanguageCode()

No description

setTransliterationConfig(TransliterationConfig $transliterationConfig)

No description

Details

setContents($contents)

No description

Parameters

$contents

string[] getContents()

No description

Return Value

string[]

setGlossaryConfig(TranslateTextGlossaryConfig $glossaryConfig)

No description

Parameters

TranslateTextGlossaryConfig $glossaryConfig

TranslateTextGlossaryConfig getGlossaryConfig()

No description

setLabels($labels)

No description

Parameters

$labels

string[] getLabels()

No description

Return Value

string[]

setMimeType($mimeType)

No description

Parameters

$mimeType

string getMimeType()

No description

Return Value

string

setModel($model)

No description

Parameters

$model

string getModel()

No description

Return Value

string

setSourceLanguageCode($sourceLanguageCode)

No description

Parameters

$sourceLanguageCode

string getSourceLanguageCode()

No description

Return Value

string

setTargetLanguageCode($targetLanguageCode)

No description

Parameters

$targetLanguageCode

string getTargetLanguageCode()

No description

Return Value

string

setTransliterationConfig(TransliterationConfig $transliterationConfig)

No description

Parameters

TransliterationConfig $transliterationConfig

TransliterationConfig getTransliterationConfig()

No description

Return Value

TransliterationConfig