Interface Geometry.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Geometry.Builder,Geometry>, SdkBuilder<Geometry.Builder,Geometry>, SdkPojo
Enclosing class:
Geometry

public static interface Geometry.Builder extends SdkPojo, CopyableBuilder<Geometry.Builder,Geometry>
  • Method Details

    • boundingBox

      Geometry.Builder boundingBox(BoundingBox boundingBox)

      An axis-aligned coarse representation of the location of the recognized item on the document page.

      Parameters:
      boundingBox - An axis-aligned coarse representation of the location of the recognized item on the document page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • boundingBox

      default Geometry.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)

      An axis-aligned coarse representation of the location of the recognized item on the document page.

      This is a convenience method that creates an instance of the BoundingBox.Builder avoiding the need to create one manually via BoundingBox.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to boundingBox(BoundingBox).

      Parameters:
      boundingBox - a consumer that will call methods on BoundingBox.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • polygon

      Geometry.Builder polygon(Collection<Point> polygon)

      Within the bounding box, a fine-grained polygon around the recognized item.

      Parameters:
      polygon - Within the bounding box, a fine-grained polygon around the recognized item.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • polygon

      Geometry.Builder polygon(Point... polygon)

      Within the bounding box, a fine-grained polygon around the recognized item.

      Parameters:
      polygon - Within the bounding box, a fine-grained polygon around the recognized item.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • polygon

      Geometry.Builder polygon(Consumer<Point.Builder>... polygon)

      Within the bounding box, a fine-grained polygon around the recognized item.

      This is a convenience method that creates an instance of the Point.Builder avoiding the need to create one manually via Point.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to polygon(List<Point>).

      Parameters:
      polygon - a consumer that will call methods on Point.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: