Cloud AutoML V1beta1 Client - Class TextSnippet (1.5.4)

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
NameDescription
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
TypeDescription
string

setContent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getContentUri

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

Returns
TypeDescription
string

setContentUri

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this