Class MultiSearchResult.AbstractBuilder<TDocument,BuilderT extends MultiSearchResult.AbstractBuilder<TDocument,BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.msearch.MultiSearchResult.AbstractBuilder<TDocument,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 ObjectBuilderBase
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBuilder() -
Method Summary
Modifier and Type Method Description BuilderTresponses(MultiSearchResponseItem<TDocument> value, MultiSearchResponseItem<TDocument>... values)Required - API name:responsesBuilderTresponses(java.util.function.Function<MultiSearchResponseItem.Builder<TDocument>,ObjectBuilder<MultiSearchResponseItem<TDocument>>> fn)Required - API name:responsesBuilderTresponses(java.util.List<MultiSearchResponseItem<TDocument>> list)Required - API name:responsesprotected abstract BuilderTself()BuilderTtDocumentSerializer(JsonpSerializer<TDocument> value)Serializer for TDocument.BuilderTtook(long value)Required - API name:tookMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:responsesAdds all elements of
listtoresponses. -
responses
public final BuilderT responses(MultiSearchResponseItem<TDocument> value, MultiSearchResponseItem<TDocument>... values)Required - API name:responsesAdds 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:responsesAdds a value to
responsesusing a builder lambda. -
tDocumentSerializer
Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
self
-