Interface TextSpanOrBuilder (2.45.0)

public interface TextSpanOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBeginOffset()

public abstract int getBeginOffset()

The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.

int32 begin_offset = 2;

Returns
Type Description
int

The beginOffset.

getContent()

public abstract String getContent()

The content of the output text.

string content = 1;

Returns
Type Description
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

The content of the output text.

string content = 1;

Returns
Type Description
ByteString

The bytes for content.