[f9c482b] | 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\CloudHealthcare;
|
---|
| 19 |
|
---|
| 20 | class EntityMention extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'linkedEntities';
|
---|
| 23 | protected $certaintyAssessmentType = Feature::class;
|
---|
| 24 | protected $certaintyAssessmentDataType = '';
|
---|
| 25 | public $confidence;
|
---|
| 26 | protected $linkedEntitiesType = LinkedEntity::class;
|
---|
| 27 | protected $linkedEntitiesDataType = 'array';
|
---|
| 28 | /**
|
---|
| 29 | * @var string
|
---|
| 30 | */
|
---|
| 31 | public $mentionId;
|
---|
| 32 | protected $subjectType = Feature::class;
|
---|
| 33 | protected $subjectDataType = '';
|
---|
| 34 | protected $temporalAssessmentType = Feature::class;
|
---|
| 35 | protected $temporalAssessmentDataType = '';
|
---|
| 36 | protected $textType = TextSpan::class;
|
---|
| 37 | protected $textDataType = '';
|
---|
| 38 | /**
|
---|
| 39 | * @var string
|
---|
| 40 | */
|
---|
| 41 | public $type;
|
---|
| 42 |
|
---|
| 43 | /**
|
---|
| 44 | * @param Feature
|
---|
| 45 | */
|
---|
| 46 | public function setCertaintyAssessment(Feature $certaintyAssessment)
|
---|
| 47 | {
|
---|
| 48 | $this->certaintyAssessment = $certaintyAssessment;
|
---|
| 49 | }
|
---|
| 50 | /**
|
---|
| 51 | * @return Feature
|
---|
| 52 | */
|
---|
| 53 | public function getCertaintyAssessment()
|
---|
| 54 | {
|
---|
| 55 | return $this->certaintyAssessment;
|
---|
| 56 | }
|
---|
| 57 | public function setConfidence($confidence)
|
---|
| 58 | {
|
---|
| 59 | $this->confidence = $confidence;
|
---|
| 60 | }
|
---|
| 61 | public function getConfidence()
|
---|
| 62 | {
|
---|
| 63 | return $this->confidence;
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * @param LinkedEntity[]
|
---|
| 67 | */
|
---|
| 68 | public function setLinkedEntities($linkedEntities)
|
---|
| 69 | {
|
---|
| 70 | $this->linkedEntities = $linkedEntities;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @return LinkedEntity[]
|
---|
| 74 | */
|
---|
| 75 | public function getLinkedEntities()
|
---|
| 76 | {
|
---|
| 77 | return $this->linkedEntities;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @param string
|
---|
| 81 | */
|
---|
| 82 | public function setMentionId($mentionId)
|
---|
| 83 | {
|
---|
| 84 | $this->mentionId = $mentionId;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @return string
|
---|
| 88 | */
|
---|
| 89 | public function getMentionId()
|
---|
| 90 | {
|
---|
| 91 | return $this->mentionId;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @param Feature
|
---|
| 95 | */
|
---|
| 96 | public function setSubject(Feature $subject)
|
---|
| 97 | {
|
---|
| 98 | $this->subject = $subject;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @return Feature
|
---|
| 102 | */
|
---|
| 103 | public function getSubject()
|
---|
| 104 | {
|
---|
| 105 | return $this->subject;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @param Feature
|
---|
| 109 | */
|
---|
| 110 | public function setTemporalAssessment(Feature $temporalAssessment)
|
---|
| 111 | {
|
---|
| 112 | $this->temporalAssessment = $temporalAssessment;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @return Feature
|
---|
| 116 | */
|
---|
| 117 | public function getTemporalAssessment()
|
---|
| 118 | {
|
---|
| 119 | return $this->temporalAssessment;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @param TextSpan
|
---|
| 123 | */
|
---|
| 124 | public function setText(TextSpan $text)
|
---|
| 125 | {
|
---|
| 126 | $this->text = $text;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @return TextSpan
|
---|
| 130 | */
|
---|
| 131 | public function getText()
|
---|
| 132 | {
|
---|
| 133 | return $this->text;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @param string
|
---|
| 137 | */
|
---|
| 138 | public function setType($type)
|
---|
| 139 | {
|
---|
| 140 | $this->type = $type;
|
---|
| 141 | }
|
---|
| 142 | /**
|
---|
| 143 | * @return string
|
---|
| 144 | */
|
---|
| 145 | public function getType()
|
---|
| 146 | {
|
---|
| 147 | return $this->type;
|
---|
| 148 | }
|
---|
| 149 | }
|
---|
| 150 |
|
---|
| 151 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 152 | class_alias(EntityMention::class, 'Google_Service_CloudHealthcare_EntityMention');
|
---|