Class MultiSearchResult.AbstractBuilder<TDocument,BuilderT extends MultiSearchResult.AbstractBuilder<TDocument,BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.core.msearch.MultiSearchResult.AbstractBuilder<TDocument,BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
MsearchResponse.Builder
,MsearchTemplateResponse.Builder
- Enclosing class:
- MultiSearchResult<TDocument>
protected abstract static class MultiSearchResult.AbstractBuilder<TDocument,BuilderT extends MultiSearchResult.AbstractBuilder<TDocument,BuilderT>> extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder()
-
Method Summary
Modifier and Type Method Description BuilderT
responses(MultiSearchResponseItem<TDocument> value, MultiSearchResponseItem<TDocument>... values)
Required - API name:responses
BuilderT
responses(java.util.function.Function<MultiSearchResponseItem.Builder<TDocument>,ObjectBuilder<MultiSearchResponseItem<TDocument>>> fn)
Required - API name:responses
BuilderT
responses(java.util.List<MultiSearchResponseItem<TDocument>> list)
Required - API name:responses
protected abstract BuilderT
self()
BuilderT
tDocumentSerializer(JsonpSerializer<TDocument> value)
Serializer for TDocument.BuilderT
took(long value)
Required - API name:took
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
took
Required - API name:took
-
responses
Required - API name:responses
Adds all elements of
list
toresponses
. -
responses
public final BuilderT responses(MultiSearchResponseItem<TDocument> value, MultiSearchResponseItem<TDocument>... values)Required - API name:responses
Adds one or more values to
responses
. -
responses
public final BuilderT responses(java.util.function.Function<MultiSearchResponseItem.Builder<TDocument>,ObjectBuilder<MultiSearchResponseItem<TDocument>>> fn)Required - API name:responses
Adds a value to
responses
using a builder lambda. -
tDocumentSerializer
Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BuilderT extends MultiSearchResult.AbstractBuilder<TDocument,BuilderT>>
-