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 GoogleCloudDocumentaiV1beta1DocumentEntity extends \Google\Collection 21{ 22 protected $collection_key = 'properties'; 23 /** 24 * @var float 25 */ 26 public $confidence; 27 /** 28 * @var string 29 */ 30 public $id; 31 /** 32 * @var string 33 */ 34 public $mentionId; 35 /** 36 * @var string 37 */ 38 public $mentionText; 39 /** 40 * @var bool 41 */ 42 public $nonPresent; 43 protected $normalizedValueType = GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue::class; 44 protected $normalizedValueDataType = ''; 45 protected $pageAnchorType = GoogleCloudDocumentaiV1beta1DocumentPageAnchor::class; 46 protected $pageAnchorDataType = ''; 47 protected $propertiesType = GoogleCloudDocumentaiV1beta1DocumentEntity::class; 48 protected $propertiesDataType = 'array'; 49 protected $provenanceType = GoogleCloudDocumentaiV1beta1DocumentProvenance::class; 50 protected $provenanceDataType = ''; 51 /** 52 * @var bool 53 */ 54 public $redacted; 55 protected $textAnchorType = GoogleCloudDocumentaiV1beta1DocumentTextAnchor::class; 56 protected $textAnchorDataType = ''; 57 /** 58 * @var string 59 */ 60 public $type; 61 62 /** 63 * @param float 64 */ 65 public function setConfidence($confidence) 66 { 67 $this->confidence = $confidence; 68 } 69 /** 70 * @return float 71 */ 72 public function getConfidence() 73 { 74 return $this->confidence; 75 } 76 /** 77 * @param string 78 */ 79 public function setId($id) 80 { 81 $this->id = $id; 82 } 83 /** 84 * @return string 85 */ 86 public function getId() 87 { 88 return $this->id; 89 } 90 /** 91 * @param string 92 */ 93 public function setMentionId($mentionId) 94 { 95 $this->mentionId = $mentionId; 96 } 97 /** 98 * @return string 99 */ 100 public function getMentionId() 101 { 102 return $this->mentionId; 103 } 104 /** 105 * @param string 106 */ 107 public function setMentionText($mentionText) 108 { 109 $this->mentionText = $mentionText; 110 } 111 /** 112 * @return string 113 */ 114 public function getMentionText() 115 { 116 return $this->mentionText; 117 } 118 /** 119 * @param bool 120 */ 121 public function setNonPresent($nonPresent) 122 { 123 $this->nonPresent = $nonPresent; 124 } 125 /** 126 * @return bool 127 */ 128 public function getNonPresent() 129 { 130 return $this->nonPresent; 131 } 132 /** 133 * @param GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue 134 */ 135 public function setNormalizedValue(GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue $normalizedValue) 136 { 137 $this->normalizedValue = $normalizedValue; 138 } 139 /** 140 * @return GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue 141 */ 142 public function getNormalizedValue() 143 { 144 return $this->normalizedValue; 145 } 146 /** 147 * @param GoogleCloudDocumentaiV1beta1DocumentPageAnchor 148 */ 149 public function setPageAnchor(GoogleCloudDocumentaiV1beta1DocumentPageAnchor $pageAnchor) 150 { 151 $this->pageAnchor = $pageAnchor; 152 } 153 /** 154 * @return GoogleCloudDocumentaiV1beta1DocumentPageAnchor 155 */ 156 public function getPageAnchor() 157 { 158 return $this->pageAnchor; 159 } 160 /** 161 * @param GoogleCloudDocumentaiV1beta1DocumentEntity[] 162 */ 163 public function setProperties($properties) 164 { 165 $this->properties = $properties; 166 } 167 /** 168 * @return GoogleCloudDocumentaiV1beta1DocumentEntity[] 169 */ 170 public function getProperties() 171 { 172 return $this->properties; 173 } 174 /** 175 * @param GoogleCloudDocumentaiV1beta1DocumentProvenance 176 */ 177 public function setProvenance(GoogleCloudDocumentaiV1beta1DocumentProvenance $provenance) 178 { 179 $this->provenance = $provenance; 180 } 181 /** 182 * @return GoogleCloudDocumentaiV1beta1DocumentProvenance 183 */ 184 public function getProvenance() 185 { 186 return $this->provenance; 187 } 188 /** 189 * @param bool 190 */ 191 public function setRedacted($redacted) 192 { 193 $this->redacted = $redacted; 194 } 195 /** 196 * @return bool 197 */ 198 public function getRedacted() 199 { 200 return $this->redacted; 201 } 202 /** 203 * @param GoogleCloudDocumentaiV1beta1DocumentTextAnchor 204 */ 205 public function setTextAnchor(GoogleCloudDocumentaiV1beta1DocumentTextAnchor $textAnchor) 206 { 207 $this->textAnchor = $textAnchor; 208 } 209 /** 210 * @return GoogleCloudDocumentaiV1beta1DocumentTextAnchor 211 */ 212 public function getTextAnchor() 213 { 214 return $this->textAnchor; 215 } 216 /** 217 * @param string 218 */ 219 public function setType($type) 220 { 221 $this->type = $type; 222 } 223 /** 224 * @return string 225 */ 226 public function getType() 227 { 228 return $this->type; 229 } 230} 231 232// Adding a class alias for backwards compatibility with the previous class name. 233class_alias(GoogleCloudDocumentaiV1beta1DocumentEntity::class, 'Google_Service_Document_GoogleCloudDocumentaiV1beta1DocumentEntity'); 234