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 GoogleCloudDocumentaiV1beta2Document extends \Google\Collection
21{
22  protected $collection_key = 'textStyles';
23  /**
24   * @var string
25   */
26  public $content;
27  protected $entitiesType = GoogleCloudDocumentaiV1beta2DocumentEntity::class;
28  protected $entitiesDataType = 'array';
29  protected $entityRelationsType = GoogleCloudDocumentaiV1beta2DocumentEntityRelation::class;
30  protected $entityRelationsDataType = 'array';
31  protected $errorType = GoogleRpcStatus::class;
32  protected $errorDataType = '';
33  protected $labelsType = GoogleCloudDocumentaiV1beta2DocumentLabel::class;
34  protected $labelsDataType = 'array';
35  /**
36   * @var string
37   */
38  public $mimeType;
39  protected $pagesType = GoogleCloudDocumentaiV1beta2DocumentPage::class;
40  protected $pagesDataType = 'array';
41  protected $revisionsType = GoogleCloudDocumentaiV1beta2DocumentRevision::class;
42  protected $revisionsDataType = 'array';
43  protected $shardInfoType = GoogleCloudDocumentaiV1beta2DocumentShardInfo::class;
44  protected $shardInfoDataType = '';
45  /**
46   * @var string
47   */
48  public $text;
49  protected $textChangesType = GoogleCloudDocumentaiV1beta2DocumentTextChange::class;
50  protected $textChangesDataType = 'array';
51  protected $textStylesType = GoogleCloudDocumentaiV1beta2DocumentStyle::class;
52  protected $textStylesDataType = 'array';
53  /**
54   * @var string
55   */
56  public $uri;
57
58  /**
59   * @param string
60   */
61  public function setContent($content)
62  {
63    $this->content = $content;
64  }
65  /**
66   * @return string
67   */
68  public function getContent()
69  {
70    return $this->content;
71  }
72  /**
73   * @param GoogleCloudDocumentaiV1beta2DocumentEntity[]
74   */
75  public function setEntities($entities)
76  {
77    $this->entities = $entities;
78  }
79  /**
80   * @return GoogleCloudDocumentaiV1beta2DocumentEntity[]
81   */
82  public function getEntities()
83  {
84    return $this->entities;
85  }
86  /**
87   * @param GoogleCloudDocumentaiV1beta2DocumentEntityRelation[]
88   */
89  public function setEntityRelations($entityRelations)
90  {
91    $this->entityRelations = $entityRelations;
92  }
93  /**
94   * @return GoogleCloudDocumentaiV1beta2DocumentEntityRelation[]
95   */
96  public function getEntityRelations()
97  {
98    return $this->entityRelations;
99  }
100  /**
101   * @param GoogleRpcStatus
102   */
103  public function setError(GoogleRpcStatus $error)
104  {
105    $this->error = $error;
106  }
107  /**
108   * @return GoogleRpcStatus
109   */
110  public function getError()
111  {
112    return $this->error;
113  }
114  /**
115   * @param GoogleCloudDocumentaiV1beta2DocumentLabel[]
116   */
117  public function setLabels($labels)
118  {
119    $this->labels = $labels;
120  }
121  /**
122   * @return GoogleCloudDocumentaiV1beta2DocumentLabel[]
123   */
124  public function getLabels()
125  {
126    return $this->labels;
127  }
128  /**
129   * @param string
130   */
131  public function setMimeType($mimeType)
132  {
133    $this->mimeType = $mimeType;
134  }
135  /**
136   * @return string
137   */
138  public function getMimeType()
139  {
140    return $this->mimeType;
141  }
142  /**
143   * @param GoogleCloudDocumentaiV1beta2DocumentPage[]
144   */
145  public function setPages($pages)
146  {
147    $this->pages = $pages;
148  }
149  /**
150   * @return GoogleCloudDocumentaiV1beta2DocumentPage[]
151   */
152  public function getPages()
153  {
154    return $this->pages;
155  }
156  /**
157   * @param GoogleCloudDocumentaiV1beta2DocumentRevision[]
158   */
159  public function setRevisions($revisions)
160  {
161    $this->revisions = $revisions;
162  }
163  /**
164   * @return GoogleCloudDocumentaiV1beta2DocumentRevision[]
165   */
166  public function getRevisions()
167  {
168    return $this->revisions;
169  }
170  /**
171   * @param GoogleCloudDocumentaiV1beta2DocumentShardInfo
172   */
173  public function setShardInfo(GoogleCloudDocumentaiV1beta2DocumentShardInfo $shardInfo)
174  {
175    $this->shardInfo = $shardInfo;
176  }
177  /**
178   * @return GoogleCloudDocumentaiV1beta2DocumentShardInfo
179   */
180  public function getShardInfo()
181  {
182    return $this->shardInfo;
183  }
184  /**
185   * @param string
186   */
187  public function setText($text)
188  {
189    $this->text = $text;
190  }
191  /**
192   * @return string
193   */
194  public function getText()
195  {
196    return $this->text;
197  }
198  /**
199   * @param GoogleCloudDocumentaiV1beta2DocumentTextChange[]
200   */
201  public function setTextChanges($textChanges)
202  {
203    $this->textChanges = $textChanges;
204  }
205  /**
206   * @return GoogleCloudDocumentaiV1beta2DocumentTextChange[]
207   */
208  public function getTextChanges()
209  {
210    return $this->textChanges;
211  }
212  /**
213   * @param GoogleCloudDocumentaiV1beta2DocumentStyle[]
214   */
215  public function setTextStyles($textStyles)
216  {
217    $this->textStyles = $textStyles;
218  }
219  /**
220   * @return GoogleCloudDocumentaiV1beta2DocumentStyle[]
221   */
222  public function getTextStyles()
223  {
224    return $this->textStyles;
225  }
226  /**
227   * @param string
228   */
229  public function setUri($uri)
230  {
231    $this->uri = $uri;
232  }
233  /**
234   * @return string
235   */
236  public function getUri()
237  {
238    return $this->uri;
239  }
240}
241
242// Adding a class alias for backwards compatibility with the previous class name.
243class_alias(GoogleCloudDocumentaiV1beta2Document::class, 'Google_Service_Document_GoogleCloudDocumentaiV1beta2Document');
244