public static interface Block.Builder extends SdkPojo, CopyableBuilder<Block.Builder,Block>
| Modifier and Type | Method and Description |
|---|---|
Block.Builder |
blockType(BlockType blockType)
The block represents a line of text or one word of text.
|
Block.Builder |
blockType(String blockType)
The block represents a line of text or one word of text.
|
default Block.Builder |
geometry(Consumer<Geometry.Builder> geometry)
Co-ordinates of the rectangle or polygon that contains the text.
|
Block.Builder |
geometry(Geometry geometry)
Co-ordinates of the rectangle or polygon that contains the text.
|
Block.Builder |
id(String id)
Unique identifier for the block.
|
Block.Builder |
page(Integer page)
Page number where the block appears.
|
Block.Builder |
relationships(Collection<RelationshipsListItem> relationships)
A list of child blocks of the current block.
|
Block.Builder |
relationships(Consumer<RelationshipsListItem.Builder>... relationships)
A list of child blocks of the current block.
|
Block.Builder |
relationships(RelationshipsListItem... relationships)
A list of child blocks of the current block.
|
Block.Builder |
text(String text)
The word or line of text extracted from the block.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBlock.Builder id(String id)
Unique identifier for the block.
id - Unique identifier for the block.Block.Builder blockType(String blockType)
The block represents a line of text or one word of text.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page
blockType - The block represents a line of text or one word of text.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page
BlockType,
BlockTypeBlock.Builder blockType(BlockType blockType)
The block represents a line of text or one word of text.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page
blockType - The block represents a line of text or one word of text.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page
BlockType,
BlockTypeBlock.Builder text(String text)
The word or line of text extracted from the block.
text - The word or line of text extracted from the block.Block.Builder page(Integer page)
Page number where the block appears.
page - Page number where the block appears.Block.Builder geometry(Geometry geometry)
Co-ordinates of the rectangle or polygon that contains the text.
geometry - Co-ordinates of the rectangle or polygon that contains the text.default Block.Builder geometry(Consumer<Geometry.Builder> geometry)
Co-ordinates of the rectangle or polygon that contains the text.
This is a convenience method that creates an instance of theGeometry.Builder avoiding the need to
create one manually via Geometry.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to geometry(Geometry).
geometry - a consumer that will call methods on Geometry.Buildergeometry(Geometry)Block.Builder relationships(Collection<RelationshipsListItem> relationships)
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
relationships - A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD
block that's part of the line of text.Block.Builder relationships(RelationshipsListItem... relationships)
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
relationships - A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD
block that's part of the line of text.Block.Builder relationships(Consumer<RelationshipsListItem.Builder>... relationships)
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
This is a convenience method that creates an instance of theRelationshipsListItem.Builder avoiding the need to
create one manually via
RelationshipsListItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #relationships(List.
relationships - a consumer that will call methods on
RelationshipsListItem.Builder#relationships(java.util.Collection) Copyright © 2023. All rights reserved.