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\Document;
|
---|
19 |
|
---|
20 | class GoogleCloudDocumentaiV1beta1DocumentPage extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'visualElements';
|
---|
23 | protected $blocksType = GoogleCloudDocumentaiV1beta1DocumentPageBlock::class;
|
---|
24 | protected $blocksDataType = 'array';
|
---|
25 | protected $detectedBarcodesType = GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode::class;
|
---|
26 | protected $detectedBarcodesDataType = 'array';
|
---|
27 | protected $detectedLanguagesType = GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::class;
|
---|
28 | protected $detectedLanguagesDataType = 'array';
|
---|
29 | protected $dimensionType = GoogleCloudDocumentaiV1beta1DocumentPageDimension::class;
|
---|
30 | protected $dimensionDataType = '';
|
---|
31 | protected $formFieldsType = GoogleCloudDocumentaiV1beta1DocumentPageFormField::class;
|
---|
32 | protected $formFieldsDataType = 'array';
|
---|
33 | protected $imageType = GoogleCloudDocumentaiV1beta1DocumentPageImage::class;
|
---|
34 | protected $imageDataType = '';
|
---|
35 | protected $imageQualityScoresType = GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores::class;
|
---|
36 | protected $imageQualityScoresDataType = '';
|
---|
37 | protected $layoutType = GoogleCloudDocumentaiV1beta1DocumentPageLayout::class;
|
---|
38 | protected $layoutDataType = '';
|
---|
39 | protected $linesType = GoogleCloudDocumentaiV1beta1DocumentPageLine::class;
|
---|
40 | protected $linesDataType = 'array';
|
---|
41 | /**
|
---|
42 | * @var int
|
---|
43 | */
|
---|
44 | public $pageNumber;
|
---|
45 | protected $paragraphsType = GoogleCloudDocumentaiV1beta1DocumentPageParagraph::class;
|
---|
46 | protected $paragraphsDataType = 'array';
|
---|
47 | protected $provenanceType = GoogleCloudDocumentaiV1beta1DocumentProvenance::class;
|
---|
48 | protected $provenanceDataType = '';
|
---|
49 | protected $symbolsType = GoogleCloudDocumentaiV1beta1DocumentPageSymbol::class;
|
---|
50 | protected $symbolsDataType = 'array';
|
---|
51 | protected $tablesType = GoogleCloudDocumentaiV1beta1DocumentPageTable::class;
|
---|
52 | protected $tablesDataType = 'array';
|
---|
53 | protected $tokensType = GoogleCloudDocumentaiV1beta1DocumentPageToken::class;
|
---|
54 | protected $tokensDataType = 'array';
|
---|
55 | protected $transformsType = GoogleCloudDocumentaiV1beta1DocumentPageMatrix::class;
|
---|
56 | protected $transformsDataType = 'array';
|
---|
57 | protected $visualElementsType = GoogleCloudDocumentaiV1beta1DocumentPageVisualElement::class;
|
---|
58 | protected $visualElementsDataType = 'array';
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * @param GoogleCloudDocumentaiV1beta1DocumentPageBlock[]
|
---|
62 | */
|
---|
63 | public function setBlocks($blocks)
|
---|
64 | {
|
---|
65 | $this->blocks = $blocks;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @return GoogleCloudDocumentaiV1beta1DocumentPageBlock[]
|
---|
69 | */
|
---|
70 | public function getBlocks()
|
---|
71 | {
|
---|
72 | return $this->blocks;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @param GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode[]
|
---|
76 | */
|
---|
77 | public function setDetectedBarcodes($detectedBarcodes)
|
---|
78 | {
|
---|
79 | $this->detectedBarcodes = $detectedBarcodes;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode[]
|
---|
83 | */
|
---|
84 | public function getDetectedBarcodes()
|
---|
85 | {
|
---|
86 | return $this->detectedBarcodes;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @param GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage[]
|
---|
90 | */
|
---|
91 | public function setDetectedLanguages($detectedLanguages)
|
---|
92 | {
|
---|
93 | $this->detectedLanguages = $detectedLanguages;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @return GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage[]
|
---|
97 | */
|
---|
98 | public function getDetectedLanguages()
|
---|
99 | {
|
---|
100 | return $this->detectedLanguages;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @param GoogleCloudDocumentaiV1beta1DocumentPageDimension
|
---|
104 | */
|
---|
105 | public function setDimension(GoogleCloudDocumentaiV1beta1DocumentPageDimension $dimension)
|
---|
106 | {
|
---|
107 | $this->dimension = $dimension;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @return GoogleCloudDocumentaiV1beta1DocumentPageDimension
|
---|
111 | */
|
---|
112 | public function getDimension()
|
---|
113 | {
|
---|
114 | return $this->dimension;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @param GoogleCloudDocumentaiV1beta1DocumentPageFormField[]
|
---|
118 | */
|
---|
119 | public function setFormFields($formFields)
|
---|
120 | {
|
---|
121 | $this->formFields = $formFields;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @return GoogleCloudDocumentaiV1beta1DocumentPageFormField[]
|
---|
125 | */
|
---|
126 | public function getFormFields()
|
---|
127 | {
|
---|
128 | return $this->formFields;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @param GoogleCloudDocumentaiV1beta1DocumentPageImage
|
---|
132 | */
|
---|
133 | public function setImage(GoogleCloudDocumentaiV1beta1DocumentPageImage $image)
|
---|
134 | {
|
---|
135 | $this->image = $image;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @return GoogleCloudDocumentaiV1beta1DocumentPageImage
|
---|
139 | */
|
---|
140 | public function getImage()
|
---|
141 | {
|
---|
142 | return $this->image;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @param GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
|
---|
146 | */
|
---|
147 | public function setImageQualityScores(GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores $imageQualityScores)
|
---|
148 | {
|
---|
149 | $this->imageQualityScores = $imageQualityScores;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @return GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
|
---|
153 | */
|
---|
154 | public function getImageQualityScores()
|
---|
155 | {
|
---|
156 | return $this->imageQualityScores;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @param GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
---|
160 | */
|
---|
161 | public function setLayout(GoogleCloudDocumentaiV1beta1DocumentPageLayout $layout)
|
---|
162 | {
|
---|
163 | $this->layout = $layout;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @return GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
---|
167 | */
|
---|
168 | public function getLayout()
|
---|
169 | {
|
---|
170 | return $this->layout;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @param GoogleCloudDocumentaiV1beta1DocumentPageLine[]
|
---|
174 | */
|
---|
175 | public function setLines($lines)
|
---|
176 | {
|
---|
177 | $this->lines = $lines;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @return GoogleCloudDocumentaiV1beta1DocumentPageLine[]
|
---|
181 | */
|
---|
182 | public function getLines()
|
---|
183 | {
|
---|
184 | return $this->lines;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @param int
|
---|
188 | */
|
---|
189 | public function setPageNumber($pageNumber)
|
---|
190 | {
|
---|
191 | $this->pageNumber = $pageNumber;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @return int
|
---|
195 | */
|
---|
196 | public function getPageNumber()
|
---|
197 | {
|
---|
198 | return $this->pageNumber;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @param GoogleCloudDocumentaiV1beta1DocumentPageParagraph[]
|
---|
202 | */
|
---|
203 | public function setParagraphs($paragraphs)
|
---|
204 | {
|
---|
205 | $this->paragraphs = $paragraphs;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @return GoogleCloudDocumentaiV1beta1DocumentPageParagraph[]
|
---|
209 | */
|
---|
210 | public function getParagraphs()
|
---|
211 | {
|
---|
212 | return $this->paragraphs;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @param GoogleCloudDocumentaiV1beta1DocumentProvenance
|
---|
216 | */
|
---|
217 | public function setProvenance(GoogleCloudDocumentaiV1beta1DocumentProvenance $provenance)
|
---|
218 | {
|
---|
219 | $this->provenance = $provenance;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @return GoogleCloudDocumentaiV1beta1DocumentProvenance
|
---|
223 | */
|
---|
224 | public function getProvenance()
|
---|
225 | {
|
---|
226 | return $this->provenance;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @param GoogleCloudDocumentaiV1beta1DocumentPageSymbol[]
|
---|
230 | */
|
---|
231 | public function setSymbols($symbols)
|
---|
232 | {
|
---|
233 | $this->symbols = $symbols;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @return GoogleCloudDocumentaiV1beta1DocumentPageSymbol[]
|
---|
237 | */
|
---|
238 | public function getSymbols()
|
---|
239 | {
|
---|
240 | return $this->symbols;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @param GoogleCloudDocumentaiV1beta1DocumentPageTable[]
|
---|
244 | */
|
---|
245 | public function setTables($tables)
|
---|
246 | {
|
---|
247 | $this->tables = $tables;
|
---|
248 | }
|
---|
249 | /**
|
---|
250 | * @return GoogleCloudDocumentaiV1beta1DocumentPageTable[]
|
---|
251 | */
|
---|
252 | public function getTables()
|
---|
253 | {
|
---|
254 | return $this->tables;
|
---|
255 | }
|
---|
256 | /**
|
---|
257 | * @param GoogleCloudDocumentaiV1beta1DocumentPageToken[]
|
---|
258 | */
|
---|
259 | public function setTokens($tokens)
|
---|
260 | {
|
---|
261 | $this->tokens = $tokens;
|
---|
262 | }
|
---|
263 | /**
|
---|
264 | * @return GoogleCloudDocumentaiV1beta1DocumentPageToken[]
|
---|
265 | */
|
---|
266 | public function getTokens()
|
---|
267 | {
|
---|
268 | return $this->tokens;
|
---|
269 | }
|
---|
270 | /**
|
---|
271 | * @param GoogleCloudDocumentaiV1beta1DocumentPageMatrix[]
|
---|
272 | */
|
---|
273 | public function setTransforms($transforms)
|
---|
274 | {
|
---|
275 | $this->transforms = $transforms;
|
---|
276 | }
|
---|
277 | /**
|
---|
278 | * @return GoogleCloudDocumentaiV1beta1DocumentPageMatrix[]
|
---|
279 | */
|
---|
280 | public function getTransforms()
|
---|
281 | {
|
---|
282 | return $this->transforms;
|
---|
283 | }
|
---|
284 | /**
|
---|
285 | * @param GoogleCloudDocumentaiV1beta1DocumentPageVisualElement[]
|
---|
286 | */
|
---|
287 | public function setVisualElements($visualElements)
|
---|
288 | {
|
---|
289 | $this->visualElements = $visualElements;
|
---|
290 | }
|
---|
291 | /**
|
---|
292 | * @return GoogleCloudDocumentaiV1beta1DocumentPageVisualElement[]
|
---|
293 | */
|
---|
294 | public function getVisualElements()
|
---|
295 | {
|
---|
296 | return $this->visualElements;
|
---|
297 | }
|
---|
298 | }
|
---|
299 |
|
---|
300 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
301 | class_alias(GoogleCloudDocumentaiV1beta1DocumentPage::class, 'Google_Service_Document_GoogleCloudDocumentaiV1beta1DocumentPage');
|
---|