Class GoogleSearch.Builder
- Enclosing class:
- GoogleSearch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GoogleSearch.BuilderblockingConfidence(PhishBlockThreshold blockingConfidence) Setter for blockingConfidence.blockingConfidence(PhishBlockThreshold.Known knownType) Setter for blockingConfidence given a known enum.blockingConfidence(String blockingConfidence) Setter for blockingConfidence given a string.abstract GoogleSearchbuild()Clears the value of blockingConfidence field.Clears the value of excludeDomains field.Clears the value of timeRangeFilter field.excludeDomains(String... excludeDomains) Setter for excludeDomains.abstract GoogleSearch.BuilderexcludeDomains(List<String> excludeDomains) Setter for excludeDomains.abstract GoogleSearch.BuildertimeRangeFilter(Interval timeRangeFilter) Setter for timeRangeFilter.timeRangeFilter(Interval.Builder timeRangeFilterBuilder) Setter for timeRangeFilter builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeDomains
Setter for excludeDomains.excludeDomains: Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API.
-
excludeDomains
Setter for excludeDomains.excludeDomains: Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API.
-
clearExcludeDomains
Clears the value of excludeDomains field. -
blockingConfidence
Setter for blockingConfidence.blockingConfidence: Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API.
-
clearBlockingConfidence
Clears the value of blockingConfidence field. -
blockingConfidence
@CanIgnoreReturnValue public GoogleSearch.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. This field is not supported in Gemini API.
-
blockingConfidence
Setter for blockingConfidence given a string.blockingConfidence: Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API.
-
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). This field is not supported in Vertex AI.
-
timeRangeFilter
@CanIgnoreReturnValue 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). This field is not supported in Vertex AI.
-
clearTimeRangeFilter
Clears the value of timeRangeFilter field. -
build
-