Cloud AutoML V1 Client - Class ExamplePayload (2.0.0)

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

Example data used for training or prediction.

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

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image Google\Cloud\AutoMl\V1\Image

Example image.

↳ text_snippet Google\Cloud\AutoMl\V1\TextSnippet

Example text.

↳ document Google\Cloud\AutoMl\V1\Document

Example document.

getImage

Example image.

Returns
Type Description
Google\Cloud\AutoMl\V1\Image|null

hasImage

setImage

Example image.

Parameter
Name Description
var Google\Cloud\AutoMl\V1\Image
Returns
Type Description
$this

getTextSnippet

Example text.

Returns
Type Description
Google\Cloud\AutoMl\V1\TextSnippet|null

hasTextSnippet

setTextSnippet

Example text.

Parameter
Name Description
var Google\Cloud\AutoMl\V1\TextSnippet
Returns
Type Description
$this

getDocument

Example document.

Returns
Type Description
Google\Cloud\AutoMl\V1\Document|null

hasDocument

setDocument

Example document.

Parameter
Name Description
var Google\Cloud\AutoMl\V1\Document
Returns
Type Description
$this

getPayload

Returns
Type Description
string