Reference documentation and code samples for the Cloud AutoML V1beta1 Client class TextSegment.
A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
Generated from protobuf message google.cloud.automl.v1beta1.TextSegment
Namespace
Google \ Cloud \ AutoMl \ V1beta1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ content
string
Output only. The content of the TextSegment.
↳ start_offset
int|string
Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
↳ end_offset
int|string
Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.
getContent
Output only. The content of the TextSegment.
string
setContent
Output only. The content of the TextSegment.
var
string
$this
getStartOffset
Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
int|string
setStartOffset
Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
var
int|string
$this
getEndOffset
Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text).
The character at the end_offset is NOT included in the text segment.
int|string
setEndOffset
Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text).
The character at the end_offset is NOT included in the text segment.
var
int|string
$this