Interface TextSpanOrBuilder (2.38.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
TypeDescription
int

The beginOffset.

getContent()

public abstract String getContent()

The content of the text span, which is a substring of the document.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

The content of the text span, which is a substring of the document.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.