Interface Document.Page.LayoutOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.Page.Layout, Document.Page.Layout.Builder
Enclosing class:
Document.Page

public static interface Document.Page.LayoutOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
    The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
    float
    Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for.
    Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
    int
    Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
    Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
    Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
    boolean
    The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
    boolean
    Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].

    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

    • hasTextAnchor

      boolean hasTextAnchor()
       Text anchor indexing into the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
      Returns:
      Whether the textAnchor field is set.
    • getTextAnchor

      Document.TextAnchor getTextAnchor()
       Text anchor indexing into the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
      Returns:
      The textAnchor.
    • getTextAnchorOrBuilder

      Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
       Text anchor indexing into the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
    • getConfidence

      float getConfidence()
       Confidence of the current
       [Layout][google.cloud.documentai.v1.Document.Page.Layout] within
       context of the object this layout is for. For example, confidence can
       be for a single token, a table, a visual element, etc. depending on
       context. Range `[0, 1]`.
       
      float confidence = 2;
      Returns:
      The confidence.
    • hasBoundingPoly

      boolean hasBoundingPoly()
       The bounding polygon for the
       [Layout][google.cloud.documentai.v1.Document.Page.Layout].
       
      .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;
      Returns:
      Whether the boundingPoly field is set.
    • getBoundingPoly

      BoundingPoly getBoundingPoly()
       The bounding polygon for the
       [Layout][google.cloud.documentai.v1.Document.Page.Layout].
       
      .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;
      Returns:
      The boundingPoly.
    • getBoundingPolyOrBuilder

      BoundingPolyOrBuilder getBoundingPolyOrBuilder()
       The bounding polygon for the
       [Layout][google.cloud.documentai.v1.Document.Page.Layout].
       
      .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;
    • getOrientationValue

      int getOrientationValue()
       Detected orientation for the
       [Layout][google.cloud.documentai.v1.Document.Page.Layout].
       
      .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;
      Returns:
      The enum numeric value on the wire for orientation.
    • getOrientation

       Detected orientation for the
       [Layout][google.cloud.documentai.v1.Document.Page.Layout].
       
      .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;
      Returns:
      The orientation.