Class FileSearchStore.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      public abstract FileSearchStore.Builder name(String name)
      Setter for name.

      name: Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.

    • clearName

      @CanIgnoreReturnValue public FileSearchStore.Builder clearName()
      Clears the value of name field.
    • displayName

      public abstract FileSearchStore.Builder displayName(String displayName)
      Setter for displayName.

      displayName: Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever".

    • clearDisplayName

      @CanIgnoreReturnValue public FileSearchStore.Builder clearDisplayName()
      Clears the value of displayName field.
    • createTime

      public abstract FileSearchStore.Builder createTime(Instant createTime)
      Setter for createTime.

      createTime: Output only. The Timestamp of when the `FileSearchStore` was created.

    • clearCreateTime

      @CanIgnoreReturnValue public FileSearchStore.Builder clearCreateTime()
      Clears the value of createTime field.
    • updateTime

      public abstract FileSearchStore.Builder updateTime(Instant updateTime)
      Setter for updateTime.

      updateTime: Output only. The Timestamp of when the `FileSearchStore` was last updated.

    • clearUpdateTime

      @CanIgnoreReturnValue public FileSearchStore.Builder clearUpdateTime()
      Clears the value of updateTime field.
    • activeDocumentsCount

      public abstract FileSearchStore.Builder activeDocumentsCount(Long activeDocumentsCount)
      Setter for activeDocumentsCount.

      activeDocumentsCount: Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.

    • clearActiveDocumentsCount

      @CanIgnoreReturnValue public FileSearchStore.Builder clearActiveDocumentsCount()
      Clears the value of activeDocumentsCount field.
    • pendingDocumentsCount

      public abstract FileSearchStore.Builder pendingDocumentsCount(Long pendingDocumentsCount)
      Setter for pendingDocumentsCount.

      pendingDocumentsCount: Output only. The number of documents in the `FileSearchStore` that are being processed.

    • clearPendingDocumentsCount

      @CanIgnoreReturnValue public FileSearchStore.Builder clearPendingDocumentsCount()
      Clears the value of pendingDocumentsCount field.
    • failedDocumentsCount

      public abstract FileSearchStore.Builder failedDocumentsCount(Long failedDocumentsCount)
      Setter for failedDocumentsCount.

      failedDocumentsCount: Output only. The number of documents in the `FileSearchStore` that have failed processing.

    • clearFailedDocumentsCount

      @CanIgnoreReturnValue public FileSearchStore.Builder clearFailedDocumentsCount()
      Clears the value of failedDocumentsCount field.
    • sizeBytes

      public abstract FileSearchStore.Builder sizeBytes(Long sizeBytes)
      Setter for sizeBytes.

      sizeBytes: Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.

    • clearSizeBytes

      @CanIgnoreReturnValue public FileSearchStore.Builder clearSizeBytes()
      Clears the value of sizeBytes field.
    • embeddingModel

      public abstract FileSearchStore.Builder embeddingModel(String embeddingModel)
      Setter for embeddingModel.

      embeddingModel: The embedding model used by the FileSearchStore.

    • clearEmbeddingModel

      @CanIgnoreReturnValue public FileSearchStore.Builder clearEmbeddingModel()
      Clears the value of embeddingModel field.
    • build

      public abstract FileSearchStore build()