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