Skip to content

Commit 2f1e501

Browse files
committed
[codegen] update to latest api spec
1 parent 363075c commit 2f1e501

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
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

@@ -100,28 +99,28 @@ public static QueryCacheStats of(Function<Builder, ObjectBuilder<QueryCacheStats
10099
/**
101100
* Required - API name: {@code cache_count}
102101
*/
103-
public final int cacheCount() {
102+
public final long cacheCount() {
104103
return this.cacheCount;
105104
}
106105

107106
/**
108107
* Required - API name: {@code cache_size}
109108
*/
110-
public final int cacheSize() {
109+
public final long cacheSize() {
111110
return this.cacheSize;
112111
}
113112

114113
/**
115114
* Required - API name: {@code evictions}
116115
*/
117-
public final int evictions() {
116+
public final long evictions() {
118117
return this.evictions;
119118
}
120119

121120
/**
122121
* Required - API name: {@code hit_count}
123122
*/
124-
public final int hitCount() {
123+
public final long hitCount() {
125124
return this.hitCount;
126125
}
127126

@@ -143,14 +142,14 @@ public final long memorySizeInBytes() {
143142
/**
144143
* Required - API name: {@code miss_count}
145144
*/
146-
public final int missCount() {
145+
public final long missCount() {
147146
return this.missCount;
148147
}
149148

150149
/**
151150
* Required - API name: {@code total_count}
152151
*/
153-
public final int totalCount() {
152+
public final long totalCount() {
154153
return this.totalCount;
155154
}
156155

@@ -205,51 +204,51 @@ public String toString() {
205204
*/
206205

207206
public static class Builder extends WithJsonObjectBuilderBase<Builder> implements ObjectBuilder<QueryCacheStats> {
208-
private Integer cacheCount;
207+
private Long cacheCount;
209208

210-
private Integer cacheSize;
209+
private Long cacheSize;
211210

212-
private Integer evictions;
211+
private Long evictions;
213212

214-
private Integer hitCount;
213+
private Long hitCount;
215214

216215
@Nullable
217216
private String memorySize;
218217

219218
private Long memorySizeInBytes;
220219

221-
private Integer missCount;
220+
private Long missCount;
222221

223-
private Integer totalCount;
222+
private Long totalCount;
224223

225224
/**
226225
* Required - API name: {@code cache_count}
227226
*/
228-
public final Builder cacheCount(int value) {
227+
public final Builder cacheCount(long value) {
229228
this.cacheCount = value;
230229
return this;
231230
}
232231

233232
/**
234233
* Required - API name: {@code cache_size}
235234
*/
236-
public final Builder cacheSize(int value) {
235+
public final Builder cacheSize(long value) {
237236
this.cacheSize = value;
238237
return this;
239238
}
240239

241240
/**
242241
* Required - API name: {@code evictions}
243242
*/
244-
public final Builder evictions(int value) {
243+
public final Builder evictions(long value) {
245244
this.evictions = value;
246245
return this;
247246
}
248247

249248
/**
250249
* Required - API name: {@code hit_count}
251250
*/
252-
public final Builder hitCount(int value) {
251+
public final Builder hitCount(long value) {
253252
this.hitCount = value;
254253
return this;
255254
}
@@ -273,15 +272,15 @@ public final Builder memorySizeInBytes(long value) {
273272
/**
274273
* Required - API name: {@code miss_count}
275274
*/
276-
public final Builder missCount(int value) {
275+
public final Builder missCount(long value) {
277276
this.missCount = value;
278277
return this;
279278
}
280279

281280
/**
282281
* Required - API name: {@code total_count}
283282
*/
284-
public final Builder totalCount(int value) {
283+
public final Builder totalCount(long value) {
285284
this.totalCount = value;
286285
return this;
287286
}
@@ -314,14 +313,14 @@ public QueryCacheStats build() {
314313

315314
protected static void setupQueryCacheStatsDeserializer(ObjectDeserializer<QueryCacheStats.Builder> op) {
316315

317-
op.add(Builder::cacheCount, JsonpDeserializer.integerDeserializer(), "cache_count");
318-
op.add(Builder::cacheSize, JsonpDeserializer.integerDeserializer(), "cache_size");
319-
op.add(Builder::evictions, JsonpDeserializer.integerDeserializer(), "evictions");
320-
op.add(Builder::hitCount, JsonpDeserializer.integerDeserializer(), "hit_count");
316+
op.add(Builder::cacheCount, JsonpDeserializer.longDeserializer(), "cache_count");
317+
op.add(Builder::cacheSize, JsonpDeserializer.longDeserializer(), "cache_size");
318+
op.add(Builder::evictions, JsonpDeserializer.longDeserializer(), "evictions");
319+
op.add(Builder::hitCount, JsonpDeserializer.longDeserializer(), "hit_count");
321320
op.add(Builder::memorySize, JsonpDeserializer.stringDeserializer(), "memory_size");
322321
op.add(Builder::memorySizeInBytes, JsonpDeserializer.longDeserializer(), "memory_size_in_bytes");
323-
op.add(Builder::missCount, JsonpDeserializer.integerDeserializer(), "miss_count");
324-
op.add(Builder::totalCount, JsonpDeserializer.integerDeserializer(), "total_count");
322+
op.add(Builder::missCount, JsonpDeserializer.longDeserializer(), "miss_count");
323+
op.add(Builder::totalCount, JsonpDeserializer.longDeserializer(), "total_count");
325324

326325
}
327326

java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,10 +2351,10 @@
23512351
if (hash.length > 1) {
23522352
hash = hash.substring(1);
23532353
}
2354-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/eb87f7645ff2778dc459dfa63b5d5dcc342a7a1f/specification/" + (paths[hash] || "");
2354+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/b60d8e6f23d4ac1f435c642ae78cd8133f950f58/specification/" + (paths[hash] || "");
23552355
</script>
23562356
</head>
23572357
<body>
2358-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/eb87f7645ff2778dc459dfa63b5d5dcc342a7a1f/specification/">Elasticsearch API specification</a>.
2358+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/b60d8e6f23d4ac1f435c642ae78cd8133f950f58/specification/">Elasticsearch API specification</a>.
23592359
</body>
23602360
</html>

0 commit comments

Comments
 (0)