@@ -74,6 +74,12 @@ class BatchTranslateDocumentRequest extends \Google\Collection
7474 public $ models ;
7575 protected $ outputConfigType = BatchDocumentOutputConfig::class;
7676 protected $ outputConfigDataType = '' ;
77+ /**
78+ * Optional. If true, only native pdf pages will be translated.
79+ *
80+ * @var bool
81+ */
82+ public $ pdfNativeOnly ;
7783 /**
7884 * Required. The ISO-639 language code of the input document if known, for
7985 * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -84,7 +90,9 @@ class BatchTranslateDocumentRequest extends \Google\Collection
8490 public $ sourceLanguageCode ;
8591 /**
8692 * Required. The ISO-639 language code to use for translation of the input
87- * document. Specify up to 10 language codes here.
93+ * document. Specify up to 10 language codes here. Supported language codes
94+ * are listed in [Language
95+ * Support](https://cloud.google.com/translate/docs/languages).
8896 *
8997 * @var string[]
9098 */
@@ -239,6 +247,22 @@ public function getOutputConfig()
239247 {
240248 return $ this ->outputConfig ;
241249 }
250+ /**
251+ * Optional. If true, only native pdf pages will be translated.
252+ *
253+ * @param bool $pdfNativeOnly
254+ */
255+ public function setPdfNativeOnly ($ pdfNativeOnly )
256+ {
257+ $ this ->pdfNativeOnly = $ pdfNativeOnly ;
258+ }
259+ /**
260+ * @return bool
261+ */
262+ public function getPdfNativeOnly ()
263+ {
264+ return $ this ->pdfNativeOnly ;
265+ }
242266 /**
243267 * Required. The ISO-639 language code of the input document if known, for
244268 * example, "en-US" or "sr-Latn". Supported language codes are listed in
@@ -259,7 +283,9 @@ public function getSourceLanguageCode()
259283 }
260284 /**
261285 * Required. The ISO-639 language code to use for translation of the input
262- * document. Specify up to 10 language codes here.
286+ * document. Specify up to 10 language codes here. Supported language codes
287+ * are listed in [Language
288+ * Support](https://cloud.google.com/translate/docs/languages).
263289 *
264290 * @param string[] $targetLanguageCodes
265291 */
0 commit comments