Cloud AutoML V1beta1 Client - Class TextSnippet (1.6.5)

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

A representation of a text snippet.

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

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ content string

Required. The content of the text snippet as a string. Up to 250000 characters long.

↳ mime_type string

Optional. The format of content. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded content.

↳ content_uri string

Output only. HTTP URI where you can download the content.

getContent

Required. The content of the text snippet as a string. Up to 250000 characters long.

Returns
Type Description
string

setContent

Required. The content of the text snippet as a string. Up to 250000 characters long.

Parameter
Name Description
var string
Returns
Type Description
$this

getMimeType

Optional. The format of content. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded content.

Returns
Type Description
string

setMimeType

Optional. The format of content. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded content.

Parameter
Name Description
var string
Returns
Type Description
$this

getContentUri

Output only. HTTP URI where you can download the content.

Returns
Type Description
string

setContentUri

Output only. HTTP URI where you can download the content.

Parameter
Name Description
var string
Returns
Type Description
$this