Skip to content

Commit d9add00

Browse files
committed
[codegen] updated to latest api spec
1 parent c84fb75 commit d9add00

File tree

7 files changed

+181
-81
lines changed

7 files changed

+181
-81
lines changed

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

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import co.elastic.clients.util.ObjectBuilder;
3131
import co.elastic.clients.util.WithJsonObjectBuilderBase;
3232
import jakarta.json.stream.JsonGenerator;
33-
import java.lang.Integer;
3433
import java.lang.Long;
3534
import java.lang.String;
3635
import java.util.Objects;
@@ -61,22 +60,22 @@
6160
*/
6261
@JsonpDeserializable
6362
public class QueryCacheStats implements JsonpSerializable {
64-
private final int cacheCount;
63+
private final long cacheCount;
6564

66-
private final int cacheSize;
65+
private final long cacheSize;
6766

68-
private final int evictions;
67+
private final long evictions;
6968

70-
private final int hitCount;
69+
private final long hitCount;
7170

7271
@Nullable
7372
private final String memorySize;
7473

7574
private final long memorySizeInBytes;
7675

77-
private final int missCount;
76+
private final long missCount;
7877

79-
private final int totalCount;
78+
private final long totalCount;
8079

8180
// ---------------------------------------------------------------------------------------------
8281

@@ -103,7 +102,7 @@ public static QueryCacheStats of(Function<Builder, ObjectBuilder<QueryCacheStats
103102
* <p>
104103
* API name: {@code cache_count}
105104
*/
106-
public final int cacheCount() {
105+
public final long cacheCount() {
107106
return this.cacheCount;
108107
}
109108

@@ -113,7 +112,7 @@ public final int cacheCount() {
113112
* <p>
114113
* API name: {@code cache_size}
115114
*/
116-
public final int cacheSize() {
115+
public final long cacheSize() {
117116
return this.cacheSize;
118117
}
119118

@@ -123,7 +122,7 @@ public final int cacheSize() {
123122
* <p>
124123
* API name: {@code evictions}
125124
*/
126-
public final int evictions() {
125+
public final long evictions() {
127126
return this.evictions;
128127
}
129128

@@ -133,7 +132,7 @@ public final int evictions() {
133132
* <p>
134133
* API name: {@code hit_count}
135134
*/
136-
public final int hitCount() {
135+
public final long hitCount() {
137136
return this.hitCount;
138137
}
139138

@@ -164,7 +163,7 @@ public final long memorySizeInBytes() {
164163
* <p>
165164
* API name: {@code miss_count}
166165
*/
167-
public final int missCount() {
166+
public final long missCount() {
168167
return this.missCount;
169168
}
170169

@@ -174,7 +173,7 @@ public final int missCount() {
174173
* <p>
175174
* API name: {@code total_count}
176175
*/
177-
public final int totalCount() {
176+
public final long totalCount() {
178177
return this.totalCount;
179178
}
180179

@@ -229,30 +228,30 @@ public String toString() {
229228
*/
230229

231230
public static class Builder extends WithJsonObjectBuilderBase<Builder> implements ObjectBuilder<QueryCacheStats> {
232-
private Integer cacheCount;
231+
private Long cacheCount;
233232

234-
private Integer cacheSize;
233+
private Long cacheSize;
235234

236-
private Integer evictions;
235+
private Long evictions;
237236

238-
private Integer hitCount;
237+
private Long hitCount;
239238

240239
@Nullable
241240
private String memorySize;
242241

243242
private Long memorySizeInBytes;
244243

245-
private Integer missCount;
244+
private Long missCount;
246245

247-
private Integer totalCount;
246+
private Long totalCount;
248247

249248
/**
250249
* Required - Total number of entries added to the query cache across all shards
251250
* assigned to selected nodes. This number includes current and evicted entries.
252251
* <p>
253252
* API name: {@code cache_count}
254253
*/
255-
public final Builder cacheCount(int value) {
254+
public final Builder cacheCount(long value) {
256255
this.cacheCount = value;
257256
return this;
258257
}
@@ -263,7 +262,7 @@ public final Builder cacheCount(int value) {
263262
* <p>
264263
* API name: {@code cache_size}
265264
*/
266-
public final Builder cacheSize(int value) {
265+
public final Builder cacheSize(long value) {
267266
this.cacheSize = value;
268267
return this;
269268
}
@@ -274,7 +273,7 @@ public final Builder cacheSize(int value) {
274273
* <p>
275274
* API name: {@code evictions}
276275
*/
277-
public final Builder evictions(int value) {
276+
public final Builder evictions(long value) {
278277
this.evictions = value;
279278
return this;
280279
}
@@ -285,7 +284,7 @@ public final Builder evictions(int value) {
285284
* <p>
286285
* API name: {@code hit_count}
287286
*/
288-
public final Builder hitCount(int value) {
287+
public final Builder hitCount(long value) {
289288
this.hitCount = value;
290289
return this;
291290
}
@@ -318,7 +317,7 @@ public final Builder memorySizeInBytes(long value) {
318317
* <p>
319318
* API name: {@code miss_count}
320319
*/
321-
public final Builder missCount(int value) {
320+
public final Builder missCount(long value) {
322321
this.missCount = value;
323322
return this;
324323
}
@@ -329,7 +328,7 @@ public final Builder missCount(int value) {
329328
* <p>
330329
* API name: {@code total_count}
331330
*/
332-
public final Builder totalCount(int value) {
331+
public final Builder totalCount(long value) {
333332
this.totalCount = value;
334333
return this;
335334
}
@@ -362,14 +361,14 @@ public QueryCacheStats build() {
362361

363362
protected static void setupQueryCacheStatsDeserializer(ObjectDeserializer<QueryCacheStats.Builder> op) {
364363

365-
op.add(Builder::cacheCount, JsonpDeserializer.integerDeserializer(), "cache_count");
366-
op.add(Builder::cacheSize, JsonpDeserializer.integerDeserializer(), "cache_size");
367-
op.add(Builder::evictions, JsonpDeserializer.integerDeserializer(), "evictions");
368-
op.add(Builder::hitCount, JsonpDeserializer.integerDeserializer(), "hit_count");
364+
op.add(Builder::cacheCount, JsonpDeserializer.longDeserializer(), "cache_count");
365+
op.add(Builder::cacheSize, JsonpDeserializer.longDeserializer(), "cache_size");
366+
op.add(Builder::evictions, JsonpDeserializer.longDeserializer(), "evictions");
367+
op.add(Builder::hitCount, JsonpDeserializer.longDeserializer(), "hit_count");
369368
op.add(Builder::memorySize, JsonpDeserializer.stringDeserializer(), "memory_size");
370369
op.add(Builder::memorySizeInBytes, JsonpDeserializer.longDeserializer(), "memory_size_in_bytes");
371-
op.add(Builder::missCount, JsonpDeserializer.integerDeserializer(), "miss_count");
372-
op.add(Builder::totalCount, JsonpDeserializer.integerDeserializer(), "total_count");
370+
op.add(Builder::missCount, JsonpDeserializer.longDeserializer(), "miss_count");
371+
op.add(Builder::totalCount, JsonpDeserializer.longDeserializer(), "total_count");
373372

374373
}
375374

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public class SynonymGraphTokenFilter extends TokenFilterBase implements TokenFil
7373
@Nullable
7474
private final String synonymsPath;
7575

76+
@Nullable
77+
private final String synonymsSet;
78+
7679
@Nullable
7780
private final String tokenizer;
7881

@@ -89,6 +92,7 @@ private SynonymGraphTokenFilter(Builder builder) {
8992
this.lenient = builder.lenient;
9093
this.synonyms = ApiTypeHelper.unmodifiable(builder.synonyms);
9194
this.synonymsPath = builder.synonymsPath;
95+
this.synonymsSet = builder.synonymsSet;
9296
this.tokenizer = builder.tokenizer;
9397
this.updateable = builder.updateable;
9498

@@ -145,6 +149,14 @@ public final String synonymsPath() {
145149
return this.synonymsPath;
146150
}
147151

152+
/**
153+
* API name: {@code synonyms_set}
154+
*/
155+
@Nullable
156+
public final String synonymsSet() {
157+
return this.synonymsSet;
158+
}
159+
148160
/**
149161
* API name: {@code tokenizer}
150162
*/
@@ -193,6 +205,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
193205
generator.writeKey("synonyms_path");
194206
generator.write(this.synonymsPath);
195207

208+
}
209+
if (this.synonymsSet != null) {
210+
generator.writeKey("synonyms_set");
211+
generator.write(this.synonymsSet);
212+
196213
}
197214
if (this.tokenizer != null) {
198215
generator.writeKey("tokenizer");
@@ -231,6 +248,9 @@ public static class Builder extends TokenFilterBase.AbstractBuilder<Builder>
231248
@Nullable
232249
private String synonymsPath;
233250

251+
@Nullable
252+
private String synonymsSet;
253+
234254
@Nullable
235255
private String tokenizer;
236256

@@ -289,6 +309,14 @@ public final Builder synonymsPath(@Nullable String value) {
289309
return this;
290310
}
291311

312+
/**
313+
* API name: {@code synonyms_set}
314+
*/
315+
public final Builder synonymsSet(@Nullable String value) {
316+
this.synonymsSet = value;
317+
return this;
318+
}
319+
292320
/**
293321
* API name: {@code tokenizer}
294322
*/
@@ -340,6 +368,7 @@ protected static void setupSynonymGraphTokenFilterDeserializer(
340368
op.add(Builder::synonyms, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
341369
"synonyms");
342370
op.add(Builder::synonymsPath, JsonpDeserializer.stringDeserializer(), "synonyms_path");
371+
op.add(Builder::synonymsSet, JsonpDeserializer.stringDeserializer(), "synonyms_set");
343372
op.add(Builder::tokenizer, JsonpDeserializer.stringDeserializer(), "tokenizer");
344373
op.add(Builder::updateable, JsonpDeserializer.booleanDeserializer(), "updateable");
345374

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public class SynonymTokenFilter extends TokenFilterBase implements TokenFilterDe
7373
@Nullable
7474
private final String synonymsPath;
7575

76+
@Nullable
77+
private final String synonymsSet;
78+
7679
@Nullable
7780
private final String tokenizer;
7881

@@ -89,6 +92,7 @@ private SynonymTokenFilter(Builder builder) {
8992
this.lenient = builder.lenient;
9093
this.synonyms = ApiTypeHelper.unmodifiable(builder.synonyms);
9194
this.synonymsPath = builder.synonymsPath;
95+
this.synonymsSet = builder.synonymsSet;
9296
this.tokenizer = builder.tokenizer;
9397
this.updateable = builder.updateable;
9498

@@ -145,6 +149,14 @@ public final String synonymsPath() {
145149
return this.synonymsPath;
146150
}
147151

152+
/**
153+
* API name: {@code synonyms_set}
154+
*/
155+
@Nullable
156+
public final String synonymsSet() {
157+
return this.synonymsSet;
158+
}
159+
148160
/**
149161
* API name: {@code tokenizer}
150162
*/
@@ -193,6 +205,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
193205
generator.writeKey("synonyms_path");
194206
generator.write(this.synonymsPath);
195207

208+
}
209+
if (this.synonymsSet != null) {
210+
generator.writeKey("synonyms_set");
211+
generator.write(this.synonymsSet);
212+
196213
}
197214
if (this.tokenizer != null) {
198215
generator.writeKey("tokenizer");
@@ -231,6 +248,9 @@ public static class Builder extends TokenFilterBase.AbstractBuilder<Builder>
231248
@Nullable
232249
private String synonymsPath;
233250

251+
@Nullable
252+
private String synonymsSet;
253+
234254
@Nullable
235255
private String tokenizer;
236256

@@ -289,6 +309,14 @@ public final Builder synonymsPath(@Nullable String value) {
289309
return this;
290310
}
291311

312+
/**
313+
* API name: {@code synonyms_set}
314+
*/
315+
public final Builder synonymsSet(@Nullable String value) {
316+
this.synonymsSet = value;
317+
return this;
318+
}
319+
292320
/**
293321
* API name: {@code tokenizer}
294322
*/
@@ -339,6 +367,7 @@ protected static void setupSynonymTokenFilterDeserializer(ObjectDeserializer<Syn
339367
op.add(Builder::synonyms, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()),
340368
"synonyms");
341369
op.add(Builder::synonymsPath, JsonpDeserializer.stringDeserializer(), "synonyms_path");
370+
op.add(Builder::synonymsSet, JsonpDeserializer.stringDeserializer(), "synonyms_set");
342371
op.add(Builder::tokenizer, JsonpDeserializer.stringDeserializer(), "tokenizer");
343372
op.add(Builder::updateable, JsonpDeserializer.booleanDeserializer(), "updateable");
344373

0 commit comments

Comments
 (0)