Class GoogleSearch.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • timeRangeFilter

      public abstract GoogleSearch.Builder timeRangeFilter(Interval timeRangeFilter)
      Setter for timeRangeFilter.

      timeRangeFilter: Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).

    • timeRangeFilter

      public GoogleSearch.Builder timeRangeFilter(Interval.Builder timeRangeFilterBuilder)
      Setter for timeRangeFilter builder.

      timeRangeFilter: Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).

    • excludeDomains

      public abstract GoogleSearch.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

      public GoogleSearch.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.

    • build

      public abstract GoogleSearch build()