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