Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateImageResponse
extends Google_Collection
in package
Extension to the regular Google_Model that automatically exposes the items array for iteration, so you can just iterate over the object rather than a reference inside.
Table of Contents
- NULL_VALUE = "{}gapi-php-null"
- If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.
- $collection_key : mixed
- $contextDataType : mixed
- $contextType : mixed
- $cropHintsAnnotationDataType : mixed
- $cropHintsAnnotationType : mixed
- $errorDataType : mixed
- $errorType : mixed
- $faceAnnotationsDataType : mixed
- $faceAnnotationsType : mixed
- $fullTextAnnotationDataType : mixed
- $fullTextAnnotationType : mixed
- $imagePropertiesAnnotationDataType : mixed
- $imagePropertiesAnnotationType : mixed
- $internal_gapi_mappings : mixed
- $labelAnnotationsDataType : mixed
- $labelAnnotationsType : mixed
- $landmarkAnnotationsDataType : mixed
- $landmarkAnnotationsType : mixed
- $localizedObjectAnnotationsDataType : mixed
- $localizedObjectAnnotationsType : mixed
- $logoAnnotationsDataType : mixed
- $logoAnnotationsType : mixed
- $modelData : mixed
- $processed : mixed
- $productSearchResultsDataType : mixed
- $productSearchResultsType : mixed
- $safeSearchAnnotationDataType : mixed
- $safeSearchAnnotationType : mixed
- $textAnnotationsDataType : mixed
- $textAnnotationsType : mixed
- $webDetectionDataType : mixed
- $webDetectionType : mixed
- __construct() : mixed
- Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.
- __get() : mixed
- Getter that handles passthrough access to the data array, and lazy object creation.
- __isset() : mixed
- __unset() : mixed
- assertIsArray() : mixed
- Verify if $obj is an array.
- count() : mixed
- current() : mixed
- getContext() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext
- getCropHintsAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation
- getError() : Google_Service_Vision_Status
- getFaceAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation
- getFullTextAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation
- getImagePropertiesAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties
- getLabelAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
- getLandmarkAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
- getLocalizedObjectAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
- getLogoAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
- getProductSearchResults() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults
- getSafeSearchAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation
- getTextAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
- getWebDetection() : Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection
- key() : mixed
- next() : mixed
- offsetExists() : mixed
- offsetGet() : mixed
- offsetSet() : mixed
- offsetUnset() : mixed
- rewind() : mixed
- setContext() : mixed
- setCropHintsAnnotation() : mixed
- setError() : mixed
- setFaceAnnotations() : mixed
- setFullTextAnnotation() : mixed
- setImagePropertiesAnnotation() : mixed
- setLabelAnnotations() : mixed
- setLandmarkAnnotations() : mixed
- setLocalizedObjectAnnotations() : mixed
- setLogoAnnotations() : mixed
- setProductSearchResults() : mixed
- setSafeSearchAnnotation() : mixed
- setTextAnnotations() : mixed
- setWebDetection() : mixed
- toSimpleObject() : mixed
- Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.
- valid() : mixed
- dataType() : mixed
- gapiInit() : mixed
- Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.
- isAssociativeArray() : bool
- Returns true only if the array is associative.
- keyType() : mixed
- mapTypes() : void
- Initialize this object's properties from an array.
- camelCase() : string
- Convert a string to camelCase
- coerceType() : mixed
- getMappedName() : mixed
- If there is an internal name mapping, use that.
- getSimpleValue() : mixed
- Handle different types of values, primarily other objects and map and array data types.
- nullPlaceholderCheck() : mixed
- Check whether the value is the null placeholder and return true null.
Constants
NULL_VALUE
If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.
public
mixed
NULL_VALUE
= "{}gapi-php-null"
Properties
$collection_key
protected
mixed
$collection_key
= 'textAnnotations'
$contextDataType
protected
mixed
$contextDataType
= ''
$contextType
protected
mixed
$contextType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext'
$cropHintsAnnotationDataType
protected
mixed
$cropHintsAnnotationDataType
= ''
$cropHintsAnnotationType
protected
mixed
$cropHintsAnnotationType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation'
$errorDataType
protected
mixed
$errorDataType
= ''
$errorType
protected
mixed
$errorType
= 'Google_Service_Vision_Status'
$faceAnnotationsDataType
protected
mixed
$faceAnnotationsDataType
= 'array'
$faceAnnotationsType
protected
mixed
$faceAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation'
$fullTextAnnotationDataType
protected
mixed
$fullTextAnnotationDataType
= ''
$fullTextAnnotationType
protected
mixed
$fullTextAnnotationType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation'
$imagePropertiesAnnotationDataType
protected
mixed
$imagePropertiesAnnotationDataType
= ''
$imagePropertiesAnnotationType
protected
mixed
$imagePropertiesAnnotationType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties'
$internal_gapi_mappings
protected
mixed
$internal_gapi_mappings
= array()
$labelAnnotationsDataType
protected
mixed
$labelAnnotationsDataType
= 'array'
$labelAnnotationsType
protected
mixed
$labelAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation'
$landmarkAnnotationsDataType
protected
mixed
$landmarkAnnotationsDataType
= 'array'
$landmarkAnnotationsType
protected
mixed
$landmarkAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation'
$localizedObjectAnnotationsDataType
protected
mixed
$localizedObjectAnnotationsDataType
= 'array'
$localizedObjectAnnotationsType
protected
mixed
$localizedObjectAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation'
$logoAnnotationsDataType
protected
mixed
$logoAnnotationsDataType
= 'array'
$logoAnnotationsType
protected
mixed
$logoAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation'
$modelData
protected
mixed
$modelData
= array()
$processed
protected
mixed
$processed
= array()
$productSearchResultsDataType
protected
mixed
$productSearchResultsDataType
= ''
$productSearchResultsType
protected
mixed
$productSearchResultsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults'
$safeSearchAnnotationDataType
protected
mixed
$safeSearchAnnotationDataType
= ''
$safeSearchAnnotationType
protected
mixed
$safeSearchAnnotationType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation'
$textAnnotationsDataType
protected
mixed
$textAnnotationsDataType
= 'array'
$textAnnotationsType
protected
mixed
$textAnnotationsType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation'
$webDetectionDataType
protected
mixed
$webDetectionDataType
= ''
$webDetectionType
protected
mixed
$webDetectionType
= 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection'
Methods
__construct()
Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.
public
final __construct() : mixed
Return values
mixed —__get()
Getter that handles passthrough access to the data array, and lazy object creation.
public
__get(string $key) : mixed
Parameters
- $key : string
-
Property name.
Return values
mixed —The value if any, or null.
__isset()
public
__isset(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —__unset()
public
__unset(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —assertIsArray()
Verify if $obj is an array.
public
assertIsArray(array<string|int, mixed> $obj, string $method) : mixed
Parameters
- $obj : array<string|int, mixed>
-
Items that should be validated.
- $method : string
-
Method expecting an array as an argument.
Tags
Return values
mixed —count()
public
count() : mixed
Return values
mixed —current()
public
current() : mixed
Return values
mixed —getContext()
public
getContext() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext —getCropHintsAnnotation()
public
getCropHintsAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation —getError()
public
getError() : Google_Service_Vision_Status
Return values
Google_Service_Vision_Status —getFaceAnnotations()
public
getFaceAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation —getFullTextAnnotation()
public
getFullTextAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation —getImagePropertiesAnnotation()
public
getImagePropertiesAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties —getLabelAnnotations()
public
getLabelAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation —getLandmarkAnnotations()
public
getLandmarkAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation —getLocalizedObjectAnnotations()
public
getLocalizedObjectAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation —getLogoAnnotations()
public
getLogoAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation —getProductSearchResults()
public
getProductSearchResults() : Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults —getSafeSearchAnnotation()
public
getSafeSearchAnnotation() : Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation —getTextAnnotations()
public
getTextAnnotations() : Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation —getWebDetection()
public
getWebDetection() : Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection
Return values
Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection —key()
public
key() : mixed
Return values
mixed —next()
public
next() : mixed
Return values
mixed —offsetExists()
public
offsetExists(mixed $offset) : mixed
Parameters
- $offset : mixed
Return values
mixed —offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Return values
mixed —offsetSet()
public
offsetSet(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
Return values
mixed —offsetUnset()
public
offsetUnset(mixed $offset) : mixed
Parameters
- $offset : mixed
Return values
mixed —rewind()
public
rewind() : mixed
Return values
mixed —setContext()
public
setContext(Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext $context) : mixed
Parameters
Return values
mixed —setCropHintsAnnotation()
public
setCropHintsAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation) : mixed
Parameters
- $cropHintsAnnotation : Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation
Return values
mixed —setError()
public
setError(Google_Service_Vision_Status $error) : mixed
Parameters
- $error : Google_Service_Vision_Status
Return values
mixed —setFaceAnnotations()
public
setFaceAnnotations(mixed $faceAnnotations) : mixed
Parameters
- $faceAnnotations : mixed
Return values
mixed —setFullTextAnnotation()
public
setFullTextAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation) : mixed
Parameters
- $fullTextAnnotation : Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation
Return values
mixed —setImagePropertiesAnnotation()
public
setImagePropertiesAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation) : mixed
Parameters
- $imagePropertiesAnnotation : Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties
Return values
mixed —setLabelAnnotations()
public
setLabelAnnotations(mixed $labelAnnotations) : mixed
Parameters
- $labelAnnotations : mixed
Return values
mixed —setLandmarkAnnotations()
public
setLandmarkAnnotations(mixed $landmarkAnnotations) : mixed
Parameters
- $landmarkAnnotations : mixed
Return values
mixed —setLocalizedObjectAnnotations()
public
setLocalizedObjectAnnotations(mixed $localizedObjectAnnotations) : mixed
Parameters
- $localizedObjectAnnotations : mixed
Return values
mixed —setLogoAnnotations()
public
setLogoAnnotations(mixed $logoAnnotations) : mixed
Parameters
- $logoAnnotations : mixed
Return values
mixed —setProductSearchResults()
public
setProductSearchResults(Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults) : mixed
Parameters
- $productSearchResults : Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults
Return values
mixed —setSafeSearchAnnotation()
public
setSafeSearchAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation) : mixed
Parameters
- $safeSearchAnnotation : Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation
Return values
mixed —setTextAnnotations()
public
setTextAnnotations(mixed $textAnnotations) : mixed
Parameters
- $textAnnotations : mixed
Return values
mixed —setWebDetection()
public
setWebDetection(Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection $webDetection) : mixed
Parameters
- $webDetection : Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection
Return values
mixed —toSimpleObject()
Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.
public
toSimpleObject() : mixed
Return values
mixed —valid()
public
valid() : mixed
Return values
mixed —dataType()
protected
dataType(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —gapiInit()
Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.
protected
gapiInit() : mixed
Return values
mixed —isAssociativeArray()
Returns true only if the array is associative.
protected
isAssociativeArray(array<string|int, mixed> $array) : bool
Parameters
- $array : array<string|int, mixed>
Return values
bool —True if the array is associative.
keyType()
protected
keyType(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —mapTypes()
Initialize this object's properties from an array.
protected
mapTypes(array<string|int, mixed> $array) : void
Parameters
- $array : array<string|int, mixed>
-
Used to seed this object's properties.
Return values
void —camelCase()
Convert a string to camelCase
private
camelCase(string $value) : string
Parameters
- $value : string
Return values
string —coerceType()
private
coerceType(mixed $offset) : mixed
Parameters
- $offset : mixed
Return values
mixed —getMappedName()
If there is an internal name mapping, use that.
private
getMappedName(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —getSimpleValue()
Handle different types of values, primarily other objects and map and array data types.
private
getSimpleValue(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —nullPlaceholderCheck()
Check whether the value is the null placeholder and return true null.
private
nullPlaceholderCheck(mixed $value) : mixed
Parameters
- $value : mixed