Class Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder (2.51.0)

public static final class Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder extends GeneratedMessageV3.Builder<Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder> implements Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder

Represents a text type block.

Protobuf type google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBlocks(Iterable<? extends Document.DocumentLayout.DocumentLayoutBlock> values)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addAllBlocks(Iterable<? extends Document.DocumentLayout.DocumentLayoutBlock> values)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock>
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

addBlocks(Document.DocumentLayout.DocumentLayoutBlock value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock value)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
value Document.DocumentLayout.DocumentLayoutBlock
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
builderForValue Document.DocumentLayout.DocumentLayoutBlock.Builder
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameters
Name Description
index int
value Document.DocumentLayout.DocumentLayoutBlock
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameters
Name Description
index int
builderForValue Document.DocumentLayout.DocumentLayoutBlock.Builder
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

addBlocksBuilder()

public Document.DocumentLayout.DocumentLayoutBlock.Builder addBlocksBuilder()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.Builder

addBlocksBuilder(int index)

public Document.DocumentLayout.DocumentLayoutBlock.Builder addBlocksBuilder(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

build()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock build()
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock

buildPartial()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock buildPartial()
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock

clear()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clear()
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

clearBlocks()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearBlocks()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

clearText()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearText()

Text content stored in the block.

string text = 1;

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

clearType()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearType()

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

clone()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clone()
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

getBlocks(int index)

public Document.DocumentLayout.DocumentLayoutBlock getBlocks(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock

getBlocksBuilder(int index)

public Document.DocumentLayout.DocumentLayoutBlock.Builder getBlocksBuilder(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.Builder

getBlocksBuilderList()

public List<Document.DocumentLayout.DocumentLayoutBlock.Builder> getBlocksBuilderList()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
List<Builder>

getBlocksCount()

public int getBlocksCount()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
int

getBlocksList()

public List<Document.DocumentLayout.DocumentLayoutBlock> getBlocksList()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
List<DocumentLayoutBlock>

getBlocksOrBuilder(int index)

public Document.DocumentLayout.DocumentLayoutBlockOrBuilder getBlocksOrBuilder(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlockOrBuilder

getBlocksOrBuilderList()

public List<? extends Document.DocumentLayout.DocumentLayoutBlockOrBuilder> getBlocksOrBuilderList()

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlockOrBuilder>

getDefaultInstanceForType()

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock getDefaultInstanceForType()
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getText()

public String getText()

Text content stored in the block.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Text content stored in the block.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getType()

public String getType()

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock other)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock other)
Parameter
Name Description
other Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

removeBlocks(int index)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder removeBlocks(int index)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameter
Name Description
index int
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameters
Name Description
index int
value Document.DocumentLayout.DocumentLayoutBlock
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)

A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3;

Parameters
Name Description
index int
builderForValue Document.DocumentLayout.DocumentLayoutBlock.Builder
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides

setText(String value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setText(String value)

Text content stored in the block.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setTextBytes(ByteString value)

Text content stored in the block.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

setType(String value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setType(String value)

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setTypeBytes(ByteString value)

Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
Overrides