Interface TextSpanOrBuilder (2.9.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 output text.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

The content of the output text.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.