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