context = $context; } /** * @return GoogleCloudVisionV1p1beta1ImageAnnotationContext */ public function getContext() { return $this->context; } /** * If present, crop hints have completed successfully. * * @param GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation */ public function setCropHintsAnnotation(GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation) { $this->cropHintsAnnotation = $cropHintsAnnotation; } /** * @return GoogleCloudVisionV1p1beta1CropHintsAnnotation */ public function getCropHintsAnnotation() { return $this->cropHintsAnnotation; } /** * If set, represents the error message for the operation. Note that filled-in * image annotations are guaranteed to be correct, even when `error` is set. * * @param Status $error */ public function setError(Status $error) { $this->error = $error; } /** * @return Status */ public function getError() { return $this->error; } /** * If present, face detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1FaceAnnotation[] $faceAnnotations */ public function setFaceAnnotations($faceAnnotations) { $this->faceAnnotations = $faceAnnotations; } /** * @return GoogleCloudVisionV1p1beta1FaceAnnotation[] */ public function getFaceAnnotations() { return $this->faceAnnotations; } /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. * * @param GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation */ public function setFullTextAnnotation(GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation) { $this->fullTextAnnotation = $fullTextAnnotation; } /** * @return GoogleCloudVisionV1p1beta1TextAnnotation */ public function getFullTextAnnotation() { return $this->fullTextAnnotation; } /** * If present, image properties were extracted successfully. * * @param GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation */ public function setImagePropertiesAnnotation(GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation) { $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; } /** * @return GoogleCloudVisionV1p1beta1ImageProperties */ public function getImagePropertiesAnnotation() { return $this->imagePropertiesAnnotation; } /** * If present, label detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $labelAnnotations */ public function setLabelAnnotations($labelAnnotations) { $this->labelAnnotations = $labelAnnotations; } /** * @return GoogleCloudVisionV1p1beta1EntityAnnotation[] */ public function getLabelAnnotations() { return $this->labelAnnotations; } /** * If present, landmark detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $landmarkAnnotations */ public function setLandmarkAnnotations($landmarkAnnotations) { $this->landmarkAnnotations = $landmarkAnnotations; } /** * @return GoogleCloudVisionV1p1beta1EntityAnnotation[] */ public function getLandmarkAnnotations() { return $this->landmarkAnnotations; } /** * If present, localized object detection has completed successfully. This * will be sorted descending by confidence score. * * @param GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation[] $localizedObjectAnnotations */ public function setLocalizedObjectAnnotations($localizedObjectAnnotations) { $this->localizedObjectAnnotations = $localizedObjectAnnotations; } /** * @return GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation[] */ public function getLocalizedObjectAnnotations() { return $this->localizedObjectAnnotations; } /** * If present, logo detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $logoAnnotations */ public function setLogoAnnotations($logoAnnotations) { $this->logoAnnotations = $logoAnnotations; } /** * @return GoogleCloudVisionV1p1beta1EntityAnnotation[] */ public function getLogoAnnotations() { return $this->logoAnnotations; } /** * If present, product search has completed successfully. * * @param GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults */ public function setProductSearchResults(GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults) { $this->productSearchResults = $productSearchResults; } /** * @return GoogleCloudVisionV1p1beta1ProductSearchResults */ public function getProductSearchResults() { return $this->productSearchResults; } /** * If present, safe-search annotation has completed successfully. * * @param GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation */ public function setSafeSearchAnnotation(GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation) { $this->safeSearchAnnotation = $safeSearchAnnotation; } /** * @return GoogleCloudVisionV1p1beta1SafeSearchAnnotation */ public function getSafeSearchAnnotation() { return $this->safeSearchAnnotation; } /** * If present, text (OCR) detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $textAnnotations */ public function setTextAnnotations($textAnnotations) { $this->textAnnotations = $textAnnotations; } /** * @return GoogleCloudVisionV1p1beta1EntityAnnotation[] */ public function getTextAnnotations() { return $this->textAnnotations; } /** * If present, web detection has completed successfully. * * @param GoogleCloudVisionV1p1beta1WebDetection $webDetection */ public function setWebDetection(GoogleCloudVisionV1p1beta1WebDetection $webDetection) { $this->webDetection = $webDetection; } /** * @return GoogleCloudVisionV1p1beta1WebDetection */ public function getWebDetection() { return $this->webDetection; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudVisionV1p1beta1AnnotateImageResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateImageResponse');