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\Vision; 19 20class AnnotateImageResponse extends \Google\Collection 21{ 22 protected $collection_key = 'textAnnotations'; 23 protected $contextType = ImageAnnotationContext::class; 24 protected $contextDataType = ''; 25 protected $cropHintsAnnotationType = CropHintsAnnotation::class; 26 protected $cropHintsAnnotationDataType = ''; 27 protected $errorType = Status::class; 28 protected $errorDataType = ''; 29 protected $faceAnnotationsType = FaceAnnotation::class; 30 protected $faceAnnotationsDataType = 'array'; 31 protected $fullTextAnnotationType = TextAnnotation::class; 32 protected $fullTextAnnotationDataType = ''; 33 protected $imagePropertiesAnnotationType = ImageProperties::class; 34 protected $imagePropertiesAnnotationDataType = ''; 35 protected $labelAnnotationsType = EntityAnnotation::class; 36 protected $labelAnnotationsDataType = 'array'; 37 protected $landmarkAnnotationsType = EntityAnnotation::class; 38 protected $landmarkAnnotationsDataType = 'array'; 39 protected $localizedObjectAnnotationsType = LocalizedObjectAnnotation::class; 40 protected $localizedObjectAnnotationsDataType = 'array'; 41 protected $logoAnnotationsType = EntityAnnotation::class; 42 protected $logoAnnotationsDataType = 'array'; 43 protected $productSearchResultsType = ProductSearchResults::class; 44 protected $productSearchResultsDataType = ''; 45 protected $safeSearchAnnotationType = SafeSearchAnnotation::class; 46 protected $safeSearchAnnotationDataType = ''; 47 protected $textAnnotationsType = EntityAnnotation::class; 48 protected $textAnnotationsDataType = 'array'; 49 protected $webDetectionType = WebDetection::class; 50 protected $webDetectionDataType = ''; 51 52 /** 53 * @param ImageAnnotationContext 54 */ 55 public function setContext(ImageAnnotationContext $context) 56 { 57 $this->context = $context; 58 } 59 /** 60 * @return ImageAnnotationContext 61 */ 62 public function getContext() 63 { 64 return $this->context; 65 } 66 /** 67 * @param CropHintsAnnotation 68 */ 69 public function setCropHintsAnnotation(CropHintsAnnotation $cropHintsAnnotation) 70 { 71 $this->cropHintsAnnotation = $cropHintsAnnotation; 72 } 73 /** 74 * @return CropHintsAnnotation 75 */ 76 public function getCropHintsAnnotation() 77 { 78 return $this->cropHintsAnnotation; 79 } 80 /** 81 * @param Status 82 */ 83 public function setError(Status $error) 84 { 85 $this->error = $error; 86 } 87 /** 88 * @return Status 89 */ 90 public function getError() 91 { 92 return $this->error; 93 } 94 /** 95 * @param FaceAnnotation[] 96 */ 97 public function setFaceAnnotations($faceAnnotations) 98 { 99 $this->faceAnnotations = $faceAnnotations; 100 } 101 /** 102 * @return FaceAnnotation[] 103 */ 104 public function getFaceAnnotations() 105 { 106 return $this->faceAnnotations; 107 } 108 /** 109 * @param TextAnnotation 110 */ 111 public function setFullTextAnnotation(TextAnnotation $fullTextAnnotation) 112 { 113 $this->fullTextAnnotation = $fullTextAnnotation; 114 } 115 /** 116 * @return TextAnnotation 117 */ 118 public function getFullTextAnnotation() 119 { 120 return $this->fullTextAnnotation; 121 } 122 /** 123 * @param ImageProperties 124 */ 125 public function setImagePropertiesAnnotation(ImageProperties $imagePropertiesAnnotation) 126 { 127 $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; 128 } 129 /** 130 * @return ImageProperties 131 */ 132 public function getImagePropertiesAnnotation() 133 { 134 return $this->imagePropertiesAnnotation; 135 } 136 /** 137 * @param EntityAnnotation[] 138 */ 139 public function setLabelAnnotations($labelAnnotations) 140 { 141 $this->labelAnnotations = $labelAnnotations; 142 } 143 /** 144 * @return EntityAnnotation[] 145 */ 146 public function getLabelAnnotations() 147 { 148 return $this->labelAnnotations; 149 } 150 /** 151 * @param EntityAnnotation[] 152 */ 153 public function setLandmarkAnnotations($landmarkAnnotations) 154 { 155 $this->landmarkAnnotations = $landmarkAnnotations; 156 } 157 /** 158 * @return EntityAnnotation[] 159 */ 160 public function getLandmarkAnnotations() 161 { 162 return $this->landmarkAnnotations; 163 } 164 /** 165 * @param LocalizedObjectAnnotation[] 166 */ 167 public function setLocalizedObjectAnnotations($localizedObjectAnnotations) 168 { 169 $this->localizedObjectAnnotations = $localizedObjectAnnotations; 170 } 171 /** 172 * @return LocalizedObjectAnnotation[] 173 */ 174 public function getLocalizedObjectAnnotations() 175 { 176 return $this->localizedObjectAnnotations; 177 } 178 /** 179 * @param EntityAnnotation[] 180 */ 181 public function setLogoAnnotations($logoAnnotations) 182 { 183 $this->logoAnnotations = $logoAnnotations; 184 } 185 /** 186 * @return EntityAnnotation[] 187 */ 188 public function getLogoAnnotations() 189 { 190 return $this->logoAnnotations; 191 } 192 /** 193 * @param ProductSearchResults 194 */ 195 public function setProductSearchResults(ProductSearchResults $productSearchResults) 196 { 197 $this->productSearchResults = $productSearchResults; 198 } 199 /** 200 * @return ProductSearchResults 201 */ 202 public function getProductSearchResults() 203 { 204 return $this->productSearchResults; 205 } 206 /** 207 * @param SafeSearchAnnotation 208 */ 209 public function setSafeSearchAnnotation(SafeSearchAnnotation $safeSearchAnnotation) 210 { 211 $this->safeSearchAnnotation = $safeSearchAnnotation; 212 } 213 /** 214 * @return SafeSearchAnnotation 215 */ 216 public function getSafeSearchAnnotation() 217 { 218 return $this->safeSearchAnnotation; 219 } 220 /** 221 * @param EntityAnnotation[] 222 */ 223 public function setTextAnnotations($textAnnotations) 224 { 225 $this->textAnnotations = $textAnnotations; 226 } 227 /** 228 * @return EntityAnnotation[] 229 */ 230 public function getTextAnnotations() 231 { 232 return $this->textAnnotations; 233 } 234 /** 235 * @param WebDetection 236 */ 237 public function setWebDetection(WebDetection $webDetection) 238 { 239 $this->webDetection = $webDetection; 240 } 241 /** 242 * @return WebDetection 243 */ 244 public function getWebDetection() 245 { 246 return $this->webDetection; 247 } 248} 249 250// Adding a class alias for backwards compatibility with the previous class name. 251class_alias(AnnotateImageResponse::class, 'Google_Service_Vision_AnnotateImageResponse'); 252