TextSpan
class TextSpan extends Message
Represents an output piece of text.
Protobuf type Google\Cloud\Language\V1beta2\TextSpan
Methods
No description
The content of the output text.
The content of the output text.
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request.
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request.
Details
at line 32
__construct()
at line 43
string
getContent()
The content of the output text.
Generated from protobuf field string content = 1;
at line 54
setContent(string $var)
The content of the output text.
Generated from protobuf field string content = 1;
at line 67
int
getBeginOffset()
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request.
Generated from protobuf field int32 begin_offset = 2;
at line 79
setBeginOffset(int $var)
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1beta2.EncodingType] specified in the API request.
Generated from protobuf field int32 begin_offset = 2;