Image
class Image extends Message
Client image to perform Google Cloud Vision API tasks over.
Protobuf type Google\Cloud\Vision\V1\Image
Methods
No description
Image content, represented as a stream of bytes.
Image content, represented as a stream of bytes.
Google Cloud Storage image location. If both content
and source
are provided for an image, content
takes precedence and is
used to perform the image annotation request.
Google Cloud Storage image location. If both content
and source
are provided for an image, content
takes precedence and is
used to perform the image annotation request.
Details
at line 35
__construct()
at line 48
string
getContent()
Image content, represented as a stream of bytes.
Note: as with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Generated from protobuf field bytes content = 1;
at line 61
setContent(string $var)
Image content, represented as a stream of bytes.
Note: as with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Generated from protobuf field bytes content = 1;
at line 75
ImageSource
getSource()
Google Cloud Storage image location. If both content
and source
are provided for an image, content
takes precedence and is
used to perform the image annotation request.
Generated from protobuf field .google.cloud.vision.v1.ImageSource source = 2;
at line 88
setSource(ImageSource $var)
Google Cloud Storage image location. If both content
and source
are provided for an image, content
takes precedence and is
used to perform the image annotation request.
Generated from protobuf field .google.cloud.vision.v1.ImageSource source = 2;