public static interface FeaturedResultsItem.Builder extends SdkPojo, CopyableBuilder<FeaturedResultsItem.Builder,FeaturedResultsItem>
| Modifier and Type | Method and Description |
|---|---|
FeaturedResultsItem.Builder |
additionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the featured result.
|
FeaturedResultsItem.Builder |
additionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
|
FeaturedResultsItem.Builder |
additionalAttributes(Consumer<AdditionalResultAttribute.Builder>... additionalAttributes)
One or more additional attributes associated with the featured result.
|
FeaturedResultsItem.Builder |
documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
FeaturedResultsItem.Builder |
documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
FeaturedResultsItem.Builder |
documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
default FeaturedResultsItem.Builder |
documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
Sets the value of the DocumentExcerpt property for this object.
|
FeaturedResultsItem.Builder |
documentExcerpt(TextWithHighlights documentExcerpt)
Sets the value of the DocumentExcerpt property for this object.
|
FeaturedResultsItem.Builder |
documentId(String documentId)
The identifier of the featured document.
|
default FeaturedResultsItem.Builder |
documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
Sets the value of the DocumentTitle property for this object.
|
FeaturedResultsItem.Builder |
documentTitle(TextWithHighlights documentTitle)
Sets the value of the DocumentTitle property for this object.
|
FeaturedResultsItem.Builder |
documentURI(String documentURI)
The source URI location of the featured document.
|
FeaturedResultsItem.Builder |
feedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query.
|
FeaturedResultsItem.Builder |
id(String id)
The identifier of the featured result.
|
FeaturedResultsItem.Builder |
type(QueryResultType type)
The type of document within the featured result response.
|
FeaturedResultsItem.Builder |
type(String type)
The type of document within the featured result response.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFeaturedResultsItem.Builder id(String id)
The identifier of the featured result.
id - The identifier of the featured result.FeaturedResultsItem.Builder type(String type)
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
type - The type of document within the featured result response. For example, a response could include a
question-answer type that's relevant to the query.QueryResultType,
QueryResultTypeFeaturedResultsItem.Builder type(QueryResultType type)
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
type - The type of document within the featured result response. For example, a response could include a
question-answer type that's relevant to the query.QueryResultType,
QueryResultTypeFeaturedResultsItem.Builder additionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
additionalAttributes - One or more additional attributes associated with the featured result.FeaturedResultsItem.Builder additionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the featured result.
additionalAttributes - One or more additional attributes associated with the featured result.FeaturedResultsItem.Builder additionalAttributes(Consumer<AdditionalResultAttribute.Builder>... additionalAttributes)
One or more additional attributes associated with the featured result.
This is a convenience method that creates an instance of theAdditionalResultAttribute.Builder avoiding the need to
create one manually via
AdditionalResultAttribute.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #additionalAttributes(List.
additionalAttributes - a consumer that will call methods on
AdditionalResultAttribute.Builder#additionalAttributes(java.util.Collection) FeaturedResultsItem.Builder documentId(String documentId)
The identifier of the featured document.
documentId - The identifier of the featured document.FeaturedResultsItem.Builder documentTitle(TextWithHighlights documentTitle)
documentTitle - The new value for the DocumentTitle property for this object.default FeaturedResultsItem.Builder documentTitle(Consumer<TextWithHighlights.Builder> documentTitle)
TextWithHighlights.Builder avoiding the
need to create one manually via TextWithHighlights.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentTitle(TextWithHighlights).
documentTitle - a consumer that will call methods on TextWithHighlights.BuilderdocumentTitle(TextWithHighlights)FeaturedResultsItem.Builder documentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt - The new value for the DocumentExcerpt property for this object.default FeaturedResultsItem.Builder documentExcerpt(Consumer<TextWithHighlights.Builder> documentExcerpt)
TextWithHighlights.Builder avoiding the
need to create one manually via TextWithHighlights.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to documentExcerpt(TextWithHighlights).
documentExcerpt - a consumer that will call methods on TextWithHighlights.BuilderdocumentExcerpt(TextWithHighlights)FeaturedResultsItem.Builder documentURI(String documentURI)
The source URI location of the featured document.
documentURI - The source URI location of the featured document.FeaturedResultsItem.Builder documentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured document in the search results. For example, the
document author (_author) or the source URI (_source_uri) of the document.
documentAttributes - An array of document attributes assigned to a featured document in the search results. For example,
the document author (_author) or the source URI (_source_uri) of the
document.FeaturedResultsItem.Builder documentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a featured document in the search results. For example, the
document author (_author) or the source URI (_source_uri) of the document.
documentAttributes - An array of document attributes assigned to a featured document in the search results. For example,
the document author (_author) or the source URI (_source_uri) of the
document.FeaturedResultsItem.Builder documentAttributes(Consumer<DocumentAttribute.Builder>... documentAttributes)
An array of document attributes assigned to a featured document in the search results. For example, the
document author (_author) or the source URI (_source_uri) of the document.
DocumentAttribute.Builder avoiding the need to create
one manually via DocumentAttribute.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #documentAttributes(List.
documentAttributes - a consumer that will call methods on
DocumentAttribute.Builder#documentAttributes(java.util.Collection) FeaturedResultsItem.Builder feedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
feedbackToken - A token that identifies a particular featured result from a particular query. Use this token to
provide click-through feedback for the result. For more information, see Submitting feedback.Copyright © 2023. All rights reserved.