Skip to content

Commit ca2c057

Browse files
committed
[codegen] update to latest spec
1 parent 316e539 commit ca2c057

533 files changed

Lines changed: 27660 additions & 7085 deletions

File tree

Some content is hidden

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

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

Lines changed: 164 additions & 98 deletions
Large diffs are not rendered by default.

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

Lines changed: 164 additions & 98 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.CommonStatsFlag">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
47+
public enum CommonStatsFlag implements JsonEnum {
48+
All("_all"),
49+
50+
Store("store"),
51+
52+
Indexing("indexing"),
53+
54+
Get("get"),
55+
56+
Search("search"),
57+
58+
Merge("merge"),
59+
60+
Flush("flush"),
61+
62+
Refresh("refresh"),
63+
64+
QueryCache("query_cache"),
65+
66+
Fielddata("fielddata"),
67+
68+
Docs("docs"),
69+
70+
Warmer("warmer"),
71+
72+
Completion("completion"),
73+
74+
Segments("segments"),
75+
76+
Translog("translog"),
77+
78+
RequestCache("request_cache"),
79+
80+
Recovery("recovery"),
81+
82+
Bulk("bulk"),
83+
84+
ShardStats("shard_stats"),
85+
86+
Mappings("mappings"),
87+
88+
DenseVector("dense_vector"),
89+
90+
SparseVector("sparse_vector"),
91+
92+
;
93+
94+
private final String jsonValue;
95+
96+
CommonStatsFlag(String jsonValue) {
97+
this.jsonValue = jsonValue;
98+
}
99+
100+
public String jsonValue() {
101+
return this.jsonValue;
102+
}
103+
104+
public static final JsonEnum.Deserializer<CommonStatsFlag> _DESERIALIZER = new JsonEnum.Deserializer<>(
105+
CommonStatsFlag.values());
106+
}

0 commit comments

Comments
 (0)