Cloud AutoML V1 Client - Class ExamplePayload (2.0.1)

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 Image

Example image.

↳ text_snippet TextSnippet

Example text.

↳ document Document

Example document.

getImage

Example image.

Returns
Type Description
Image|null

hasImage

setImage

Example image.

Parameter
Name Description
var Image
Returns
Type Description
$this

getTextSnippet

Example text.

Returns
Type Description
TextSnippet|null

hasTextSnippet

setTextSnippet

Example text.

Parameter
Name Description
var TextSnippet
Returns
Type Description
$this

getDocument

Example document.

Returns
Type Description
Document|null

hasDocument

setDocument

Example document.

Parameter
Name Description
var Document
Returns
Type Description
$this

getPayload

Returns
Type Description
string