Cloud AutoML V1beta1 Client - Class Image (1.6.5)

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

A representation of an image.

Only images up to 30MB in size are supported.

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

Namespace

Google \ Cloud \ AutoMl \ V1beta1

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.

↳ input_config Google\Cloud\AutoMl\V1beta1\InputConfig

An input config specifying the content of the image.

↳ 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

getInputConfig

An input config specifying the content of the image.

Returns
Type Description
Google\Cloud\AutoMl\V1beta1\InputConfig|null

hasInputConfig

setInputConfig

An input config specifying the content of the image.

Parameter
Name Description
var Google\Cloud\AutoMl\V1beta1\InputConfig
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