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 \ V1beta1Methods
__construct
Constructor.
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
↳ 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.
string
setContent
Required. The content of the text snippet as a string. Up to 250000 characters long.
var
string
$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 .
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 .
var
string
$this
getContentUri
Output only. HTTP URI where you can download the content.
string
setContentUri
Output only. HTTP URI where you can download the content.
var
string
$this