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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      BoundingPoly getBoundingPoly()
      The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
      BoundingPolyOrBuilder getBoundingPolyOrBuilder()
      The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
      float getConfidence()
      Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for.
      Document.Page.Layout.Orientation getOrientation()
      Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
      int getOrientationValue()
      Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
      Document.TextAnchor getTextAnchor()
      Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
      Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
      Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
      boolean hasBoundingPoly()
      The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
      boolean hasTextAnchor()
      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 Detail

      • 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. e.g. 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

        Document.Page.Layout.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.