Interface Citation.Builder

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

@Mutable @NotThreadSafe public static interface Citation.Builder extends SdkPojo, CopyableBuilder<Citation.Builder,Citation>
  • Method Details

    • startIndex

      Citation.Builder startIndex(Integer startIndex)

      The character offset in answer where the cited span begins.

      Parameters:
      startIndex - The character offset in answer where the cited span begins.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endIndex

      Citation.Builder endIndex(Integer endIndex)

      The character offset in answer where the cited span ends (exclusive).

      Parameters:
      endIndex - The character offset in answer where the cited span ends (exclusive).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Citation.Builder references(Collection<Reference> references)

      The entities in retrievedContext that support the span, referenced by identity.

      Parameters:
      references - The entities in retrievedContext that support the span, referenced by identity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Citation.Builder references(Reference... references)

      The entities in retrievedContext that support the span, referenced by identity.

      Parameters:
      references - The entities in retrievedContext that support the span, referenced by identity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Citation.Builder references(Consumer<Reference.Builder>... references)

      The entities in retrievedContext that support the span, referenced by identity.

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

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

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