Class EnterpriseWebSearch.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • excludeDomains

      public abstract EnterpriseWebSearch.Builder excludeDomains(List<String> excludeDomains)
      Setter for excludeDomains.

      excludeDomains: Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.

    • excludeDomains

      @CanIgnoreReturnValue public EnterpriseWebSearch.Builder excludeDomains(String... excludeDomains)
      Setter for excludeDomains.

      excludeDomains: Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.

    • clearExcludeDomains

      @CanIgnoreReturnValue public EnterpriseWebSearch.Builder clearExcludeDomains()
      Clears the value of excludeDomains field.
    • blockingConfidence

      public abstract EnterpriseWebSearch.Builder blockingConfidence(PhishBlockThreshold blockingConfidence)
      Setter for blockingConfidence.

      blockingConfidence: Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

    • clearBlockingConfidence

      @CanIgnoreReturnValue public EnterpriseWebSearch.Builder clearBlockingConfidence()
      Clears the value of blockingConfidence field.
    • blockingConfidence

      @CanIgnoreReturnValue public EnterpriseWebSearch.Builder blockingConfidence(PhishBlockThreshold.Known knownType)
      Setter for blockingConfidence given a known enum.

      blockingConfidence: Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

    • blockingConfidence

      @CanIgnoreReturnValue public EnterpriseWebSearch.Builder blockingConfidence(String blockingConfidence)
      Setter for blockingConfidence given a string.

      blockingConfidence: Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

    • build

      public abstract EnterpriseWebSearch build()