[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Translate;
|
---|
| 19 |
|
---|
| 20 | class BatchTranslateDocumentRequest extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'targetLanguageCodes';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $customizedAttribution;
|
---|
| 27 | /**
|
---|
| 28 | * @var bool
|
---|
| 29 | */
|
---|
| 30 | public $enableRotationCorrection;
|
---|
| 31 | /**
|
---|
| 32 | * @var bool
|
---|
| 33 | */
|
---|
| 34 | public $enableShadowRemovalNativePdf;
|
---|
| 35 | /**
|
---|
| 36 | * @var string[]
|
---|
| 37 | */
|
---|
| 38 | public $formatConversions;
|
---|
| 39 | protected $glossariesType = TranslateTextGlossaryConfig::class;
|
---|
| 40 | protected $glossariesDataType = 'map';
|
---|
| 41 | protected $inputConfigsType = BatchDocumentInputConfig::class;
|
---|
| 42 | protected $inputConfigsDataType = 'array';
|
---|
| 43 | /**
|
---|
| 44 | * @var string[]
|
---|
| 45 | */
|
---|
| 46 | public $models;
|
---|
| 47 | protected $outputConfigType = BatchDocumentOutputConfig::class;
|
---|
| 48 | protected $outputConfigDataType = '';
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $sourceLanguageCode;
|
---|
| 53 | /**
|
---|
| 54 | * @var string[]
|
---|
| 55 | */
|
---|
| 56 | public $targetLanguageCodes;
|
---|
| 57 |
|
---|
| 58 | /**
|
---|
| 59 | * @param string
|
---|
| 60 | */
|
---|
| 61 | public function setCustomizedAttribution($customizedAttribution)
|
---|
| 62 | {
|
---|
| 63 | $this->customizedAttribution = $customizedAttribution;
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * @return string
|
---|
| 67 | */
|
---|
| 68 | public function getCustomizedAttribution()
|
---|
| 69 | {
|
---|
| 70 | return $this->customizedAttribution;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @param bool
|
---|
| 74 | */
|
---|
| 75 | public function setEnableRotationCorrection($enableRotationCorrection)
|
---|
| 76 | {
|
---|
| 77 | $this->enableRotationCorrection = $enableRotationCorrection;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @return bool
|
---|
| 81 | */
|
---|
| 82 | public function getEnableRotationCorrection()
|
---|
| 83 | {
|
---|
| 84 | return $this->enableRotationCorrection;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @param bool
|
---|
| 88 | */
|
---|
| 89 | public function setEnableShadowRemovalNativePdf($enableShadowRemovalNativePdf)
|
---|
| 90 | {
|
---|
| 91 | $this->enableShadowRemovalNativePdf = $enableShadowRemovalNativePdf;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @return bool
|
---|
| 95 | */
|
---|
| 96 | public function getEnableShadowRemovalNativePdf()
|
---|
| 97 | {
|
---|
| 98 | return $this->enableShadowRemovalNativePdf;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @param string[]
|
---|
| 102 | */
|
---|
| 103 | public function setFormatConversions($formatConversions)
|
---|
| 104 | {
|
---|
| 105 | $this->formatConversions = $formatConversions;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @return string[]
|
---|
| 109 | */
|
---|
| 110 | public function getFormatConversions()
|
---|
| 111 | {
|
---|
| 112 | return $this->formatConversions;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param TranslateTextGlossaryConfig[]
|
---|
| 116 | */
|
---|
| 117 | public function setGlossaries($glossaries)
|
---|
| 118 | {
|
---|
| 119 | $this->glossaries = $glossaries;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return TranslateTextGlossaryConfig[]
|
---|
| 123 | */
|
---|
| 124 | public function getGlossaries()
|
---|
| 125 | {
|
---|
| 126 | return $this->glossaries;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param BatchDocumentInputConfig[]
|
---|
| 130 | */
|
---|
| 131 | public function setInputConfigs($inputConfigs)
|
---|
| 132 | {
|
---|
| 133 | $this->inputConfigs = $inputConfigs;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return BatchDocumentInputConfig[]
|
---|
| 137 | */
|
---|
| 138 | public function getInputConfigs()
|
---|
| 139 | {
|
---|
| 140 | return $this->inputConfigs;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @param string[]
|
---|
| 144 | */
|
---|
| 145 | public function setModels($models)
|
---|
| 146 | {
|
---|
| 147 | $this->models = $models;
|
---|
| 148 | }
|
---|
| 149 | /**
|
---|
| 150 | * @return string[]
|
---|
| 151 | */
|
---|
| 152 | public function getModels()
|
---|
| 153 | {
|
---|
| 154 | return $this->models;
|
---|
| 155 | }
|
---|
| 156 | /**
|
---|
| 157 | * @param BatchDocumentOutputConfig
|
---|
| 158 | */
|
---|
| 159 | public function setOutputConfig(BatchDocumentOutputConfig $outputConfig)
|
---|
| 160 | {
|
---|
| 161 | $this->outputConfig = $outputConfig;
|
---|
| 162 | }
|
---|
| 163 | /**
|
---|
| 164 | * @return BatchDocumentOutputConfig
|
---|
| 165 | */
|
---|
| 166 | public function getOutputConfig()
|
---|
| 167 | {
|
---|
| 168 | return $this->outputConfig;
|
---|
| 169 | }
|
---|
| 170 | /**
|
---|
| 171 | * @param string
|
---|
| 172 | */
|
---|
| 173 | public function setSourceLanguageCode($sourceLanguageCode)
|
---|
| 174 | {
|
---|
| 175 | $this->sourceLanguageCode = $sourceLanguageCode;
|
---|
| 176 | }
|
---|
| 177 | /**
|
---|
| 178 | * @return string
|
---|
| 179 | */
|
---|
| 180 | public function getSourceLanguageCode()
|
---|
| 181 | {
|
---|
| 182 | return $this->sourceLanguageCode;
|
---|
| 183 | }
|
---|
| 184 | /**
|
---|
| 185 | * @param string[]
|
---|
| 186 | */
|
---|
| 187 | public function setTargetLanguageCodes($targetLanguageCodes)
|
---|
| 188 | {
|
---|
| 189 | $this->targetLanguageCodes = $targetLanguageCodes;
|
---|
| 190 | }
|
---|
| 191 | /**
|
---|
| 192 | * @return string[]
|
---|
| 193 | */
|
---|
| 194 | public function getTargetLanguageCodes()
|
---|
| 195 | {
|
---|
| 196 | return $this->targetLanguageCodes;
|
---|
| 197 | }
|
---|
| 198 | }
|
---|
| 199 |
|
---|
| 200 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 201 | class_alias(BatchTranslateDocumentRequest::class, 'Google_Service_Translate_BatchTranslateDocumentRequest');
|
---|