Class Paragraph.Builder (2.1.2)

public static final class Paragraph.Builder extends GeneratedMessageV3.Builder<Paragraph.Builder> implements ParagraphOrBuilder

Structural unit of text representing a number of words in certain order.

Protobuf type google.cloud.vision.v1.Paragraph

Implements

ParagraphOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllWords(Iterable<? extends Word> values)

public Paragraph.Builder addAllWords(Iterable<? extends Word> values)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWords(Word value)

public Paragraph.Builder addWords(Word value)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameter
NameDescription
valueWord
Returns
TypeDescription
Paragraph.Builder

addWords(Word.Builder builderForValue)

public Paragraph.Builder addWords(Word.Builder builderForValue)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameter
NameDescription
builderForValueWord.Builder
Returns
TypeDescription
Paragraph.Builder

addWords(int index, Word value)

public Paragraph.Builder addWords(int index, Word value)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameters
NameDescription
indexint
valueWord
Returns
TypeDescription
Paragraph.Builder

addWords(int index, Word.Builder builderForValue)

public Paragraph.Builder addWords(int index, Word.Builder builderForValue)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameters
NameDescription
indexint
builderForValueWord.Builder
Returns
TypeDescription