Skip to content

Commit d905287

Browse files
[9.2] Regenerate client (#1153)
* [codegen] update to latest spec * unused imports --------- Co-authored-by: Laura Trotta <laura.trotta@elastic.co>
1 parent 82fa153 commit d905287

File tree

2,292 files changed

+35739
-202
lines changed

Some content is hidden

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

2,292 files changed

+35739
-202
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
158158

159159
private Integer status;
160160

161+
public Builder() {
162+
}
163+
private Builder(BulkIndexByScrollFailure instance) {
164+
this.cause = instance.cause;
165+
this.id = instance.id;
166+
this.index = instance.index;
167+
this.status = instance.status;
168+
169+
}
161170
/**
162171
* Required - API name: {@code cause}
163172
*/
@@ -215,6 +224,12 @@ public BulkIndexByScrollFailure build() {
215224
}
216225
}
217226

227+
/**
228+
* @return New {@link Builder} initialized with field values of this instance
229+
*/
230+
public Builder rebuild() {
231+
return new Builder(this);
232+
}
218233
// ---------------------------------------------------------------------------------------------
219234

220235
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,20 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
251251

252252
private Long avgSizeInBytes;
253253

254+
public Builder() {
255+
}
256+
private Builder(BulkStats instance) {
257+
this.totalOperations = instance.totalOperations;
258+
this.totalTime = instance.totalTime;
259+
this.totalTimeInMillis = instance.totalTimeInMillis;
260+
this.totalSize = instance.totalSize;
261+
this.totalSizeInBytes = instance.totalSizeInBytes;
262+
this.avgTime = instance.avgTime;
263+
this.avgTimeInMillis = instance.avgTimeInMillis;
264+
this.avgSize = instance.avgSize;
265+
this.avgSizeInBytes = instance.avgSizeInBytes;
266+
267+
}
254268
/**
255269
* Required - API name: {@code total_operations}
256270
*/
@@ -355,6 +369,12 @@ public BulkStats build() {
355369
}
356370
}
357371

372+
/**
373+
* @return New {@link Builder} initialized with field values of this instance
374+
*/
375+
public Builder rebuild() {
376+
return new Builder(this);
377+
}
358378
// ---------------------------------------------------------------------------------------------
359379

360380
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CartesianPoint.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
124124

125125
private Double y;
126126

127+
public Builder() {
128+
}
129+
private Builder(CartesianPoint instance) {
130+
this.x = instance.x;
131+
this.y = instance.y;
132+
133+
}
127134
/**
128135
* Required - API name: {@code x}
129136
*/
@@ -158,6 +165,12 @@ public CartesianPoint build() {
158165
}
159166
}
160167

168+
/**
169+
* @return New {@link Builder} initialized with field values of this instance
170+
*/
171+
public Builder rebuild() {
172+
return new Builder(this);
173+
}
161174
// ---------------------------------------------------------------------------------------------
162175

163176
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChunkRescorer.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
140140
@Nullable
141141
private ChunkRescorerChunkingSettings chunkingSettings;
142142

143+
public Builder() {
144+
}
145+
private Builder(ChunkRescorer instance) {
146+
this.size = instance.size;
147+
this.chunkingSettings = instance.chunkingSettings;
148+
149+
}
143150
/**
144151
* The number of chunks per document to evaluate for reranking.
145152
* <p>
@@ -188,6 +195,12 @@ public ChunkRescorer build() {
188195
}
189196
}
190197

198+
/**
199+
* @return New {@link Builder} initialized with field values of this instance
200+
*/
201+
public Builder rebuild() {
202+
return new Builder(this);
203+
}
191204
// ---------------------------------------------------------------------------------------------
192205

193206
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
206206
@Nullable
207207
private List<ShardFailure> failures;
208208

209+
public Builder() {
210+
}
211+
private Builder(ClusterDetails instance) {
212+
this.status = instance.status;
213+
this.indices = instance.indices;
214+
this.took = instance.took;
215+
this.timedOut = instance.timedOut;
216+
this.shards = instance.shards;
217+
this.failures = instance.failures;
218+
219+
}
209220
/**
210221
* Required - API name: {@code status}
211222
*/
@@ -300,6 +311,12 @@ public ClusterDetails build() {
300311
}
301312
}
302313

314+
/**
315+
* @return New {@link Builder} initialized with field values of this instance
316+
*/
317+
public Builder rebuild() {
318+
return new Builder(this);
319+
}
303320
// ---------------------------------------------------------------------------------------------
304321

305322
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,18 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
212212
@Nullable
213213
private Map<String, ClusterDetails> details;
214214

215+
public Builder() {
216+
}
217+
private Builder(ClusterStatistics instance) {
218+
this.skipped = instance.skipped;
219+
this.successful = instance.successful;
220+
this.total = instance.total;
221+
this.running = instance.running;
222+
this.partial = instance.partial;
223+
this.failed = instance.failed;
224+
this.details = instance.details;
225+
226+
}
215227
/**
216228
* Required - API name: {@code skipped}
217229
*/
@@ -307,6 +319,12 @@ public ClusterStatistics build() {
307319
}
308320
}
309321

322+
/**
323+
* @return New {@link Builder} initialized with field values of this instance
324+
*/
325+
public Builder rebuild() {
326+
return new Builder(this);
327+
}
310328
// ---------------------------------------------------------------------------------------------
311329

312330
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
163163
@Nullable
164164
private Map<String, FieldSizeUsage> fields;
165165

166+
public Builder() {
167+
}
168+
private Builder(CompletionStats instance) {
169+
this.sizeInBytes = instance.sizeInBytes;
170+
this.size = instance.size;
171+
this.fields = instance.fields;
172+
173+
}
166174
/**
167175
* Required - Total amount, in bytes, of memory used for completion across all
168176
* shards assigned to selected nodes.
@@ -232,6 +240,12 @@ public CompletionStats build() {
232240
}
233241
}
234242

243+
/**
244+
* @return New {@link Builder} initialized with field values of this instance
245+
*/
246+
public Builder rebuild() {
247+
return new Builder(this);
248+
}
235249
// ---------------------------------------------------------------------------------------------
236250

237251
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
154154

155155
private Double right;
156156

157+
public Builder() {
158+
}
159+
private Builder(CoordsGeoBounds instance) {
160+
this.top = instance.top;
161+
this.bottom = instance.bottom;
162+
this.left = instance.left;
163+
this.right = instance.right;
164+
165+
}
157166
/**
158167
* Required - API name: {@code top}
159168
*/
@@ -204,6 +213,12 @@ public CoordsGeoBounds build() {
204213
}
205214
}
206215

216+
/**
217+
* @return New {@link Builder} initialized with field values of this instance
218+
*/
219+
public Builder rebuild() {
220+
return new Builder(this);
221+
}
207222
// ---------------------------------------------------------------------------------------------
208223

209224
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
182182
@Nullable
183183
private String totalSize;
184184

185+
public Builder() {
186+
}
187+
private Builder(DocStats instance) {
188+
this.count = instance.count;
189+
this.deleted = instance.deleted;
190+
this.totalSizeInBytes = instance.totalSizeInBytes;
191+
this.totalSize = instance.totalSize;
192+
193+
}
185194
/**
186195
* Required - Total number of non-deleted documents across all primary shards
187196
* assigned to selected nodes. This number is based on documents in Lucene
@@ -247,6 +256,12 @@ public DocStats build() {
247256
}
248257
}
249258

259+
/**
260+
* @return New {@link Builder} initialized with field values of this instance
261+
*/
262+
public Builder rebuild() {
263+
return new Builder(this);
264+
}
250265
// ---------------------------------------------------------------------------------------------
251266

252267
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,20 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
263263

264264
private String number;
265265

266+
public Builder() {
267+
}
268+
private Builder(ElasticsearchVersionInfo instance) {
269+
this.buildDate = instance.buildDate;
270+
this.buildFlavor = instance.buildFlavor;
271+
this.buildHash = instance.buildHash;
272+
this.buildSnapshot = instance.buildSnapshot;
273+
this.buildType = instance.buildType;
274+
this.luceneVersion = instance.luceneVersion;
275+
this.minimumIndexCompatibilityVersion = instance.minimumIndexCompatibilityVersion;
276+
this.minimumWireCompatibilityVersion = instance.minimumWireCompatibilityVersion;
277+
this.number = instance.number;
278+
279+
}
266280
/**
267281
* Required - The Elasticsearch Git commit's date.
268282
* <p>
@@ -381,6 +395,12 @@ public ElasticsearchVersionInfo build() {
381395
}
382396
}
383397

398+
/**
399+
* @return New {@link Builder} initialized with field values of this instance
400+
*/
401+
public Builder rebuild() {
402+
return new Builder(this);
403+
}
384404
// ---------------------------------------------------------------------------------------------
385405

386406
/**

0 commit comments

Comments
 (0)