Interface PageOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Page, Page.Builder

@Generated public interface PageOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getBlocks(int index)
    List of blocks of text, images etc on this page.
    int
    List of blocks of text, images etc on this page.
    List of blocks of text, images etc on this page.
    getBlocksOrBuilder(int index)
    List of blocks of text, images etc on this page.
    List<? extends BlockOrBuilder>
    List of blocks of text, images etc on this page.
    float
    Confidence of the OCR results on the page.
    int
    Page height.
    Additional information detected on the page.
    Additional information detected on the page.
    int
    Page width.
    boolean
    Additional information detected on the page.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasProperty

      boolean hasProperty()
       Additional information detected on the page.
       
      .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
      Returns:
      Whether the property field is set.
    • getProperty

       Additional information detected on the page.
       
      .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
      Returns:
      The property.
    • getPropertyOrBuilder

      TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
       Additional information detected on the page.
       
      .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
    • getWidth

      int getWidth()
       Page width. For PDFs the unit is points. For images (including
       TIFFs) the unit is pixels.
       
      int32 width = 2;
      Returns:
      The width.
    • getHeight

      int getHeight()
       Page height. For PDFs the unit is points. For images (including
       TIFFs) the unit is pixels.
       
      int32 height = 3;
      Returns:
      The height.
    • getBlocksList

      List<Block> getBlocksList()
       List of blocks of text, images etc on this page.
       
      repeated .google.cloud.vision.v1.Block blocks = 4;
    • getBlocks

      Block getBlocks(int index)
       List of blocks of text, images etc on this page.
       
      repeated .google.cloud.vision.v1.Block blocks = 4;
    • getBlocksCount

      int getBlocksCount()
       List of blocks of text, images etc on this page.
       
      repeated .google.cloud.vision.v1.Block blocks = 4;
    • getBlocksOrBuilderList

      List<? extends BlockOrBuilder> getBlocksOrBuilderList()
       List of blocks of text, images etc on this page.
       
      repeated .google.cloud.vision.v1.Block blocks = 4;
    • getBlocksOrBuilder

      BlockOrBuilder getBlocksOrBuilder(int index)
       List of blocks of text, images etc on this page.
       
      repeated .google.cloud.vision.v1.Block blocks = 4;
    • getConfidence

      float getConfidence()
       Confidence of the OCR results on the page. Range [0, 1].
       
      float confidence = 5;
      Returns:
      The confidence.