Package com.google.cloud.documentai.v1
Interface Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock,Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock.Builder
- Enclosing class:
- Document.DocumentLayout.DocumentLayoutBlock
public static interface Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAnnotation of the text block.Annotation of the text block.getBlocks(int index) A text block could further have child blocks.intA text block could further have child blocks.A text block could further have child blocks.getBlocksOrBuilder(int index) A text block could further have child blocks.A text block could further have child blocks.getText()Text content stored in the block.com.google.protobuf.ByteStringText content stored in the block.getType()Type of the text in the block.com.google.protobuf.ByteStringType of the text in the block.booleanAnnotation of the text block.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getText
String getText()Text content stored in the block.
string text = 1;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()Text content stored in the block.
string text = 1;- Returns:
- The bytes for text.
-
getType
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:
- The type.
-
getTypeBytes
com.google.protobuf.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:
- The bytes for type.
-
getBlocksList
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; -
getBlocks
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
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; -
getBlocksOrBuilderList
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; -
getBlocksOrBuilder
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; -
hasAnnotations
boolean hasAnnotations()Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Returns:
- Whether the annotations field is set.
-
getAnnotations
Document.Annotations getAnnotations()Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;- Returns:
- The annotations.
-
getAnnotationsOrBuilder
Document.AnnotationsOrBuilder getAnnotationsOrBuilder()Annotation of the text block.
.google.cloud.documentai.v1.Document.Annotations annotations = 4;
-