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