public static final class Document.DocumentLayout.Builder extends GeneratedMessageV3.Builder<Document.DocumentLayout.Builder> implements Document.DocumentLayoutOrBuilder
Represents the parsed layout of a document as a collection of blocks that
the document is divided into.
Protobuf type google.cloud.documentai.v1.Document.DocumentLayout
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.Builder addAllBlocks(Iterable<? extends Document.DocumentLayout.DocumentLayoutBlock> values)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock>
|
addBlocks(Document.DocumentLayout.DocumentLayoutBlock value)
public Document.DocumentLayout.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock value)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
public Document.DocumentLayout.Builder addBlocks(Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)
public Document.DocumentLayout.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
public Document.DocumentLayout.Builder addBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
addBlocksBuilder()
public Document.DocumentLayout.DocumentLayoutBlock.Builder addBlocksBuilder()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
addBlocksBuilder(int index)
public Document.DocumentLayout.DocumentLayoutBlock.Builder addBlocksBuilder(int index)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.DocumentLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Document.DocumentLayout build()
buildPartial()
public Document.DocumentLayout buildPartial()
clear()
public Document.DocumentLayout.Builder clear()
Overrides
clearBlocks()
public Document.DocumentLayout.Builder clearBlocks()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
clearField(Descriptors.FieldDescriptor field)
public Document.DocumentLayout.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.DocumentLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Document.DocumentLayout.Builder clone()
Overrides
getBlocks(int index)
public Document.DocumentLayout.DocumentLayoutBlock getBlocks(int index)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
index |
int
|
getBlocksBuilder(int index)
public Document.DocumentLayout.DocumentLayoutBlock.Builder getBlocksBuilder(int index)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
index |
int
|
getBlocksBuilderList()
public List<Document.DocumentLayout.DocumentLayoutBlock.Builder> getBlocksBuilderList()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
getBlocksCount()
public int getBlocksCount()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Returns |
Type |
Description |
int |
|
getBlocksList()
public List<Document.DocumentLayout.DocumentLayoutBlock> getBlocksList()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
getBlocksOrBuilder(int index)
public Document.DocumentLayout.DocumentLayoutBlockOrBuilder getBlocksOrBuilder(int index)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
index |
int
|
getBlocksOrBuilderList()
public List<? extends Document.DocumentLayout.DocumentLayoutBlockOrBuilder> getBlocksOrBuilderList()
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlockOrBuilder> |
|
getDefaultInstanceForType()
public Document.DocumentLayout getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Document.DocumentLayout other)
public Document.DocumentLayout.Builder mergeFrom(Document.DocumentLayout other)
public Document.DocumentLayout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Document.DocumentLayout.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.DocumentLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeBlocks(int index)
public Document.DocumentLayout.Builder removeBlocks(int index)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
Parameter |
Name |
Description |
index |
int
|
setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)
public Document.DocumentLayout.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock value)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
public Document.DocumentLayout.Builder setBlocks(int index, Document.DocumentLayout.DocumentLayoutBlock.Builder builderForValue)
List of blocks in the document.
repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public Document.DocumentLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.DocumentLayout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.DocumentLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides