Skip to content

Commit 9bd69ba

Browse files
committed
[codegen] update to latest spec
1 parent 061e8f0 commit 9bd69ba

File tree

238 files changed

+8197
-1500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+8197
-1500
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,27 @@ public final <TDocument> CompletableFuture<ExplainResponse<TDocument>> explain(
19981998
return explain(fn.apply(new ExplainRequest.Builder()).build(), tDocumentClass);
19991999
}
20002000

2001+
/**
2002+
* Overload of {@link #explain(ExplainRequest, Class)}, where Class is defined
2003+
* as Void, meaning the documents will not be deserialized.
2004+
*/
2005+
2006+
public CompletableFuture<ExplainResponse<Void>> explain(ExplainRequest request) {
2007+
@SuppressWarnings("unchecked")
2008+
JsonEndpoint<ExplainRequest, ExplainResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<ExplainRequest, ExplainResponse<Void>, ErrorResponse>) ExplainRequest._ENDPOINT;
2009+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
2010+
}
2011+
2012+
/**
2013+
* Overload of {@link #explain(Function, Class)}, where Class is defined as
2014+
* Void, meaning the documents will not be deserialized.
2015+
*/
2016+
2017+
public final CompletableFuture<ExplainResponse<Void>> explain(
2018+
Function<ExplainRequest.Builder, ObjectBuilder<ExplainRequest>> fn) {
2019+
return explain(fn.apply(new ExplainRequest.Builder()).build(), Void.class);
2020+
}
2021+
20012022
/**
20022023
* Explain a document match result. Get information about why a specific
20032024
* document matches, or doesn't match, a query. It computes a score explanation
@@ -2281,6 +2302,26 @@ public final <TDocument> CompletableFuture<GetResponse<TDocument>> get(
22812302
return get(fn.apply(new GetRequest.Builder()).build(), tDocumentClass);
22822303
}
22832304

2305+
/**
2306+
* Overload of {@link #get(GetRequest, Class)}, where Class is defined as Void,
2307+
* meaning the documents will not be deserialized.
2308+
*/
2309+
2310+
public CompletableFuture<GetResponse<Void>> get(GetRequest request) {
2311+
@SuppressWarnings("unchecked")
2312+
JsonEndpoint<GetRequest, GetResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<GetRequest, GetResponse<Void>, ErrorResponse>) GetRequest._ENDPOINT;
2313+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
2314+
}
2315+
2316+
/**
2317+
* Overload of {@link #get(Function, Class)}, where Class is defined as Void,
2318+
* meaning the documents will not be deserialized.
2319+
*/
2320+
2321+
public final CompletableFuture<GetResponse<Void>> get(Function<GetRequest.Builder, ObjectBuilder<GetRequest>> fn) {
2322+
return get(fn.apply(new GetRequest.Builder()).build(), Void.class);
2323+
}
2324+
22842325
/**
22852326
* Get a document by its ID.
22862327
* <p>
@@ -2590,6 +2631,27 @@ public final <TDocument> CompletableFuture<GetSourceResponse<TDocument>> getSour
25902631
return getSource(fn.apply(new GetSourceRequest.Builder()).build(), tDocumentClass);
25912632
}
25922633

2634+
/**
2635+
* Overload of {@link #getSource(GetSourceRequest, Class)}, where Class is
2636+
* defined as Void, meaning the documents will not be deserialized.
2637+
*/
2638+
2639+
public CompletableFuture<GetSourceResponse<Void>> getSource(GetSourceRequest request) {
2640+
@SuppressWarnings("unchecked")
2641+
JsonEndpoint<GetSourceRequest, GetSourceResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<GetSourceRequest, GetSourceResponse<Void>, ErrorResponse>) GetSourceRequest._ENDPOINT;
2642+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
2643+
}
2644+
2645+
/**
2646+
* Overload of {@link #getSource(Function, Class)}, where Class is defined as
2647+
* Void, meaning the documents will not be deserialized.
2648+
*/
2649+
2650+
public final CompletableFuture<GetSourceResponse<Void>> getSource(
2651+
Function<GetSourceRequest.Builder, ObjectBuilder<GetSourceRequest>> fn) {
2652+
return getSource(fn.apply(new GetSourceRequest.Builder()).build(), Void.class);
2653+
}
2654+
25932655
/**
25942656
* Get a document's source.
25952657
* <p>
@@ -3295,6 +3357,27 @@ public final <TDocument> CompletableFuture<KnnSearchResponse<TDocument>> knnSear
32953357
return knnSearch(fn.apply(new KnnSearchRequest.Builder()).build(), tDocumentClass);
32963358
}
32973359

3360+
/**
3361+
* Overload of {@link #knnSearch(KnnSearchRequest, Class)}, where Class is
3362+
* defined as Void, meaning the documents will not be deserialized.
3363+
*/
3364+
3365+
public CompletableFuture<KnnSearchResponse<Void>> knnSearch(KnnSearchRequest request) {
3366+
@SuppressWarnings("unchecked")
3367+
JsonEndpoint<KnnSearchRequest, KnnSearchResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<KnnSearchRequest, KnnSearchResponse<Void>, ErrorResponse>) KnnSearchRequest._ENDPOINT;
3368+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
3369+
}
3370+
3371+
/**
3372+
* Overload of {@link #knnSearch(Function, Class)}, where Class is defined as
3373+
* Void, meaning the documents will not be deserialized.
3374+
*/
3375+
3376+
public final CompletableFuture<KnnSearchResponse<Void>> knnSearch(
3377+
Function<KnnSearchRequest.Builder, ObjectBuilder<KnnSearchRequest>> fn) {
3378+
return knnSearch(fn.apply(new KnnSearchRequest.Builder()).build(), Void.class);
3379+
}
3380+
32983381
/**
32993382
* Run a knn search.
33003383
* <p>
@@ -3466,6 +3549,27 @@ public final <TDocument> CompletableFuture<MgetResponse<TDocument>> mget(
34663549
return mget(fn.apply(new MgetRequest.Builder()).build(), tDocumentClass);
34673550
}
34683551

3552+
/**
3553+
* Overload of {@link #mget(MgetRequest, Class)}, where Class is defined as
3554+
* Void, meaning the documents will not be deserialized.
3555+
*/
3556+
3557+
public CompletableFuture<MgetResponse<Void>> mget(MgetRequest request) {
3558+
@SuppressWarnings("unchecked")
3559+
JsonEndpoint<MgetRequest, MgetResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<MgetRequest, MgetResponse<Void>, ErrorResponse>) MgetRequest._ENDPOINT;
3560+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
3561+
}
3562+
3563+
/**
3564+
* Overload of {@link #mget(Function, Class)}, where Class is defined as Void,
3565+
* meaning the documents will not be deserialized.
3566+
*/
3567+
3568+
public final CompletableFuture<MgetResponse<Void>> mget(
3569+
Function<MgetRequest.Builder, ObjectBuilder<MgetRequest>> fn) {
3570+
return mget(fn.apply(new MgetRequest.Builder()).build(), Void.class);
3571+
}
3572+
34693573
/**
34703574
* Get multiple documents.
34713575
* <p>
@@ -3621,6 +3725,27 @@ public final <TDocument> CompletableFuture<MsearchResponse<TDocument>> msearch(
36213725
return msearch(fn.apply(new MsearchRequest.Builder()).build(), tDocumentClass);
36223726
}
36233727

3728+
/**
3729+
* Overload of {@link #msearch(MsearchRequest, Class)}, where Class is defined
3730+
* as Void, meaning the documents will not be deserialized.
3731+
*/
3732+
3733+
public CompletableFuture<MsearchResponse<Void>> msearch(MsearchRequest request) {
3734+
@SuppressWarnings("unchecked")
3735+
JsonEndpoint<MsearchRequest, MsearchResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<MsearchRequest, MsearchResponse<Void>, ErrorResponse>) MsearchRequest._ENDPOINT;
3736+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
3737+
}
3738+
3739+
/**
3740+
* Overload of {@link #msearch(Function, Class)}, where Class is defined as
3741+
* Void, meaning the documents will not be deserialized.
3742+
*/
3743+
3744+
public final CompletableFuture<MsearchResponse<Void>> msearch(
3745+
Function<MsearchRequest.Builder, ObjectBuilder<MsearchRequest>> fn) {
3746+
return msearch(fn.apply(new MsearchRequest.Builder()).build(), Void.class);
3747+
}
3748+
36243749
/**
36253750
* Run multiple searches.
36263751
* <p>
@@ -3765,6 +3890,27 @@ public final <TDocument> CompletableFuture<MsearchTemplateResponse<TDocument>> m
37653890
return msearchTemplate(fn.apply(new MsearchTemplateRequest.Builder()).build(), tDocumentClass);
37663891
}
37673892

3893+
/**
3894+
* Overload of {@link #msearchTemplate(MsearchTemplateRequest, Class)}, where
3895+
* Class is defined as Void, meaning the documents will not be deserialized.
3896+
*/
3897+
3898+
public CompletableFuture<MsearchTemplateResponse<Void>> msearchTemplate(MsearchTemplateRequest request) {
3899+
@SuppressWarnings("unchecked")
3900+
JsonEndpoint<MsearchTemplateRequest, MsearchTemplateResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<MsearchTemplateRequest, MsearchTemplateResponse<Void>, ErrorResponse>) MsearchTemplateRequest._ENDPOINT;
3901+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
3902+
}
3903+
3904+
/**
3905+
* Overload of {@link #msearchTemplate(Function, Class)}, where Class is defined
3906+
* as Void, meaning the documents will not be deserialized.
3907+
*/
3908+
3909+
public final CompletableFuture<MsearchTemplateResponse<Void>> msearchTemplate(
3910+
Function<MsearchTemplateRequest.Builder, ObjectBuilder<MsearchTemplateRequest>> fn) {
3911+
return msearchTemplate(fn.apply(new MsearchTemplateRequest.Builder()).build(), Void.class);
3912+
}
3913+
37683914
/**
37693915
* Run multiple templated searches.
37703916
* <p>
@@ -4880,6 +5026,29 @@ public final <TResult> CompletableFuture<ScriptsPainlessExecuteResponse<TResult>
48805026
return scriptsPainlessExecute(fn.apply(new ScriptsPainlessExecuteRequest.Builder()).build(), tResultClass);
48815027
}
48825028

5029+
/**
5030+
* Overload of
5031+
* {@link #scriptsPainlessExecute(ScriptsPainlessExecuteRequest, Class)}, where
5032+
* Class is defined as Void, meaning the documents will not be deserialized.
5033+
*/
5034+
5035+
public CompletableFuture<ScriptsPainlessExecuteResponse<Void>> scriptsPainlessExecute(
5036+
ScriptsPainlessExecuteRequest request) {
5037+
@SuppressWarnings("unchecked")
5038+
JsonEndpoint<ScriptsPainlessExecuteRequest, ScriptsPainlessExecuteResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<ScriptsPainlessExecuteRequest, ScriptsPainlessExecuteResponse<Void>, ErrorResponse>) ScriptsPainlessExecuteRequest._ENDPOINT;
5039+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
5040+
}
5041+
5042+
/**
5043+
* Overload of {@link #scriptsPainlessExecute(Function, Class)}, where Class is
5044+
* defined as Void, meaning the documents will not be deserialized.
5045+
*/
5046+
5047+
public final CompletableFuture<ScriptsPainlessExecuteResponse<Void>> scriptsPainlessExecute(
5048+
Function<ScriptsPainlessExecuteRequest.Builder, ObjectBuilder<ScriptsPainlessExecuteRequest>> fn) {
5049+
return scriptsPainlessExecute(fn.apply(new ScriptsPainlessExecuteRequest.Builder()).build(), Void.class);
5050+
}
5051+
48835052
/**
48845053
* Run a script.
48855054
* <p>
@@ -5018,6 +5187,27 @@ public final <TDocument> CompletableFuture<ScrollResponse<TDocument>> scroll(
50185187
return scroll(fn.apply(new ScrollRequest.Builder()).build(), tDocumentClass);
50195188
}
50205189

5190+
/**
5191+
* Overload of {@link #scroll(ScrollRequest, Class)}, where Class is defined as
5192+
* Void, meaning the documents will not be deserialized.
5193+
*/
5194+
5195+
public CompletableFuture<ScrollResponse<Void>> scroll(ScrollRequest request) {
5196+
@SuppressWarnings("unchecked")
5197+
JsonEndpoint<ScrollRequest, ScrollResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<ScrollRequest, ScrollResponse<Void>, ErrorResponse>) ScrollRequest._ENDPOINT;
5198+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
5199+
}
5200+
5201+
/**
5202+
* Overload of {@link #scroll(Function, Class)}, where Class is defined as Void,
5203+
* meaning the documents will not be deserialized.
5204+
*/
5205+
5206+
public final CompletableFuture<ScrollResponse<Void>> scroll(
5207+
Function<ScrollRequest.Builder, ObjectBuilder<ScrollRequest>> fn) {
5208+
return scroll(fn.apply(new ScrollRequest.Builder()).build(), Void.class);
5209+
}
5210+
50215211
/**
50225212
* Run a scrolling search.
50235213
* <p>
@@ -5185,6 +5375,27 @@ public final <TDocument> CompletableFuture<SearchResponse<TDocument>> search(
51855375
return search(fn.apply(new SearchRequest.Builder()).build(), tDocumentClass);
51865376
}
51875377

5378+
/**
5379+
* Overload of {@link #search(SearchRequest, Class)}, where Class is defined as
5380+
* Void, meaning the documents will not be deserialized.
5381+
*/
5382+
5383+
public CompletableFuture<SearchResponse<Void>> search(SearchRequest request) {
5384+
@SuppressWarnings("unchecked")
5385+
JsonEndpoint<SearchRequest, SearchResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<SearchRequest, SearchResponse<Void>, ErrorResponse>) SearchRequest._ENDPOINT;
5386+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
5387+
}
5388+
5389+
/**
5390+
* Overload of {@link #search(Function, Class)}, where Class is defined as Void,
5391+
* meaning the documents will not be deserialized.
5392+
*/
5393+
5394+
public final CompletableFuture<SearchResponse<Void>> search(
5395+
Function<SearchRequest.Builder, ObjectBuilder<SearchRequest>> fn) {
5396+
return search(fn.apply(new SearchRequest.Builder()).build(), Void.class);
5397+
}
5398+
51885399
/**
51895400
* Run a search.
51905401
* <p>
@@ -6128,6 +6339,27 @@ public final <TDocument> CompletableFuture<SearchTemplateResponse<TDocument>> se
61286339
return searchTemplate(fn.apply(new SearchTemplateRequest.Builder()).build(), tDocumentClass);
61296340
}
61306341

6342+
/**
6343+
* Overload of {@link #searchTemplate(SearchTemplateRequest, Class)}, where
6344+
* Class is defined as Void, meaning the documents will not be deserialized.
6345+
*/
6346+
6347+
public CompletableFuture<SearchTemplateResponse<Void>> searchTemplate(SearchTemplateRequest request) {
6348+
@SuppressWarnings("unchecked")
6349+
JsonEndpoint<SearchTemplateRequest, SearchTemplateResponse<Void>, ErrorResponse> endpoint = (JsonEndpoint<SearchTemplateRequest, SearchTemplateResponse<Void>, ErrorResponse>) SearchTemplateRequest._ENDPOINT;
6350+
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
6351+
}
6352+
6353+
/**
6354+
* Overload of {@link #searchTemplate(Function, Class)}, where Class is defined
6355+
* as Void, meaning the documents will not be deserialized.
6356+
*/
6357+
6358+
public final CompletableFuture<SearchTemplateResponse<Void>> searchTemplate(
6359+
Function<SearchTemplateRequest.Builder, ObjectBuilder<SearchTemplateRequest>> fn) {
6360+
return searchTemplate(fn.apply(new SearchTemplateRequest.Builder()).build(), Void.class);
6361+
}
6362+
61316363
/**
61326364
* Run a search with a search template.
61336365
*

0 commit comments

Comments
 (0)