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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock build()
buildPartial()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock buildPartial()
clear()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearText()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clearText()
Text content stored in the block.
string text = 1;
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;
clone()
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder clone()
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
|
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
|
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;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock other)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides