class TextSpan extends Message

Represents an output piece of text.

Protobuf type Google\Cloud\Language\V1beta2\TextSpan

Methods

__construct()

No description

string
getContent()

The content of the output text.

setContent(string $var)

The content of the output text.

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.

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.

Details

at line 32
__construct()

at line 43
string getContent()

The content of the output text.

Generated from protobuf field string content = 1;

Return Value

string

at line 54
setContent(string $var)

The content of the output text.

Generated from protobuf field string content = 1;

Parameters

string $var

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;

Return Value

int

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;

Parameters

int $var