class Image extends Message

Client image to perform Google Cloud Vision API tasks over.

Protobuf type Google\Cloud\Vision\V1\Image

Methods

__construct()

No description

string
getContent()

Image content, represented as a stream of bytes.

setContent(string $var)

Image content, represented as a stream of bytes.

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.

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.

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;

Return Value

string

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;

Parameters

string $var

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;

Return Value

ImageSource

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;

Parameters

ImageSource $var