Skip to content

Commit 62d485a

Browse files
Re-generate client code using latest OpenSearch API specification (2026-04-08) (#1940) (#1956)
(cherry picked from commit 44e356e) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Andriy Redko <drreta@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent dde967a commit 62d485a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

java-client/src/generated/java/org/opensearch/client/opensearch/_types/aggregations/TermsPartition.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
@Generated("org.opensearch.client.codegen.CodeGenerator")
5959
public class TermsPartition implements PlainJsonSerializable, ToCopyableBuilder<TermsPartition.Builder, TermsPartition> {
6060

61-
private final long numPartitions;
61+
private final int numPartitions;
6262

63-
private final long partition;
63+
private final int partition;
6464

6565
// ---------------------------------------------------------------------------------------------
6666

@@ -79,7 +79,7 @@ public static TermsPartition of(Function<TermsPartition.Builder, ObjectBuilder<T
7979
* API name: {@code num_partitions}
8080
* </p>
8181
*/
82-
public final long numPartitions() {
82+
public final int numPartitions() {
8383
return this.numPartitions;
8484
}
8585

@@ -89,7 +89,7 @@ public final long numPartitions() {
8989
* API name: {@code partition}
9090
* </p>
9191
*/
92-
public final long partition() {
92+
public final int partition() {
9393
return this.partition;
9494
}
9595

@@ -128,8 +128,8 @@ public static Builder builder() {
128128
* Builder for {@link TermsPartition}.
129129
*/
130130
public static class Builder extends ObjectBuilderBase implements CopyableBuilder<Builder, TermsPartition> {
131-
private Long numPartitions;
132-
private Long partition;
131+
private Integer numPartitions;
132+
private Integer partition;
133133

134134
public Builder() {}
135135

@@ -156,7 +156,7 @@ public Builder copy() {
156156
* </p>
157157
*/
158158
@Nonnull
159-
public final Builder numPartitions(long value) {
159+
public final Builder numPartitions(int value) {
160160
this.numPartitions = value;
161161
return this;
162162
}
@@ -168,7 +168,7 @@ public final Builder numPartitions(long value) {
168168
* </p>
169169
*/
170170
@Nonnull
171-
public final Builder partition(long value) {
171+
public final Builder partition(int value) {
172172
this.partition = value;
173173
return this;
174174
}
@@ -198,15 +198,15 @@ public TermsPartition build() {
198198
);
199199

200200
protected static void setupTermsPartitionDeserializer(ObjectDeserializer<TermsPartition.Builder> op) {
201-
op.add(Builder::numPartitions, JsonpDeserializer.longDeserializer(), "num_partitions");
202-
op.add(Builder::partition, JsonpDeserializer.longDeserializer(), "partition");
201+
op.add(Builder::numPartitions, JsonpDeserializer.integerDeserializer(), "num_partitions");
202+
op.add(Builder::partition, JsonpDeserializer.integerDeserializer(), "partition");
203203
}
204204

205205
@Override
206206
public int hashCode() {
207207
int result = 17;
208-
result = 31 * result + Long.hashCode(this.numPartitions);
209-
result = 31 * result + Long.hashCode(this.partition);
208+
result = 31 * result + Integer.hashCode(this.numPartitions);
209+
result = 31 * result + Integer.hashCode(this.partition);
210210
return result;
211211
}
212212

java-codegen/opensearch-openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44062,11 +44062,11 @@ components:
4406244062
num_partitions:
4406344063
description: The number of partitions.
4406444064
type: integer
44065-
format: int64
44065+
format: int32
4406644066
partition:
4406744067
description: The partition number for this request.
4406844068
type: integer
44069-
format: int64
44069+
format: int32
4407044070
required:
4407144071
- num_partitions
4407244072
- partition

0 commit comments

Comments
 (0)