Interface TextAnnotationOrBuilder (3.12.0)

public interface TextAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPages(int index)

public abstract Page getPages(int index)

List of pages detected by OCR.

repeated .google.cloud.vision.v1p2beta1.Page pages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Page

getPagesCount()

public abstract int getPagesCount()

List of pages detected by OCR.

repeated .google.cloud.vision.v1p2beta1.Page pages = 1;

Returns
TypeDescription
int

getPagesList()

public abstract List<Page> getPagesList()

List of pages detected by OCR.

repeated .google.cloud.vision.v1p2beta1.Page pages = 1;

Returns
TypeDescription
List<Page>

getPagesOrBuilder(int index)

public abstract PageOrBuilder getPagesOrBuilder(int index)

List of pages detected by OCR.

repeated .google.cloud.vision.v1p2beta1.Page pages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PageOrBuilder

getPagesOrBuilderList()

public abstract List<? extends PageOrBuilder> getPagesOrBuilderList()

List of pages detected by OCR.

repeated .google.cloud.vision.v1p2beta1.Page pages = 1;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p2beta1.PageOrBuilder>

getText()

public abstract String getText()

UTF-8 text detected on the pages.

string text = 2;

Returns
TypeDescription
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

UTF-8 text detected on the pages.

string text = 2;

Returns
TypeDescription
ByteString

The bytes for text.