Class ApplicationOutput.DocReference.DocReferenceBuilder<C extends ApplicationOutput.DocReference,B extends ApplicationOutput.DocReference.DocReferenceBuilder<C,B>>

java.lang.Object
com.alibaba.dashscope.legacy_2x.app.ApplicationOutput.DocReference.DocReferenceBuilder<C,B>
Enclosing class:
ApplicationOutput.DocReference

public abstract static class ApplicationOutput.DocReference.DocReferenceBuilder<C extends ApplicationOutput.DocReference,B extends ApplicationOutput.DocReference.DocReferenceBuilder<C,B>> extends Object
  • Constructor Details

    • DocReferenceBuilder

      public DocReferenceBuilder()
  • Method Details

    • indexId

      public B indexId(String indexId)
      index id of doc retrival result reference
      Returns:
      this.
    • title

      public B title(String title)
      title of original doc that retrieved
      Returns:
      this.
    • docId

      public B docId(String docId)
      id of original doc that retrieved
      Returns:
      this.
    • docName

      public B docName(String docName)
      name of original doc that retrieved
      Returns:
      this.
    • docUrl

      public B docUrl(String docUrl)
      url of original doc that retrieved
      Returns:
      this.
    • text

      public B text(String text)
      text in original doc that retrieved
      Returns:
      this.
    • bizId

      public B bizId(String bizId)
      Biz id that caller is able to associated for biz logic
      Returns:
      this.
    • images

      public B images(List<String> images)
      List of referenced image URLs
      Returns:
      this.
    • pageNumber

      public B pageNumber(List<Integer> pageNumber)
      List of referenced page number
      Returns:
      this.
    • self

      protected abstract B self()
    • build

      public abstract C build()
    • toString

      public String toString()
      Overrides:
      toString in class Object