Class Document.Page.Layout.Builder (2.12.0)

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

Visual element describing a layout unit on a page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Layout

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Layout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Layout.Builder
Overrides

build()

public Document.Page.Layout build()
Returns
TypeDescription
Document.Page.Layout

buildPartial()

public Document.Page.Layout buildPartial()
Returns
TypeDescription
Document.Page.Layout

clear()

public Document.Page.Layout.Builder clear()
Returns
TypeDescription
Document.Page.Layout.Builder
Overrides

clearBoundingPoly()

public Document.Page.Layout.Builder clearBoundingPoly()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta3.BoundingPoly bounding_poly = 3;

Returns
TypeDescription
Document.Page.Layout.Builder

clearConfidence()

public Document.Page.Layout.Builder clearConfidence()

Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
Document.Page.Layout.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Document.Page.Layout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Page.Layout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.Layout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name