Class Document.Page.Builder (2.12.0)

public static final class Document.Page.Builder extends GeneratedMessageV3.Builder<Document.Page.Builder> implements Document.PageOrBuilder

A page in a Document.

Protobuf type google.cloud.documentai.v1.Document.Page

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBlocks(Iterable<? extends Document.Page.Block> values)

public Document.Page.Builder addAllBlocks(Iterable<? extends Document.Page.Block> values)

A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Document.Page.Block>
Returns
TypeDescription
Document.Page.Builder

addAllDetectedBarcodes(Iterable<? extends Document.Page.DetectedBarcode> values)

public Document.Page.Builder addAllDetectedBarcodes(Iterable<? extends Document.Page.DetectedBarcode> values)

A list of detected barcodes.

repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Document.Page.DetectedBarcode>
Returns
TypeDescription
Document.Page.Builder

addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)

public Document.Page.Builder addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Document.Page.DetectedLanguage>
Returns
TypeDescription
Document.Page.Builder

addAllFormFields(Iterable<? extends Document.Page.FormField> values)

public Document.Page.Builder addAllFormFields(Iterable<? extends Document.Page.FormField> values)

A list of visually detected form fields on the page.

repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Document.Page.FormField>
Returns
TypeDescription
Document.Page.Builder

addAllLines(Iterable<? extends Document.Page.Line> values)

public Document.Page.Builder addAllLines(Iterable<? extends Document.Page.Line> values)

A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.

repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.Document.Page.Line>
Returns
TypeDescription
Document.Page.Builder

addAllParagraphs(Iterable<? extends Document.Page.Paragraph> values)

public Document.Page.Builder addAllParagraphs(Iterable<? extends Document.Page.Paragraph> values)

A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.