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