glossaryTranslations = $glossaryTranslations; } /** * @return Translation[] */ public function getGlossaryTranslations() { return $this->glossaryTranslations; } /** * Text translation responses with no glossary applied. This field has the * same length as `contents`. * * @param Translation[] $translations */ public function setTranslations($translations) { $this->translations = $translations; } /** * @return Translation[] */ public function getTranslations() { return $this->translations; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TranslateTextResponse::class, 'Google_Service_Translate_TranslateTextResponse');