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 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

       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;