Class Block.Builder (2.1.2)

public static final class Block.Builder extends GeneratedMessageV3.Builder<Block.Builder> implements BlockOrBuilder

Logical element on the page.

Protobuf type google.cloud.vision.v1p3beta1.Block

Implements

BlockOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllParagraphs(Iterable<? extends Paragraph> values)

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

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.Paragraph>
Returns
TypeDescription
Block.Builder

addParagraphs(Paragraph value)

public Block.Builder addParagraphs(Paragraph value)

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Parameter
NameDescription
valueParagraph
Returns
TypeDescription
Block.Builder

addParagraphs(Paragraph.Builder builderForValue)

public Block.Builder addParagraphs(Paragraph.Builder builderForValue)

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Parameter
NameDescription
builderForValueParagraph.Builder
Returns
TypeDescription
Block.Builder

addParagraphs(int index, Paragraph value)

public Block.Builder addParagraphs(int index, Paragraph value)

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Parameters
NameDescription
indexint
valueParagraph
Returns
TypeDescription
Block.Builder

addParagraphs(int index, Paragraph.Builder builderForValue)

public Block.Builder addParagraphs(int index, Paragraph.Builder builderForValue)

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Parameters
NameDescription
indexint
builderForValueParagraph.Builder
Returns
TypeDescription
Block.Builder

addParagraphsBuilder()

public Paragraph.Builder addParagraphsBuilder()

List of paragraphs in this block (if this blocks is of type text).

repeated .google.cloud.vision.v1p3beta1.Paragraph paragraphs = 3;

Returns
TypeDescription
Paragraph.Builder

addParagraphsBuilder(int index)

public Paragraph.Builder addParagraphsBuilder(int index)