Cloud AutoML V1 Client - Class Image (1.6.5)

Reference documentation and code samples for the Cloud AutoML V1 Client class Image.

A representation of an image.

Only images up to 30MB in size are supported.

Generated from protobuf message google.cloud.automl.v1.Image

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image_bytes string

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.

↳ thumbnail_uri string

Output only. HTTP URI to the thumbnail image.

getImageBytes

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.

Returns
Type Description
string

hasImageBytes

setImageBytes

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getThumbnailUri

Output only. HTTP URI to the thumbnail image.

Returns
Type Description
string

setThumbnailUri

Output only. HTTP URI to the thumbnail image.

Parameter
Name Description
var string
Returns
Type Description
$this

getData

Returns
Type Description
string