Cloud AutoML V1 Client - Class ExamplePayload (1.5.4)

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
NameDescription
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
TypeDescription
Google\Cloud\AutoMl\V1\Image|null

hasImage

setImage

Example image.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1\Image
Returns
TypeDescription
$this

getTextSnippet

Example text.

Returns
TypeDescription
Google\Cloud\AutoMl\V1\TextSnippet|null

hasTextSnippet

setTextSnippet

Example text.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1\TextSnippet
Returns
TypeDescription
$this

getDocument

Example document.

Returns
TypeDescription
Google\Cloud\AutoMl\V1\Document|null

hasDocument

setDocument

Example document.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1\Document
Returns
TypeDescription
$this

getPayload

Returns
TypeDescription
string