Interface Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder (2.57.0)

public static interface Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBlocks(int index)

public abstract Document.DocumentLayout.DocumentLayoutBlock getBlocks(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock

getBlocksCount()

public abstract int getBlocksCount()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
int

getBlocksList()

public abstract List<Document.DocumentLayout.DocumentLayoutBlock> getBlocksList()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
List<DocumentLayoutBlock>

getBlocksOrBuilder(int index)

public abstract Document.DocumentLayout.DocumentLayoutBlockOrBuilder getBlocksOrBuilder(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlockOrBuilder

getBlocksOrBuilderList()

public abstract List<? extends Document.DocumentLayout.DocumentLayoutBlockOrBuilder> getBlocksOrBuilderList()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlockOrBuilder>

getText()

public abstract String getText()

Text content stored in the block.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Text content stored in the block.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getType()

public abstract String getType()

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.