Class Document.DocumentLayout.DocumentLayoutBlock (2.80.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.80.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Document . DocumentLayout . DocumentLayoutBlock   extends   GeneratedMessageV3   implements   Document . DocumentLayout . DocumentLayoutBlockOrBuilder  
   Represents a block. A block could be one of the various types (text,
 table, list) supported.
 Protobuf type 
 google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  BLOCK_ID_FIELD_NUMBER 
  
    
public   static   final   int   BLOCK_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  BOUNDING_BOX_FIELD_NUMBER 
  
    
public   static   final   int   BOUNDING_BOX_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  IMAGE_BLOCK_FIELD_NUMBER 
  
    
public   static   final   int   IMAGE_BLOCK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  LIST_BLOCK_FIELD_NUMBER 
  
    
public   static   final   int   LIST_BLOCK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PAGE_SPAN_FIELD_NUMBER 
  
    
public   static   final   int   PAGE_SPAN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TABLE_BLOCK_FIELD_NUMBER 
  
    
public   static   final   int   TABLE_BLOCK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TEXT_BLOCK_FIELD_NUMBER 
  
    
public   static   final   int   TEXT_BLOCK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock . Builder   newBuilder ()  
  
  newBuilder(Document.DocumentLayout.DocumentLayoutBlock prototype) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock . Builder   newBuilder ( Document . DocumentLayout . DocumentLayoutBlock   prototype )  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Document . DocumentLayout . DocumentLayoutBlock   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Document . DocumentLayout . DocumentLayoutBlock >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getBlockCase() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . BlockCase   getBlockCase ()  
  
  getBlockId() 
  
    
public   String   getBlockId ()  
   ID of the block.
 string block_id = 1;
    
      
        Returns  
      
        Type Description  
      
        String The blockId.
 
     
  
  getBlockIdBytes() 
  
    
public   ByteString   getBlockIdBytes ()  
   ID of the block.
 string block_id = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for blockId.
 
     
  
  getBoundingBox() 
  
    
public   BoundingPoly   getBoundingBox ()  
   Identifies the bounding box for the block.
 .google.cloud.documentai.v1beta3.BoundingPoly bounding_box = 6;
getBoundingBoxOrBuilder() 
  
    
public   BoundingPolyOrBuilder   getBoundingBoxOrBuilder ()  
   Identifies the bounding box for the block.
 .google.cloud.documentai.v1beta3.BoundingPoly bounding_box = 6;
getDefaultInstanceForType() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock   getDefaultInstanceForType ()  
  
  getImageBlock() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutImageBlock   getImageBlock ()  
   Block consisting of image content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;
 
getImageBlockOrBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutImageBlockOrBuilder   getImageBlockOrBuilder ()  
   Block consisting of image content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;
 
getListBlock() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutListBlock   getListBlock ()  
   Block consisting of list content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
 
getListBlockOrBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutListBlockOrBuilder   getListBlockOrBuilder ()  
   Block consisting of list content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
 
getPageSpan() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutPageSpan   getPageSpan ()  
   Page span of the block.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
 
getPageSpanOrBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutPageSpanOrBuilder   getPageSpanOrBuilder ()  
   Page span of the block.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
 
getParserForType() 
  
    
public   Parser<Document . DocumentLayout . DocumentLayoutBlock >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTableBlock() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutTableBlock   getTableBlock ()  
   Block consisting of table content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;
 
getTableBlockOrBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutTableBlockOrBuilder   getTableBlockOrBuilder ()  
   Block consisting of table content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;
 
getTextBlock() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutTextBlock   getTextBlock ()  
   Block consisting of text content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
 
getTextBlockOrBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . LayoutTextBlockOrBuilder   getTextBlockOrBuilder ()  
   Block consisting of text content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
 
hasBoundingBox() 
  
    
public   boolean   hasBoundingBox ()  
   Identifies the bounding box for the block.
 .google.cloud.documentai.v1beta3.BoundingPoly bounding_box = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the boundingBox field is set.
 
     
  
  hasImageBlock() 
  
    
public   boolean   hasImageBlock ()  
   Block consisting of image content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock image_block = 7;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the imageBlock field is set.
 
     
  
  hasListBlock() 
  
    
public   boolean   hasListBlock ()  
   Block consisting of list content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the listBlock field is set.
 
     
  
  hasPageSpan() 
  
    
public   boolean   hasPageSpan ()  
   Page span of the block.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the pageSpan field is set.
 
     
  
  hasTableBlock() 
  
    
public   boolean   hasTableBlock ()  
   Block consisting of table content/structure.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the tableBlock field is set.
 
     
  
  hasTextBlock() 
  
    
public   boolean   hasTextBlock ()  
   Block consisting of text content.
 
 .google.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the textBlock field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Document . DocumentLayout . DocumentLayoutBlock . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Document . DocumentLayout . DocumentLayoutBlock . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]