Class Citation.Builder

java.lang.Object
com.google.genai.types.Citation.Builder
Enclosing class:
Citation

public abstract static class Citation.Builder extends Object
Builder for Citation.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • endIndex

      public abstract Citation.Builder endIndex(Integer endIndex)
      Setter for endIndex.

      endIndex: Output only. End index into the content.

    • clearEndIndex

      @CanIgnoreReturnValue public Citation.Builder clearEndIndex()
      Clears the value of endIndex field.
    • license

      public abstract Citation.Builder license(String license)
      Setter for license.

      license: Output only. License of the attribution.

    • clearLicense

      @CanIgnoreReturnValue public Citation.Builder clearLicense()
      Clears the value of license field.
    • publicationDate

      public abstract Citation.Builder publicationDate(GoogleTypeDate publicationDate)
      Setter for publicationDate.

      publicationDate: Output only. Publication date of the attribution.

    • publicationDate

      @CanIgnoreReturnValue public Citation.Builder publicationDate(GoogleTypeDate.Builder publicationDateBuilder)
      Setter for publicationDate builder.

      publicationDate: Output only. Publication date of the attribution.

    • clearPublicationDate

      @CanIgnoreReturnValue public Citation.Builder clearPublicationDate()
      Clears the value of publicationDate field.
    • startIndex

      public abstract Citation.Builder startIndex(Integer startIndex)
      Setter for startIndex.

      startIndex: Output only. Start index into the content.

    • clearStartIndex

      @CanIgnoreReturnValue public Citation.Builder clearStartIndex()
      Clears the value of startIndex field.
    • title

      public abstract Citation.Builder title(String title)
      Setter for title.

      title: Output only. Title of the attribution.

    • clearTitle

      @CanIgnoreReturnValue public Citation.Builder clearTitle()
      Clears the value of title field.
    • uri

      public abstract Citation.Builder uri(String uri)
      Setter for uri.

      uri: Output only. Url reference of the attribution.

    • clearUri

      @CanIgnoreReturnValue public Citation.Builder clearUri()
      Clears the value of uri field.
    • build

      public abstract Citation build()