Class V1ResearchResponse.Candidate.Builder
-
- All Implemented Interfaces:
public final class V1ResearchResponse.Candidate.BuilderA builder for Candidate.
-
-
Method Summary
-
-
Method Detail
-
highlights
final V1ResearchResponse.Candidate.Builder highlights(List<String> highlights)
Highlighted relevant passages
-
highlights
final V1ResearchResponse.Candidate.Builder highlights(JsonField<List<String>> highlights)
Sets Builder.highlights to an arbitrary JSON value.
You should usually call Builder.highlights with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addHighlight
final V1ResearchResponse.Candidate.Builder addHighlight(String highlight)
Adds a single String to highlights.
-
publishedDate
final V1ResearchResponse.Candidate.Builder publishedDate(String publishedDate)
Publication date
-
publishedDate
final V1ResearchResponse.Candidate.Builder publishedDate(Optional<String> publishedDate)
Alias for calling Builder.publishedDate with
publishedDate.orElse(null).
-
publishedDate
final V1ResearchResponse.Candidate.Builder publishedDate(JsonField<String> publishedDate)
Sets Builder.publishedDate to an arbitrary JSON value.
You should usually call Builder.publishedDate with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
snippet
final V1ResearchResponse.Candidate.Builder snippet(String snippet)
Text excerpt from the document
-
snippet
final V1ResearchResponse.Candidate.Builder snippet(JsonField<String> snippet)
Sets Builder.snippet to an arbitrary JSON value.
You should usually call Builder.snippet with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final V1ResearchResponse.Candidate.Builder source(String source)
Domain of the source
-
source
final V1ResearchResponse.Candidate.Builder source(JsonField<String> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final V1ResearchResponse.Candidate.Builder title(String title)
Title of the document
-
title
final V1ResearchResponse.Candidate.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final V1ResearchResponse.Candidate.Builder url(String url)
URL of the legal source
-
url
final V1ResearchResponse.Candidate.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final V1ResearchResponse.Candidate.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final V1ResearchResponse.Candidate.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final V1ResearchResponse.Candidate.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final V1ResearchResponse.Candidate.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final V1ResearchResponse.Candidate.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final V1ResearchResponse.Candidate build()
Returns an immutable instance of Candidate.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-