Cloud AutoML V1beta1 Client - Class Image (1.5.4)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getInputConfig

An input config specifying the content of the image.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\InputConfig|null

hasInputConfig

setInputConfig

An input config specifying the content of the image.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\InputConfig
Returns
TypeDescription
$this

getThumbnailUri

Output only. HTTP URI to the thumbnail image.

Returns
TypeDescription
string

setThumbnailUri

Output only. HTTP URI to the thumbnail image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getData

Returns
TypeDescription
string