Interface OntologyInductionDocument.Builder

  • Method Details

    • name

      The name of the document. Each document in the request needs its own name, and the name only labels the document, whose type contentType sets.

      Parameters:
      name - The name of the document. Each document in the request needs its own name, and the name only labels the document, whose type contentType sets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentType

      OntologyInductionDocument.Builder contentType(String contentType)

      The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.

      Parameters:
      contentType - The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentType

      The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.

      Parameters:
      contentType - The document's type. Its bytes must be a real document of this type. Otherwise the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • content

      The content of the document, of the type that contentType specifies. Each document can be up to 10,485,760 bytes (10 MiB), and all the documents in the request together up to 10 MiB.

      Parameters:
      content - The content of the document, of the type that contentType specifies. Each document can be up to 10,485,760 bytes (10 MiB), and all the documents in the request together up to 10 MiB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.