Cloud AutoML V1beta1 Client - Class ExamplePayload (1.4.17)

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

Example data used for training or prediction.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ image Google\Cloud\AutoMl\V1beta1\Image

Example image.

↳ text_snippet Google\Cloud\AutoMl\V1beta1\TextSnippet

Example text.

↳ document Google\Cloud\AutoMl\V1beta1\Document

Example document.

↳ row Google\Cloud\AutoMl\V1beta1\Row

Example relational table row.

getImage

Example image.

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

hasImage

setImage

Example image.

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

getTextSnippet

Example text.

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

hasTextSnippet

setTextSnippet

Example text.

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

getDocument

Example document.

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

hasDocument

setDocument

Example document.

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

getRow

Example relational table row.

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

hasRow

setRow

Example relational table row.

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

getPayload

Returns
TypeDescription
string